Posts

Showing posts from March, 2012

module - typescript require() needs to include the folder the file is in - sometimes -

I have a case where I was imported: import docHeader = Requiring ('doc-header'); Import list body = requires ('list-body'); and failed to say that they were unable to list the JS file and URLs were missing. So I changed them to: import docHeader = required ('document / doctor-header'); Import list body = requires ('document / list-body'); The thing is, I have the file setup / call stack in this file document folder. layout / worker-api.ts: import document = required ('document / document'); // ... var doctor = new document Document (); Doc.deserialize (results.document); layout / document / document.ts: requires import docHeader = ('document / doctor-header'); Import list body = requires ('document / list-body'); // ... export class document {public guide: string; Public Doctor Header: docHeader.DocHeader; Public body: listBody.ListBody; Other files: Layout / Document / Doctor-Header. Layout / Documen...

sql - mssql query optimization for fastest speed -

I have a website that people can search for about 2 digits of radius for a latitude and longitude and both are indexed Do you think this is the most optimistic that I can get the query, or instead select where the latitude and gt; = @FiftyLatMin and @FiftyLatMax & gt; = Latitude and galleries & gt; = @FiftyLonMin and @FiftyLonMax & gt; = Long time " As you can see, I would use the 3 and options to be great There should be no performance difference in your implementation. On the other hand, & lt; etc. as between beteway you can get in trouble when you are working with dates, since you are working with this operator The parts of the brain have to be kept in mind while applying. You can also BETWEEN .

renaming files in python giving 'Error 2' -

इस सवाल का पहले से ही एक उत्तर है: 6 उत्तर मैं थोक नाम बदलने की कोशिश कर रहा हूँ एक निर्देशिका में कुछ पीडीएफ अगर len (self.toLoc.get ()) == 0: oslistdir (App.pdfDir) में filename के लिए searchRev = "_R" + newRev: sep = खोजी बाकी = फाइलनाम। एसएलपीटी (एसईपी, 1) [0] + खोजआरव ओएसएआरएनाम (फाइलनाम, बाकी) अन्य: खोजआरव = "_ आर" + नयाआरव + स्थान से + स्थान तक प्रिंट खोजआरव जब मैं इसे चलाता हूं, तो मुझे त्रुटि देता है फ़ाइल "एफ: \ टूल्स \ पायथन टूल्स \ वीसीआरएपीपी", पंक्ति 411, नाम बदलने में ओप्स नाम (फाइलनाम, आराम) विंडोज़ एन्टर: [त्रुटि 2] सिस्टम निर्दिष्ट फाइल नहीं पा सकता है मैं लूप में फ़ाइल नाम प्रिंट कर सकता हूं और परिणाम प्राप्त कर सकता हूं .... os.rename को पूर्ण p की आवश्यकता है फाइलों में ले जाता है, लेकिन oslistdir केवल उनके नाम लौटाता है। आप पूरे रास्तों को बनाने के लिए उपयोग कर सकते हैं कि os.rename की आवश्यकता है: os.rename (ओएस.path.join (App.pdfDir, फ़ाइल नाम), बाकी)

Is there a way to "reuse" a PHP DocBlock? -

itemprop = "text"> I currently have code like this: / ** * Such thing1 * * @return string is a thing1 * / function thing1 () {//} / ** * Such thing2 * * @return string is a thing2 * / function thing2 () {//} // More than a dozen formats Is there a more concise way to do this? Assume docblocks are really similar, often the case when you are overriding a legacy method, but To maintain the same signature, you can use the @see .... class MyBaseModel / ** * @param boolean $ excludeDeleted soft Removed records should be excluded * / public function newQuery ($ excludeDeleted = true) {....}} MyEssifiedModel class extends MyBaseModel / ** * base newQuery overload () method so that we can query any security filter * * @see MyBaseModel :: newQuery * / public function newQuery ($ Excluded deleted = true) can be injected) {....}} but your thing1 () and thing2 () , so in that case there is no short (lazy) way to do this

css - How to remove bootstraps mobile first (use desktop first) -

Is it possible to remove mobile first approach to bootstrap and use regular desktop first? Originally from desktop to tablet to mobile, as it is used. I want to keep responsive features, but when I create a media query to target small devices, I want to go from desktop & gt; Tablet & gt; mobile. Do I need to edit some files? The bootstrap was completely built in that 'mobile first' mindset. This will not be a simple thing to do if you want to use the desktop first, as soon as I use, I just recommend using older versions of bootstrap. You can find Bootstrap 2 here: If I'm not mistaken, then he first uses the desktop.

cuda - Does nvcc have an equivalent of fsingle-precision-constant? -

GCC allows to save the problem of manually adding every literal continuity. Is there any convenient equivalent in NVCC? I believe the answer is new architecture Not with) The old Open 64-based compiler supported a huge range of command line options (though many did nothing). Possible to pass -Xcompiler = -fshort-double to force all double precision calculations into single precision, the compiler is automatically done for two precise floating points automatically Sm_10, sm_11 and sm_12 targets which were the lack of original double exact support. The old compiler is still used for calculation 1.x target, so it is still possible. The new cicc LVVM front end (which is used for the devices; 1.x calculation capacity) is too much, very small list of arguments, and they are not AFAIK documents surrounding the poking code generation and Shows the following options for controlling output: -information-line-information-device-c-kernel-params-are-restrict -restrict -disable-inlin...

c# - Reading a text file and assigning certain lines to certain variables -

I am working on a Trivia C # console game that reads a text file that has a question, multiple choice Answer, number for correct choice and answer explanation. There are four questions set. The task is to prompt each question on the console window in the file, enter the user's answer and then compare one with the correct answer of the user. It should be done for this All four questions in the file . A class created with questions, multiple and war chauces, correct answers and answer exploration, gates and sets for each field. What I have to fight after I read the file, to specify each question in a certain variable to indicate the user and also to do it for four sets I have size 4 To create an array (as I have 4 lines for each question set), to store the lines, each element is specified in each variable above, but I did not understand that How loop for all four sets to. QuestionUnit is a class in which the question is in the field. Public Zero ReadQuestionFile (Quest...

dev c++ - Problems assigning char string to char array -

