Posts

Showing posts from July, 2011

arrays - Sum Totals in a 3rd column from other columns using conditional formatting -

मैं एक्सेल 2010 उपस्थिति कार्य पत्रक के साथ काम कर रहा हूं I कॉलम बी दिनांक है, स्तंभ सी है बिंदु । कॉलम बी को घूमने वाले वर्ष के आधार पर तारीखों को हाइलाइट करने के लिए सशर्त स्वरूपण है, दो शर्तें हैं: सूत्र = ISBLANK (बी 3) = सत्य सेल मूल्य अधिक कॉलम सी अंक पर आधारित है, सशर्त प्रारूप है: फॉर्मूला = बी 3 & gt; टुडे () -365 पीला को हाइलाइट करें मुझे कॉलम सी को कुल कॉलम की जरूरत है, केवल उन बिंदु संख्याओं को जोड़कर जो कि = B3> टुडे () - 365 रेंज। हम वर्तमान में उन्हें गिनने के द्वारा मैन्युअल रूप से एक सेल में प्रवेश कर रहे हैं। मैं इस उदाहरण में टाइप किए गए कोशिकाओं में पीले रंगों को सक्षम नहीं कर पा रहा था, लेकिन अगर वे रंगे थे तो यह 5/22/2013 होगा , 6/17/2013 और 7/30/13 के साथ ही साथ POINTS कॉलम में संबंधित संख्याएं। मैं भरण रंग से राशि चाहूंगा। जो झटका उतारने की तारीखें कुल संख्या में धीमी-कार्य & 5; 5 घंटे-छुट्टी जल्दी 3/10/3012 0.5 3 2 सप्ताह के अधिसूचना-अवैतनिक 4/12 के साथ / 2013 1 2 सप्ताह अधिसूचना-अवैतनिक के साथ 5/22/2013 1 बीमार...

ajax - Hot to get all the images to display without reloading the page in PHP? -

After the user's click, the signal button button passes halfway through the path of the data and then the code below is given the second half Links in I want to know how can I display this page without reloading? I know that it can be done with AJX but I do not know how to do this. So can anyone help please? & lt ;? Php $ albumnamepath = $ _POST ['field']; Ebb $ albumnamepath; $ Display = "SELECT * from paths where user_id = '$ session_user_id' and album_name = '$ albamma-path'"; $ Result = mysql_query ($ display); Echo "& lt; Table & gt;"; $ I = 0; While ($ line = mysql_fetch_array ($ result)) {if ($ i% 4 == 0) {// 3 == 0. echo ' "; // echo '& lt; a href =' '. $ Albumnamepath $ Row ['location']. '' class = "swipebox" title = "'. $ line [' caption '].' '& gt; & lt; img src = "'. $ Albumnamepath $ line ['Thumbnail']. ...

functional programming - scala method vs function partial application -

By this, I would like to understand the difference between: val aCurriedfunc: Int = & Gt; String = & gt; String = x = & gt; Y = & gt; Def a Crownfed Method (x: int) (y: string) = x + "+" + y + + + Y is a Christian method (2) _ Why is it really that the first case "_" is not required, but the second case is required Yes a one type of function And the other is a way which is not a real thing in Saskala that I understand. However this difference only leads me to the second question. Is there anything with the expansion of EAA? If Yes How to Partially Differ Implemented Work and Eta Extension? _ in curse method (2) _ ADA-extension asks for the compiler. The result is a function, there is no way (or need) to differentiate between the partially implemented function and the results of the Eta expansion. In one method, different parameter lists such as curriedMethod are actually implemented as a single method, in which all the ...

javascript - jquery slide effect, hide one div and show another -

