Posts

Showing posts from June, 2010

javascript - How to track caret/cursor in contenteditable? -

I want to track the movement of the carat / cursor in a satisfactory way. I'm not sure what is the best way to do this, though. I am currently listening for clicks, keydown, keyboards. (For things like keyboard arrow keys or ctrl-x, the fire does not fire too.) While the click works fine, the problem with the keydown is that the carat actually removed before running So, when I query the current document selection range, I get the old position and not the new one but if I rely on the key to get the updated status, it takes too long: like The key is pressed, the more carat moves, but the key is released in a arbitrary time later. Should this be possible because things like CKDiter are able to do any sign? It is good to read that people are talking about CK editor; I am one of its developers and I am not doing much work on selection, but I will try to help. Do I know that an internal selectionChange event will change when we change? ... ... at least once in every 20...

- Where Developers Learn, Share, & Build Careers

I am using the PellesC C compiler Sometimes my code stops working randomly, a special statement Can trigger it. For example, I multiply a variable by sin (c) (c is double) and my code seemed to eliminate execution without execution. Sometimes it gets frozen, sometimes it comes back, but I can always disable it by removing a humiliating statement or compiling optimization, especially "maximum speed" or "maximum speed" if I Adding a printf statement somewhere near that point, if it crashes, the time of freezing will also be about 100% away. I have never found anything to suggest that I am improper to memory I am using the Rike, I'm sure it's a compiler issue is completed. I was thinking that someone could put some light on it. Is it possible that I am actually doing something wrong? Or is it a known issue with the Pelles C compiler? Editing: Change canvas-> pixels [(y * canvas-> pitch) + (x * canvas-> gt; ; BPP) +2] = (unsigned char) (255.0...

jquery - How to handle a JSON request that doesn't return JSON? -

अच्छे मामले में मेरे JSON समापन बिंदु एक उचित JSON प्रतिक्रिया देगा: {status: "success"} । हालांकि यदि मेरे वेबसर्वर 500 त्रुटियों में 500 प्रतिक्रिया शरीर एचटीएमएल है, जो एक सिंटैक्स एरर का परिणाम है, यदि jQuery इसे $ parseJSON के साथ पार्स करने की कोशिश करता है। केवल डेटाटाइम परम अनुरोध। मैं ऐसा नहीं करूँगा, एक गैर- JSON प्रतिक्रिया द्वारा उठाए गए सिंटेक्स एरर प्रयासों को देखने / पकड़ने का कोई तरीका क्या है? आप इसे त्रुटि कॉलबैक को संभाल सकते हैं। $। Ajax ({url: "MYURL", डेटा प्रकार: 'जेसन', सफलता: कार्य ( डेटा) {}, त्रुटि: फ़ंक्शन (ई) {if (e.status == 500) चेतावनी ("500 आंतरिक सर्वर त्रुटि");}});

javascript - CRM 2011: Enable bulk editing only on certain entities -

I am currently trying to disable bulk editing on some organizations, one of these is "Campaign Response" unit I did the following to get this: Hide the OOTB editing button globally (as far as I know you can not edit the OTB ribbon button This way) Create a new custom edit button globally (section of the sub-section For each unit on which I need bulk editing: Hide custom editing ribbon button Create a new custom edit button with SelectioncountRule node Create Until now I goto sub-grid activities on any unit. The way I contacted this problem, there are 2 editing buttons present in the form of activity (for a regular edit button and for the edit button of the campaign response). I'm not sure how to fix it, but I have an idea for which I need some help: Click the "bulk edit" button At the global level, add JavaScript to the selection rule of the custom editing button JavaScript will retrieve the logical name of the selected entity (on ...

r - Calculate frequencies -

मेरे पास इस तरह एक डेटा फ्रेम है: Expt एक ए ए 2 ए 3 रीप्लिकेट बी 1 बी 2 बी 3 सी 1 सी 2 सी 3 सी 4 मैं प्रत्येक प्रयोग के लिए प्रतिकृति की संख्या वापस करना चाहता हूं। इस तरह: Expt #Reps A 3 B 3 C 4 यह सुपर आसान हो गया है, लेकिन मैंने कुछ चीजों की कोशिश की है ddply (df, expt, .fun = max (replicate)) कोई भाग्य नहीं के साथ कृपया मदद करें। एक और आसान तरीका: सारांश (df [ , 1]) #where df आपका डेटा फ्रेम है और आप पहले कॉलम की गणना चाहते हैं ("एक्स्प्ट") नोट: पहला कॉलम एक फ़ैक्टर है और यह किसी भी कॉलम पर लागू होता है जो कि फैक्टर है

- Where Developers Learn, Share, & Build Careers

ज़ेंड फ़्रेमवर्क में एक अजाक्स प्रतिक्रिया में मेरे डोजो तत्वों को पुनः पार्स करने में बड़ी समस्याएं हो रही हैं I मेरे पास एक सरल सत्यापन टेक्स्टबॉक्स और एक सबमिट बटन है I जब सूचकांक पृष्ठ पहली बार प्रस्तुत किया जाता है, तो सभी डोजो / दिइजिट टंड्रा शैलियों / विशेषताओं आदि को सही ढंग से पार्स किया जाता है। हालांकि, जब मेरे पास एक एजेक्स कॉल होता है जो डोजो फॉर्म को फिर से तैयार करता है और इसे इंडेक्स व्यू में वापस पोस्ट करता है। फॉर्म अगर ठीक वापस पोस्ट किया गया लेकिन टंड्रा स्टाइल अब काम नहीं कर रहे हैं। मैंने कई अलग-अलग चीजों की कोशिश की है लेकिन कई घंटे बिताए हैं कहीं नहीं। मैं किसी को भी अग्रिम धन्यवाद करता हूं जो सहायता करने का प्रयास करता है मैंने इस पोस्ट को स्पष्ट करने के लिए सबसे सरल उदाहरण जोड़ा है लेआउट.फ़ाइल & lt;? Php गूंज & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & gt; '; प्रतिध्वन करें $ this- & gt; doctype (); ? & Gt; & LT; html & gt; & Lt; शीर्ष & gt; & Lt; मेटा सामग्री = "पाठ / ht...

- Where Developers Learn, Share, & Build Careers

I am working on a project where I input the form {float} {single-letter-identifier} , for example 15.6E , or 10W . To do this, I thought I could take the input string, strip it from the last letter and then check to see if using std :: stof Can be converted to float. It will be nested in the try-catch block, and I will be allowed to inform the user of invalid input. The STL Open-Standard (page 653) states that std :: stof throws: invalid_argument If wcstod or wcstold reports that no conversions can be done. However, when it can not be changed, nothing is passed, for example "48East" . To recreate this behavior, a code sample is below: std :: wstring szString = L "48East"; Try {float f = std :: stof (szString); } Hold (...) {std :: cout & lt; & Lt; "Exam" & lt; & Lt; Std :: endl; } It has been compiled on MSWC10 in debug mode with / ode , so I'm assuming that the call has not been optimized. I appreciat...

ruby on rails - why is activerecord not finding records with null columns? -

तो, अगर मैं करता हूं: & gt; & gt; User.where ("facebook_data is null") (0.5ms) SELECT COUNT (*) से `उपयोगकर्ता` कहां (facebook_data is null) = & gt; [] अभी तक, मैं अपना उपयोगकर्ता खाता देखता हूँ: & gt; & gt; यू = उपयोगकर्ता.फंड (225) = & gt; # & Lt; उपयोगकर्ता आईडी: 225, ईमेल: "me@example.com", ... आदि & gt; & Gt; & gt; U.facebook_data = & gt; शून्य इसलिए मुझे स्पष्ट रूप से कोई भी facebook_data नहीं है यह रिकॉर्ड क्यों नहीं आ रहा है जब मैं जहां खंड का उपयोग करता हूं? ठीक है यह, मैं mysql में गया: mysql & gt; उपयोगकर्ताओं से users.facebook_data का चयन करें जहां users.id = 225; + --------------- + | Facebook_data | + --------------- + | --- | + --------------- + 1 पंक्ति सेट (0.00 सेकंड) और फिर कंसोल में .. & gt; User.find (225) .facebook_data == शून्य उपयोगकर्ता लोड (0.4ms) का चयन करें `उपयोगकर्ता`। * से` उपयोगकर्ता 'जहां `उपयोगकर्ता`।` आईडी` = 225 LIMIT 1 = & gt; सच है अतः...

- Where Developers Learn, Share, & Build Careers

Actually I have figured out how pro changes the proxy grammatically, but now I want my web browser to be new proxy. To use To do this, I think that I need to restart IE, and in detail, IE based WebBrowser controls in my C # application How do I do this? Given that you are using web browser controls in your C # application, you do not Do something like restart IE, because its control is in your application. But there can be a new example about reloading webbrosor control, it hopes it will help you

eclipse - Lint: How to ignore " is not translated in " errors? -

Image
I can not compile / debug our Android app, because the localization file is not yet correct. Creates errors in my IDE verification tool: AT, BG, CA, CS New in The CadsOvervals have not been translated properly, but I would like to use their IDE to reduce debugging. Is there any way to stop this special investigation, or ideally it could make a warning instead of error? I understand that before releasing, we will need to get the localization files properly, but this is not a priority for the time because the screen itself is being modified very often. Android studio: "file" & gt; Type "missing" and "missing translation" in the search box Eclipse: Windows / Linux: in the "window" & gt; "Preferences" & gt; "Android" & gt; "Checking Lint error" Mac: "Eclipse" & gt; "Preferences" & gt; "Android" & gt; Find the "Lint error check...

Why do I get the error Uncaught TypeError: Cannot set property 'display' of undefined in Javascript? -

I am trying to understand the use of the document object type and challenge yourself I am trying to hide all the div tags when I execute the function, then error me unchecked type error returned: Property can not set 'display' to be undefined But unsure that its meaning is absolutely fine. What is undefined? Code output code & Lt; Meta http-equiv = "content-language" content = "en-us" / & gt; & Lt; Meta http-equiv = "cache-control" content = "no-cache" /> & Lt; Meta http-equiv = "pragma" content = "no-cache" /> & Lt; Meta name = "keyword" content = "" /> & Lt; Meta name = "description" content = "" /> & Lt; Meta name = "author" content = "" /> & Lt; Meta name = "copyright" content = "& amp; copy; 2012" /> & Lt; Meta name = "robot" content = "noindex...

- Where Developers Learn, Share, & Build Careers

Image
I'm relatively new LAMP Dev I was trying to learn Linux through mainly AWS. I have a live flexible Beanstock example and are running. I did a yum install the following packages: mysql55.x86_64 mysql55-bench.x86_64 mysql55-common.x86_64 mysql55-devel.x86_64 mysql55-libs.x86_64 mysql55-server.x86_64 mysql55- Test .x86_64 seemed to install fine all ... then typed ... mysql -V that I mysql Ver 14.14 distribution 05.05.20, Redline for Linux (x86_64) 5.1 ... use Which confirms that mysql is installed ... but then when I type ... enter mysql -u ec2-user -p password Not: / * empty skip * / I ... error 2002 (Acaiattiatti): Socket to local MySQL server '/ var / lib / mysql / mysql.sock '(2) / Pre> it is now that I ssh-ing in the server went created in AWS console with a security group key pair. The key is authenticating me (.ppk file) when I enter the box as EC2-user. This is my "root" user, as far as I know, there is no password, but I c...

- Where Developers Learn, Share, & Build Careers

I am using Google Maps API3. I have a map and a button. On the map, I have two markers when I click on the button, then I want to draw a line between the two markers. Not sure why you need Ajax with 2 markers and Google Maps API v3 Can draw a straight line between the two. Something like this (play on the button click) should work with the correct names of marker 1 and marker 2: var polyline = new google.maps.Polyline ({Path: [marker1.getPosition (), marker2.getPosition ()}); Check it in IE In the address bar with: Javascript: {var polyline = new google.maps (Path: [gunners [0] .getPosition (), gmarkers [1] .getPosition ()], map: map}}}

php - If searched number exists in MySQL database, go to a certain link -

I have a company where we issue invoices to people, then with this "ticket number" and "date" Upload an invoice I think logging is quite simple, but my brain wraps around MySQL and I can not find the tutorial for it I have a form like this Which works like a search, where it takes "search ticket number" and it "goes ahead .php" If the ticket Khya has been found in my database and the date of the ticket number submitted is less than 72 hours of the present time, the date and time I have submitted, Goto Link A, if more than 72 hours Goto Link B, If the search is not able to find anything in the Goto link, I hope anyone write it for me if this is complicated but maybe I should give instructions for the tutorial that I want to I am Or tell me what I want to find in However, if you think that this script is enough for me then I can see what I should have done that would be very appreciated. Now I have gone ahead. Php file: My prefer...

python - Setting a cell's fill RGB color with pywin32 in excel? -

I am avoiding using any other module. What am I trying to do with the color of the cell in aqua, using pywin32 libary. So far, I have found out how to get cell color: print xl.ActiveSheet.Cells (line, column) .interior.color and You can set it by assigning it equally: xl.ActiveSheet.Cells (line, column) .interior.color = 0 #black My question is how to set the color of the cell in RGB? I am called a color changer for OLE, but I do not know how system .drawing is because it looks like a .NET is the object. internal.color is expected of a hex value if you want to specify in the RGB form below the code Can be used def rgb_to_hex (rgb): strValue = '% 02x% 02x% 02x'% rgb iValue = int (strValue, 16) iValue xl.ActiveSheet.Cells (line , Column) back Interval .color = rgb_to_hex ((255,255,0,0))

ruby on rails - Testing invalid form submission with Cucumber -

I have a simple cocaine test, to see that, upon entering the illegal identification, the user will return to the registration page Is sent. / P> My last step looks like this: then / ^ I should be at the registration page $ / current_path.should == new_user_registration_path end However, when one submits a form and it comes back with errors, they actually end up with "/ user", and not "/ users / sign_up" I am assuming this because the users / users of the registration method methods / users but the symbol for testing for me / users Should protect it does not, because it was an indicator of the presence of users, that I do not want an error page. Is there a better way to test form errors in the rail? You should check that the page on which the user ends is in the error text of cucumber examinations Test as if you were manually testing: url will not be checked after form submission, but you will see in page content to understand whether submissio...

- Where Developers Learn, Share, & Build Careers

OK - so I started this way, public view recommended index ( ) {See Return (service.GetProjects ()); } And this is my test I [TestMethod] Public Zero index_th_th_a_list_off_activ_prejex () {var view = controller.Index (); Confirm. Erequal (see ViewData.ModelGetType (), Typef (List & Project & gt;)); } All who bend with Dokken but then I added a login and if the user is not authenticated then I redirect them to the login page. Here's what the new method looks like Public Performance Index () {If (Request .asA certified) see return (service.GetProjects ()); Return Redirect Action ("Login", "Account"); } My problem is this - I do not know how to determine the unit test for my life, I can not return any visual result any longer, so I can see the .ViewData.Model property But I can not understand how the redirect is still done while returning to the audience. I was trolling the site and I found this, but that does not really help. If som...

jquery - popup on button click of view in mvc3? -

I want to show a popup when I click the submit button on the watch page in mvc3. I think this can be done by passing the class, but I am also unable to get pop up in doing so. Please tell me how can I show a popup in a button click using jquery? This should work just fine

asp.net - Create link as we navigate inside menu bar? -

Image
We are currently shown below the image as per the requirement. is too much but I do not have specific key words, so I did not find anything. We need to display the link in the navigation bar so that the user can select the appropriate page and select the appropriate page without front and back. . How can I do this in the Asp net, as I have shown in the image below. Thank you very much ........ Here you can put a look at navigation and here site Map of In the basic form, you can use a list on the pages where you want to show the link. Suppose you have three pages A, B, and C, add a list like on the bottom of each page. So you go in this way Add the following to your list on page A's code. hyperlink navy = new hyperlink (); Nav.NavigateUrl = "A.aspx"; // You can also pass parameters here. HtmlGenericControl Li = New HtmlGenericControl (" "); HtmlGenericControl span = new HtmlGenericControl ("& lt; span & gt;"); S...

- Where Developers Learn, Share, & Build Careers

We have a grails application in the wild. We want users to provide a better experience to current browsers and provide some auto-updates to site pieces. With all the options and especially with Grails, I am not impressed I really want to use WebSocket and till that point I have checked, I believe our best The option is node. Js. But obviously we can not do our application again. I like Grails So my idea is that we use Node.js along with Grails basically as a read-on proxy between the client and the data. All nodes The JS application pulls data from the database and distributes the client on websacet. Is it like a legitimate approach? Is there anything else that someone else did? Definitely feels appropriate; I recommend using socket.io to implement your transport (if the browser supports them, then it will use websitet; otherwise it will use different fallback mechanisms) You can use any cross-root problems To avoid, you might want to use a reverse proxy such as nginx, t...

How to Access XML attribute using SimpleXML in PHP -

I have an XML file like this and I want to get the value inside the property which is "1" PHP code? thank you in advanced. & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; NodeInfo & gt; & Lt; Node flag = "128" & gt; & Lt; Address & gt; 18 F5 40 1 & lt; / Address & gt; & Lt; Name & gt; IMeterSolo & lt; / Name & gt; & Lt; Type & gt; 9.7.135.92 & lt; / Type & gt; & Lt; Enabled & gt; True & lt; / Enable & gt; & Lt; DeviceClass & gt; 0 & lt; / DeviceClass & gt; & Lt; Wattage & gt; 0 & lt; / Wattage capacity & gt; & Lt; DcPeriod & gt; 0 & lt; / DcPeriod & gt; & Lt; Pnode & gt; 18 F5 40 1 & lt; / Pnode & gt; & Lt; Property ID = "Scheduled Tribes" *** Value = "1" *** Formatted = "1" UOM = "W" /> & lt; / Node & gt; & Lt; Properti...

html - How to get getRequestUri() in layout.phtml -

In my zend layout.phtml I am doing my navigation service like this: & Lt; ? Php $ userInfo = new Zend_Session_Namespace ('userInfo'); If ($ userInfo-> userType == 'admin') {echo '& lt; Li & gt; & Lt; A href = "/ adminhome" & gt; Home & lt; / A & gt; & Lt; / Li & gt; '; Echo '& lt; Li & gt; & Lt; A href = "adbook" & gt; Addbooks & lt; / A & gt; & Lt; / Li & gt; '; Echo '& lt; Li class = "selected" & gt; & Lt; A href = "about.html" & gt; Adapter book & lt; / A & gt; & Lt; / Li & gt; '; Look & lt; Li & gt; & Lt; A href = "logout" & gt; Adder & lt; / A & gt; & Lt; / Li & gt; '; Look & lt; Li & gt; & Lt; A href = "logout" & gt; Logout & lt; / A & gt; & Lt; / Li & gt; '; }? & Gt; In a normal page, I can get ...

android - Repo in CYGWIN got error like "Python can not open file 'user/bin/repo'" -

I have Windows 7 on my PC and I want to check the Android source by following the steps here: http: // source.android.com/source/downloading.html I tried CYGWIN and told the exact same type of tutorial. But no luck found here: $ repo init -u https://android.googlesource.com/platform/manifest -b Android-4.0.1_r1 CYGWIN bash told me this: C: \ Python 27 \ python.exe: Can not open file '/ home / qhuang / bin / repo': [error 2] No such file or directory This file actually exists and may require a prefix: C: \ cygwin \ to help anyone For (like me) later on Lets hit Rsn. After installing Python inside Saigwin it was solved for me (I installed Python in Windows, but not Sigwin). You can check whether it is installed with 'Python' if it comes back as C: / Bla / Python, you have not installed it in Sigwin; You want to tell / usr / bin / python to come back to tell you that it is an internal signin.

- Where Developers Learn, Share, & Build Careers

I try to make a word document using this code: HttpContext. Current.Response Clear (); HttpContext.Current.Response.Charset = ""; HttpContext.Current.Response.ContentType = "App / Doctor"; HttpContext.Current.Response.AddHeader ("content-dispute", "attachment; file name =" + date time.Now + ".doc"); Var strHTMLContent = new stringbilder (); StrHTMLContent.Append ("& lt; h1 title = 'heading' align = 'center'style =' font-family: verdana; font-size: 80%; color: black '& gt; & lt; u & gt; document Title & lt; / u & gt; & lt; / h1 & gt; "); StrHTMLContent.Append ("& lt; br & gt;"); StrHTMLContent.Append ("& lt; Table alignment = 'center' & gt;"); // column headers with strhtmlcontent.Append ("& lt; tr & gt;"); StrHTMLContent.Append ("& lt; td style = 'width: 100px; background: # 99CC00' ...

c - How the linker calculate the size of .bss section? -

The I want to know how Linkkrta .bss calculating section size? I have a test program with two variables, one has to start at zero, the start of the second zero I hope .bss size 4 and it is. # cat test.c & amp; Amp; GCC-O Test O-C Test C & amp; LD-O Test Test O & amp; amp; Readelf -Ss test int _start = 0; Int a = 2; ...... Section Headings: [NR] Name Type Address Offset Size EntSize Flags Link Information Align [1]. Data PROGBITS 00000000006000b0 000000b0 0000000000000004 0000000000000000 WA 0 4 4 [2] .bss NOBITS 00000000006000b4 000000b4 0000000000000004 000000000000000004 000000000000000004 000000000000000000 WA 0 4 4 points :: value size of binding vis NDX name 6: 00000000006000b4 4 object global default 2 10 _start: ..... symbols include table '.symtab' 11 entries 00000000006000b0 4 object global default 1 Then I add another zero-initial value. This time I hope the size of .bss is 8, but this is 12 (0xc). # cat test.c & amp; Amp; GCC-O Test O...

java - How to change delimiter in csv using icefaces data exporter -

I know how the delimiter can be generated in the CSV file by the data exporters from icefass. I am using icefaces 2.0-beta1. I think for a while, but you can use custom exporter: With it you can customize the output format for your needs.

jsp - How to layout for a CSS web directory in a web project -

Now, I want to create a web page interface such as can be obtained from many other sites like translate.google. Com or BBC Com I use firebug to get the CSS distribution (CSS class, Div) of the elements in the page (such as button, div, text box ...) However, currently I just use CSS I save pages for a file named index.css only when it has a large number of CSS classes and has been taken from multiple pages and especially when I have CSS in the specific page (for example, when I Neither the CSS I want to find) when designing with Google) to another web project, I can not even CSS reuse. I'm eager to see some method of smart people's layouts CSS directory, which have a way to reuse css I have a JSSP 2.0 framework and Netbeans 7.1.2 Using the editor, I am developing the web with JSP Thank you for looking at my question "post-text" itemprop = "text"> I usually use my web app I split into files, for example navbar.jsp, header.jsp, footer.jsp, ea...

android - ListView: limit scrolling speed -

संभव डुप्लिकेट: जब कोई उपयोगकर्ता ListView पर स्क्रिप करता है तो इसकी स्क्रॉलिंग गति बहुत अधिक हो सकती है मैं गति को सीमित करना चाहता हूं - क्या यह संभव है? इसे चेक करें -: निजी वर्ग SpeedMeterOnScrollListener OnScrollListener लागू करता है { निजी लंबे समय का स्टाम्प; निजी इंक अंतिम फर्स्टविइब्स आईटीम; सार्वजनिक स्पीडमेटरऑनस्कॉललिस्टर () {timeStamp = System.currentTimeMillis (); पिछला फर्स्टविइब्सआईटीम = 0; } @Scroll पर सार्वजनिक शून्य को ओवरराइड करें (AbsListView दृश्य, पूर्णांक पहले वॉइसआईटीम, इंट दृश्य आईटमेक, इंट कुल आईटमेकउंट) {लंबे अंतिम समय = System.currentTimeMillis (); // पहले वॉइसआईटीम द्वारा गति की गणना करें, पिछला फर्स्टवीआईएसआईटीम, टाइमस्टैम्प और अंतिम टाइमस्टैंप = अंतिम समय; आखिरी फास्ट विवेकआईटीम = पहले वॉइसआईटीम; } @ ओवरलैड सार्वजनिक शून्य पर स्काल्लोस्टेट चेंजेड (AbsListView दृश्य, इंट स्क्रॉलस्टेट) {}}

python - How to propagate changes from child widgets if any of the child have changes? -

मेरे पास एक QWidget है। और QWidget के अंदर, मेरे पास बहुत से अन्य QWidget s, जैसे: - QComboBox , QLineEdit , आदि .... अब, मैं जानना चाहता हूं कि उपयोगकर्ता ने कोई भी परिवर्तन किया है ( उदा: - QLineEdit में कुछ लिखें, या QComboBox , आदि .... ।) क्या ऐसा करने का एक आसान तरीका है? या मुझे प्रत्येक विजेट के सिग्नल पर कब्जा करने की आवश्यकता है, जैसे ... QObject.connect (लाइनएडिट, सिग्नल ("टेक्स्टवर्ल्ड ()"), doSomething) QObject.connect (कॉम्बोबॉक्स, सिग्नल ("वर्तमान इंडेक्स चेंगड (इंट)"), डॉट्सिंग) ... ... ... हाँ, आपको मैन्युअल रूप से संकेतों को कनेक्ट करना है।

dateadd - What is the alternate of below sql in SQLite? -

तालिका ' Curcommtb ' कॉलम ' DModify ' और ' गणना ' SQLite में निम्न एसक्यूएल का वैकल्पिक क्या है? ' Curctb से तिथिडेट का चयन करें (दिन, गिनती, डीएमडीएफ़िफ़) ' नीचे आपकी क्वेरी का SQLite वैकल्पिक है। SELECT दिनांक (DModify, '+' || count || 'day') FROm Curcommtb आप दिनांक फ़ंक्शन का उपयोग कर सकते हैं जैसे: चयन दिनांक ('अब', '+ 10 दिन');

PHP import Excel into database (xls & xlsx) -

I tried to import some of the plugins into the MySQL database, one of them The tool is so powerful that it displays the entire HTML content in HTML. However, I think that I read the excel file and remove the content, for example, in an array, and then write the SQL statement to enter the database. Will there be a good code and package? Thanks! This is the best plugin with proper documentation and examples Plus Point: You can ask for help and you will get really impressive within one day of the author.

- Where Developers Learn, Share, & Build Careers

When using the jQuery mobile dialog with a focus input field, the page will appear continuously due to the keyboard that appears Scroll up. It's on a small phone (HTC Explorer), but this problem is not present in big phones such as HTC Sensation. When you remove the keyboard from the screen, the problem disappears. Does anyone know any way to fix this? Thanks in advance Let me basically return this page to the top Scrolled by: $ ('# myInput'). Tie ('Focus', Function (Event) {window.scrollTo (0, 0); document.body.scrollTop = 0;});

ruby on rails - How to write common gherkin for Given,And,Then in cucumber -

I have to write a definition that is applicable and then, given. What format is that? Cucumber really does not care that you have "given", "and", "when "Or" then " For example: A feature: Basically any step given with any given / and / when / again mailing regex will call definition , Whether it says / and / when / again says. All given / and / when / then using the same regex: Feature: Shared step scenario: and then the normal steps given and the normal steps when the normal steps are then the general step A single step definition that corresponds to regex: given / normal step does 'shared phase' end gives the following result, which indicates that all are using the same phase definition, even if the definition of the phase is 'given': Scenario: And then when the normal step # features / step_definitions / steps.rb: 1 shared / normal step # gestures / step_definitions / steps.rb: 1 shared step when vie...

objective c - How you can select multiple items in dropdown box in iPhone and display in textboxs? -

I'm an iPhone developer. I'm trying to select multiple items in the dropdown box in the iPhone. Have tried, but unable to do it. Please suggest me it is really important to me. Please post your thoughts as soon as possible. Thanks in advance. From the I dropdown box, you think that a picker view is created for some type in a selection area. . It would be good if you posted what component you are actually talking about. Even though, depending on the assumptions I can do on your question. I think what you want is the answer:.

html - How to use blend mode in svg for vector shapes? -

यहां मेरा सरल एसवीजी है: & lt;! DOCTYPE html & gt; & LT; html & gt; & Lt; शीर्ष & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; svg xmlns = "http://www.w3.org/2000/svg" संस्करण = "1.1" & gt; & LT; defs & gt; & Lt; फिल्टर आईडी = "एफ 1" एक्स = "0" y = "0" & ​​gt; & Lt; feBlend mode = "multiply" = "SourceGraphic" in2 = "SourceGraphic" / & gt; & Lt; / फ़िल्टर & gt; & Lt; / defs & gt; & Lt; पथ डी = 'एम 100 100 एल 200 100 एल 200 200 एल 200 200 जेड' भरण = '# 00 एफएफएफएफ' / & gt; & Lt; पथ d = 'M150 150 L250 150 L250 250 L150 250 Z' भरण = '# CC3300' / & gt; & Lt; पथ d = 'M175 175 L275 175 L275 275 L175 275 Z' fill = '# FFFF00' / & gt; & Lt; / svg & gt; & Lt; / body & gt; & Lt; / html & gt; इसका सरल 3 आयत आकार। क्या सभी तीन आय...

http - 'Most conservative' conversion to GMT? -

HTTP 1.1 RFC (2616) Section 1 9.3 "tolerant application calls concerning the dates parsing of" HTTP client applications: If an HTTP header takes a wrong date with a time zone other than GMT, then it should be converted to GMT using the most conservative possible conversion. Two questions: Does this mean that the server should change the non-GMT date value for GMT? Or does it mean that if it (optionally) chooses to convert the non-GMT date value to GMT (instead of denying it), should it be the most conservative possible conversion? Edit However, now it is an old question, I am still interested if any, on getting the answer Does this mean that the server values ​​a GMT date for a non GMT? Or does this mean that if (optionally) it chooses to change the non-GMT date value to GMT (instead of denying it), then should it use the most conservative possible conversion? This is actually something that is specific in the field of question, which usually a...

- Where Developers Learn, Share, & Build Careers

How can I get the same behavior as string.form (string, object ...) in JSP page? ? ? Are there any tag libraries / function libraries available for this purpose? I need something that provides a set of string strings and arguments or $ {ns: func ("hi {0} {1}", "name ',' surname '"}} In that result Hello surname Thanks for any suggestions, Stephano You JSTL & lt; fmt: message & gt; Tags: Pre> & lt; fmt: Message key = "the.message.key"> This internally uses java.text.MessageFormat , though. Most Ua The e-framework also has its own version of such tag. / P>

c++ - Can not map QGraphicsView coordinate to QGraphicsScene -

Image
I have a QGraphicsScene in QGraphicsView that loaded an image. My app lets the user comment on this image so that I can get the coordination information of the user's annotation area of ​​this image. To be more sensible, let me create this picture: What do I want to know about exact coordination based on image coordinates, because I add pixmap to this scene, I think there is only one coordinate system in image and view. But, there are different coordinates in the QGraphicsView and the view, as the picture shows, and they separate 5pix width and 1pix height in their computer (is this always?). I use the function, but I do not get the correct coordinate information. I post some code here. view = new QGraphicsScene (); View- & gt; AddPixemPitim; UI-> Graphicsview-> Setscan (scene); Zero MainWindow :: mousePressEvent (QMouseEvent * event) {if ((event-> button () == Qt :: LeftButton) and amp; amp; amp; amp; amp; amp; amp; amp; ; Amp; amp; Start; Annotation) ...

How to show bg color in fadeIn effect and remove style properties using jQuery -

I want to change background color on hover function but I want to show in slow motion. Apart from this I am adding some CSS properties and adding them to delete and delete them. But my function does not work as per my request. $ (function () {$ ('. Box'). Hover (function () {$ ('body'). Css (('background-color': 'black'} $ (This) .css ('-motion-transition', 'opacity .3s') $ (this) .css ('- webkit-infection', 'opacity .3 s $ (this) .css (' ('- OS'), function () {$ ('body'). CSS ({' Background-color ':' black '}) $ (this) .remove (' - moz-transition ',' none ')})}) I'm not even about the function yet I know, but get rid of some errors in your hover function: $ (this) .css ('- moz-transition', 'opacity .3s') $ (this) .css ('- webkit-transition', '$ (this) .css (' - ms-transit ',' opacity .3s ') $ (this). Css (' ...

android - animate adding item and item movement in listview -

How do I add another item from one item or move from one location to another in the list? I want to make animation effects, such as in this app: (YouTube) I'm using Extended Adapter from ResourceCursorAdapter. How do I use the new View and Bindview function to achieve this effect? Or is there another way to do this, like expanding the ListView class? I suspect that there is a ScrollView instead of a list view in any .do app but I think this is a wrong way, if you have a lot of things in the list. Any ideas? To do this you have: 1. Slots used to be "off" items 2. List Open a "slot" in, where the item will be "land" 3. Move the item between slots. To get the first animation, you have to make yourself invisible to see the list item, to make it disappear, you can enlarge the value of the margin below it. I wrote a blog post about the other animation I did in any ado, where I animated this value - You can use the same animation to animate the vie...

javascript - Generating Knockout Markup in MVC 3 -

We are currently writing a new infrastructure for our MVC client and we are trying to create it so that Developers should not be right enough JavaScript (the current development pool is primarily desktop based) Whatever I've done for our knockout script, it has created an extension method that uses the reflection model All knockout pieces on the basis of Does not generate .. Get it For example, say we have had this class public class AppViewModel {public string Prthamnam {; Set;} public string LastName {get; Set;}} will be created and added in the following view function AppViewModel () {this.firstName = ko.observable ('Bob') ; This.lastName = ko.observable ('Smith'); } The ID is actually like, support from the model is computed values. But I can not understand a way to do it such as Public full name () {return.FirstName + "" + this.LastName} " Something will be generated This full name = Ko.computed (function () {this r...

iframe overlapping Jquery fancybox -

I am displaying image pop-ups using fancybox and Is embedded using code> Vimeo video iframe . The image is displayed correctly in most browsers, but when I test in iPhone 4 and Samsung Galaxy S2, the video overlaps the pop-up image. I tried with "wmode = transperant". I search a lot in Google but there is no appropriate answer. Please help. I tried to use many things but there was no solution. Then I solved my problem with other methods Ie, Jquery Fancybox "onStart" and "onClose" here is my solution ... $ (document) .ready (function () { css ('display', 'none');}, 'oklahed': 'code', 'scrolling': ' No ',' onstart ': function () {$ ("# vimeo-video").': Function () {$ ("# vimeo-video"). CSS ('display', 'block');}} ). Trigger ('click');}); Where "elementToBePopup" is an element of pop-up and "vimeo-video" is the ...

- Where Developers Learn, Share, & Build Careers

I have two scenarios in two different feature files, but both scenarios test the search functions, but my pages On different parts of In scenarios, I see something like this: Scenarios Outline: Search items from Quick Search, considering that the following items. ID | Title | | 1 | Item 1 | 2 | Item 2 | When I & lt; Criteria & gt; In this search then I'll be able to & lt; Results & gt; And let me & lt; Excluded & gt; Example: | Criteria | Results | Excluded. | 1 | 1 | 2 | | 2 | 2 | 1 | And: Scenario outline: Using a filter Given that I have the following things: | Id | Name | | 1 | Thing 1 | 2 | Talk 2 When I & lt; Filter & gt; & Lt; Benchmarking & gt; Filled with this I'll get this & lt; Results & gt; And let me see this & lt; Exclusions & gt; Examples should not be obtained: | Filter | Criteria | Results | Exclusion | | Name | Talk 1,2 | | | | ID | 1 | 1 | 2 | As you can tell in another scenario, I have c...

android - What's the best way to access SQLiteDatabase object in an activity -

What is the best way to get SQLiteDatabase objects in an activity to quickly run rawQuery is . I am using the ContentProvider generated by motodev studio which is probably the quickest way to generate CP and other database codes.

.net - Nancy website and Nancy wcf host in different projects -

मुझे नैन्सी को एक वी.एस. परियोजना में Nancy.Hosting.Aspnet निर्भरता के साथ वेबसाइट संचालित करना है और WCF सेवा के लिए समर्पित परियोजना इस वेब साइट की मेजबानी कर रही है प्रदर्शन का परीक्षण करने के पीछे विचार और IIS या मेरी खुद की सेवा का उपयोग करने का चयन करने की क्षमता है। WCF परियोजना के संदर्भों में मैंने वेब साइट परियोजना को जोड़ दिया है कैसे नैन्सी को इस तरह से होस्ट करना संभव हो सकता है? नैन्सी को वर्तमान निष्पादन योग्य मॉड्यूलों में खोज करने के लिए कैसे बताऊं, लेकिन इसमें डीएलएल से जुड़ा? क्या शर्तों को पूरा किया जाना चाहिए? अब के लिए सबसे अच्छा अनुमान नामस्थानों को सहमत करना है, लेकिन अभी कोई किस्मत नहीं है। यदि यह यहां पर मदद करता है तो वह कोड है जिसे मैं डब्ल्यूसीएफ निष्पादन योग्य (यह मानक) से नैन्सी चलाने के लिए उपयोग कर रहा हूं: वर्ग कार्यक्रम {निजी स्थिर केवल पढ़ने के लिए उरी बेसयूरी = नया उरी ("http: // स्थानीयहोस्ट: 1234 /"); स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {AppDomainAssemblyTypeScanner.LoadAssemblies ("Basta.dll"); (CreateAndOpenWe...

iphone - Disable UIScrollView vertical scrolling with NavigationBar -

Image
So I have seen many other posts on it, and I think I have tried almost all. I do not want this to be a duplicate, but I can not find a solution to my problem. I have a setup like this: When I go to my scroll, see the controller, I can only do it on the right page, but I can also move images around the vertical. I think there is something to do to reduce ScrollView frames from the navigation bar, but still setting the frame in the frame screen size. View the Scroll View How do I stop any vertical scrolling on the controller? my. I am below: - (zero) viewDidoadload {[Super Viewedload]; // Make an additional setup after loading the view Self.navigationController.navigationBarHidden = No; I = 0; _PhotoBundle = [[NSBundle Main Bundle] Path: ForResourcesOfType: @ ".Jpg" In Directory: @ "dog_text"]; _PhotoArray = [[NSMutableArray alloc] initWithCapacity: _PhotoBundle.count]; (Nifty Fingerbuff in NSString * Path) [[Photo array add object: [UIImage imageWithContent...

drawing - android opengl es 2 not working on all devices -

I'm having a problem with my app .. I use my Samsung Galaxy S3 and my app Has been developed to test has been cured! But here's the problem, after finishing the app, I started testing in other devices. The app runs entirely on the second Galaxy S3 and Galaxy S But when I tried to run it on Sony Xperia and LG Optimus Net Dual, the screen just turned black! The more interesting thing is that the app on these devices, sound faxing is fine, the ad looks, and the app responds to touching the whole, but only a black screen draws! It's really weird ... It seems that they do not support openness 2 but they do and Android version 4.0 is on ICS Xperia and 2.2 on LG! Does anyone know what it is? Or are simular problems? Just ask if you want any code and post it here! Thanks for any help! Edit: My Load Texture: Public Static Intel Load-Prections (Final Ink ResourceAid, Final Ink Min_Filters, Final Ent Mag_filter) {For (int i = 0; i & lt; ntextures; i ++) if (texture ...

Why am I getting Object Required error (VBA, Excel) -

क्यों निम्न कोड गलत है? उप सेटफॉन्ट () Dim a1 के रूप में रेंज सेट ए 1 = रेंज ("ए 1") SetFontSize (a1) एंड सब उप सेटफॉन्टसिज़ (लक्ष्य के रूप में लक्ष्य) लक्ष्य। फोंट। आकार = 11 एंड उप मुझे "रन- समय त्रुटि 424: SetFontSize विधि को कॉल करते समय वस्तु की आवश्यकता " त्रुटि। आप एक फ़ंक्शन कॉल नहीं कर रहे हैं, आपको SetFontSize (a1) को कॉल करते समय कोष्ठकों की आवश्यकता नहीं है। बस उपयोग: SetFontSize a1

c# - command pattern using Dependency Injection for MVC 3 controller -

I read the following article which was suggested by another stack overflow user which outlines the command pattern and its How to use at the end of the article with DI This has been of great help but one thing that I am missing, let me suppose that I create a new class named "CodeCustomerCommandHandler" Now, suppose I need to include this command and the MoveCustomerCommandHandler in the controller for any reason through the controller. How does this affect the container setup and the constructor? In the core, they both implement the same interface. It looks as if there is a lookup issue for the DI Container, in the example of the article, their sample Injector setup is: Public Interface ICMMandHandler & lt; TCommand & gt; {Zero handle (tickmomment command); // // just like before, but now with the interface Public Class MoveCustomerCommandHandler: ICommandHandler & lt; MoveCustomerCommand & gt; {Private Redonline Unitofwork DB; Public Human Ca...

Google Analytics SDK V2 for Android App: New users, returning users, active users, sessions are confusing me -

Image
मैंने कुछ समय के लिए अपने एंड्रॉइड ऐप को ट्रैक करने के लिए Google Analytics का उपयोग किया है और यह बहुत अच्छी तरह से काम किया है। हाल ही में, मैं मोबाइल ऐप के लिए नए एसडीके वी 2 में उन्नत हुआ हूं। हालांकि, मुझे कुछ भ्रमित हो पाया है: वास्तविक समय पर नज़र रखने में, सभी आगंतुकों को अब नए रूप में दिखाया गया है मैंने अपना फोन खोलने के लिए अपना स्वयं का ऐप खोलने का प्रयास किया और यह अपने आप को नए प्रयोक्ता के रूप में दिखाने पर ही रहता है जो उपयोगकर्ता नहीं लौट रहा है। वास्तव में, मैंने अपग्रेड करने के बाद दिखाए हुए एक उपयोगकर्ता को कभी नहीं देखा है। चित्र में दिखाए गए उपयोगकर्ताओं की रिपोर्ट में, मैं 86 सक्रिय उपयोगकर्ता देख सकता हूं और 54 नए सत्र / मेरे उन्नयन के पहले दिन के लिए उपयोगकर्ता वेबसाइट पर, यह दिखाता है कि सक्रिय उपयोगकर्ता ऐसे उपयोगकर्ता हैं जो हाल ही में आपके ऐप के साथ जुड़ा हुआ है। दोनों नए और लौटने वाले उपयोगकर्ता शामिल हैं चूंकि यह पहला दिन है, मुझे लगता है कि सभी उपयोगकर्ता नया होना चाहिए, लेकिन ऐसा लगता है कि संख्या समान नहीं है। किसी भी टिप्पणी के लिए ...

vb.net - Decrease space between controls in FlowLayoutPanel -

Image
How can I reduce the space between controls? I have set all the margins and padding to 0, but there is still room between my controllers. this is where I am I am getting margin and padding set 0. I also set margin and padding on 0 on each controller. And here is the code for the sake of continuity Adding a picture box Dim box as newPic = new image box (newPic.Image = p.Image newPic.Size = new system. Drawing Size (New Point (p.Size.Width * 2, p.Size .ite * 2)) newPic.SizeMode = p.SizeMode Laytt.SetToolTip (newPic, ttstring) AddHandler newPic.Click, AddressOf layoutprint_lickard layoutflow layout. Control Add (newPic) You are not setting the margin property on the image box adding . Default 3,3,3,3 To fix the problem, add this line of code: newPic.Margin = new padding (0)

objective c - Memory leaks JSONKit iOS -

Image
I am using JSONKit in my app, but when I click on the analysis in the xcode, let me know JSONKit.m 2 issues are found in: Issue 1: Issue 2: I do something about this? I think these are not real memory leaks. In both ways, 'Create' is in their name, which I think is to follow it. I think the analyst is implementing the objective-only convention where reference should be returned only in the context of 'new', 'light', 'duplication' and 'retention'. It is obvious that the purpose-work rather than the methods; I think the analyst is implementing the Objective-C rules because Object-Objects are being refunded, though misrepresenting the general conventions inadvertently.

mongodb - CakePHP paginator ignoring order, but only for certain values -

While pagging my user model in kppp, I can sort with some values, but not others. For example, I can order results from created or email , for example, but username or reputation seems to come back order by arbitrary command for example with a list of users: $ this-> paginate = array ('condition' => array ( 'User.is_active' = & gt; true), 'border' => 24, 'order' => array ('User.created' => DESC)); Works as expected, but $ this - & gt; Paged = array ('conditions' = & gt; array (' user.isIactive '= & gt; true),' border '= & gt; 24,' command '= & gt; array (' user repeats' = ' & Gt; DESC ')); No, no. I first thought that this could be a database issue, but when I search the database directly, sorted as expected. Note: I am using Mangodebi with the Mongo DB plugin of Ichikawa for the KPPHP; Pagnetizing users are used to work properl...

- Where Developers Learn, Share, & Build Careers

I have an app that has just opened up a webserver page which gives me a Jason string when I am all over the local network Working without problems, but when I open the application outside of the local network and how can I control the json string without crashing the VPN app? This is my code: NSString * urlstr = [[NSString alloc] initWithFormat: @ "% @ yes.php", AV]; NSDRL * URL = [[NSROLLOOL] InitWestString: URLState]; NSError * Error = Zero; NSString * urlString = [NSString stringWithContentsOfURL: url encoding: NSASCIIStringEncoding Error: & amp; Error]; NSString * newStr; NSDT * Data = [New STR Data Using Encoding: NSUTF 8 String Encoding]; NSDictionary * json = [NSJSNSArulization JSONObjectWithData: Data Option: kNilOptions Error: & amp; Error]; Sn1 = [[Jason ObjectForcae: @ "Riley 1"] interview]; I want to compare the json answer with a zero value, if two criteria are identical I will show a warning. Edit: If I try to read any value, the a...

- Where Developers Learn, Share, & Build Careers

I need a dummy object that I can input into Python and create attributes through the settings () for programmate I am I made it into an object but probably for a good reason which was not working. How can I use for such purposes in Python, do not really define yourself You can not use Fake = object , instead of just object Class duplicate (object): pass fake = mock () setter (fake, 'test', 'whatever')

php - jqgrid How to personalize the error status 'error'. error code 500 -

I am using CodeIgniter with the jquery grid. I have an index in my DB which states that some combination can not be included. Typical key user_store_index ( Store_idStores , Users_idUsers ). A combination of a user and a store can not be inserted twice. I can see the error a database error occurred using firebux error number: INSERT INTO asignedto ( Stores_idStores key for 'user_store_index' 1062. Duplicate entry '1-5' , user_idues ) value ('1', '5'). In this case, I would like the user to show the following message in jqGrid: "You can not insert it because it already exists" but I have found "error status: 'Error' error code: 500 ". I have read the descriptions presented here and here and many others, but I am not able to find solutions. Here my jqGrid code $ (document) .ready (function () {var grid = jQuery ("# ​​newapi_1351802691"). JqGrid ({ajaxGridOptions is: {Type: "post"}, jsonRea...