I have already read all the pre-related answers to my problem, however, I am unable to understand it is not a very bright codec I can check my problem. I am trying to write a CSV file using entries from the 2D array. String.h has already been included in the main (). zero create_marks_csv (int root [] [20], float p [] [20], float si [] [20], int n) {system ("cls"); Four straws [100], strobe [100], Strauss [100]; Printf ("Enter the filename for \ nwriting matrix" :); Gets (str1); Printf ("create \ n% s.csv file", str1); File * FP; Int i, j; Str1 = strcat (str1, "csv."); Str1 = strcat ("C: \\ User \\ Neil \\ Document \\ Trust CSV Log \\", str1); fp = fopen (str1, "w +"); For (i = 1; i & lt; = n; i ++) {for (j = 1; j & lt; = n; j ++) {if (i == j) fprintf (FP, "X "); Other fprintf (FP, "% d", root [i] [j]); } Fprintf (FP, "\ n"); } Fclose (fpose); Printf ("File created:% s",...

How to use a block parameter in a ruby splat? -

रूबी 2.0.0p247 का उपयोग करना मेरे पास एक Def : def foo (a, b, और ब्लॉक): बार [[a, b]] = ब्लॉक अंत अगर मैं इस फ़ंक्शन के साथ splat पैरामीटर का उपयोग करता हूं तो मैं ब्लॉक पैरामीटर को कैसे कोड दूं? उदाहरण के लिए params = [: a, [: 2 ], {| M | m.oo}] # सिंटैक्स त्रुटि, अप्रत्याशित '|', उम्मीद है '}' foo (* परामश) # मैं यह काम कैसे कर सकता हूं? आपको इसे इस तरह से पास करना होगा: पैराम्स = [: ए, [: 2]] ब्लॉक = लैम्ब्डा {| m | M.oo} foo (* params, और ब्लॉक) यहां कुछ चीजें: ब्लॉक को स्वयं में नहीं होना चाहिए यदि आप यदि आप बिल्कुल इसे एक सरणी में डाल दिया है, (मुझे लगता है) आप यह कर सकते हैं: params = [: a, [: 2], लैम्ब्डा {| m | M.oo}] foo (* (परामश [0 ..-1]), और (पैराम्स.लिस्ट)) यदि आप या ब्लॉक नहीं हो सकता है, तो यह सबसे आसान है Foo को बदलने के लिए: def foo (a, b, block = nil): बार [[a, b]] = ब्लॉक अंत हटा कर & Amp; आप इस तरह foo कॉल नहीं कर सकते: foo (a, b) {| m | M.oo} लेकिन आप अपने प्रारम्भिक रूप से आपक...

java - Concurrency : full collection or element -

I have such a collection that I need to update every other. I use that for ScheduledExecutorService but I have questions Is it better to give thread full collection or send each element of the collection to the pool pool? I recommend the following solution: Collection for the map, replace them with concurrenthashmap . This map is tolerant for collection changes, and its locking is hash code () . Use the set made by the set collection, factory Collections.newSetFromMap () with the concurrenthashmap example of the argument As I've mentioned above, the map done in the form will give you this set with the same thread-related properties. For the list collection, first consider if you really need the list . If so, consider using the CopyOnWriteArrayList or wrap the original list with the list list = archive. (New Arreist); // perhaps linked, but it is not related to the question. Please advise that the hearer threads returned from this wrapped ...

django - Install django1.7 with Python 3.4 using virtualenv -

I hit a few brick walls about the installation of the virtual envisioned DJEN7 .7 for Python 3.4. I have created a Python 3.4 Virtualview: sudo virtualenv --no-site-packages -p /usr/bin/python3.4 venv I have tried once in the active virtualwave: venv / bin / activate / p> sudo pip installation https://www.djangoproject.com/download/1.7b1/tarball/ This installs django in Python 2.7 directory and not in the virtual environment. Checking with pip freeze does not show any installed packages I have zip d Have tried to load them and using the python setup.py install > inside the environment, but still in the 2.7 directory, get the angle out of 2.7 and the directory. Any advice or signal on whatever I am doing wrong will really be appreciated !! sudo Code> is unnecessary. Instead try the following: $ virtualenv -p /usr/bin/python3.4 venv $ source venv / bin / Activate (At this point, you can see that your VirtualEvive is active and Py...

java - overriding iterator? -

In all honesty, I've spent a few days trying to understand it, but have come up very much Are less The goal is to see if a triangular node is next, if that is what it is. Where it is said: Public Iterator & lt; String & gt; Iterator () {Return to new Tritrateter ()}} It says to implement its own Iterator I use hasNext () to use a position in array + 1 , In which things are shaped, and numbers or nodes and children are also compared, and few have come, my most recent attempt was on the pattern of something (below) but did not work. hasNext () {this.children.hasChildren return); / * Does not work * / / the public class implements notification system & lt; String & gt; {Public Trivator () {} Next in Public Boolean () {Return false; } Public string next () {return tap; } Public Zero removal () {new unsupported exception (exception); }} Here is also the trieNode class: public class TrieNode {protected char letter = ';; Secure TrieNode parentNode ...

bash - Sed backreference not working properly -

टेस्ट डेटा: & lt; img src = \ "images / docs / mydash_grooms पीएनजी \ "alt = \" \ "/ & gt; सेड: sed 's / & lt; img \ ssrc = \\ "images \ / docs \ / \ ([[: ग्राफ:] ] \) / & Lt; a class = \\ "पॉपअप-छवि \\" href = \\ "images \ / docs \ / \ 1 \\" & gt; & lt; आईएमजी src = \\ "चित्र \ / डॉक्स \ / एसडी से आउटपुट: & lt; class = \ "popup-image \" href = \ "चित्र / डॉक्स / एम \" & gt; & lt; img src = \ "images / docs / tn.mydash_grooms.png \" alt = \ "\" / " मेरी पिछली समीक्षा दोनों बार ठीक से काम क्यों नहीं रही? पूरा करने की कोशिश कर रहा है: बदल रहा है: & lt; img src = \ "images / docs / mydash_grooms.png \" alt = \ "\" / & gt; & lt; एक वर्ग = \ "पॉपअप-छवि \" href = \ "images / docs / mydash_grooms.png \" & gt; & lt ; आईएमजी src = \ "images / docs / tn.mydash_grooms.pn...

go - refer to interface in package from subdirectory of package -

There is a package with a sub-directory (sub-package) and not using the interface defined in the package from the sub-package can. Therefore, --- / F1 / File1: F1 is the package to create sub directory F2 Go --- Type package f1 miner interface {Foo ()} function (m miner) {/ * blah * /} In F2, create a structure that should be part of the interface in F1: --- / F1 / F2 / file /. --- Type the package f2 My structure {i in a separate file, I try to use the package and create my composition and pass the function to the interface mine In the form: --- ./test_file.go --- Package main import ("F1" "F1 / F2") m: = f2 mines {} F1 Function (& amp; m) This returns an error "f2.Mine interface does not apply to F1.Manir ... wants f1.Foo () but f2 fu ( ) Hopefully that makes sense. So, how do I create a straight in subdirectory F2 which uses the interface from F1? Thanks , Definitely nothing is wrong in your package or directory: ...

android - LinearLayout with TextEdit and EditText -

When I run the following code from my activity_main.xml file, I get this output: Width height area perimeter Any field on the screen to input any value for the edit text field I have created an ID using the line in my XML: Android: id = "@ + id / id_value" in eclipses, I also have the project - & gt; Clean the emulator and restart If someone can tell me in the right direction what is happening, then it will be great TextView andro Id: layout_width = "match_parent" Android: layout_height = "wrap_content" android: text = "@ string / width_string" Android: textSize = "12sp" /> & gt; EditText Android: id = "@ + id / width_edit" Android: layout_width = "match_parent" Android: layout_height = "wrap_content" android: inputType = "numberDecimal" /> & Lt; EditText Android: AD = "@ + ID / height_edit" Android: layout_width = "match_perrent" Android: l...

cocoa touch - IOS Localizations Global -

Since working on iOS, has been there for some years, but now I have created one with the latest Xcode 5.1 I See if there is a "global" localization I have always assumed that if the user has a localization, which is not supported by the app, then it will return information to the localization area. Info.plist has changed this ? And what does the global do? Global Localization? Do you mean "base localization"? The question is really very broad in SO format. In essence, though: Base Localization (coupled with auto layout) allows you to use your reference language (usually your native language) in your storyboard and axis when you add localization to your app, then Xcode will be available for each UI Creates string file for all the text in the file. Good starting point for reading new localization guidelines:

javascript - Using jQuery .fadeOut() on checkbox -

मेरा HTML - & lt; इनपुट आईडी = "skipOnClick" type = "checkbox" & Gt; - अधिसूचना क्लिक किए जाने पर गीत छोड़ें? & Lt; / input & gt; तब जब मैं यह jQuery $ ('# skipOnClick') चलाता हूं। FadeOut (); , केवल चेकबॉक्स फ़ेड करता है और इसके साथ टेक्स्ट नहीं। क्या ऐसा कोई तरीका है कि चेकबॉक्स और टेक्स्ट दोनों ही फीका हो या क्या मैं टेक्स्ट को डालकर और चेकबॉक्स और तत्व दोनों को फीका करने के लिए अन्य HTML तत्व का उपयोग करने जा रहा हूं? मैंने प्रश्न पोस्ट करने से पहले थोड़ा सा प्रयोग किया और पाया कि div टैग के अंदर सभी HTML डालकर और $ का उपयोग करके ('# SkipHolder')। FadeOut (); समस्या को तय किया है। HTML - & lt; div id = "skipHolder" & gt; & lt; इनपुट आईडी = "skipOnClick" type = "चेकबॉक्स" & gt; - नोटिफिकेशन क्लिक किए जाने पर गीत छोड़ें? & lt; / input & gt; & Lt; / div & gt;

ada - print an integer in ada83(Only) Not Ada95 -

I am trying to print an integer in Ada83. All web sites have information about printing of ADA 955, that is, Integer_Text_IO.Put (C); But it has not been compiled in Ada83. How do I print an integer in Ada83? (Its a course requirement)? integer_short_io integer_IO is an acceleration, Made available in the standard library at Eda 95. In Aida 83, the generic package Integer_IO is present; You have to instantiate it yourself. (You can also use Integer'Image , but it adds a disturbing prominent place for non-negative values.) ( I am not going to show the code because you say this is a school assignment.)

Modify python string with contain method -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मैं इसे खोजने के लिए चाहता हूँ मेरीलिस्ट में निम्नलिखित फ़ाइल: "माइक्रोसॉफ्ट वर्ड 105Prt" (यह फ़ाइल नाम अलग-अलग हो सकता है लेकिन इसमें हमेशा "वर्ड" होगा। filelist में myfile के लिए मैं अजगर 2.7.5 में काम करने के लिए इसे कैसे संशोधित कर सकता हूं क्योंकि इसमें काम नहीं है। आप बस में कीवर्ड का उपयोग कर सकते हैं, जैसे: myfile में 'शब्द': print myfile

html - Hover Colour making Headers unreadable -

I'm trying to get an effect like this website, when the content is hidden on it, then a yellow color The color of it consumes and color of the header change. When I tried to recreate this effect my headers became unreadable. Jsfiddle.net/m8z25 .content1: hover, .content2: hover, .content3: hover, .content4: hover, .content5: hover, .content6: hover {background color: white; Opacity: 0.30; Transition: .2s; WebKit-Infection: .2s; Webkit-Infection: All 500ms Easy; } H1: Hover {Color: Black; } h2 {color: red; Status: Completed; Bottom: -10; Padding-left: 30; } h1 {color: black; } It is not 100% clear that what you are trying to achieve here ... What can I tell? It almost becomes ineffective because you are adding opacity to the content container. It affects all the content (including the background) so that everything gets faded What you have depends on the content container (your site background). On the site where you do not use ambiguity to change the demo-ed anyt...

slider - HTML5 Range / Display Value and Use in Javascript? -

I'm putting a range slider to work in the university. I want to respect what is displayed on the slider when the user displays it and I want to use this value to compare it with zquirts in other values ​​than any other statement. So what I am asking is how can I create a slider and take the current value and can use it in javascript? I hope this makes everyone understand and sorry for my grammar. You can use the following link to create a slider using HTML 5 and CSS Tutorial for Hope this will be helpful.

sftp - Shell Script program to download files from linux remote server -

I am very new in shell scripting, I want to download some files from Linux remote server, so how do I This remote server can be moved based on SSH. Firstly, there is a better option for getting FTP server files from remote servers. If only sshd service is available, you can use ssh based command sftp or scp . However, the sftp or scp command will be used from an interactive password prompt, which is a problem in the shell script - & gt; In addition to the hope , you can also establish a trust relationship between the two servers, then you scp password Can be used without

Obfuscate PHP code (prevent source code viewing) -

I am working on a PHP project using a PHP framework that I have to sell. Anyone wants to test the first code on their server. Is it possible to obscure the code if I do not want to give it to the source? Or can it be compiled? My primary purpose is, they should not be able to take codes, except once they are on their servers and cheat me, I do not want the code to be handed over to another developer. And it can be reverse engineered or replaced. I'm probably looking for a free solution. It's a very good question you asked @ Major to do the same way you use the Zend Guard. So that it encrypts your entire code and compile it so that no one should use your source code. It works as we do in Java because it creates a byte code in class files. Go through this link Zend Guard, the most accepted PHP encoding and objection product on the market This will do the following for you: Reverse Engineering & amp; Protect your code from unauthorized use of unauthorize...

Git add all repositories under a certain path as submodules recursively -

How can I add all the sub-repositories as submodules just under the initial git repository? I have two separate repositories that I am tracking separately, now I want to take them in a big project, but still want to keep their respective origin. I just did git init . You can try to do something like this: Find -Mexade 1-Type D-Xacit Add GIT Submissions ./ {} \; This should be unsuccessful for regular folders, and may be successful for nested GIT repo folders within your main repository. You've been added once. Once added, you have to commit to your main repo, which you just created (with submodule add ) to record. Note that you will still have to add yet (because their current URL will be their own folder)

MySQL Configuration -

Where am I going to set the parameter value for my.cnf ?: read_buffer_size sort_buffer_size net_buffer_length Is this under MySAM of Mysqld? Please help Thanks Got it! All of them should be set under [mysqld] .

quartz scheduler - CRON expression to schedule on hourly basis like e.g. 04:00, 10:00, 16:00, 22:00 -

I tried with 4,10,16,22 * * *, but throwing error while parsing cron expression I did not work I had to do a CronShedUlibilder to schedule a task. I am using the CronShedualable (Cron_Express) method. Please tell me there is no other way than scheduling separately. According to the references given below, the Cronseedbullebuilder Kent does this. References: See Cran Man Page for details: You can also use cron command directly in the cron command without the expression Use the.

c# - style Issue with Firefox -

I am using the code mentioned under the button mouseover event for this special code Mouseover fixes the text position for the event, it works fine for Chrome and IE. But by any means may be a problem with Firefox. The situation is not fixed in the case of Firefox. Can someone guide me in this wrong? & lt; Div id = "DownloadHelp" runat = "server" style = "background-color: white; position: fixed; ambiguity: 0; top: 100px; z-index: 11; color: blue; font-size: small; background- Color: Silver; Threshold: Thin "& gt; Merge all selected files & lt; / Div & gt; & Lt; Asp: button onmouseover = "display ()" onmouseout = "fadeHelp ()" id = "single file download" width = "140px" enabled = "wrong" onclick = "single file selection" runat = "server" text = "merge and Download "& gt; & Lt; / ASP: Button & gt; Function display () {document.getElem...

asp.net - How to write a Unit Test method? -

I'm new to unit testing methods, so can I give unit testing methods for the code given below? using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Using TIPWebITLibrary.DAL; Public category SearchInfo: IDisposable {public list & lt; SearchResult & gt; {Receive Serial Results; Set; } Public listing & lt; SearchResult & gt; Tag {get; Set; } /// & lt; Summary & gt; /// uses the search string to filter a resultset by serial and tags /// & lt; / summary & gt; /// & lt; Ultimate name = "search" & gt; & Lt; / param & gt; Public SearchInfo (String Search) {SerialResults = New list & lt; SearchResult & gt; (); Tag reflex = new list & lt; SearchResult & gt; (); SerialResults.AddRange (FindSerial (Search)); TagResults.AddRange (FindTags (Search)); } Private Stable IEnumerable & lt; SearchResult & gt; FindTags (string search) {List & lt; SearchResult & gt; resul...

sockets - Query on CORBA standard -

If I'm sure the Kernel & amp; Server uses the machine 1 for example the same protocol stack AF_INET (say) 2. For example use SOCK_STREAM (say) the same distribution mechanism 1) Do you think you write a server program client program in Java (in Windows) and C (On Solaris) Can you? 2) Yes, why do we need Corba standard for client-server communication between different components in different languages ​​for different OS running different architectures? P> Do you think you have Java (Windows) and client program C (On Solaris) Can the client program write in? Of course you can. Why do we need the Corbah standard for client-server communication between software components in different languages ​​for different OS running different architectures? Because it is an example of your description, and because it provides approximately one million features that you would otherwise have to code for yourself every time you need them.

How can we integrate PHP web application with Microsoft Outlook? -

To add appointments to date and time along with the date and time of my option calendar in the website, an alternative from the website using php Want to make How can we integrate the PPP web application with Microsoft Outlook? In addition, the date of appointment should be sent as request in the email sent from the website. "post-text" itemprop = "text"> You will be able to send mail to your email, the information about the appointments is sent as an ics file. When an ICS file is modified in Gmail, it reads data in the ICS file and adds events to Google Calendar. So that you may be able to get the job done by an email only, you will have to read about the ics file and get the syntax about it. The sample ics file appears BEGIN: VCALENDAR version: 2.0 start: alert status: TENTATIVE DTSTART: "+ NewStartDate +" T "+ New Starttime +" ZDTNT : "+ NewD + + +" T "+ NewTime +" Z Space; Encoding = Cited - Reflected: ...

Using multiple | in JavaScript regex -

me the regex and check the following string form using a table and two I need to do table & amp; One more two tables and two & amp; A I tried with the below to see the format given above but regex is not working as I had expected match 'table & amp; One more 'string should be empty, but I'm not empty rather than math. My regex / ^ (table & amp; (one more two) | (one) | (two) | (two and one)) $ / g var Match = 'table and another one' Match (/ ^ (table and (one and two) | (one) | (two) | (two & one))) $ / g); Remove brackets: / ^ (table & one (two | one | two | two and one)) $ / There is no reason to use the g modifier. Try to match the entire string.

sql - Set flag to database column -

The job is creating SQL scripts that make "Y" or "N" the dummy database line "integer" is the solution Setting Status Status Flag = "Y" where plus = '5' and set position Flag = "N" where plus = '100' Newbie in SQL Scripting updated people to SET status = case when money = '5' then 'y' when money = '100' Position of 'N' basis where 'money' ('5', '100') WHERE section ensures that only the row you want to update It is updated, it is updated. case statement then to set status based on the current value in plus Which standard does you choose? ELSE should never be blocked, but it is a fail-safe (even when you run it Then the value of the currency is set to any value in the position , where plus '5' or '100' ) is neither. Edit: Note: people should be named table status shou...

asp.net - Stored Procedure unused parameter show error -

प्राप्त होने वाली त्रुटि यह है: प्रक्रिया या कार्य SPCustomerDetails पैरामीटर '@address' , जो आपूर्ति नहीं की गई थी। वर्णन: वर्तमान वेब अनुरोध के निष्पादन के दौरान एक अनियंत्रित अपवाद उत्पन्न हुआ। कृपया त्रुटि के बारे में अधिक जानकारी के लिए स्टैक ट्रेस की समीक्षा करें और कोड में इसकी उत्पत्ति कहाँ की गई है। अपवाद विवरण: System.Data.SqlClient.SqlException: प्रक्रिया या फ़ंक्शन 'SPCustomerDetails' पैरामीटर '@address' की अपेक्षा करता है, जिसे प्रदान नहीं किया गया था। मेरी संग्रहीत कार्यविधि है: ALTER प्रक्रिया [dbo]। [SPCustomerDetails] (@id varchar, @title varchar (50), @ फ़नाम varchar (50), @ नाम varchar (50), @ मोब varchar (50), @ पाउडर varchar (50), @ एड्डे varchar (50), @ लाटेलमैल varchar (50), @ लिंग varchar (50), @ डोब varchar (50), @ सीता varchar ( 50), @टीटीटी वर्चार (50), @स्टेट varchar (50), @ चेक varchar (50), @प्रॉप वर्चार (50)) के रूप में शुरू हो सकता है अगर @ opr = 'BTNNEW' में प्रवेश करें TblCustomer_Details (FName, LName, ...

.net - stable hashcode for IStructuralEquatable object -

I need to create a static (= does not vary with time) Hashod of an object. Specifically, I do not know the precise type of object, the only assumption is that it is obtained from the IST Strategy. So I need a method: Fixed String GetStableHashcode & lt; T & gt; (T object) where T: IST Structure Accelerator The Net Framework provides this type of function? Otherwise, which algorithm to use? Each object should use the hashode based on the object's content. If you have a type of value containing 3 ints, then use them when calculating the hash code. Similarly, all objects with the same content will have the same hash code, which will be different from the app domain and other conditions. An example for a good hash code can be found.

variadic functions - Weird output with varargs in C -

#include & lt; stdio.h & gt; # शामिल करें & lt; stdarg.h & gt; शून्य एफ (पूर्णांक पैरामीटर, ...) {va_list एपी; Int j; Va_start (एपी, पैरामीटर); के लिए (जे = पैरामीटर; J & gt; = 0; j = va_arg (एपी, इंट)) printf ("% d", j); va_end (एपी); printf ( "\ n"); } Int main () {f (1, 2, 3, 4); एफ (1, 2); च (1); } मैं यह कोड लिखता हूं, लेकिन उत्पादन बहुत अजीब है। मुझे कौन कारण बता सकता है आउटपुट: esekilvxen245 [10:54 बजे] [/ home / elqstux / उपयोगी] - & gt; ./a.out 1 2 3 4 1748292352 1748370624 1 2 1748295184 1745597392 1 10 1748295184 1745597392 लूप के लिए आपकी समाप्ति की स्थिति शून्य से कम होने के लिए j के लिए है, लेकिन आप अपने कॉल्स में नकारात्मक नंबर वाले तर्क सूची को समाप्त नहीं करते हैं। इसका अर्थ यह है कि जब तक यह एक ऋणात्मक संख्या नहीं पाता, तब तक लूप जारी रहेगा, जो आपके द्वारा पारित किए गए तर्कों से कहीं अधिक दूर स्टैक पर हो सकता है। इसे जैसे कॉल करें f (1, 2, 3, 4, -1);

java - Hibernate not save Entity to oracle db -

I have created a small crude app using hibernate with struts2, spring, oracle db Adding Mathos to Action Class public string ads () throws exceptions {t.setAO_CreatedBy ("me"); T.setAO_Name ("OK"); Orgdao.addOrg (t); // emplist = empdao.showEmployuee (); Return success; } Entity class for the exam: @Entity @Table (name = "test") Public class test {@Id @Column (name = "AuUID") @Sewense Generator (name = "sequence organizer", sequence name = "SEQ_AT_ORGANISATION", allocation size = 1) @ Generated Values ​​(strategy = generation type, sequence, generator = "sequence generation maker") Private int AO_ID; @column (name = "AO_name") private string AO_Name; @colom (name = "AO_CreatedBy") private string AO_CreatedBy; Public int getAO_ID () {return AO_ID; } Public Zero set AO_ID (int aO_ID) {AO_ID = aO_ID; } Public string getAO_Name () {return AO_Name; } Public Zero Set AO_Name (string aO_Name) {...

php - Magento add product to cart from a external file doesn't work -

मुझे Magento के addProduct () फ़ंक्शन के साथ समस्या है। मेरे पास निम्न कोड है: & lt;? Php // Mage init include_once '../app/Mage.php'; umask (0); दाना :: init ( 'डिफ़ॉल्ट'); दाना :: getSingleton ('कोर / सत्र', सरणी ('नाम' = & gt; 'दृश्यपटल')); // ग्राहक सत्र $ सत्र = दाना :: GetSingleton ('ग्राहक / सत्र') प्राप्त करें; // कार्ट उदाहरण $ कार्ट = दाना :: getSingleton ('चेकआउट / कार्ट'); $ Cart- & gt; init (); // कस्टम विकल्पों के साथ एक उत्पाद जोड़ें $ productId = 11348; $ ProductInstance = Mage :: getModel ('कैटलॉग / उत्पाद') - & gt; लोड ($ productId); $ param = सरणी ('उत्पाद' = & gt; $ उत्पाद इन्स्टेंस- & gt; getId (), 'qty' = & gt; 1, 'options' = & gt; सरणी (528 = & gt; '1756', // आईडी के साथ कस्टम विकल्प : 528 527 = & gt; '1753', आईडी के साथ कस्टम विकल्प: 527 526 = & gt; '1751' // आईडी के साथ कस्टम विकल्प: 526)); $ अनुरोध =...

How to make multiple pages in only one form using C# -

I got a project to build an ABC book. I choke when I have a button so that I, so I hide my form first and then I am going to open at 2, then I can form the shell 3 and form closed 2. This is only for testing as you can see. Is I tried to look on the Internet, it is that I would rather open form after form for every letter in the alphabet, I asked my teacher can only change Aidnrens that it is possible, but Do not help me because I need to get information on my own. Is it possible to have many designs for one type? If so, how do I open a new one and then call the other from the first design. Thanks for reading! I create pages as a control / components and controls using only one form / Destroy that will be the original container.

sql - Select distinct on two tables -

I would like to select datas without duplicate tables for example Table 1 Data 1; Data2; Data3; Data4; Data 5 table2 data1; Data2; Data 3 Data 1, Data2, Data 3 are the same data types table1 | Data 1 Data2 Data 3 Data 4 Data 5 | ---------- | ---------- | ---------- | ---------- | ----- ----- | | Value 1.1 Price 2.1 Price 3.1 | Price 4.1. Value 5.1 Table 2 | Data 1 Data2 Data 3 | ---------- | ---------- | ---------- | | Value 1.1 Price 2.1 Price 3.1 | | Value 1.2 Price 2.2 | value3.2 | | Value1.3 | Price 2.3 | Value3.3 | I would like to select Data 1, Data 2, Data 3 from my two tables with a separate data1 | Data 1 Data2 Data 3 | ---------- | ---------- | ---------- | | Value 1.1 Price 2.1 Price 3.1 | | Price 1.2 | Price 2.2 | Value3.2 | | Value1.3 | Price 2.3 | Value3.3 | I want to have my results in just 3 columns for example.1.1 is from table 1 and value1.2 is from table2 Data 1, data2, data 3 to table1 union / * without divX = "post-text...

php - Magento getAttribute is not working in list.phtml? -

This is the magnetro code that I used to get the attribute. echo $ _product-> GetResource () - & gt; GetAttribute ('attrcode') - & gt; GetFrontend () - & gt; GetValue ($ _products); This code is working fine in view.phtml , this code returns the code attribute. When I List.phtml return this code empty . Please help me where I make a mistake. & lt; Php echo $ _product- & gt; GetAttributeText ('attrcode') ;? & Gt; Please use that page on the list page and check the attribute settings in 'Use in Product Listing': "Yes")

map - javascript - put layer in foreground leaflet -

I have arrays of different layers, but I want to put one of these in the foreground when I get it latitude and I change the longitude. How can I do this in javascript? Thank you! Browse the trusted sheet documents, and look at the function on all tile layers. Layer 1 STZ Index (1); Layer2.setZIndex (2);

java - Extracting Strings within messages which contains concatanation characters -

I am trying to extract messages from the following types of stars, Error_Message ('The values ​​entered by you are 1,2 and 3 invalid.'); Using the following regular expressions, \ s * (\ w +): \ s * (?: '\ S * (?: \ | \ S *) '\ s * | [^']) + ' But the problem is that it fails in certain scenarios, such as Medium ('Sample Message Price: P You Have' '|| CHAR (10) ||' entered is invalid. ', Function (' Expose ', Ultimate 2)); Normal Medium ('Percent can not be negative.', Functions ('Expose', parameter2)); "itemprop =" text "> Will this always be the message before the open bracket? If so: (? & Lt; = message) (\ ')' [^.] + if not: ^ . * ('[^'] + ') and look at the first capture group. Edit: For the entire message: p> ^. * ('[^.] *.') For an example, see.

two php field inside html -

मेरे पास निम्न कोड है: & lt; html & gt; & Lt; शीर्ष & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt;? Php $ year = $ _ POST ["वर्ष"]; ? & Gt; & lt; div id = "लपेटें" & gt; & Lt;? Php echo "& lt; h3 & gt;"। वर्ष $। "& Lt; / h3 & gt;"; ? & Gt; & Lt; / div & gt; & Lt; / body & gt; & Lt; / html & gt; आप देख सकते हैं कि मैं $ _ POST की वैरिएबल $ year की पहली पीएचपी कोड ब्लॉक में सामग्री असाइन करता हूं। $ _ POST चर फिर से उपयोग किए बिना क्या मैं दूसरा कोड कोड = $ वर्ष का उपयोग कर सकता हूं? हाँ एक बार जब आप एक वैरिएबल को आवंटित कर लेते हैं और यह दायरे में है तो आप इसे बार-बार उपयोग कर सकते हैं, जब तक कि आप इसे फिर से असाइन न करें, या उसे असाइन करें।

c# - update wpf UI label before running pearl script -

I want to update label content and then run a pearl script (which only restart services). Here is my code personal process p = new process (); Private Zero NextBtn_Click (Object Sender, RoutedEventArgs E) {// Update Label this.lblmsg.Content = "Hello World !!" ;; // run pearl script assembly assembly assembly assembly = assembly Load Fraomed (Activation Configuration Settings. Source Interface Assignment Name); Type logicalType = osInterfaceAssembly.GetType (Activation Configuration Studio. Logical); Lawif logicalmethinfo = faucet; LogicalMethInfo = logicalType.GetMethod (Active Adjustment Constants. Logical Transcript Lost Item, New Type [] {Typef (string)}); String Gyro Commider = LogicalMethinfo Invoke (empty, new object [] {activate configuration stans Gorikomedir}). Toasting (); String arg = string.format ("\" {0} activate_configuration.pl \ "", gyroComDir); ProcessStartInfo processInfo = New ProcessStart Infos ("Pearl.exe", RGR + ...

c++ - How to change to the hand cursor with GLUT (in windows)? -

I am using GLUT in a C + + OpenGL project. I tried to use the glutSetCursor function to get a common 'hand' cursor, which is usually visible in other applications while being clickable, however, any GLUT_CURSOR defines me not cursor. One of the definitions is GLUT_CURSOR_INFO with the description of the 'pointing hand', which I will consider what I want, although it only gives me all the cursors in shape (maybe in the form of fallback). Is there anything else to do to make this cursor work, or is it a problem with the GLUT in Windows? (I am currently using Windows 7 Ultimate 64-bit) GLUT is a very simplistic framework and you can suppress it in one of its borders, time to see another framework to use.

php - Yii: Trying to get property of non-object -

I have come in many positions to try to get the 'non-object property', but I still have the figure Unable to do, I have a webapp out of my problem and when I make a form it is giving me this error - view.php: $ This-> breadcrumbs = array ('event' = & gt; array ('index'), $ model-> anonymous, // error on this line); Controller: Public function Action View ($ ID) {$ this- & gt; Assign ('view', array ('model' => = this- & gt; LoadModel ($ ID),)); } Public function LoadModel ($ id) {$ ename = Event :: model () - & gt; Ename; $ Model = event :: model () - & gt; findByPk ($ id, $ ename); // It tries because if I have the overall key ($ model === faucet) throw new CHttpException (404, 'Requested page does not exist.'); Return model $; } I'm not a Yii expert, but in general it means that $ Models are not an object In most structures you will use $ $ instead of $ model - this model, can this be...

sql - Transfering data from MySQL to Mongo -

I need to transfer some data from MySQL to mongoDB from time to time MySQL data is increasing and soon TB will occur; The way I am planning to do this is using a standalone Java application that reads using data * from the table * and then I'm planning to add an entry in the Mongo collection for each line . Is there any better way to do this? OK, you should try to limit the selection of at least new data, for example For using Timestamp or similar and remember the last export date, so you will have to go through all the data again.

symfony - Doctrine Mongodb ODM elemMatch() -

मेरे पास श्रेणियों का संग्रह नीचे है। {"_id": ObjectId ( ("5353a17dfcda358c1050d1ed"), "नाम": "मोटरसाइकिल", "टैग": {"वाहन", "दोपहिया", "बाइक"}}, {"_id": ऑब्जेक्टआईडी ("5353a17dfcda358c105bde4c"), "नाम": " ऑटोमोबाइल "," टैग ": {" वाहन "," कार "," बाइक "," दोपहिया "," चार पहिया "}}, {" _id ": ऑब्जेक्टआईडी (" 5353a17dfcda358c105fd5e701), "नाम": "कार" , "टैग": {"वाहन", "कार", "चार पहिया"}} अब मैं सिद्धांतों का उपयोग करना चाहता हूं, सिद्धांत ओडीएम क्वेरी बिल्डर और नाम से मेल खाने वाले नाम या मान टैग्स में संग्रहीत है (यानी जब खोज टेक्स्ट कार है तो परिणाम दो श्रेणियां होनी चाहिए - ऑटोमोबाइल के रूप में ऑटोमोबाइल और कारों में कारें हैं और कारों के नाम से एक श्रेणी है)। मुझे आशा है कि आप स्थिति। मैं Symfony2 और सिद्धांत-ओडीएम का उ...

search - Document Similarity in ElasticSearch -

I want to calculate the similarity between the two documents indexed in elasticsearch I know that this word is used by vectors in Lucene What can be done is the direct way to do this? I found that there is one similarity module that does this: How do I integrate it into my system? I'm using the Pilichtishchurch to call elasticsearch commands, but if I want to open the REST API for equality to use. I think elastic search documents can be easily misplaced. There is no comparison of "equality" documents or fields, but there is a mechanism for running documents that match the terms that match the query. / P> Documentation states: Symmetry algorithm that supports the alißsecretor, potential model based on word distribution in cache (index) Are there. Regarding the word vector, it can also be misinterpreted. See statistics for the conditions of a document called "word vectors" which can be easily inquired. It seems that any similarity measure...

php - display the content of table in checkbox form -

मेरे पास "एन्क्रिप्ट एडीक्रिप्ट" नामक डेटाबेस में "project_name" नामक तालिका है तालिका में "नाम" नामक केवल 1 कॉलम है जिसमें नाम के भिन्न मान शामिल हैं (उदाहरण: पी 1, पी 2, पी 3 ...)। मुझे अपने डाटाबेस से इन वैल्यू (पी 1, पी 2, पी 3 ..) को पुनः प्राप्त करना होगा और इसे एक पंजीकरण फॉर्म पर प्रदर्शित करना होगा जिसमें प्रत्येक मान एक दूसरे के नीचे वाला एक चेक बॉक्स प्रदर्शित करेगा, ताकि उपयोगकर्ता पंजीकरण करते समय किसी भी नाम को चुन सकें! मैं इसे php में कैसे करूँ? धन्यवाद अग्रिम में! & lt; html & gt; & LT; बॉडी & gt; & lt; form name = "reg" एक्शन = "code_exec2.php" onsubmit = "return validateForm ()" method = "post" & gt; & Lt; तालिका की चौड़ाई = "274" सीमा = "0" संरेखित करें = "केंद्र" सेलपैडिंग = "2" सेल्सपेसिंग = "0" & ​​gt; & LT; टीआर & gt; & lt; td & gt; & lt; div align = "right" style = "wh...

Create new array from found values in array (JSON+Groovy) -

मेरे पास एक सरणी है: आर = [[अवधि: [मूल्य: [x] उदाहरण के लिए: 1, दिनांक: 2011, न्यूपीस: 1.000], प्राइसक्स: [प्राइस: 2, दिनांक: 2012, न्यूपीस: 1.000]]]]] तत्वों के मूल्यों के साथ मुझे नया सरणी बनाने की आवश्यकता है: दिनांक = [2011, 2012] (तिथि इस सरणी से कहीं भी मौजूद हो सकती है)। मैं चक्र में पथ द्वारा बना सकता हूँ: आयात करें groovy.json.JsonSlurper def R = newJsonSlurper ()। ParseText (String.valueOf (messageExchange.getResponseContent ())); एम = आर। अवधि का आकार = एम.size () DEF तिथियाँ = [] के लिए (i 0 में .. (आकार-1)) {def y = M [i] तिथि dates.add (y)} लेकिन शायद मैं विधियों findAll () या किसी अन्य द्वारा सरणी बना सकता हूँ? प्रतिक्रिया: {"f": {"stan": {"form": {"fin": {"period": [{"periodiod": "" "" "" "" "" "," पीरियोडफ़ ": {" पीरियोडफ़ ": [{" पीरियडएंडडेट ":" 2013-10-10 "," पीरियडफाइलिंग ": {...

DocuSignAPI- Wet Signature Integration -

Image
The establishment of our partners is a problem & amp; The test of the wet signature process is said in the list of configuration options when the developer creates a new envelope, which includes 'capable wet sign', it is set to "true", but when he sees the envelope, wet signature option Can not see. We want to solve it faster than Friday, we are against a product launch and this is an important item. This may be due to an account configuration problem, or it may be that the API request is incorrect Is formatted or missing from First of all, I confirm that the " Paper Signature " setting is enabled for the account ( Preferences & gt; & gt; Features ): If that setting is enabled, then I suspected that the information specified by the API request is inaccurate in some way. If you can update your question to include the raw trace of the JSON / XML request body, then you can get some useful feedback on that aspect.

sql return categories ordered by blog post date -

I have a WordPress website with articles in one post or there may be more categories (table wp_terms). Now I want a query that gives a list of all the word names, the order from the date of the blog order. I have experimented with one experiment in a SELECT query, but that is not working ... How can I do this and return the categories described according to the date of the article? The table will be wp_posts (for example): | ID ------ | Post_ title ------------------ | Post_data- | | 1 | Test Title | 2014-05-05 | | 2 | Test Title 2 | 2014-04-01 | | 3 | Last Test Title | 2014-02-02 | | 4 | Another blog item | 2014-01-06 | Table wp_terms : | Word_id | Name --------- | | 1 | Computer | | 2 | Home | | 3 | Work | The table is wp_term_relationships | Object_id | Word_takkony_id | Word_order | | 1 | 2 | 0 | | 1 | 1 | 0 | | 2 | 3 | 0 | Table wp_term_taxonomy | Term_taxonomy_id | Word_id | | 1 | 1 | | 2 | 2 | | 3 | 3 | | 4 | 4 | This is my current query, but...

nopcommerce - Got an error when adding product property in plugin's model -

I want to use the most visited went category product plugin public stores in the category of Home page I have a new plugin name: Nop.Plugin.MostViewProduct.Product.Product I model is added to the folder and write that code: namespace Nop.Plugin. MostViewProduct.Product model { public partial class most ViewProductModel: BaseNopModel {[NopResourceDisplayName ( "MostViewProduct.ProductId")] [AllowHtml] public int ProductId {get; Set; } [NopResourceDisplayName ("MostViewProduct.ProductCount")] [AllowHtml] public int ProductCount {get; Set; } Public Virtual Product Product {Received; Set; }} } And I get an error when I add a virtual product product {get; Set;} and error is Nop.Plugin.MostviewProduct.Product is a 'namespace' but used like a type. I already include the name space which is using Nop.Core.Domain.Catalog; Why is it causing an error? Thank you in advance. A conflict Nop.Plugin.MostViewProduct.Product namespace and Nop.Core.Doma...

properties - How can I specify a default value for a system property in a Java web app? -

It seems that it should be so easy, but I'm beating my head for the day. I have a simple Java web app that embeds the JT into an executable jar, and I am using system properties to define the configuration information that is different from the app Keeping me I like that I can set the system properties on the command line with -D for example java -Dbackend = backend_url -jar ... Is there a way to set the default value to the property of such a system? If you are reading those properties you read about it Can:

c# - Using Windows Azure Media Services SDK in .NET, how to encode to a dynamic package using custom encoding parameters instead of a preset string? -

First of all, some background information. I have a code originally taken from here: I have made some modifications because the code does not work very well with the box Does. Anyway, the code uploads a source video file in Azure, encodes it using a work preset for the media service encoder, and outputs the URL to the screen for smooth streaming and HLS playback. The code that creates the encoding task as follows: Itask Encodsksk = Job. Tasks. Aden New ("Encoding", Processor, "H.264 Adaptive Bitrate MP4 SD 16x9 Set", TaskOption. I'm not sure but I think this preset D means dynamic packaging. Now, question: How can specify exactly parameters for encoding, such as different video resolution and bitrate for each quality level, then enable the CABAC, B frame, closed GOP and I need a 2-second piece for the smooth streaming of HDS and a 10 second piece. How to get it? Some tell me that I should give some XML formatted string in the job configurat...

sql - mysql statement returns syntax error -

I get the following error for some reason to run the code given below: # 1064 - There is an error in your SQL syntax; I do not understand what I am doing, thanks for any suggestions! select pslatlong postcodes_demographics. *, Latlon1. *, join latlon1 from postcodes_demographics to INNER postcode_demographics.postcode = latlon1.postcodens; You have a misguided comma: SELECT postcodes_demographics *, Latin 1 *, & Lt; --- Here Remove it.

asp.net - Can't get value from @Html.RadioButtonFor with complex types -

I have a list of objects, each of which has nested lists, each of which has a date property. There is a need to select one of them. The model looks like see public class models [public IList & lt; parentclass & gt; Get pension packages {receive; Set;}} Public Class Pantalaklos {Public ILIT & lt; DateTime & gt; Date Selectors {date} selected the public date time for the selected date {get; Set;}} Public Class Date Manager {Public Date Time {get; Set}}} for the selected action: @using (Html.BeginForm ()) {for (int i = 0; i & lt ; @model parentclasses.Qount; i ++) {for (int j = 0; j & lt; @ models. Parentclasses [i] .datasilectors.kount; j ++) {@ Html.RadioButtonFor (m = & gt; ; M.ParentClasses [i], Model. ParentClass [i] .Data Solalkers [J] .Det, new {@id = Model. ParentClass [i] .Det Solalklers [J] .Data Torstring ("MMDDI")}) @model Parent Classes [i] .Det Solalklers [J]. date. To shortcode string () & lt; Br / & gt; } & L...

javascript - target and window open not working together in IE -

I am trying to click on a new window of a link. This form submits and should open the defined window in the target. I have been successful in doing this in Chrome and FF but not in IE. Below is my code: & lt; Form name = "myForm" id = "myForm" method = "get" action = "$ {URL_DOCUMENT}" & gt; & Lt; Table border = 1 cell padding = 1 width = "50%" style = 'table-layout: fixed' id = "table1" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th align = 'left' & gt; Statement date & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; C: forEach var = "statement" item = "$ {list}" & gt; & Lt; TR & gt; & Lt; Td> & Lt; A href = "" onclick = "return callsmit (this)" & gt; & Lt; C: out value = "$ {comment.date}" /> & Lt; Img src = ...

javascript - Socket and node.js send -

I am trying to update a location on a Google map using socket.io and node.js There are 2 different ways to update the map. Probably some basic problems like I'm new to this. 1) Using an API call that looks like this: Epistap ('/ location', function request, response) { Var obj = request.body; // var obj = {gps_latitude: '59.33535 ', GPS_Hurding:' 0.0 ', GPS_timestamp:' 13 97132411524 ', GPSSpeed:' 0.0 ',' Device_id: 'oscar', gps_longitude: '17 .999672099999998 '}; // Insert space (OBJ); console.log ("Connected Client:" + map_clients.length); (Var i = 0; i & lt; map_clients.length; I ++) for {var client = map_cleller [i]; Var jsonString = JSON.stringify ({type: 'gps', data: ozzy}); console.log (jsonString); client.send (jsonString);} response. (200, {"content-type": "text / plain"}); reaction. Type ("OK"); Response.end ();}); 2) Using the socket from the clie...