I have this setup showing my problem, I'm sure it's a simple fix. I am trying to slide blue blue on the left side while sliding from right to red in the same time. Sliding animation is working on how I want to do them, but when the red div is sliding, it shows up under the blue division. How can this be done on the right side of the blue device instead of being displayed below during the animation? code: $ ("# slide2") effect ("slide", hide option, 1000); $ ("#EDDiv") Effects ("Slide", ShowOption, 1000);} ("Click", function () {$ ("#blueDiv").); You can use the situation: to exclude them from full flow and Place them next to each other: div> Div {status: absolute; } If you want to make it more specific for this div, you can use the specific selector: #contentWrapper div {position : Absolute; }

menu - munu with jQuery but could not highlighte item as actived -

works as menus and submenus within code href = #, but href = domain.com / Index / Id / 12 ------------ JS $ (function ( } {$ ('. Menu1 a'). (Function (i) {if ($ (this) .attr ('class') == 'this' || $ (this) .attr ('class') = = 'This hover') {$ ('menu2'). Eq (i) Show ();} $ (this). Click (function () {/ * mousemove * / $ ('. Menu1 a') RemoveClass ('this'); $ (this). Andclass ('this'); $ ('. Menu2'). Skip (); $ ('menu2'). Eq (i) .show ();} );});}); ---------- Menu & lt; Div class = "menu" & gt; & Lt; Div class = "menu 1" & gt; & Lt; One square = "this" href = "javascript:;" & Gt; About & lt; / A & gt; & Lt; A href = "javascript:;" & Gt; Contact & lt; / A & gt; & Lt; a href = "www.domain.com/index/id/12" & gt; Help & lt; / A & gt; (If selected, is not highlight...

In PyCharm IDE, what is the difference between Reformat Code and Auto-Indent Lines? -

PyCharm के कोड मेनू में दो विकल्प हैं: सुधार कोड और ऑटो इंडेंट लाइन्स । वे एक ही बात कर रहे हैं: कोड को फिर से प्रारूपित करना। क्या कोई अंतर है? रीफोर्मेट कोड एक ही निर्देशिका में कई फ़ाइलों को संसाधित कर सकता है। क्या यह अंतर है? एक फ़ाइल बनाम बैच प्रसंस्करण? ऑटो इंडेंट लाइन्स ऐसा ही करता है और कुछ और नहीं। रीफोर्मेट कोड अधिक करता है - यह अनावश्यक रिक्त स्थान / ब्रेसेज़ को अलग-अलग जोड़ सकता है, विभाजित बयान एकाधिक पंक्तियों आदि में - आपके कोड स्टाइल के अनुसार सभी।

mongodb - How to store dynamic fields in Mongo DB -

I'm new to mangodibi, but looking at this problem to solve it: My application is a dynamic form builder which lets users add dynamic fields to the form. Any field on the form is OK or not stable Users can add any number and fields of any kind such as text fields, dropdowns, or date fields on the form and save the form. I believe that one of its dynamic storage and fields are not stable, Oracle does not work for DB storage. Is Monggo DB can be used for such storage Can I get more data? How the data is stored in Mongo DB and the form is brought to display. Thanks in advance! MongodiB is a document based database that you have stated that there is no column or field restriction. You can put your dynamic field in an object and save it in the same collection. For example person: {name: "", contact: [contact1, contact2]} You can also add more fields for example person: {name: "", contact: [], email: ''} You can now save it to ...

mysql - SQL Query - Count Group By Very Slow - Help Optimise -

Please see my mysql query below, which I want to optimize. I'm sure there is a more efficient way to do this, but I'm not just working for my life. Can anyone help please? I think there should be a way of stopping multiple combinations. select network_name, phones_count as deals_tempd inner join phone p on d.model_id = p as count_count (*). Model_id Tariff tax tax at INNER d.tariff_id = t.tariff_id INNER network en ON d.network_id = n.network_id Join INNER free_gift fg ON d.freegift_id = fg.freegift_id INNER merchants meet d.merchant_id = m .merchant_id INNER JOIN type ty ty tytyty_id = d.type_id WHERE network_name! = '' Group Select network_name Unon all Tariff_contentlength, Count_temp Count as a phone call from D (*) dn.model_id = p.model_id Phone PO Inner Access Tariff Tax ON d.tariff_id = t.tariff_id INNER includes the network Get d.network_id = n.network_id INNER Join free_gift fg ON d.freegift_id = fg.freegift_id INNER merchants meet d.merchant_id = m.merc...

transactions - PHP ADOdb not respecting autoCommit=false -

मेरे पास निम्न कोड है & lt;? Php include ("adodb5 / adodb inc.php "); // एडीओडीबी लाइब्रेरी $ डीबी = न्यूएडकॉन्केक्शन ('माइस्स्क') शामिल है; // एक नया कनेक्शन $ conn = $ db- & gt; कनेक्ट ("स्थानीयहोस्ट", "परीक्षण", "पासवर्ड", "test_db"); अगर (! $ Conn) {गूंज 'कनेक्ट करने में विफल'; मरने (); } और {$ db- & gt; ऑटो कॉमेट = गलत; $ Db- & gt; StartTrans (); $ Statement1 = $ db- & gt; तैयार करें ("तालिका 1 (कॉड) मूल्यों में डालें" (1) "); $ Ok1 = $ db- & gt; निष्पादित करें ($ statement1); $ Statement2 = $ db- & gt; तैयार करें ("तालिका 2 एएएएएए (कॉड) मान (1)" में डालें); $ Ok2 = $ db- & gt; निष्पादित करें ($ statement2); $ Statement3 = $ db- & gt; तैयार करें ("तालिका 3 (कॉड) मूल्यों में डालें" (1) "); $ Ok3 = $ db- & gt; निष्पादित करें ($ statement2); यदि (! $ ठीक 1) {गूंज 'विफल 1'; $ Db- & gt; FailTrans (); } और अगर (! $ Ok2) {गूं...

javascript - AngularJS $http.get isn't working -

I have a static json file, which is at http: ///test.json, which I Can see ok I am trying to use $ http.get to load that Jason file. Here is my code: testApp.run (function ($ http) {$ http.get ("test.json") .success (function (data, position, headers, config) { Warning ("ya!");}). Panic (function (data, position, header, config) {warning ("failed!");});}); Any suggestions? Definitely being said because it is warning me that it should be easy, but it is driving me crazy. Try it with / URL for this type of GET method: $ http.get ("/ test.json"). Success (function (data, position, header, config) {warning ("ya!");}). Terror (function (data, position, header, config) {warning ("failed!");}); });

vba - Modeless UserForm won't allow user to change windows -

I have a script that revolves around 500 + files and is modest by using the process detection and method Edits if the string is not found, however, I would like to open the code as a modulated user which will allow manual editing. I have to execute a different subtitle after opening UserForm , but because I am using for each loop, I can not get out of the routine and then return . The script works, except that when Save_User is opened, it behaves as if it was the model there were two windows open But I can not choose any of them, and the preview of each window is white in the taskbar. Why can it be any idea why this is happening? Option Public Public Distribution System, Workbook as Template Public Search. Select it as range, select as replacement, first Rowz as Range, Range of Range The second range, the static range () string as the public target, in the form of string public target, change the form of the form of the public search string as an integer Find as strin...

python - User interface optimization when using pack -

Image
मेरे पास एक कोड है, जो इस तरह एक यूआई बनाता है। मुझे लगता है कि उन पेज को ऊपर / नीचे बटन पृष्ठ 1 के बगल में होना चाहते हैं लेकिन मैं ऐसा करने में कामयाब नहीं हो पाया । पैक के साथ एकमात्र तरीका मुझे पता है पक्ष विकल्प है और यह अच्छी तरह से काम नहीं कर रहा है दूसरी बात यह है कि उस स्क्रॉलबार को उस सूचीबॉक्स में होना चाहिए। मुझे पता है, मुझे कैनवास बनाने की जरूरत है, फिर उसमें एक फ्रेम। फिर उन दोनों को सूचीबॉन्ड और स्क्रॉलबार एम्बेड करें लेकिन मैं ऐसा नहीं कर सका। यह मेरा कोड है। वर्ग इंटरफ़ेस (tk.Frame): def __init __ (स्वयं, डेन): self.pa_nu = 0 # # पृष्ठ क्रमांक। दोनों लेबलिंग और परिणामस्वरूप slicing self.lbl1 = tk.Label (डेन, टेक्स्ट = "कीवर्ड") में स्वयं प्रयोग किया गया। Self.lbl2 = tk.Label (den, text = "Page% d"% (self.pa_nu + 1)) स्वयं .ent1 = tk.Entry (डेन, टेकफोकस = ट्रू) self.btn1 = tk.Button (den, text = "खोज", कमांड = self.button1) self.btn2 = tk.Button (den, text = "Page Up ", कमांड = सेल्फ। पेज_अप) self.btn3 = tk.Bu...

delphi - What is this code doing with pointers? -

I still do not understand how the indicators work in Delphi while reviewing a library, in one function I Generally, I used the GetIPAddress (used to get the IP address of the local machine), I used the pointers (the marked line below) near a strange artist. I did not write it, but found it sometime ... uses Winsock; Function GetIPAddress: String; Type pu_long = ^ u_long; Var varTWSAData: TWSAData; VarPHostEnt: Fistent; VarTInAddr: TInAddr; Namebook: Array [0 .. 255] Anikar; If WSAStartup ($ 101, varTWSAData) & lt; & Gt; 0 Then the result: = '' and get started hostname (Nambuf, Sagef (nominator)); VarPHostEnt: = gethostbyname (namebuf); VarTInAddr.S_addr: = u_long (pu long (varPHostEnt ^. H_addr_list ^) ^); // & lt; --- ??? Result: = WideString (inet_ntoa (varTInAddr)); End; Excluding the result: = ''; End; Finally WSACleanup; End; End; What's going on here with the pointer? fastend is an indicator for one, in a type defined Windows AP...

3D plotting from an m by n matrix -

I have a large file (more than 2 million cells) and I need the value of each individual cell to read For the z graph to be X and Y coordinate, coordinate the 3D plot and the original X, Y coordinates of the cell. For example: M = 1 2 3 4 5 6 7 8 9 I need it (1, 1,1) (2,1,2) as Read (3,1,3) (1,2,4) (2,2,5) (3,2,6) (1,3,7) (2,3,8) (3, 9) And from there I need to make a 3D plot. Please help! Pseudocode: pseudocode: size = 3 # set it xx = The successful plot for maximum value for 1 y = 1 z = readvalue () (x, y, z) x = x + 1 by x & gt; Size x = 1 y = y + 1z = Pelvalue ()

webgl - What is the best approach for making large number of 2d rectangles using Three.js -

two. Three in an attempt to de-visualization. Js no I used d3.js to create an interactive visualization that includes thousands of nodes (rectangular shape). It is unnecessary to say that there were performance problems during the animation because the browser would have to create an STVG dom element for each of those 10 thousand nodes. I want to make the same view using WebGL to take advantage of hardware acceleration. Now three JS is a library which I have chosen because of my popularity (BTW, I looked at PixJs and its API did not appeal to me). I want to know that three What is the best way to do 2D graphics in JS. I tried to create a plain gymetry for each rectangle, but it seems that 10 thousand aircraft are not saying to go geometry (animation super dopers are slowing down ). I am missing something, I just need to know what is the oldest way to make the 2D rectangle and then identify them specifically so that I can draw them once to talk to them. Thanks for any ...

objective c - How do I compare two bit vectors for equivalence? -

What is the most effective way to compare two bit vectors? In Objective-C, I am using CFBitvators and I am comparing each bit in both: For (cfindx bitindexx = bit; index and lt; nmbit; beatindex + +) {If (CFBITVictorgettextx (this Watcator, Beat Index)! = CFBitVectorGetBitAtIndex (thatVector, bitIndex)) {return; }} Yes return; That works fine, but I was not sure there was no more efficient way to use bit operators. One can do a bit- or operation on two CFBitVectorRef structs as described in. However, this is subject to failure at future time, because it is implementation-dependent. One of the safest ways to compare them can be one bit at one time described in OP. Here's a utility job that does the whole thing: BOOL CFBitVectorEqualsCFBitVector (CFBitVectorRef thisVector, CFBitVectorRef thatVector) {CFIndex numbits = CFBitVectorGetCount (thisVector); If not (return numbits! = CFBitVectorGetCount (thisVector)); (CFIndex bitIndex = 0; bitIndex & lt; numbeits; bi...

java - How can I best make a class hold something for another class? -

I am facing some strange situations that, in some sense, are double to each other, and wondering if Someone has external initialization class human {collection This is strange because humans (in this situation) never have their neighbors After they are not set they change (they are effectively written once), but this setup can not be done in the human constructor because people who fall in the next neighboring countries are required , When all humans are made Yes P> Holding for someone else Suppose I want to be able to store man in a tree-based map, to do this, to human A comparative identification card must be kept, even if it is not logically significant for the concept of human. Human creates this ID, but it is never used. Only the map uses it (or even should use it.) In the first case, perhaps the disorder is a sign that neighboring should not have human property. Perhaps the Neighborhood object should be human property, and there is a method like human...

javascript - How to re-enable click event on a div with jQuery? -

निम्न कोड को देखते हुए: अगर ($ selector.html ()। IndexOf ( "रेडियो") & gt; 0) {यदि ($ पुराने चुने गए! = शून्य) {// पुराने क्लिक किए गए रेडियो बटन पर क्लिक सक्षम करें $ पुराना चुने गए। बच्चे ()। बाँध ('क्लिक करें', फ़ंक्शन () {रिटर्न सत्य;}); } // अक्षम करें चयनित $ चयनकर्ता पर क्लिक करें। बच्चे ()। बाध्य करें ('क्लिक करें', फ़ंक्शन () {वापसी झूठी;}); $ पुराने चयन = $ चयनकर्ता; } अक्षम करने वाला कोड ठीक काम करता है। एक बार तत्व निष्पादित करने पर क्लिक करने योग्य नहीं रह जाता। हालांकि, क्लिक ईवेंट को पुनः सक्षम करने की कोशिश करते समय, कुछ नहीं होता। सुझाव? आप बस बार-बार क्लिक हैंन्डलर बाध्यकारी हैं आपको unbind () जिन्हें आप सक्रिय नहीं करना चाहते हैं। इसे आज़माएं: $ oldSelected.children ()। Unbind ('क्लिक')। बाँध ('क्लिक', फ़ंक्शन () {वापसी सच;}); दूसरे विचार पर, unbind ('click') आप सभी की ज़रूरत हो सकती है अगर आपके क्लिक संचालकों में कोई अन्य तर्क नहीं है।

Undefined variable result when trying to echo a value from a query using php -

I am trying to get some information from a query and values ​​of some inputs, the parameter that displays it Specific information is an ID that is being sent in such a way: PHP includes a file: & lt; A href = "modificarLab.php? Idlab = '$ line [' idlab]]. & Gt; & Lt; Input type = "par" class = "btn formatted" id = "btn model- '$ line [' idlab '].' 'Style = "status: complete; Left: 170px; Top: 192 px; "/> When I click on the above link, I send it to the page which shows idab on the URL, so this idlab = X shows, where the X is based on the idlab of the click, this part is working properly. The problem occurs when trying to get information in the values ​​of information, in the example I Used in the form, href) and it is working, so I do not know that I My addiction looks like this: Renamed PHP: $ _POST ['lab']: 'unknown'; $ result = getSpecificLabModify ($ _GET ['la...

web - How to create custom model binder for Mongodb ObjectId in Nancy? -

asp.net mvc में मैंने ऐसा किया था। सार्वजनिक वर्ग ObjectIdBinder: IModelBinder {सार्वजनिक ऑब्जेक्ट बिन्दमोडेल (कंट्रोलर कॉन्टैक्ट कंट्रोलर कंसटेक्स्ट, मॉडेलबैडिंग कॉन्टेक्स्ट बाइंडिंग कंटैक्स) {var परिणाम = बाध्यकारी कंटबॉक्स। वैल्यू प्रदाता। गेट वैल्यू (बाइंडिंग कन्टेक्स। मोडेलनाम); नया ऑब्जेक्ट आईडी वापस करें (परिणाम। अटूट मूल्य); }} मैं नैंसी में कैसे करूँगा? इसके अलावा आप इसे बूटस्ट्रैपर में कैसे पंजीकृत करते हैं? कोड नमूना? इसलिए मैंने नैन्सी के अनुरोध वर्ग के लिए एक एक्सटेंशन का निर्माण समाप्त कर दिया। मैंने एक नया शरीर पद्धति बनाई है, जो कि एक प्रकार लेता है और मॉडल में किसी भी संपत्ति को बाइंड करने के लिए जेसनएन.नेट अनुबंध का उपयोग करता है। सार्वजनिक स्थैतिक वर्ग बॉडीबिंदर एक्स्टेंशन {सार्वजनिक स्थिर टी बॉडी & lt; T & gt; (यह अनुरोध अनुरोध) {request.Body.Position = 0; स्ट्रिंग bodyText; (var bodyReader = नया StreamReader (request.Body) का उपयोग कर) {bodyText = bodyReader.ReadToEnd (); } JsonConvert.DefaultSettings = () = & gt; नया JsonSerializer से...

Python - splitting a string twice -

I have some data that looks like "string, string, string: other string, other string, other string". I want to manipulate the first group of "string" at a time if I split the input and confine it on the basis of the colon, then I will end up with a list. Then I can not divide it again because there is no specialty 'division' of the 'list' object. " Alternatively, if I decide to set the boundary based on a comma, then it will return everything (with commas after the comma, which I do not want to manipulate) is only one problem, still with a list, I still can manipulate the first entries using [0], [1] etc. Apart from the fact that the number of "string" always varies, so I'm unable to hardcode the numbers. Any idea to get around this list's range? Try it out: import re s = 'string, string , String: Other String, Austestring, Austestring 're.split (r' [,:] ', s) = & gt; ['String,' 'St...

android - MVVMCross Resource Loader -

As I have understood, IMVXsourceSource can load resources from platform-specific projects to "Assets" or "Resource" folders is. If this is true, is there a way / plugin that will load the embedded resources from the shared core project? It is easy to keep resources related to business logic (or localization) in a place rather than copying iOS / Windows / Android projects. Yes, it can be done that I have put some assets (audio files) in the core and Mainly used in the main I finally returned it as a byte array; I'm sure it can be played around to force it more. Here is my code that I use public byte [] GetApplicationResource (ApplicationResourceName resource name) {string resourcePath; Switch (resource name) {case ApplicationResourceName.AudioChord: sourcePath = AppConstants.ResourceNameAudioChord; break; Default: New ArgumentOutOfRangeException ("Resource Name") Throw; } Var assembly = Assembly. Gate contingency assembly (); (Var stream =...

asp.net web api - MiniProfiler with Web.API 2; is there a global magic request context object? -

I am trying to set up a miniprofile on my Web API site, and MiniProfiler.Current to work. I followed the guidelines at miniprofiler.com, and the following is global. Ax: protected zero application_Start () {MiniProfilerEF6.Initialize (); // Other setup} Safe void Application_BeginRequest () {// UI MiniProfiler.Start () is required to be started here to present; } Secure Zero application_EndRequest () {MiniProfiler.Stop (); } This uses the default, which stores the actual code in HttpContext.Current.Items . When I miniprofiler Current , this HTTCPN.NET Current . when I request one of my web API URLs: creates the application_BuyRequest profile, Code> HttpContext.Current can store in a Web API MessageHandler in a Web API IActionFilter , HttpContext. Current in HttpContext.Current See now, and try my MiniProfiler.Current.Step ("Administrator: Action") failed Gets different services to my EF queries Running is not recorded because it de...

mysql - Get specific formatted JSON from PHP Query -

I want to get an array like this: {"version": "1397992135_1932 "," List ": {" John Carter "," FixJGPSC, JPG ", 1]," 7247045 ": [" Joe Saturni "," KJVA 54 J4 LL.JPGG ", 0]," I have simple rows in the database: id: 91120813 ": [" Michel Artata "," JNPVACLKGECA.jpgGG ", 1]}} Name | Photos | Update I can not really do it to understand how to get data from DB code code if I have 100 records Are there. It would be necessary to obtain the JSON string that the array setup is looking for: $ data = array ("version" => "1397992135_1932", "list" => array ("20514072" = & gt; array ("John Carter", "IEXJGIPC ("J. P.G.G.G.", "0"), "91120813" => ("J. P.G.", "1"), "7247045" = & gt; array ("J. Saturni", "KJVE 54J4LL.JPGG...

html - Perl -- how to open / read / print -- directory and file content -

Question (April 24, 2014): I'm exploring a way to avoid manually Modifying a webpage to include links to files in the directory, using syntax highlighting for the content of those files displayed as code-snippets There is an easy way to use file-manager scripts (for example, * .cgi or * .php), to evaluate files in a specific directory and to include their content in a webpage? In other words, I want to be able to add / delete / modify a code snippet file manually from one directory and the snippets directory of the script every time the page is loaded Rate (new). As it stands now, I must manually edit my webpage to rename license.txt if I have given that file the name on the server, just a directory (e.g., / home / legallist / public_html / code_snippets ) and the script is to populate the webpage with the contents of the files in that directory to evaluate the contents of that directory. What behavior can a * .cgi or * .php file manager do? This server is technology....

node.js - grunt task using node http gets "no app" response from node app in heroku -

I run raucous works that ping my node app. Developing. The locally running node app answers accordingly. When I deploy on his lock and work there, I get an html page similar to "Heroku App". Curl works: 'myapp.herokuapp.com and some = stuff' so I know that the posted node app is working. The way in which I am doing the parameterization of the http call, what is wrong in it? grunt.registerTask ("testGet", function () {var done = this.async (); var option = {host: 'http://myapp.herokuapp.com', / / Host: "127.0.0.1", // port: 8000, path: "/myResource?"+qs.stringify({user_id=, device: 0}), method:" GET "}; var req = http.request (Option, function) (res.on ('data', function (chuck) {grunt.log.write (chuck + "\ n");}) done ()});) ('error', function (Mistake) {console.log (get 'with problem:' + err.message);}); Req.end ();}) / code> I have tried many things: moving the curie param...

file - Changing a program to be able to install directly after downloading -

Then I have a program that I currently download to my site on my site. The problem occurs when they receive downloads that save it as a zip folder for a destination on their machine. After this, run the correct .exe to navigate to the folder, remove the content, and then start the installation. How can I convert this process so that they can open the program and navigate to the folder and unzip it without installation? Why not download them EXE? The EXE file can be auto-extractor (for example, WinZip can remove EXE archives automatically, which will unpack the content and execute a previously-removed file (such as the main EXE of your application).

android - how to start the intent service using alarm manger -

I want to start my intention service with alarm manager and my intent is being started by service service .. but Please help me please do this, this is my code service code create on public zeros (intent intention = new intention (this, DownloadService.class); StartService (intent); Calendar cal = calendar.justinstance (); Cal.add (calendar. SECOND, 10); Pending Vertical Paint = Pending .entet (this, 0, intent, 0); Get AlarmManager Alarm = (AlarmManager) System System (Context .ALARM_SERVICE); Alarm.Setcoding (Alarm Manager. RTC_wecup, Cal. Gatetime Inimlis (), 10 * 1000, Pintant); Alarm.SetInxpect Reparating (alarm manager. RTC_quackup, cal. Gatetime inimlis (), 10 * 1000, pinant); } Public int onStartCommand (intended intent, int-flags, int startId) {Toast T = Toast. GetApplicationContext, "Start command in the service", Toast. LNNHHLAG); t.show (); Intent = new intention (this, DownloadService.class); startService (intent); Calendar cal = calendar.justinstance (); C...

javascript - Show DropDown based on selection -

I created a basic drop down list for the operator I was thinking that the basis of selection There is a way to display dropdown items on. If I have an integer than the operator dropdown in the category drop down, then only the integer will show related items. Thanks should you do it? Javscript: $ (document) .ready (function () {$ (document) .on ('change', '. Category', function () { Var val = $ (this) .val (). ToLowerCase (); $ ('operator option'). Skip (); $ ('operator option.' + Val) .show (); $ ('operator operator ( 'Selected', 'selected'). Change ();});}); HTML: select class = "category "& Gt; Option val =" value "> gt; value & lt; / option & gt; option val =" weight "> weight gt; & lt; option Choose val = "size"> Size gt; option = val = "dimension"> gt; dimension & lt; / option & gt; & lt; / select & gt; &...

c++ - Making .exe file in Visual Studio 2013 -

I have created my project in C ++ and used SFML 2.1, I also loaded images from disk And when I'm trying to run its giving error file in loading your .exe file. For now, I'm trying to run my own .exe file (in the project debug or release folder). I do this for my friends Want to create an Exe file, which are not programmers, so that my game runs on your PC even if anyone Please help to know how to make exe! First, exe file. After this, your friends will not have all the developmental DLLs and libs necessary for your app to work. You can know what is necessary to start your app. Keep all those files near your exe and it should work mostly on PC. Bonus tip Often, when you experience such a problem (application crashes straight out of the project), the simplest solution, which is a language-atheist, is your View the app in a new file inside your main function and after your app is running directly on your screen (outside the IDE / Project), ending in your project h...

ruby on rails - Many to many associations -

Hello There is a hard time debugging my code What do I need to do to create a page where users last Type the name and the system will return the related information about it. I am stuck and can not debug it or any guidance or guidance will be appreciated Model of my customer table class customer & lt; ActiveRecord :: Base has has_many: Booking is has_many: cell ,: through: = & gt; : Booking def mail_list "# {first} - # {last} - # {mary}}" and end This is the page that the user should display after entering the last name & lt; Center & gt; & Lt; Table width = 65% range = 1> & Lt; TR & gt; & Lt; Th & gt; Customer's name & lt; / Th & gt; & Lt; Th & gt; Cell number & lt; / Th & gt; & Lt; Th & gt; Cost & lt; / Th & gt; & Lt; / Tr & gt; & Lt;% @ customers_list.each do | M & Gt%; & lt;% p = m.cost% & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt;% = ...

r - Error with grid.arrange:input must be grobs -

मेरे पास निम्न आर-स्क्रिप्ट है: लाइब्रेरी (ggplot2) लाइब्रेरी (gridExtra) Sys.setenv (LANG = "en") सी 1 & lt; - ggplot (mtcars, एईएस (कारक (cyl))) + geom_bar () c2 & lt; - ggplot (mtcars, एईएस (कारक (cyl))) + geom_bar () + Coord_flip () grid.arrange (c1, c2, ncols = 1) मुझे ग्रिड के साथ निम्नलिखित त्रुटि मिलती है। arrangeGrob में त्रुटि (..., as.table = as.table, क्लिप = क्लिप, मुख्य = मुख्य:: इनपुट grobs होना चाहिए! मुझे पता नहीं लगा कि समस्या क्या हो सकती है। / P> यहां मेरे प्रयुक्त संस्करण हैं: sessionInfo () आर संस्करण 3.0.2 (2013-09-25) प्लेटफ़ॉर्म: x86_64-apple-darwin10.8.0 (64-बिट ) लोकेल: [1] de_DE.UTF-8 / de_DE.UTF-8 / de_DE.UTF-8 / C / de_DE.UTF-8 / de_DE.UTF- 8 संलग्न बेस संकुल: [1] ग्रिड आँकड़े ग्राफिक्स जीडीईवलॉसेस यूटिल डेटासेट विधियां अन्य संलग्न संकुलों का आधार: [1] ग्रिड एक्सट्रा_0.9.1 जीजीप्लोट 2_0.9.3.1 एक नेमस्पेस (और अनुलग्न नहीं) के द्वारा लोड किया गया है: [1] colo Rspace_1.2-4 digest_0.6.4 gtable_0.1.2 लेबलिंग_0.2 MASS...

java - How create link which don't handling in controller? Spring framework -

After I just want to create simple links like and (work like simple links in html) not dealing with this link controller Should do it. But springing every link handling in the controller that I do not want. I know that I can put my test.html page (beyond the folder web-INF) in certain resources and the controller is not working on this request, but I have to find a solution & lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; appServlet & lt; / Servlet-name & gt; & Lt; URL pattern & gt; / & Lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt; & Lt ;! - Spring Security - & gt; & Lt; Filter & gt; & Lt; Filter-name & gt; SpringSecurityFilterChain & lt; / Filter-name & gt; & Lt; Filter range & gt; org.springframework.web.filter.DelegatingFilterProxy & lt; / Filter range & gt; & Lt; / Filter & gt; & Lt; Filter-mapping & gt; & Lt; Filter-name & gt; SpringSecurityF...

html - Add “selected” Class to the Menu Item - MVC -

itemprop = "text"> I'm missing this tutorial () How to add the "selected" class to the menu in MVC, in other words it The tutorial shows how to create a Navigator menu in MVC, when you click on the Nave button it remains selected. But when I am writing this code using to & lt; Span class = "skimlinks-unlinked" & gt; System Web & lt; / span & gt; & Lt; Span class = "skimlinks-unlinked" & gt; System.web.mvc & lt; / Span & gt; by using; Namespace & lt; span class = "skimlinks-unlinked" & gt; AdminRole.HtmlHelpers & lt; / Span & gt; {...} My Visual Studio 2012 shows an error in this area And it says the identifier is expected? What identifier? OK, I solve it ... This code: & lt; Using span class = "skimlinks-unlinked" & gt; System Web & lt; / Span & gt; & Lt; span class = "skimlinks-unlinked" & gt; System.web.mvc ...

iOS Background fetch mode -

What is the "Background Fitch" mode about iOS? Apple documentation is quite common here: "... at the right time, the system gives the background execution time to the system ..." "... the only app that provides important services to the user ... Is there a time limit (clearly specified or empirical) in which the system controls the app in the background? (I can tolerate a 5-minute interval) Does anyone applying for "background fetch" permission Note: For a short time to call a requirement (eg, 10.30am to 15:15 pm, ...) and show results in a notification (server side push Without the use of the notification). Since it is practically a pre-scheduled local notification to bind some custom code, so I was wondering whether to run "background-fetch" mode for calling at the time required Can work from I used to bring background with push notifications. When the push notification arrives, the application background Will start down...

android - Java for-loop never terminates -

I am trying to make a basic for loop which connects elements of the temporary list to the main arrives. This crashes my Android app repeatedly. for (int i = 0; i & lt; tempFavList.size (); i ++) {log. v ("MyApp", Integer.toString (tempFavList.size ())); favourites.add (tempFavList.get (i) .toString ()); } Some debugging has shown that for tempFavList.size () the first of the loop is equal to 2 but goes to infinity when loop's (At least + 500,000 before the app crashes) tempFavList = currentUser.getList ("Favorites"); I have a list extracted from the pars database to the tempFavList list; Quite confused why the temporary list size is increasing once for the loop because I am not adding any item for the loop. You can try: last int tempSize = tempFavList .size (); For (Int i = 0; I

java - Disable oracle autocommit on close connection -

I have a question about the Oracle Autocommit on close connection events. Notice from Oracle docs (): If automatic commit mode is disabled and you close the connection with no explicitly made or your previous changes Let's roll back, then an implicit committ operation is run. Therefore, I want to disable this feature in programmatic JDBC driver. I do not wan't autocommit at least one transaction closed connection, is it possible? P.S. change the setAutoCommit JDBC operation "AutoComit" starts a new transaction on each transaction and commits the call. This is not a solution to my problem. Edit. Possible duplicate: According to , you should try to roll back or roll before calling the closed method. The results are otherwise implemented-defined.

c# - How to process multiple files fetched using openFileDialog using Streamreader class? -

How do I read two files that I have faded from the openFileDialog box? Below is the code that I have written. Private Zero LoadBetBetton_click (Object Sender, EventErgus E) {var OpenFileDialog = New OpenFileDialog (); OpenFileDialog.Multiselect = True; XmlSerializer serializer = New XmlSerializer (type (list & lt; ExtractSerializedAction & gt;)); StreamRedder myReader = Faucet; Foreign (openFileDialog.FileNames in string file) {myReader = new streamrider (file); } Var Results = Serializer. As a list of diaryials (& lt; ExtractSerializedAction & gt;; myReader.Close (); Forchach (different items in result) {// some code here}; } The above code only brings the previous file that I select using openFileDialog . I know that the problem is with streamreader logic and foreach loop but do not know how to solve it? Try this: string (file in the openfileDialog.FileNames } {{StreamReader myReader = new StreamReader (file)) is used as a {var result = serial...

java - How does the constructor work while initializing an object? -

The output of this code is 7 20. Why does 7 print print before and after 20 that? Public Class Television {Private Internet Channel = Set Channel (7); Public Television (int channel) {this.channel = channel; System.out.print (channel + ""); } Public int set channel (int channel) {this.channel = channel; System.out.print (channel + ""); Return channel; } Public static zero main (string agr []) (new television (20);}} When the object is created, its fields are created. You have a class member: Private int channel = Set channel (7); When you do: New Television (20); The field is initialized and the setchannel is assigned to the constructor Calling is done before calling and 7 is printed from there. The object is made up of and provided values ​​(or the default value if no value is specified). You may think about preparing this example after the preparation and initialization of these members. Constructor is called. For further detaile...

unit testing - date-dependent automated tests in mainframe context -

As a former Java person with sound test background, I am now in touch with mainframe / cobol stuff in the financial industry. / P> I need an automated test, but knowing that in our context it's really difficult to implement, so I will ask for advice here. 1) My plan executes Java-based test-driver to call cobol stuff through stored-processes, MQ or similar and to check actual results in different DB2 tables Will do There is no problem with MPOV. 2) The difficult thing is the reference / data and here especially the date: Currently the test is done manually. The global "current date" is an important test-parameter and it is set manually (and it affects lot of other programs), so anyone else Such tests can not be touched during the system Because manually tested, this lock of the global context can be easily tracked: like mail "No touching on 12.12.2013 Do, I'm testing Not! " Automatically, this manual is no longer possible for the ...

linux - Java JVM terminate in Aptana and Ecplise -

I want to use AptanaStudio, Eclipse and I get this error after running it. exit end JVM code = 1 / usr / bin / java-xms40m -xmx512m -dilepse. P2.unsignedPolicy = allow -Declipse.log.size.max = 10000 -Declipse.log .backup.max = 5 -Djava.awt.headless = true jars /home/tux-world/Desktop/Home/packages/Aptana_Studio_3//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -os linux - ws GTK -arch 86 -showsplash -launcher / home / tux -world / desktop / home / packages / Aptana_Studio_3 / AptanaStudio3 -name Aptana Studio 3 --launcher.library / home / tux-world / Desktop / home / packages / Aptana_Studio_3 / /plugins/org.eclipse.equinox.launcher.gtk Linkskks86_lklkl00kv20ll0505 / Aklips_l407kso -startap /hom/tks-warld/desktop/hom/packejes/atna_studio_3//plgins/org.aklips.akvinoksklancr_lk2k0kv20ll0502kjar --lancrkoverridevmargs - Exitdata 6e80ll allow -vm / usr / bin / java -vmargs -Xms40m -Xmx512m -Declipse.p2.unsignedPolicy = are -Declipse.log.size.max = 10000 -Declipse.log.backu...

c++ - What is the difference between QProcess::start and QProcess::startDetached? -

Qt दस्तावेज़ीकरण इस स्पष्टीकरण देता है: QProcess :: : दिए गए प्रोग्राम को एक नई प्रक्रिया में प्रारंभ करता है, अगर कोई भी पहले से ही चल रहा है, तो तर्कों में कमांड लाइन तर्कों को पारित कर रहा है। QProcess :: startDetached : एक नई प्रक्रिया में तर्क तर्क के साथ प्रोग्राम प्रोग्राम को प्रारंभ करता है, और इसे से अलग करता है। दोनों के बीच अंतर क्या है? क्या फर्क सिर्फ इतना है कि आप QProcess :: start और QProcess :: startDetached ? का उपयोग करते हुए कई उदाहरणों का उपयोग करके एक प्रोग्राम का सिर्फ एक इंस्टेंस शुरू कर सकते हैं। यदि आप प्रारंभ का उपयोग करते हैं, तो कॉलर प्रक्रिया समाप्त होने पर भी बुलाया प्रक्रिया समाप्त हो जाएगी। अगर आप कॉलर समाप्त होने के बाद startDetached का उपयोग करते हैं, तो बच्चा जारी रहेगा। उदाहरण के लिए: QProcess * p = नया QProcess (); p- & gt; शुरू ( "कुछ एप्लिकेशन के अंतर्गत"); Delete p; // & lt; --- कुछ एप को समाप्त कर दिया जाएगा QProcess * p = new QProcess (); p- & gt; startDetached ( "कुछ एप्लि...

How to write to a different file everyday day of the week using bash -

I have a script that pulls information from a file and outputs it in a different file what I need to do This script is run everyday but outputs in a different file. It will be in the cronat to run every day, but I do not know how to output a different file every day. Is there a loop that I can use? Regards, John T requires a loop instead, Use a filename created using the date ' For example. $ myprocess.sh> Date is + + "% m-% d-% Y" .log Therefore the date is executed in the backticks (known as the) and output replaced in line . Here the log file is used as the name (in this case 04-24-2014.log)

java - How to create and use android libraries jar? -

Image
I have created Simple Android Libraries Project. I have a new Android Application Project & gt; & Gt; Uncheck "Make this project as a library" and "Create custom launcher icon" and uncheck "Create activity". Next, I create a simple class named MyClass.java and Here's my code: package android.external.jar; Public Class Micalos {Public String Hello World () {Return "Hello World"; }} And then, I export & gt; & Gt; Java & gt; & Gt; Jar file & gt; & Gt; Uncheck all except the Src folder (this is included with Android manifest.exml) & gt; & Gt; I have another Android advertising project to use that JR file. I have added this project to the external jar by right clicking on my project and GT . ; & Gt; Properties & gt; & Gt; Java Build Path & gt; & Gt; Libraries & gt; & Gt; I have tried to use my library like this: import android.external.jar. *; ... @ Overr...

actionscript 3 - as3 URL request - retry url request -

I am creating retry mechanism for URL request. If I do not answer the ant after 10 seconds, then I want to send the request again. The problem is how to deal with respone for the previous request received after more than 10 seconds? I think you use the URLLoader to send the http requests There is a off method in the loader, it is important to put it in the trap, and it is also good to remove the listeners. Even if there is any reaction with the delay, you will not get it. But the best thing is to close and delete the audience :)

ios - Access UISwitch in Prototype Cell -

Image
When I change the status of my UISwitch, I am trying to print / close. For example - (IBAction) toggle switch: (ID) sender {ChannelsTableViewCell * cell = (ChannelsTableViewCell *) [Sender Supervision]. Superview; NSIndexPath * indexPath = [self.tableView indexFaceReserveCell: cell]; If (cell.localSwitch.on) {NSLog (@ "on"); }} When I run it, it throws an error. 2014-04-24 11: 33: 41.462 HRAP [3258: 60b] - [UITableViewCellScrollView localTitle]: Unexpected selector sent for example 0x19354410 2014-04-24 11: 33: 41.467 HRAP I If you hook up to IBAction in the switch, you will be able to check the value of the don switch. You do not need to get a UITableViewCell You can use the sender parameter from IBAction therefore: - (IBAction) toggle Switch: (ID) Sender {UISwitch * switch = (UISwitch *) Sender; If (switch.on) {NSLog (@ "on"); }} If you need to find the indexPath on which the UISwitch is shown, you can add the following: CGPE...

c# - Creating New Roles Error -

How do I add the role of this website? I was lost in step 4. Creating new roles .. Secure Zero CreateRoleButton_Click (Object Sender, EventArgs e) {string newRoleName = RoleName.Text.Trim (); If (roles! Reelxists (Narylenam)) // Create Role Roles. Creareol (Neurolam); RoleName.Text = string.Empty; } After my work I did this .. I found this error: Name 'roles' is not present in the current context .. What did I do? > Step 2: Define and configure roles framework provider em> and step 3: roles API check ? Please make sure your codebehind reference System.Web.Security namespace. Step up to ensure that all configurations are made to implement role-based authentication. For more information see, which explain the full configuration for roles.

java - difference between Class and Object -

इस सवाल का पहले से ही एक उत्तर है: 14 उत्तरों मेरे पास अंतर के बारे में एक सवाल है वर्ग और वस्तु के बीच: हमारे पास है: पुस्तक विशेष-पुस्तक माटैटिक्स विशेष-पुस्तक अनौपचारिक विशेष पुस्तक प्रोग्रामिंग विज्ञान पुस्तक (आईएसबीएन 12345) मेरा प्रश्न इस प्रकार है: यह तत्व वर्ग क्या है और क्या वस्तु है? अग्रिम में बहुत धन्यवाद मेरा अनुमान होगा- ISBN के साथ प्रोग्रामिंग विज्ञान पुस्तक क्लास पुस्तक , विशेषपुस्तक और InformaticSpecialBook ( exampleOf के रूप में जावा ऑपरेटर के संदर्भ में) का एक ऑब्जेक्ट क्योंकि यह एक कंक्रीट है इकाई (इस समय हम इस तथ्य की अनदेखी करते हैं कि पुस्तकें आम तौर पर संख्याओं में मुद्रित होती हैं, अर्थात् वहाँ 5000 किताबें उसी आईएसबीएन में मुद्रित हैं)। अन्य वर्ग हैं और शायद उप-संबंधों को विरासत के संबंध से जुड़ा हुआ है - उदाहरण के लिए, विशेषपुस्तक को पुस्तक , MathSpecialBook और InformaticSpecialBook को विशेषपुस्तक से विरासत में मिला है। यदि मेरी प्रिंट की अज्ञानता बहुत कठोर है, तो शायद प्रोग्रामिंग्ससाइंसबुकइएसबीएन 12...

javascript - Dropdown menu closing after clicking on any input box -

I created a drop-down menu, in which I created a form for search criteria. Now, whenever I click on any input box the menu stops Here is my HTML code: and my css code: .dropdown-large {status: static! Important; } .dropdown-menu-large {margin-left: 16px; Margin-right: 16px; Padding: 20px 0px; } .dropdown-menu-large & gt; Le & gt; Ul padding: 0; Margin: 0; } .dropdown-menu-large & gt; Le & gt; UL & gt; Li {list-style: none; } .dropdown-menu-large & gt; Le & gt; UL & gt; Le & gt; A {display: block; Padding: 3px 20px; Clean both; Font weight: normal; Line-height: 1.428571429; Color: # 333333; White Location: Normal; } .dropdown-menu-large & gt; Lee Ul & gt; Le & gt; One: hover, .dropdown-menu-large & gt; Lee Ul & gt; Le & gt; A: Focus {text-decoration: none; Color: # 262626; Background color: # f5f5f5; } .dropdown-menu-large .disabled & gt; A, .dropdown-menu-large .disabled & gt; A: Hover, .dropdown-menu-...

websocket - webrtc event.candidate has many values -

To follow it (for beginners) I created and responded, I Onicecandidate () function onicecandidate (event) {if (! PeerConnection ||! Event ||! Event.candidate) return; Var candidate = event.candidate; // post ICE-to-other-peer (candidate.candidate, candidate.sdpmlineIndex); } onicecandidate () The event was created several times before the martyrs, but according to the tutorial, I have to post snow on some other peers ( Websock has been used)) and (candidate.candidate, candidate.sdpmlineIndex) got multiple values. Do I get to event.candidate All prices need to be sent or And can I just connect using SDP (Session Description Protocol)? Itemprop = "text"> You should send all the candidates, this is normal practice In addition to this, this method can also be said during the active connection and also send you a new value for the opponent. needed. The ICE engine works all the time and searches for the shortest route between you and the opponent. ...

php - how to get ip address of client machine in mysql database -

इस सवाल का पहले से ही एक उत्तर है: 22 उत्तर मेरे पास एक MySQL क्वेरी है मेरे डेटाबेस में एक फॉर्म की सामग्री को सम्मिलित करता है। इन मानों को सम्मिलित करने के साथ-साथ, मैं उपयोगकर्ता के IP पता को खोजने और सम्मिलित करना भी चाहता हूं। & lt; php गूंज $ _SERVER ["REMOTE_ADDR"]; ? & Gt;

string - calculate mean length of a line using C -

I have a text file in which I have filled one number rows with different text, with the length of a different line . What do I have to do, which calculates the average number of characters per line, which matters to me in my work, I wrote the following code in C to get it. Although I can not run the program after the program is compiled Includes # lt; Stdio.h & gt; #to & lt include, stdlib.h & gt; #define LENGTH 10000000 int main () {char c; Int i; Int line_length; Int j; Int char_count; Char char_a [LENGTH]; Int line_a [LENGTH]; Int line_count; Long amount; Name avg_char_count; FILE * fp = fopen ("input.txt", "r"); If (! Fp) {fprintf (stderr, "can not open file"); Exit (1); } / * Read in file * / i = 0; Yoga = 0; While (char_a [i ++] = fgetc (fp)) sum ++; Printf ("Character Count:% d \ n", Yoga); / * Process array * / char_count = i; j = 0; Line_count = 0; While (J ++> & lt; char_count) {if (char_a [j] == '\ n...

python - Translating SQL request to django -

I am trying to create a request (in a digenfo) that will return an array of posts (only the user's rank, Post User: Post: Class Post (Model.Model): Title = Model.carfield ("Headline", Maximum_length = 100) body = Model . TextField (Max_length = 1000) user_id = models.ForeignKey (user) thumbnail = models.FileField (upload_to = get_upload_file_name, empty = true) timestamp = model. DataTamField (auto_now_add = true) The following / followers: class.model: who_id = models.IntegerField () whom_id = models IntegerField () Timestamp = models.DateTimeField (auto_now_add = True) User: Prefix User, exclusive = true) profile_pic = models.FileField (upload_to = get_upload_file_u_name, default = 'website model = model.ccarfield (empty = true, max_length = 100) location = model.chhfield (empty = true, max_long = 100) def __unicode __ (default = true =) Auto): "% s profile"% self.user return the SQL request I created: from SELECT * POSTS where us...

c# - Select sql how to get value DataReader -

I want to get value / mages / again, but how do I work it. For example, please show me how the selection of the value defines how the variable is shown or how it is shown in the text box. At this point I get "System.Data.SqlClient.SqlDataReader" in the textbox. SqlDataReader Reader; Cn.Open (); Cmd.CommandText = ("Select Megaeska for Orty Wear Orty. Id =" Reservoir "); Cmd.Parameters.AddWithValue ("@Rezwayway", RISSEVA); Cmd.CommandType = CommandType.Text; CMD Connection = CN; Reader = CMD.x Reader (). String RS = Convert. ToString (Reader); TextBox1.Text = rs; // At this point I get the "System.Data.SqlClient.SqlDataReader" text box in cn.Close (); If you are reading a row and a single column: simply ExecuteScalar ( ) : string rs = (string) cmd.ExecuteScalar (); But to answer your question, the common use is: using (var reader = cmd.ExecuteReader ()) {while ( Reader.Read ()) {// Read a line, for example: string foo ...

how to match end of line in bash history expansion -

For example, provide better support for the history expansion: ! $ = & Gt; Along with this, we can use the replacement with man bash : echo onetwoone echo! $: S / a / three / = & gt; First of all, I consider it a syntax similar to sed , but it is not. I can not find any way to match the back end of the string. echo onetwoone | Sed 's / a $ / three /' = & gt; Onetwothree I would like to do the same thing with the expansion of Bash's history: Resonance resonance! $: S / one $ / three = = & gt; -Bash :: S / A $ / three /: replacement failed Is there any way to do this? Thanks! It seems that the modifier does not understand regular expressions. may be used to: $ sed / a $ / three / '& lt; & Lt; & Lt; $ (Echo! $) Sed / a $ / three / '& lt; & Lt; & Lt; $ (Echo onetwoone) onetwothree You may also want to refer to fc which you can click on history and Open it in an editor (based on $ E...

c# - ASP.NET Web API multiple post messages single controller or action -

So I have the following issue: We have a scenario where a third party post message On our server, we have no control over it, and they want to send everything in one URL, so we can not do anything about the query parameters, so my question is, what is the different post It is possible to handle messages with the same action. In essence the contents of the post message will be defined whether the said request should be accompanied. Post Message 1: & lt; Xml & gt; & Lt; Content 1 & gt; Content & lt; / Content1 & gt; & Lt; Content2 & gt; Content & lt; / Content2 & gt; & Lt; / XML & gt; Post Message 2: & lt; Xml & gt; & Lt; Content 1 & gt; Content & lt; / Content1 & gt; & Lt; Content3 & gt; Content & lt; / Content3 & gt; & Lt; / XML & gt; As you can see, some messages will have similar properties. Thanks You can use the following signature to accept arbitrary XML conte...