Posts

Showing posts from July, 2015

java - delete record by any column value hibernate -

I am new to hibernate, I am learning to be struts2 + hibernate and understand from the example on the net. In one of the examples what I can see and do, remove the user from their ID, as we can see here, each user in the list has a remove link and the session . Delete () deletes the record by id, now I want the user to enter a name in the text field given there and delete it by that name. So far I've tried this type of ActionMethod: delete public string () {// HttpServletRequest request = (HttpServletRequest) ActionContext .getContext () .get (Serial Action Context.httpiequost); // UsdiododelUser (long.parlong (request.getParameter ("id")); UserDAO.delUser (user.getName ()); Return success; } DAOImpl: @ Override Public Zero Dealuser (string username) {try user user = (user) session .get (User.class, userName); Session.delete (user); } Hold (exception e) {transaction.rollback (); E.printStackTrace (); }} I hope there is a way that hibernation can rem...

installer - How to notify Python from an Inno Setup that the environment path has changed? -

So I am trying to create an installer who has the following steps: Check if the Python is installed Copy my app files Check if the Python installation directory has a Windows Environmental Path Check whether the Python script is in the folder Windows Environment Path If the script folders are not in env path, add it Install easy_install Run a python script that uses easy_install to install several libraries The problem has to be faced in the last few steps. Here's the relevant code for these setups that I am currently using: Starting the case: ssInstall's curst: // file transfer is starting to start // note: abort Use (); To finish installation during this step. End; SsPostInstall: // Start the file transfer has ended // Make sure that the Python path is in. SPythonInstallDir: = _PythonGetInstallDir (); _PathAddToSystem (sPythonInstallDir) _PathAddToSystem (sPythonInstallDir + 'Scripts;') // Play bundle Python script ExtractTemporaryFile (...

database - MySQL or NoSQL? Recommended way of dealing with large amount of data -

Image
I have a database that uses a large number of users to store random long strings (up to 100 characters) Will go The table columns will be: userid, string and actual long string. Then it will look great like this: will be unique to the user and string for each user will be unique. The app is similar to the ordinary todo-list app, so the average amount of each user will be 50 seconds. I'm using straddles so that the user can delete specific tasks at any time. I think the Toodo app can end up with 7 million works in 3 years and scares me with MySQL. So my question is that if this is the recommended way to deal with large amounts of data with a long string (every new task gets a new line)? And Is MySQL the right database solution to choose for this type of projects? I have not yet received large amounts of data and I am trying to save myself to remove the future. This is a very simple relational use case. I do not see the need for NOSQL here. The table you...

javascript - How to put items into grouped arrays where grouped by a particular key -

I am very new to the object in JS, so I'll need some help. I have the following array: var person = [{fname: 'steven', lname: 'Jameson', age: 20}, {fname: 'George', lname: 'thrump' , Age: 40}, {fname: 'Peter', lname: 'Jacobs', age: 60}, {fname: 'Peter', lname: 'thrump', age: 20}, {fname: 'steven', lname : 'Henderson', age: 40}, {fname: 'John', lname: 'yakub', age: 30}, {fname: 'steven', lname: 'thrump', age: 50}, {fname: George ', Lname:' Peterson ', age: 40}, {fname:' Peter ', lname:' Jameson ', age: 60}]; I need to sort the information from a property I have tried with the function (array, 'property') in my case this The function will be (individuals, 'fname') . I have to get an object with the key of different names and to store that key with everyone about that name. For example: object {Steven: First name ...

gwt - Create DIV in java -

How do I create a DIV program in Java so that it represents the DIV that looks like this: & lt; Div class = "fb-like-box" data-href = "http://www.facebook.com/platform" data-width = "595" data-show-face = "true" data -stream = "true" Data-header = "true" & gt; & Lt; / Div & gt; For some reason, I need to do this in Java rather than an ERA-UI template; The reason is that it appears that when it changes in pages it is removed Anyway, should I use divElement or do something else? The idea is that I should be able to create it on Java code and put it in a simple panel ... Use the HTML widget: html html = new HTML ("

javascript - Load own script on client's site -

I'm trying to create some kind of API in JavaScript. Basically, I want the client to include a script on my script and this script would load jquery, colorbox and execute a custom function, for now, will display a color box popup with a message. Of course, the script that the customer puts on their page will be hosted by me. What does this script look like for all of the above? something like var p = document.createElement ('script '); Po.type = 'text / javascript'; Po.async = true; Po.src = 'Link to your script here'; Var s = document.getElementsByTagName ('script') [0]; S.parentNode.insertBefore (POS, S); to

javascript - Dojo: how to delete/destroy a node from NodeList for real -

Here I have a list of nodes and an identification node that wants to remove from the list (both in visual and memory )). var currentRow = dojo.query (this) .parents ("div"). First () [0]; Var ParentDive = Dojo.Kuri (present day). Parentes ("Divi"). First () [0]; Var rowList = dojo.query (parentDiv). children (); The problem is, dojo.destroy (currentRow); Remove from viewing only currentRow , but when I can do the rowList loop, firebug I still remove the original size of any original size without seeing the shape of the line, so it starts to remain in memory, so how can we remove a node from the node list and return the node list? Deleting a node does not manipulate the rowList array, it The DOM only removes the node from the tree, which means that you have the rowList array in the currentRow node cached (and currentRow in the variable). DOM nodes are javascript objects, when you delete them from the DOM tree, they become garbage c...

java - Parse XML File within Jar -

Image
I have trouble loading XML files inside my Java game. Here's where the file is located (eclipse From): I'm researching, and apparently to use XML file in a JR file, I have to call DocumentBuilder.parse (InputStream) The problem is that when I getResourceAsStre I try to get InputStream using am ("res / xml / items.xml") it always blank. How can I not tap it? I do not want to put my resort folder inside my "src" folder, but do I have to take something that I have to set up? What will be the correct string of path? Thanks! Edit: My code: Try {DocumentBuilder db = dbf.newDocumentBuilder (); InputStream = Thread.currentThread () GetContextClassLoader (). GetResourceAsStream ("res / xml / items.xml"); Dom = db.parse (is); } Hold (exception e) {e.printStackTrace (); } It still makes me null. So, assuming that you ask Eclipse to use "res" as the source folder, there are still two problems in your lookup : ...

javascript - How to create dynamic content within syntaxhighlighter -

I want to display a property name based on the user input and want to display it inside the syntax highlighter. The post says that it should be easy. JS $ ('# inputText'). Key (function () {var outputValue = $ ('# CodeTemplate') .HTML (); // codeTemplate $ ('# codeContent') .html (outputValue); output of code template; Paste the contents of the content, finalOutputValue = $ ('# CodeContent'). HTML code; Collect the contents of the code and insert it in sample label $ ('. Popover #sample') .html (finalOutputValue); SyntaxHighlighter.highlight ();}); SyntaxHighlighter.all (); Markup & lt; Div style = "display: none;" & Gt; & Lt; Label class = "propertyName" & gt; & Lt; / Labels & gt; & Lt; Label id = "codeTemplate" & gt; & Lt; Label class = "propertyName" & gt; & Lt; / Labels & gt; // Use dynamic objects and default sections (app settings): va...

regex - HOW to use vim to find string with underscore -

मैं : s / IP_HD_LEN / IP_HDR_LEN कोड> लेकिन मुझे मिला E486: पैटर्न नहीं मिला: IP_HD_LEN इसमें क्या गलत है? :% s / IP_HD_LEN / IP_HDR_LEN / जी होगा कि यह कैसे करना है । यह कहता है कि पूरे दस्तावेज़ को खोजें और प्रतिस्थापन करें। नीचे दिए गए टिप्पणियों में @ken द्वारा एक मान्य बिंदु। कमांड पर / g को जोड़कर, आप आईपी_एचडी_एलईएन के प्रत्येक उदाहरण पर यह प्रतिस्थापन ऑपरेशन कर रहे हैं। यदि आप केवल पहले उदाहरण को बदलना चाहते हैं, तो आप इसे छोड़ देंगे और इसके साथ समाप्त होंगे: :% s / IP_HD_LEN / IP_HDR_LEN

codeigniter - MySQL - One to many query -

मेरे पास इस तरह एक तालिका है: [परीक्षा] [परीक्षा_आईडी] [परीक्षा_नाम] 1 टेस्ट 1 2 टेस्ट 2 और इस तरह की अन्य तालिका: [मॉड्यूल] [मॉड्यूल_आईड] [मॉड्यूल_नाव] [परीक्षा_आईडी] 1 मॉड्यूल 1 1 2 मॉड्यूल 2 1 3 मॉड्यूल 1 2 स्पष्ट रूप से, हम देखते हैं कि टेस्ट 1 में 2 मॉड्यूल दिए गए हैं और टेस्ट 2 में मॉड्यूल निर्दिष्ट किया गया है मुझे एक तालमेल दोनों तालिकाओं में मिलना चाहिए जहां आउटपुट कुछ जैसा हो यह: टेस्ट 1 मॉड्यूल 1 मॉड्यूल 2 टेस्ट 2 मॉड्यूल 1 मैंने निम्न किया है: चयन 'परीक्षा' 'परीक्षा_आईडी', 'परीक्षा_नाम', 'मॉड्यूल_नाम' से (`परीक्षा`) JOIN 'मॉड्यूल' पर` परीक्षा '.exam_id` = `मॉड्यूल` .exam_id` लेकिन मैं डुप्लिकेट परीक्षा नामों वाला एक आउटपुट मिला: टेस्ट 1 मॉड्यूल 1 टेस्ट 1 मॉड्यूल 1 टेस्ट 2 मॉड्यूल 1 मैं अतिरिक्त टेस्ट 1 को निकालना चाहता हूं क्योंकि ये एक दृश्य पर दिखाया जा रहा है जो मैं एक विदेशी प्रयोग कर रहा हूं क्या आप लोग इस के साथ मेरी मदद कर सकते हैं? ..मैं कोडइग्नेटर का उपयोग कर रहा हूं ताकि आप मुझे कोडि...

sql server - insert column to table which shares a key with another table -

I'm not sure what I'm using to get the right function. I have a code so far: Enter in the property (owner) (Choose a user name as DOYEVANT from DOEERTTI. On Dbo.ASSETS b.exxt = b.Ext) I have a table with the property (dbo.assets) in which one column (ext) is with the number of phone extensions that is attached to the property in another table (dbo.directory) I have a column in which the phone extension associated with the person name on that extension (username) ST) number. What I want to do is to insert the user's name into the dyb.satet the person connected to the phone extension under a new column: the owner must match the username ext name, instead of merge it instead Should use? You are not to mention which RDMS you are using anyhow before you If you need to add columns to the table, you will update the column price to set the row price. Looks like this in SQL Server. Add the owner of the Alter table property to VARCHAR (20) Tap one set a.owner = b....

SQL Server 2005 SELECT TOP 1 from VIEW returns LAST row -

I have a view that could have more than one line, looking like this: [rate] | [Seller ID] 8374 1234 6523 4321 5234 9374 In an SPROC, I must set an absolute value equal to the value of the column before the first line of view. Something like this: DECLARE @rate int; SET @rate = (Select the top 1 rate from Vendor_view where VendorID = 123) SELECT @rate but it always gives the last line of the scene. Actually, if I only run subconscious by myself, then I only get the last line. Returns the 1st and 3rd rows in the top 2 sequence, with 3 rows in the sequence. With 4 rows, it is returning the top 3 in sequence. Still the top 1 is still returning to the final. DERP?!? This works .. DECLARE @rate int; # Log in the table (vRate) (select the rate from vendor_view where vendorID = 123) SET @rate = (select top 1 vRate from #temp) Select @rate drop table #temp .. but someone can tell me why behave so ruthlessly before and what do I have to do? As stated in the comments, there...

ruby on rails - opening the pry console in sandbox mode -

I was bothered recently and I think this is a great replacement for irb. I thought I was using it for my ROR development and debugging. I know that just to open you with a rail app, just type pry -r ./config/environment my question is That there is a way to open proxy console in sandbox mode so that any amendments do not affect my database. Firstly add "pre-rail" Gem Gemfile Gem 'pry-rails' ,: group = & gt; : bundle install then launch Rail Console in sandbox mode # Env $ rails in development c --sandbox # or test env $ rails c test --sandbox All this will automatically replace Pry's IRB. I enjoy! Ref:

debugging - Azure Web Role - Multiple websites don't compile when debugger is run in Visual Studio -

I have an Azure cloud service project that has a web role with many websites associated with it. When I click on the "Run" button, fails to load debug symbols for all websites in the web role to debug other websites, before I run the debugger The web project has to be clearly prepared. How can I configure the Azure Cloud service project to collect all the associated webs in a single one? Web role? As part of this posting, support for Visual Studio 2012 for many websites within a single web role is quite poor (,). When you click on the "Run" button in any solution, this does not mean that all the projects will be compiled. Only connected directly to the project that is currently running (and debug symbols have been updated) will be compiled. Consider the following tasks: The main web role in the Identify solution is Web Project (this should be the one that matches the name of the web role in the Azure Cloud service project Right click on the web...

python - PyQt multiple QDilaog class signal catching -

I have a PyQt GUI application that has multiple QDialog windows which I use to plot data using the matplotlib widget I am This is the code I am using below. Only one emitted signal has been caught. The QDialog that has been created captures it, it is an emitted signal. If the TempBox dialog has been created, then NewTemp_signal has been caught or if the RealBox dialog has been created, then NewReal_signal is caught. But, the other signal is not caught. How do I get both hints to update all the dialogues? Thanks Dialog window class class GUIgraph (QtGui.QDialog): def __init __ (self, parent = none): QtGui.QDialog .__ init __ ( Self, Parents) Print Functions that create new windows This is a histograph dialog class function 'self.graph = Ui_histogram_Dialog () self. Graph.setupUi (self) DEF TempgraphFunc (self): QtGui.QWidget .__ init __ (self, parent = none) self.TempBox = GUIgraph () self.TempBox. SetWindowTitle ("tempreter") self.NewTemp_signa...

tsql - Datetime conversion / mixed variables in dynamic SQL -

itemprop = "text"> I have a table that has more than one timeout column - TblDate1 , TblDate2 , TblDate3 , etc ... I have a question that accepts a parameter to specify which date column to compare with another date Required. Here is my query effort - sp_executesql announcement @DateColumn nvarchar (128) set @DateColumn = 'TblDate2' declared @DateStart date set @DateStart = DATEADD (d, -7, getdate ()) Execute messages from N'SELECT * where @DueartinType & lt; @DateColumnIN ', N' @ DateStartIN datetime, @DateColumnIN nvarchar (128) ', @DateStartIN = @DateStart, @DateColumnIN = @DateColumn The return error - Conversions in message 241, level 16, state 1, line 1 fails when the character changes the date and / or time from the string. Try it out: DECLARE @DateColumn VARCHAR (128) SET @DateColumn = 'TblDate2' DECLARE @DateStart DATETIME SET @DateStart = DATEADD (D, -7, GETDATE ()) DECLARE @pvsSQL NVARCHAR (256) SE...

command line - Can't git clone by adding ssh-key in Node.js -

# डिस्क fs.writeFile के लिए SSH- कुंजी लिखें "/cgrepos/.ssh/#{repo Id} .pub ", repo.public_key, (err) - & gt; अगर गलती करें fs.writeFile "/cgrepos/.ssh/#{repo.id}", repo.private_key, (err) - & gt; अगर err exec "chmod 400 /cgrepos/.ssh/#{repo.id} & amp; eval` ssh-agent -s` और amp; ssh- जोड़ें /cgrepos/.ssh/#{repo.id पर गलती करें } ", (त्रुटि) - & gt; त्रुटि को फेंक दें # पहले, हार्ड ड्राइव पर जीआईटी रेपो हटा दें, अगर यह मौजूद है "rm -rf # {git_location}", विकल्प, (त्रुटि) - & gt; त्रुटि # सेकंड में त्रुटि को फेंक दें, स्थान console.log में "रेपो" क्लोनिंग करें # # {repo.id}: # {grep_location} में # {repo.repo_name}। इसमें एक मिनट "exec" git क्लोन # Repo.url} # {git_location} ", विकल्प, (त्रुटि) - & gt; त्रुटि त्रुटि मैं कोशिश कर रहा हूँ कि नोड में ( कॉफी का उपयोग उन लोगों के लिए जो भयानक हैं)। लेकिन किसी कारण के लिए, जब यह चलता है, तो मुझे एक त्रुटि देता है: त्रुटि: कमांड विफल: conq: रिपॉ...

version control - remove sensitive data but not file from git history -

इस सवाल का पहले से ही एक उत्तर है: 9 जवाब मेरे पास एक फाइल है जो एक बार संवेदनशील कॉन्फ़िगरेशन जानकारी शामिल है मैं उस कॉन्फ़िगरेशन जानकारी को किसी दूसरी फ़ाइल में ले जाता हूं जो संस्करण नियंत्रण के अंतर्गत नहीं है I मैं अन्य फाइल को संस्करण नियंत्रण के तहत रखना चाहता हूं, लेकिन मैं इसका इतिहास हटाना चाहता हूं क्योंकि कोई आसानी से गिटूब पर स्रोत को ब्राउज़ कर सकता है और पिछले कमिट में संवेदनशील जानकारी पा सकता है। ऐसा करने का सबसे अच्छा तरीका क्या है? मैं केवल यह देख रहा हूं कि फ़ाइल को संस्करण नियंत्रण से कैसे निकालना है और उसका इतिहास साफ़ करना जीआईटी में थोड़ा नया, इसलिये नईबिनीस को क्षमा करें आप इस लेख को देखना चाह सकते हैं बहुत ज्यादा यह कमांड कहता है git फ़िल्टर-शाखा - बल - इंडेक्स-फ़िल्टर 'git rm --cached --ignore-unmatch rakefile' \ --prune-empty --tag- नाम-फ़िल्टर बिल्ली - --all git से राकफ़ाइल का इतिहास निकाल देगा। हालांकि, वे आगे बढ़ते हैं और उस फाइल को उनके गिटग्नॉर में जोड़ते हैं। आपको उस भाग को छोड़ देना चाहिए क्योंकि आप फ़ाइल को संस...

java - Selection Sort with an ArrayList of objects -

I'm having some problems like this, it will only display the first file correctly. Anyone sees what I am doing wrong? I am trying to understand it for hours and I do not know what I am doing. Public Zero Type () {int i; // loop end of control end; // The final position in array list int max; // position where the previous alphabet file name is max = 0; // The biggest situation is so far first, because I did not check // I thought I would start at the end and (= final file = list.size () - 1; final> gt; = 0; -) {for (i = 0; i & lt; fileList.size (); i ++) {if (fileList.get (max) .getFileName (). Compare (fileList.get (i) .getFileName () )> 0) Max = i; } // Last alphabet Pixfile tempPix = fileList.get (last) in the last position with swap pixfile; FileList.set (last, fileList.get (max)); FileList.set (max, tempPix); // I thought I repeat till last = 0 and the array list is sorted}} should be a loop for the internal (int i = 0; i & lt; = last; i ++) becaus...

javascript - Add text color toggle to show/hide a jQuery function -

मेरे पास टॉगल फ़ंक्शन कार्य है: $ (document) .ready (function ( ) {$ ("। Hidecontrol") क्लिक करें (फ़ंक्शन () {$ ("। Hide")। टॉगल (300)})}}; मैं एक नया वर्ग "। Nohide" जो भी टॉगल करने के लिए एक टेक्स्ट रंग परिवर्तन जोड़ना चाहता हूं। मैं कोशिश कर रहा हूं $ (document) .ready (function () {$ ("। Hidecontrol")। क्लिक करें (function () {$ ("hide")। टॉगल (300 ), $ ("। Hidecontrol")। सीएसएस ('रंग', 'लाल')})}}; लेकिन यह पहली क्लिक के बाद 'स्थायी' है, और वापस टॉगल नहीं करता है। सीएसएस रंग परिवर्तन को। टॉगल () फ़ंक्शन में जोड़ने का एक तरीका है? $ (" .hidecontrol ")। Toggleclass ('redcolor') आपका सीएसएस .redcolor {color: red}

javascript - can't get swiping to work for jquery mobile -

Newbie here, sorry if I do not understand all the correct ins and outs of posting ... I have visited something To try and understand the swipe for the perfect jquery mobile mobile, I visited this page for my script - for whatever reasoning reasons, I could not get it to work. I am sure that I Some small and stupid misses ... Is there any Can I see the problem? Thanks & lt ;! DOCTYPE html & gt; & Lt; Html lang = "en" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" /> & Lt; Meta name = "viewport" content = "width = device-width, initial-scale = 1, maximum-scale = 1" /> & Lt; Link rel = "stylesheet" href = "_ / css / jquery.mobile.css" /> & Lt; Script src = "_ / javascript / jquery.js" & gt; & Lt; / Script & gt; & Lt; Script src = "_ / javascript / jquery.mobile.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (...

python - Inserting QImage after string in QTextEdit -

I am trying to print the text in the QTextEdit field but for some reasons this image appears first. Here is my code: PyQt4.QtGui import from * * PyQt4.QtCore import from class example (QtGui.QWidget) * PyQt4 import QtCore, Import sys from QtGui: Def __init __ (self): super (for example, self) .__ init __ () self.initUI () def initUI (self): TextEdit = QtGui.QTextEdit (', self) textEdit.setGeometry (QtCore.QRect ( 300, 300, 640, 480)) TextEdit. The trick (0, 0) with self geometry (300, 300, 640, 480) img = QImage ('image.png', 'PNG') cursor = QTextCursor (textEdit.document ()) cursor.instatext ("Hello World" ) Cursor. Instant Image (IMG) Self. Show () DIF Main (): App = QTGui QAPScation (SISGR) Example = (for example) sys.exit (app.exec_ ()) if __name__ == '__main__': main () This looks like this in my QTextEdit field some image Hello World but I want to show it: Hello World some image The image is at the top of the string Bes...

java - Range search for the strings of 3 columns -

मैंने abc a1.b1.c1 a1.b1 नीचे स्ट्रिंग सेट किया है .c2 a1.b2.c3 a2.b1.c1 a2.b2.c2 a3.b3.c3 अगर a1। * के लिए पूछा जाए तो मुझे वापस कर देना चाहिए a1 से शुरू होने वाली सभी स्ट्रिंग यदि a1.b1 के लिए पूछा गया है, तो सभी कोड को a1.b1 से शुरू कर देना चाहिए सभी आउटपुट सॉर्ट किए गए फ़ैशन में होंगे (लेक्सिकोग्राफिक) डेटास्ट्रक्चर पर कोई सुझाव, मैं प्रत्यय वृक्ष की सोच रहा था। यह कोड आपकी मदद कर सकता है। स्ट्रिंग स्ट्रैररे [] = {"A1.b1.c1", "a1.b1.c2", "a1.b2.c3", "a2.b1.c1", "a2.b2.c2", "a3.b3.c3"}; स्ट्रिंग आरम्भ से = "a1.b1"; के लिए (int i = 0; i & lt; stringarray.length; i ++) {if (स्ट्रैर्रे [i]। Starsts (withfrom)) system.out.println ("स्ट्रिंग है:" + stringarray [i]); }

css - change position button addlink in extension MultiModelForm -

I am using the extension MultiModelForm () How do I Can I change the button add row ? The button I want to appear under my table appears above my table, but when the user enters, then many rows have to be pressed back by pressing the button to add more rows and this is not very practical ... I try to modify the file MultiModelForm.php but the location of the button could not be changed :( .... Thanks for everything $ ('# the_button') .clone () .a Pend to ('#other_pest'); or $ ('# the_button') .clon (). Prepaidto ('#other_pest');

machine learning - Preprocessing on mahout classifier training data -

I am training Mahatat classifier. I need to stop, reduce the cover and stop the word removal on my training data or mahout, as a part of the training process, I'm using the command for training. $ MAHOUT_HOME / BIN / MIGHT trainclassifier -i class-training-data -O category-beij-model-type bayes -ng 1 -source hdfs This is not a preproduction of that kind NO.

Unable to CURL a remote file -

I have a piece of code that is designed to get any URL and erase it from the web It's been working so far, unless someone returns this URL: If I hit it with my browser, it just looks okay. But when I try to curl it down, I get: & Lt; P & gt; You do not have permission to access /static/images/aspen_hill-rom_logo.png on this server. & Lt; / P & gt; & Lt; Hour & gt; & Lt; Address & gt; Server www.aspensurgical.com Port 80 & lt; / Address & gt; & Lt; / Body & gt; & Lt; / Html & gt; I am using curl code: $ ch = curl_init (str_replace ('', '% 20', $ url)); $ FH = FOPN ($ local_file, "W"); Curl_setopt ($ CH, CURLOPT_FILE, $ FH); Curl_exec ($ ch); Curl_close ($ ch); Does their server know in some way that I'm not a normal browser and I'm booting? Check to see who you are, add the usergroup of the normal browser and you're okay needed. curl_setopt ($ ch, CURLOPT_USERAG...

Accessing model subclass attributes with django tastypie -

I have a model that has been published class fu (models.model ): Name = model.carfield (max_long = 255) child_model = models.charfield (max_length = 255) square bar (foo): woots = models.ManyToManyField (Woot) class Woot (models.Model): color = models.CharField ( Max_length = 255) and some tastypie resources: class FooResource (ModelResource): class meta: queryset = Foo.objects.all () class BarResource (ModelResource): Square Meta: queryset = Foo.objects.all () Class WootResource (ModelResource): Class Meta: queryset = Woot.objects.all () When access to FooResource , so I ideally change it to 'again' and bar-resorts instead, if child_model attribute == times If I can not do this, then by any means I can sort any kind of woots (when the child_model attribute == bar) will be fine by me. Try S: class FooResource (ModelResource): class Meta: queryset = Foo.objects.all () DEF Dehydrate (self, bundle): If bundle.data ['child_model'] == "bar...

css - How to make these two inline? -

I am editing another's code, an existing form and a CSS file, what have I done that Tag in the form "", and I want to select inline. Each selection has a label, so I put them into a div, so I have 5 divisions. I want to put the first line in the line and the last 2 in the second row. . I was working for hours to work on a CSS file, but still failed. Now the problem is that I can not put s in the same line, each one has a different line, so I now have 5 rows ... but I just need 2 rows. Please help me on that, I'm not quite familiar with CSS. & lt; Html & gt; & Lt; Link rel = "stylesheet" href = "css / mrbs.css.php" type = "text / css" & gt; & Lt; Link rel = "stylesheet" media = "print" href = "css / mrbs-print.css.php" type = "text / css" & gt; & Lt; Form id = "add_room" class = "form_admin" action = "addystem.php" method = "...

c - error: ‘string’ undeclared (first use in this function) gcc OS X -

$ gcc a.c स्ट्रिंग s = "string"; A.c: 4: त्रुटि: एक स्ट्रिंग ??? अघोषित (इस फ़ंक्शन में पहले उपयोग) $ gcc -v का उपयोग करके निर्मित चश्मा लक्ष्य: i686-सेब के darwin11 साथ कॉन्फ़िगर: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable जाँच --enable-werror उपसर्ग = / अनुप्रयोग / Xcode.app / सामग्री /Developer/usr/llvm-gcc-4.2 --mandir = / शेयर / आदमी --enable-भाषाओं = ग, ObjC, c ++, ObjC ++ --program-उपसर्ग = llvm- --program-बदलने नाम = / ^ [तटरक्षक] [^ .-] * $ / एस / $ / - 4.2 / --with-slibdir = / usr / lib --build = i686-सेब के darwin11 --enable-LLVM = / निजी / var / tmp /llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-उपसर्ग = i686-सेब के darwin11- --host = x86_64-सेब के darwin11 --target = i686-सेब के darwin11 - साथ-gxx-शामिल-dir = / usr / शामिल / c ++ / 4.2.1 थ्रेड मॉडल: POSIX जीसीसी संस्करण 4.2.1 (पर एप्पल इंक के आधार 5658 का निर्माण) (LLVM निर्माण 2336.11.00) कोई भी स्ट्रिंग डेटा प्रकार में नहीं है। आप शायद चा...

wordpress - Database connection issue, couldn't get the data from database -

& lt;? Php / * खाका नाम: test * / सर्वर = "लोकलहोस्ट"; $ User = "root"; $ Password = ""; $ Db = "_wp201"; $ Con = mysql_connect ($ स्थानीयहोस्ट, $ उपयोगकर्ता, $ पासवर्ड); अगर (! $ Con) {मर ("डेटाबेस कनेक्शन त्रुटि"); } अन्य {mysql_select_db ($ db, $ con); // उदाहरण क्वेरी $ परिणाम = mysql_query ("चुनें * से wp_posts WHERE post_author = '1'"); // लेखक 1 (व्यवस्थापक) द्वारा सभी पोस्ट दिखाएं ($ row = mysql_fetch_array ($ परिणाम)) {if ($ row ['post_status'] == "प्रकाशित करें") {echo ""। $ Row ['post_title'] । "& Lt; br / & gt;"; }}} Mysql_close ($ con); ? & Gt; मैं वर्डप्रेस में एक कस्टम पंजीकरण पृष्ठ बना रहा हूं। इसलिए मैं डेटाबेस कनेक्शन का परीक्षण करने के लिए एक परीक्षण पृष्ठ बना रहा हूं। लेकिन कोई भी बाहर प्रदर्शित नहीं कर रहा है। ऐसा क्यों हैं? कृपया मदद करे। (सभी सर्वर में सही है) कोशिश mysql_fetch_assoc के बजाय Mysql_fetch_array ओह, और ...

What does ** mean in python -

इस सवाल का पहले से ही एक उत्तर है: 6 जवाब मैं उलझन में हूँ क्या एक * और दो ** एक पैरामीटर के सामने करता है def आवरण (* आर्ग्स, ** wdargs): इसका अर्थ है कीवर्ड तर्क। उदाहरण के लिए func (x, y, foo = 'a') # जहां foo एक कीवर्ड तर्क है

Newton-Raphson linearization? Second-Order Nonlinear ODE numpy-scipy Python -

Image
मैं एक से अधिक सप्ताह को हल करने का प्रयास कर रहा हूं: मुझे यू के अनुमानित समाधान प्राप्त करने के लिए न्यूटन-रैफसन पद्धति का उपयोग करना होगा। मुझे ऐसा करने की स्क्रिप्ट है, लेकिन मुझे इस गैर रेखीय ओडीई को "लाइनरीज़ करना" चाहिए। K1-k4 स्थिर नहीं हैं प्रत्येक ग्रिड बिंदु (एक्स = 1-100) पर उन्हें एक अलग मान मिलता है जो गणना की जाती है। प्रारंभिक स्थिति यू (0) = 0 है क्या यह होमवर्क असाइनमेंट है? इसके अलावा, यह सीमा मान समस्या है या एक ओडीई? आप जो लिखते हैं, यह बीवीपी की तरह लगता है इसके अलावा, u (0) पर आपकी सीमा की स्थिति पर्याप्त नहीं है। यदि बीवीपी, आप बस का उपयोग कर सकते हैं या आपके लिए मुश्किल भागों को कर सकते हैं। यदि ओडीई, समस्या को पहले ऑर्डर सिस्टम के रूप में लिखें, और scipy.integrate.odint या scipy.integrate.ode का उपयोग करें। लाइनरिजनाइजेशन के बारे में (यह मानना ​​है कि यह एक बीवीपी है): व्यवहार में यह आमतौर पर संख्यात्मक भेदभाव के माध्यम से न्यूटन पद्धति के लिए अपेक्षित आंशिक व्युत्पत्ति की गणना करने के लिए पर्याप्त है।

Why is regex prefix query on indexed array slow in MongoDB? -

I am trying to do a regex query on an array of stars in the MongoDB archive. I could only find this limit in the following: $ regex can only use index individually when regular expression has an anchor for string start (i.e. ^) and case-sensitive match . Let's do a test: & gt; (.db.test.count () 100000 & gt; Db.test.ensureIndex ({f: 1}) & gt; ({? F) for (Var i = 0; i & lt; 100000; i ++) : / ^ a_ (0) _ $ 12 /}) db.test.find { "_ id": ObjectId ( "514ac59886f004fe03ef2a96"), "f": [ "a_0_12", "a_1_2"]} & gt; Db. test.find ({f: / ^ a_ (0)? _ 12 $ /}) explain () { "cursor": "Bitirikarsr F_l Multi", "Aimltiki": true, "N": 1, "Anscentted objects ": 200000," nscanned ": 200000," nscannedObjectsAllPlans ": 200000," nscannedAllPlans ": 200000," scanAndOrder ": false," indexOnly ": false," nYields ": ...

performance - VS 2012 - Solution Explorer show (slow) -

I am working on a web site (not a web application project) and I have problems with IDE performance . For example, when I add a new class to the project or I'm working on an existing one and clicking on the Solution Explorer, it takes a lot of time before the window is displayed and freeze the VS. I see what options to disable in VS, because it is really upset. For now, I had unchecked Track Active Items in Options / Projects and Solutions / Solutions Explorer in general, but there must be something else I have VS 2012 Premium. There is a tool called Process Monitor which can smell through any ongoing program in the Windows Sistributions website. Registry and file access. You can try to find the time that you can use by using this tool. Also see this article: - In that case the reason was the folder: \ user \ $ username \ AppData \ Local \ Microsoft \ WebSiteCache

Subdomains, nginx and godaddy -

Image
यहां पूर्व शर्त है: मैंने डोमेन पंजीकृत किया है example.com में godaddy। मैं कुछ आवेदनों के साथ 8080 पोर्ट पर एक टॉमकेट चलाता हूं 8080 पोर्ट दुनिया के लिए छिपा हुआ है। मैं subdomain.example.com से सर्वर: 8080 / सबडोमेन मानचित्र करना चाहता हूं। मैं चाहता हूं कि भविष्य में समान मैपिंग ( सबडोमेन 2.example.com से सर्वर: 8080 / दूसरे कॉन्टैक्स , उदाहरण के लिए) करना संभव हो। example.com को सर्वर: 8080 / mainPageApp के लिए मैप किया जाना चाहिए: अन्य सभी अनुप्रयोगों को उनके संदर्भ के माध्यम से स्वीकार्य होना चाहिए: example.com/ ऐप - & gt; सर्वर: 8080 / ऐप । अभी के लिए, मैंने केवल गोदादी को कॉन्फ़िगर किया है (मुझे नहीं पता कि यह अच्छा है): क्या आप इस मामले के लिए nginx config के साथ मेरी सहायता कर सकते हैं? यहां मेरा है, लेकिन यह अनंत रीडायरेक्ट भेजता है: सर्वर {80 का कहना है; Server_name स्थानीयहोस्ट; स्थान / {रूट HTML; सूचकांक index.html; }} सर्वर {80; Server_name उपडोमेन.लोकलहोस्ट; स्थान / {proxy_pass http://127.0.0.1:8080/subdomain; }} ठी...

c++ - AllocConsole() not displaying cout -

i) a DLL where I use the AllocConsole (and the court has to display the data for debugging purposes. It used to work fine but since I update my compiler (Visual Studio 2012) to the latest dll not only shows the console but also print / COUTS. I am out there as the idea of ​​why this is happening . Any ideas? Part of my code __ dec Lspec (dllexport) INT APIENTRY DllMain (HMODULE hDLL, DWORD Cause, LPVOID Safe) {Switch (Cause) {Cases DLL_PROCESS_ATTACH: AllocConsole (); DisableThreadLibraryCalls (hDLL); // DietTransConstructionBijin (); DetourUpdateThread (GetCurrentThread ()) Dizziness Art (& Amp; PVOD & amp; nbsp; PS & amp; nbsp; Messind); if (Detortransaction Commit () == NO_ERER) cout But nothing is shown. After the text "itemprop =" text "> I remember a little that you studied Utah may need to redirect to the console though I may be wrong (because you had previously worked your code): AllocConsole (); Freeopen ("Conte $", ...

php - depending on json response to take the inputs -

I will get an answer for a server that is in Jason format, below is Jason's reaction as there are several orbits which are only one Organization is the default organization, so when the organization changes, the organization is likely to have a big Jason on this, my 'HTML form is a form field for the location in which I have to select a location from several places. , On choosing the place, there A more web service will be there, and another form will be created to select one, and another form will be there [["location": [{"building": ["default building "Name": "default location"}], "name": "default organization"}] I have tried to do this, in this I have to call a web service, after selecting the name of the organization will send a JSN response after the organization's names, some organizations can be Since the peacock is one place, this location of the chosen organization should be shown only in...

redirect - how to auto login to another html page from flex -

I have a Flex application. With this app, I want to navigate to another url which is an html page. To do this, I can use the navigateToURL () method. In the new url, I must login, I will need to automate the login in the page. For example, if I'm in the Flex app, clicking on a button I should have an auto login on my Gmail page in the second tab. Do I have all the necessary credentials in the Flex app? Has anyone done this? If you use OpenID, there may be a login for many sites, you can get GMail, FBook or Some providers will have to start and you can go to your flex site. div>

While extracting data from excel sheet using python (xlrd package). getting some junk data too -

I am extracting data from excel sheet using the python (xlrd package). With the original data getting some junk data, please help remove those people going down as junk value such as [text: u: [text: u 'NAME', text: u'jack '] & lt; Code & gt; Xlrd import open_workbook from book = open_workbook ('C: /Users/arun/Desktop/EX.xls') sheet0 = book.sheet_by_index (0) # sheet1 = book.sheet_by_index (1) print sheet0.col (0) print sheet 0 ( 2) Print Sheet 0 Col (3) Print Sheet 0 Col (4) Print Sheet 0 Col (5) Print Sheet 0 COOL (6) Print Sheet 0 COOL (7) Print Sheet 0 Col (8) Print Sheet 0 Col (9) Printing Sheet0.col (10) printing sheet0.col (12) print sheet0.col (13) print sheet0.col (14) print sheet0.col (15) print sheet0.col (16) print sheet0.col (17) print sheet 0 Col (18) Print Sheet 0 Col (19) Print Sheet 0 Col (20) W Rint sheet 0 COL (21) Print sheet Sikpikokok (22) Print Sheet 0 Col (23) Print Sheet 0 Col (24) Print sheet0.col (25) Print sheet0.co...

jquery - Cannot read property 'left' of undefined -

Chrome is throwing error, trying to figure out "UnkitType Error: Undefined" left "property not Can read " Although # Explorer does great work, but #xperienceSnav does not work. Am I forgetting something? Click (function () {$ ('body'). Animate ({scrollLeft: $ ("# explore") offset () .left-15}, 1000, function () {$ (this) .Parent (). AddClass ('Active');}); Returned;}); $ ('.navi li # experiencenav a'). Click (function () {$ ('body'). Animate ({scrollLeft: $ ("#experience") offset (). Left-15}, 1200, function () {$ (this) .Parent (). AddClass ('Active');}); Returned;}); & lt; Div id = "experience" & gt; & Lt; Div class = "video" & gt; & Lt; Iframe id = "Youtube" width = "650" height = "366" src = "http://www.youtube.com/embed/XS6S8qSMvBE?wmode=opaque" frameborder = "0" wmode = "transparent" acceptabl...

Mysql Function returning same value -

I need the mysql function, but each time returns the same value / this mysql function gives me the meaning every time I S_Start_ToBeStarted (value of 1) - Colora delimiters $$ drop function is present, then create `colorA` $$ function` colorA` (Appf VARCHAR (3), Start_Datef DATETIME, PDCf DATETIME) Final Setting INT DEFAULT 0; If APP = 'Yes' & amp; IFNULL (Start_Datef, 'zero' = 'zero' in & amp; sysdate () & lt; = PDCf then set finalcolor = (selection `` PP_Colors```S_Start_ToBeStarted` to SCR_Sap`.'PP_Colors` border1); else if Appf = 'yes' in & amp; IFNULL (Start_Datef, 'zero') = 'zero' in & sysdate ()> PDCf again set finalcolor = (selection `` PP_Colors```S_Start_Error` to SCR_Sap`. `PP_Colors` limit 1); otherwise if Appf = 'yes' in & amp;! Sysdate () & lt; = 'zero' & amp; IFNULL (Start_Datef, 'zero') = PDCf then set finalcolor = (selection` `PP_Colors SCR_Sap` .`PP_Co...

d3.js - Fixed font-size from an array - D3 Jason Davies Example -

The code below is the Wordcloud example of Jason Davis, I want to insert an array with fixed font size and make it random I want to integrate with For example: fontSize = [20,35,50,60,83,90]; I want to fix it, as above (not from the limit of [x, x]): var fontSize = d3 Scale.log () .ange ([20, 90]); Someone knows how I can implement it. Sorry, maybe this is a stupid question, unfortunately still a start. & lt; Script & gt; Var fill = d3.scale.category20 (); ("[", " Map (function (d) {return {text: D, size: 10+ math.rondam () * 90};}) .tate (function () {return ~ ~ (monastery) . Randem) () * 2) * 90;}). Font ("effects") Fonts (function (D) {return ds;;}) .n ("end", draw). Start (); ("Width", 800) .attr ("height", 800). Style ("font size", function (d) {return d. ("Text"). Size + "px";}) style ("font- Style "," effect "). Style (" fill ", functi...

version control - Should I add third-party js code as a git submodule, or add it to my own repo? -

As far as I know, the generally accepted process of adding third-party code to a git Add as a submodule. This reduces the size of the main repo, but I would imagine having a D3 (for example) code in the main repo, when D3 will help break some code using that code. Is there any reason why I should not just check the latest version, use it to develop my code, and put it on our own store? I really like to use for this purpose, it allows you to keep copies of the remote repository , But still maintains the history of the repository, and pulls forward / pulls forward.

How to use async_work_group_copy in OpenCL? -

I understand how to use async_work_group_copy () calls in OpenCL to see a simplified example: __Color Zero Test (__Global Float * x) {__local xcopy [GROUP_SIZE]; Int globalid = get_global_id (0); Int localid = get_local_id (0); Event_t e = async_work_group_copy (xcopy, x + globalid-localid, GROUP_SIZE, 0); Wait_group_events (1, & amp; e); } The reference says, "Copy an async copy of the num_elements gentype elements of the DCT from SQL. Async copy is done by all the works in a work-group and the underlying function is therefore All work-items should execute the kernel with the same logic values ​​in a workgroup; otherwise the results are undefined. " But this does not clarify my questions ... I would like to know, if not The following assumptions are correct: async_work_group_copy () should be executed by all work items in the call group. A call must be in a way that the source address is identical to all work items and points to the first element of th...

java - Spring - Switch between loading test or main configuration -

I am trying to swap application-reference files so that I can test using the actual one in my IDE / JUnit with a test An example of a bare bone would be: mainConfig.xml & Lt; Bean id = "Maybian" class = "my.class" /> testConfig.xml & lt; Reference: component-scan base-package = "myPackage" /> & Lt; Bean id = "Maybian" class = "my.test.class" /> My Java code that relates to the context of the application is similar to the one below (but this is actually a singleton) Public Last Class MyLoader { Private ApplicationContext Reference; Public MyLoader () {context = new classpathxmlApplicationContext ("Classpath: / hardcoded / path / to / manconfig.exml"); } Public & lt; T & gt; T obtained time (final class type) {return (t) context.getBean (type); }} Myloder is said to have many points in the code because there are many different entry points in the application. My JUnit Te...

algorithm - functions that f(n) is not O(g(n)) and g(n) is not O(f(n)) -

Is there any work such as both f (n) and g (n); F (n)! = O (g) and g (n)! = O (f) Is there any work that meets the requirements above? f (n) = n and g (n) = n ^ (1 + sin (X)). f (n) is not (g) and g (n) o (f (n)) is not. View

playframework - play-framework 2.0, is it possible to add a GET variable through the reverse router? -

In a way of my controller, called PageController , I have Return Redirect (route page controller.page_view ("main", "home")); This goes to / main / home How can I add a GET variable to it, for example / main / home> redirect = 0 ? I have done your job, if I understand your question: public static result GO_TO_OVERVIEW = redirect (routes. Bookmarks.index 0, "description", "acc", "")); And my route announcement looks like this: Get / Bookmark Controller The public static result index (int page, string string, string order, string filter) {if (sortBy.isEmpty (): Bookmarks.index (p: int? =), Receive it works for you?

c++ - How to convert HEX to ASCII String? -

I have hex string and want to convert it to ASCII string in C / C ++. How do I complete it? Can i? Unused status is loaded with #f Example: Digitally string 1234567 will be written in a field with 16 reserved positions (8 bytes). hex 1 2 3 4 5 6 7fffffff Input: 0x12 0x34 0x56 0x7f 0xff 0xff 0xff 0xff Output: 1234567 shown in the example Encoding is BCD . That is, a byte can store up to 2 digits. Each digit is displayed by 4 bits if 4 bits are more than 1001 binary (9 decimals), then you want to explain that as an not-valid number , and I think That is to interpret FF hex as an empty space. You can use bitwire operators to access each nable in byte: // Assume that a byte of your input is stored as 'a' char a = 0x15 ; // It is 15 bcd / 3 lower lower and upper teasing characters low_nibble = a & amp; 0x0F; Char Upper_enbubble = (Another amp 0xF0) & gt; & Gt; 4; // Change to ASCII if (bottom_nuble> 9) low_nbabel = ''; // location and lo...

java - Listener for addition/deletion of row in JTable -

Are there any events available which will be removed after JTable / apart from the rows? The table on itself does not change, but the TableModel model changes when appropriate it happens. / P> You can register TableModelListener on TableModel JTable table = new JTable (); Table.getModel () AddTableModelListener (New TableLodelListener) {@Override Public Zero Table Changed (TableModelEvents E) {if (e.getType () == TableModelEvent.INSERT || e.getType () == TableModelEvent.DELETE) {/ do something}} });

ejb 3.0 - JBoss 6 EJB tutorial.jar -

I was reading EJB 3.0 tutorial from Jbys site, I came to the third tutotial. Here's a paragraph that says: In this special example, the "other" domain is used by the "other" domain users.properties and roles.properties files containing cleite users, passwords, and user / role associations. If you have opened the Tutorial.zer file file, then you will see these two files there. That's why I searched for the tutorial, the generator was removed in the JBoss 6 directory but not found there. This tutorial refers to Jebos 4.0, so I did the same search in the Jebus 4.2 installation directory, but did not find it there again. P> Can anyone help me find the tutorial? Update: OK, I found property files that were used in the tutorial, but still could not find the tutorial. this can help you ... In your Jaebs root folder Check the path below for roles jboss-6.0.0.20100429-M3 \ server \ default \ conf \ props \ jbossws-roles.proper...

php - Foreach too slow -

मेरे पास 2 एरे हैं: $ questions: pid = & gt; नाम $ नाम: pid = & gt; छुटकारा यह डेटाबेस में सभी प्रश्नों (पीड) को सम्मिलित करता है और यदि कोई उत्तर (छुटकारा) होता है तो यह उत्तर सम्मिलित करता है; यदि कोई जवाब नहीं आती है तो 0। foreach ($ मान के रूप में $ सवाल) {$ idicate = ($ answer [$ value [pid]])? $ उत्तर [$ value [pid]]: 0; $ Idquestion = $ value [pid]; $ Sql ​​= "हल निकालें (छुटकारा, पीड) मूल्यों ('$ idanswer', '$ idquestion') में"; $ Db - & gt; क्वेरी ($ एसक्यूएल); } मेरे अनुभवहीनता में, मैं लगभग सभी चीजों के लिए विदेशी प्रयोग करता हूं, लेकिन इस मामले में बहुत धीमा है कोई भी सलाह? डालने के लिए प्रत्येक पंक्ति प्रति एक क्वेरी चलाने के बजाय, एक पंक्ति में सभी पंक्तियाँ? प्रश्न यह है कि आप वहां कितने महंगे कीमत दे रहे हैं, यह निश्चित रूप से समस्या नहीं है। आप कुछ के साथ क्यों नहीं जाते: $ Sql = "हल निकालने में (छुटकारा, पीआईडी) मूल्यों"; $ Vls = सरणी (); विदेशी मुद्रा ($ मूल्य $ $ के रूप में) {$ idicate = ($ an...

oracle - Pl/SQL Looping through the values of a cursor -

function Total inc (varchar2 in name 2) returns varchar2 total total number (6); Select monthly_inquas from Cursor C1 employee where name = name_in; BEGIN total_value: = 0; C1 LOOP total_value for employee_reck: = total_val + employee_re_mammle_income; End loop; Return all_val; End; In this example, I am being told that we are looping through values, but I do not believe that we are getting through the values ​​why Employee_rec.monthly_income required? Also, when I do employee_reck on FETCH , I think they are different from each other. I think they are different from each other. You are looping through the result set in the record . In other words: Open the cursor C1 for employee_rec in c1 and Perform a fetch on it For each row, assign the Record to a record variable named employee_rec . Then in the context of monthly_income , you have to say employee_rec.monthly_income on your code and not just monthly_income to say When I do a FETCH on employe...

android - Recorded sound file (ala google now, google keep) - RecognizerIntent/Listener -

I am developing an application that uses recognizerIntent to receive voice input. However, since the introduction of Jelly Bean, I am not able to get the actual sound file from my voice input. A method has been called upon in Listener (). BufferReceived However, there is no promise that this method will be called, and when I applied it, I never received the call. Is there any way to force this method to execute or what is the "best practice" to collect sound file that the identifier analyzes the expert? This should be possible because both Google can now do it with voice command "Note-to-All", and Google Keep: Voice notes alike. thanks I do not think there is any way to implement it is. This clearly depends on the service implementation implementation, if Google decides that the call is not made on onBufferReceived then there is no way to get the actual data that is used to note that the stated Google App access to speech recognition (public) do not...