Posts

Showing posts from July, 2010

- Where Developers Learn, Share, & Build Careers

I was thinking that by pressing the key with Java, it is not certain how certain types of square Which should be like sendKeyPress (); or some. You can easily do with orbit. For example, press Enter : Robot R = New Robot (); R.keyPress (KeyEvent.VK_ENTER); R.keyRelease (KeyEvent.VK_ENTER);

asp.net mvc - Set a value in Model via javascript -

मेरे पास यह कोड है: सार्वजनिक वर्ग खाता मॉडेल {[आवश्यक] [प्रदर्शन (नाम = "सदस्यता आईडी")] सार्वजनिक स्ट्रिंग SubscriptionId {get; सेट; } [आवश्यक] [प्रदर्शन (नाम = "भंडारण नाम")] सार्वजनिक स्ट्रिंग स्टोरेजनाम {प्राप्त; सेट; } [आवश्यक] [प्रदर्शन (नाम = "भंडारण कुंजी")] सार्वजनिक स्ट्रिंग स्टोरेजकी {प्राप्त; सेट; } [आवश्यक] [प्रदर्शन (नाम = "होस्टेड नाम")] सार्वजनिक स्ट्रिंग होस्टेडनाम {get; सेट; } ....} और ... $ ('a.sign-in')। Live ('click', फ़ंक्शन ( ) {चेतावनी ("बिंगो!"); Var id = document.getElementById ('id')। मूल्य; var नाम = document.getElementById ('name')। Value; var key = document.getElementById ('key')। मान; var चुनें = document.getElementById ("सूचीहोस्टेड"); var चयनित = चयन करें। विकल्प [चयन करें। चयन करेंइंडैक्स] .टेक्स्ट; ...} मैं सिर्फ एक मान सेट करना चाहता हूँ मेरे विचार के साथ अद्यतन करें मेरे मॉडल पर - & gt; मॉडल में "चयनित" मान डालें m.H...

Case insensitive uniqueness validation in a Ruby Sequel.migration -

I am trying to find a good validation for using in my migration for which the user will be able to email address Case-insensitive exclusivity will be required. In essence, I should validate : email, specification = & gt; {: Case_conventional = & gt; False} Without using anything to change the rail or active records, I can run the emails through the rigax but I do not like that solution. I got a comment [1] saying that you can use But I do not know what this code is doing and I do not have to use that code when I do not know whether the DS object or what Is happening (why map! , : of Sequel.function in postgrascape is ... less ... maybe, but I just do not Know.) [1] So I need one of two things: 1) How do I verify a case-insensitive specificity in pure-code I? > Seekel Migration (no ActiveRecord, no rail)? - OR - 2) What I really want is that code snippet I found online, what does it & amp; how does it work? (What is the DS object and what does thi...

android - Do I always need to move Database queries from the UI thread to a separate thread? -

This question comes from an issue I'm doing or something really confusing. So to query the database on the UI thread it frowned on. But my problem is that what happens on the screen, what happens on the results Should you still run it in the background, or should you stop the output of the screen until you need the information from the database? The way you should set it, use it as asincot To query the database, use the doInBackground method. Then use the onPostExecute method to update the UI You can not update the UI on any other thread from the main thread. Hopefully that makes sense, if not, here are some articles that can help: Good luck!

android - Anyway of getting am/pm from time? -

संभव डुप्लिकेट: मुझे समय मिल सकता है और इसका उपयोग करके स्ट्रिंग में बदल सकता है: सार्वजनिक स्थिर अंतिम स्ट्रिंग TIME_FORMAT = "h: mm a"; सरलडेटफ़ॉर्मेट डेटटाइमफ़ॉर्मेट = नया सरलडेटफ़ॉर्मेट (TIME_FORMAT); स्ट्रिंग getstring = dateTimeFormat.format (जब.गेटटाइम (); लेकिन मैं इसे कैसे प्राप्त करू / बजे से हूँ और इसे स्ट्रिंग में बदल दिया जाना चाहिए क्योंकि मुझे इसकी आवश्यकता है? इसे आज़माएं कैलेंडर अब = कैलेंडर.एस्ट इन्स्टेंस (); int a = now.get (Calendar.AM_PM); यदि (a == कैलेंडर.AM) System.out.println ("AM" + अब.गेट (कैलेंडर.एचओआर));

javascript - Anythingslider + Fancybox duplicating images -

I am in the process of rebuilding my website using Anythingslider + Fancybox for its portfolio section, but its currently two The same image is repeated repeatedly. You can see what I'm saying here, scroll down to the Folio section and click on the first image: When I took it out of the Anthony Collider Fancy Box Work without repeating the image which confuses me, as you can tell that I am not good at solving javascript issues, but I am very excited to solve this issue. Any help would be appreciated. Here is the HTML / JS code & lt; Ul class = "slider" & gt; & Lt; Li & gt; & Lt; A class = "fancybox" rel = "webfolio" href = "picture / folio / web_free jellyfish_b 1.jpg" gt; & Lt; Img src = "images / folio / web_superjellyfish.jpg" alt = "" / & gt; & Lt; / A & gt; & Lt; Div class = "caption-down" & gt; & Lt; Div & gt; & Lt; H3 & gt; Details ...

r - Troubleshooting ddply() script -

I am developing a sensor dependent variable for use in survival analysis. My goal is to find the last time ("time") that a person answered a question in a survey (for example, where "q.time" is "1", and "q.time + 1" and q Is coded in) the later time is coded as "0") By this argument, the last question answered is coded as "1" (q.time) should be done. The first question that has not been answered (q.time + 1) should be coded as "0" and all the questions after answering the first question should be coded as "NA". I want to remove all the rows where my dataset from DV = NA A very generous colleague has helped me develop the following code, but she is now on leave and she needs a little more lovin. The code is as follows: Library (plyr) #ddply for the library (statistics) # to resize (...) # from the above data & lt; - data.frame (id = c (1, 2, 3, 4), q.1 = c (1, 1, 0, 0), q.2 = c (1, 0, 1, 0), d...

javascript - jQuery page structure best practices for use of $(document).ready(function(){}) -

I currently have a lot of widgets on my website which are all kinds of jquery functions, animation, AJAX calls etc. It is a good practice to read online that you try to bundle your JS in a file, when you understand it or say that each of my widgets is widely used on my website, it seems like That's all for these widgets Files / javascript to be put in a file. Now, if I have $ (document) .ready (function () {}) I want to open a widget button for each, automatically loads some data when preparing a doctor, etc. . What would be the best practice to do this? Not every widget is on every page, so if everything is in a javascript file, will non-existent non-existent elements be able to practice poorly? I think I'm really having trouble viewing the best method of my structure to provide the best performance jquery / javascript around my web application JS is very good to keep the file filled with reusable code, so all your functions load all the pages in one page Use .js ...

iphone - Sort TableView cells with AlertView in XCode 4 -

I added the "Sort" button in the navigation bar to sort the tableview. Tableview is made in this way: - (zero) viewDidoadload {[Super Viewedload]; NSString * myfile = [[NSBundle main bundle] pathForResource: @ "object" type: @ "plist"]; Sorted object = [[NSMUTABELARROL] INNTH WITH CONTENT OFFFILE: MIMEFIELD]; NSSortDescriptor * sortDesc = [[NSSortDescriptor alloc] initWithKey: @ "Popularity" ascending: Yes]; [Sort Object Object Sorting Descriptors: [NSARRAARIJject: SortDesk]]; [Super viewedload]; } This is the function for the sequence button: - (IBAction) Sort button: (ID) sender; {UIAlertView alloc] initWithTitle: @ "Sort" message: @ "" Representative: Cancel selfTuttonite: @ "Cancel" otherbittnittals: @ "name", @ "country", @ "popularity", @ Zero] ; [Alerts show]; [Warning issued]; } and this button has the delegate method to capture the click: - (zero) alertview: (...

HTML/CSS Nesting issues -

I want to make plain text such as "Accessibility" link just like "Welcome to my site" But it keeps taking the set properties for my tags. This is my first time creating a website, so if you have suggestions on how my code looks, then I am open to suggestions thanks !! How to bout using a class on your NAV link, and target them like this?

regex - Why do match() and split() produce different results? -

क्यों मैच और split अलग परिणाम उत्पन्न करते हैं? यह एक्शन स्क्रिप्ट 3.0 में है, लेकिन अगर यह एएस 3 के बाहर भी है, तो मैं जानना चाहूंगा कि इसके लिए भी यही कारण है। उदाहरण: var txt: स्ट्रिंग = "कुछ"; Var पुनः: RegExp = / (\ w {2,2}) / g; ट्रेस ("\ t txt.split =" + txt.split (पुन) + "-" + txt.split (पुनः)। लम्बाई); ट्रेस ("\ t txt.match =" + txt.match (पुनः) + "-" + txt.match (पुनः)। लम्बाई); परिणाम: txt.split =, तो, मुझे, वें, में ,, जाओ, ro, th, er , - 17 txt.match = ऐसा, मुझे, वें, में, जाना, आरओ, वें, एर - 8 संपादित करें: दिए गए शर्तों के साथ , मुझे उम्मीद है कि परिणाम एक समान सरणी (अपवाद के साथ, मेल के अजीब-लम्बाई स्ट्रिंग्स के लिए अंतिम प्रविष्टि नहीं ढूंढने के मामले में) हो सकते हैं। split में अतिरिक्त प्रविष्टियां क्यों हैं? मिलान खोजने के लिए split क्या "सही" हो रहा है? विभाजित किसी स्ट्रिंग को किसी अन्य स्ट्रिंग से या एक नियमित अभिव्यक्ति से विभाजित करता है, किसी भी कोष्ठक समूह को...

google apps script - How to know which Radio Button is selected? -

I have 3 radio buttons in the same radio group on my radio. They are, Var rbutton1 = app.createRadioButton ('dist', '5 miles'); Var rbutton2 = app.createRadioButton ('dist', '10 miles'); Var rbutton3 = app.createRadioButton ('dist', '25 miles'); Event handler function, variable, e.parameter.dist returns the right or wrong bus rbutton3 (last radio button) based on whether the check is done or not. Is there any way to decide whether the radio button is actually selected? After the The same way the radio button groups work like this (as desired by the design) In the FormPanel (in your case "district"), a verb entry of the form is by using a doPost and seeing name. However, using some client operators, which use the radio buttons on any panel, are almost identical in the same way. Please see on tracker You can also like this issue to keep track of updates and to keep track of such votes. Star

- Where Developers Learn, Share, & Build Careers

I have 2 problems: In my ANTLR parser, I have this light rule: Message: msg_content (COMMA msg_content) * - & gt; ^ (MSG_CTS msg_content +); In my grammar tree, how can I use the collected msg_content tokens? $ Msg_content.text is returning a blank exception. More generally, can you please provide me some guidelines, how can I use my zested AST tree? I basically want to walk on nodes and create Java classes for different things like I have this simple tree that prints: (MSG (agent) For some Java class "agent" I have fields with "A", "B" and some content fields, which are X, Y I have seen: "Interfacing AST with Java" and "Expression Evaluator" from the ANLR Online Manual, but I do not get enough to implement them for my problem if you can provide a simple example. If so, it would be very useful! Please help ... Thanks! View all the included rules and code It is impossible to leave without comment. IME...

vb.net - Set Nullable property default value to Nothing not working as desired -

मेरे पास एक संपत्ति है जो कि Nullable का पूर्णांक एक डिफ़ॉल्ट है मान कुछ भी नहीं जैसा नीचे दिखाया गया है: पूर्णांक के रूप में संपत्ति परीक्षण आईडी? = कुछ भी नहीं निम्नलिखित कोड गुणांक का मूल्यांकन करता है, कुछ करने के लिए TestId (वांछित) रेडट्रीनोड के रूप में मंद परीक्षा = rtvDefinitionCreate.FindNodeByValue (DefinitionHeaderEnum.Test) यदि परीक्षण कुछ भी नहीं तो परिभाषा है। टेस्टआईडी = कुछ और परिभाषा नहीं। TestId = test.Nodes (0)। मूल्य समाप्ति यदि लेकिन नीचे दिए गए कोड का मूल्यांकन 0 ( पूर्णांक के लिए डिफ़ॉल्ट मान , जब भी पूर्णांक है डिफ़ॉल्ट मान कुछ भी नहीं ) मंद परीक्षण के रूप में RadTreeNode = rtvDefinitionCreate.FindNodeByValue (DefinitionHeaderEnum। टेस्ट) definition.TestId = यदि (कोई भी परीक्षण नहीं), कुछ नहीं, test.Nodes (0)। मूल्य) उपरोक्त कोड में क्या गलत है? कोई भी सहायता ?? (बाद में कोड में संपत्ति कॉल करते समय, संपत्ति में 0 है) यह 'क्योंकि आप विकल्प सख्त बंद के साथ कोड संकलित कर रहे हैं। यदि आप अपना कोड विकल्प सख्त ऑन से सं...

python - print a list and group it by a certain mapping -

Hi what I'm trying to do is say that there An order list is the word list = ["ACC", "Ashley", "Book", "Channel", "Charlie", "David", "Eli," George "Zebra" "] How can I print it If there is one variable then it will be printed without brackets or quatations If there is more then for an example, it is a bracket based on a dictionary Will be grouped with hence starting with 1 mapped letters All words will be classified into brackets and further Therefore, the desired output of the above list is just [one, Ashley, book, channel, Charlie] [David, Eli] George Zebra should do some work with these lines

PHP PDO::lastInsertId() and ATTR_PERSISTENT -

I have almost one question. Based on that post, I know that PDO :: The last InsertID () is called when a separate connection is safe. However, what does this mean by PDO :: ATTR_PERSISTENT = & gt; Should the correct should be not in the PDO constructor if you want to use PDO :: Previous Industry () during that connection? In other words, if I use PDO :: lastInsertId (), my application "documents every time a script needs to talk to a database" as "a new one Connection is forced to bear on top of the setting. No matter Who will use the same connection after the work of your php script. That you will have the last entered ID that is done by it, and not another connection. So do not hesitate to experiment with this both continuous and continuous connections.

C# WebBrowser control - creating and modifying a javascript variable using DOM then reading it using Applet -

I need to have a communication process between the Java applet and the HTML page of the C # Web browser control I and I will call it the html page I want to do without refreshing. I know that I can communicate using applet parameter with applet, but in that case I have to refresh the applet page to get the parameters to be updated. I can also use cookies, but I do not want to send all those unnecessary cookies to the server for each request. So I was wondering if there is a way to use the DOM using the ARP variable of Java and then read it with the applet. But I do not know whether it is possible or maybe there are other ways to do this. Any suggestions would be highly appreciated. Thanks You can get this by injection in the Webrowser control HTML code DocumentText property string HTML code = " gt> gt; & lt; / head & gt; Lt; body & gt; "; Html code = "& lt; applet code =" example "square" width = "350" height...

c# - Membership.GetNumberOfUsersOnline() does not return correct values -

I have to basically limit the number of users logged into my application. What I am doing membership.GetNumberOfUsersOnline () I am getting the number of logged users confirming a new user, I want to restrict the number of online users. I am Membership GETNumberOfUsersOnline () When a new user logs in correctly, the problem occurs when a user exceeds the value of the subscription. GETNumberOfUsersOnline () does not automatically reduce I searched on MSDN and found that this method checks the time of end user activity, which does not support signout events. What is the other way in membership providers to restrict the number of users? I am using Silverlight and REST services. I am using membership. GETNumberOfUsersOnline () on the server side. Thanx in advance. Add a new column named status to your users table in the data base. That condition is the data type of column bit (1/0). Check every 15 minutes Users do not have any numbers online Use a timer in the code...

How to integrate the GWT command pattern with spring -

I have a project where I am using the GWT command pattern to apply RPC. How can I integrate GWT with Spring? Without spring I am able to get RPC. But here I have to use Spring Dependency injection for the GWT server side package. I am unable to find the appropriate sample or link to implement it. Without command pattern, I am able to integrate spring with GWT by referring to the following link Thanks , If you are using it, you can use it to use this trick. Instead of working with spring I have not seen them for a while - not sure what extent they are being made - please do not use them Please check before taking Hny.

solr - Returning only specific rows (eg. every 10th: #1, #11, #21...) from query -

I need to bring only specific ones (like "inline rows") from the Solar Index. For example, if the full results are in 10000 rows, then I want to get only the first and last line of every 100 items bucket. Item 1 and 100 items 101 and 200 items 201 and 300 ... This group is dynamic and depends on the number of results. Therefore, if there are only 5000 total result rows, the bucket size is 50 instead of 100. I can calculate the actual indexes, but the problem is how they can be brought from solar. No index can be used directly as query parameters. In practice, I am doing a search "starting with the name" (or some other letter) and I want to get the first item starting from A, starting from A, starting from A, 101 Th item ... The query parameters are "rows" and "start" but these items can not be skipped, so I will need to get each item with a different query which is disabled. I was also thinking about implementing a filter query which ...

javascript - D3 will not load Tree Map -

I am trying to display and display a tree map to use D3 with a JSO file . Very easy, just trying to get D3 trying to enjoy. However, I put both my tree.js together and after running the script, I get a blank page. The console says that can not load the XMLHttpRequest file: ///Users/aczre/Desktop/d3TestApp/shreleases.json cross original requests are only supported for HTTP not come into consideration Writing Error: 6081 d3_layout_hierarchyChildren d3.v2.js: 6081 recurse d3.v2.js: 5990 hierarchy d3.v2.js: 6033 tree d3.v2.js: 6384 'children' of property null d3.v2.js can not be read Object.nodes d3.v2.js: 6074 (anonymous function) tree.js: 17 d3.json d3.v2.js: 514 ready d3.v2.js: 504 d3.xhr.req.onreadystatechange d3.v2.js : 497 d3.xhr d3.v2.js: 500 d3.text d3.v2.js: 510 d3.json d3.v2.js: 513 (anonymous function) tree.js: 16 Uncaught Error: NETWORK_ERR: XMLHttpRequest Apava 101 d3. V2.js: 500 d3.xhr d3.v2.js: 500 d3.text d3.v2.js: 510 d3.json d3.v2.js: 513 (anonymous funct...

javascript - CSS webkit overflow hidden and HTML element height -

test2.html अपेक्षित व्यवहार है हालांकि, यह test.html सीएसएस निकाय {अतिप्रवाह: छिपी हुई}} लागू नहीं करता है। बाद में वेककिट को ओवरस्क्रोलिंग से रोकने के लिए आवश्यक है। मूलतः, मुझे डॉम चौड़ाई और ऊंचाई में एक तत्व के साथ वेबकीट ओवरस्क्रोलिंग अक्षम के साथ एक पृष्ठ की आवश्यकता है 100% (100% अर्थ विंडो आकार) और अतिप्रवाह- y: स्क्रॉल । एकमात्र समाधान जो मैं समझता हूं कि जावास्क्रिप्ट का उपयोग करने के लिए निश्चित ऊंचाई को या लपेटन तत्व को देना है। हालांकि, अधिमानतः मैं ऐसे समाधान की तलाश कर रहा हूं जो JS शामिल नहीं करता है। आपको ऊँचाई: 100%; पर html और body अन्यथा वे दृश्य विंडो आकार की तुलना में अधिक बड़ा हो जाएगा। डेमो: html, body {height: 100%; }

sql server - multiple count in a sql query -

I need a report from a database where I need an end result, such as men, women, against city In the end I started with something like the state against the show. SELECT p.StateName, d.CityName, as the API at API Inner Join DB.State P as dbo.Application_Personal_information (APJender). State = PIID Inner Join Dabo CT D on API.City = DT Group by P.T.T.NET, DCT when I do this SELECT p.StateName, d.CityName, count (api.Gender = 'Male) as male, count (api.Gender =' female) as female, dbo.Application_Personal_information as api INNER join dbo.state as p But api.state = p.ID inner jiO dbo.City D on api.City = D.ID Group P. In the form of STATEName, d.CityName this gives me an error in the wrong syntax = pass I also select statement COUNT (select API from API) where As the man's API Gender = 'male'), but but this is not working ... any thoughts? SELECT p.StateName, d.CityName, sum (case when gender = 'male' Then 1 and 0 in the form of a m...

how can we store a html page into sqlite in blackberry on memory card / phone memory? -

The code below specifies how we can create HTN connections in BlackBerry and how to store HTML pages as a string Are you I am doing this, but I am able to get that http request, but when I get the response, i.e. http_ok ​​is not correct, then I have a string of oh html I can save it and I can store it in sqlite. LabelField = New LabelField ("Create SQLite Database Sample", LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH); SetTitle (title); Add (New RichTextField ("Creating a Database.")); Argurg = "https://www.google.com:80"; Try {ConnDesc = connFact.getConnection (argURL); If (connDesc! = Null) {httpConn = (HttpConnection) connDesc.getConnection (); // // Send data to this connection // httpConn.setRequestMethod (HttpConnection.GET); // // server response stringbuffer strBuffer = new stringbuffer (); InStream = httpConn.openInstreamStream (); Int chr; Int retResponseCode = httpConn.getResponseCode (); If (rate response code ==HttpConnection.http_ok)...

How Can I build a C++ class in Php Extension? -

I am trying to wrap the c ++ class in a php extension. Using this link, and I Also have created a module for the php extension. After this I have to compile the C ++ class in a PHP extension. How can i do this ??? I recommend that you read what is also referred to in besides The PHP documentation has one.

PHP - split an array based on missing keys -

तो यहां मेरा कोड है: Array ([0] = & gt; 0 [1 ] = & Gt; 1 [2] = & gt; 2 [3] = & gt; 3 [4] = & gt; 4 [5] = & gt; 5 [6] = & gt; 6 [7] = & gt; 7 [8] = & Gt; 8 [23] = & gt; 23 [24] = & gt; 24) यह कुछ चाबियाँ गुम है और मैं उन दो पंक्तियों के आधार पर इस सरणी को दो में विभाजित करना चाहता हूं और फिर उन दो सरणियों से उच्चतम और निम्न कुंजी प्रदर्शित करें ... EX: 0-8 & amp; 23-24 सहायता! यह कोड आपकी समस्याओं का हल हो सकता है: $ arr = सरणी ("1" = & gt; "1", "2" = & gt; "2", "4" = & gt; "4", "5" = & gt; "5", "8" = & gt; "8 "9", "10" = & gt; "10", "11" = & gt; "11", "12" = & gt; "12", "16" = & gt; "16 "); $ Arr_result = array (); $ Arr_keys = array_keys ($ arr); $ Start = intval ($ arr_keys [0]); $ End = intval ($...

ajax - Transferring listbox options values to the server -

I have a form, in which 2 list-boxes are between the other input fields, when I click on a button Choice of items from one list box to another (left-right or vice-contrast) content (list option in the list box) Now I need the contents of both listboxes on the server. Submit on the form, I can only move the selected value to the Listbox server, not all the options. So I have 2 options: On the click event of a button that transfers content from left to right, I am sending content on the server by calling an Ajax. Before submitting the form, I place all the values ​​in the listbox in a hidden field so that the form is stored on the form, I can access it on the server Which of these is better for my situation ?? Edit: The defect of implementing the first method is that whenever the user transfers the listbox A to B, the server's journey will be created through Ajax You can ask the listbox source again to get other methods / Div>

php - Getting correct JSON format -

So I'm trying to create a JSON object about which I should have some information about some questions Is a pseudo code that I want to present: {"page": 1, "info": {"id": 1, "type": 3, "description": " {"Id": 1, "description": "dunno"} {"id": 2, "description" id ": 3," description ":" I want to show you I'm refusing "}}" id ": 2," Type ": 1," Description ":" Do you want it? The brief? "," Option ": {" id ": 1," description ":" yes "} {" id ": 2," description ":" no "}}} The code below Nightmare (one of the answers), and what I want to do with this page and questions, but I do not know how to connect the options of each question. You can see a snippet given, where I have tried, but it is not spelled correctly and I'm stopping it...

css - div container larger than image inside -

Image
इस सवाल का पहले से ही एक उत्तर है: 5 जवाब एक बार फिर से आप उम्मीद कर सकते थे मेरी मदद करो। मैं सीएसएस पर एक नौसिखिया हूँ और कुछ सरल बनाने की कोशिश कर रहा हूं, लेकिन यह भी आसान है कि वास्तव में मुश्किल हो। (।) इस समस्या के लिए अब एक घंटे की तरह। > किसी भी तरह से मेरे पास अभी समस्या यह है कि मेरे पास एक ऐसी डिवीज़ है जिसमें एक इमेज है, लेकिन डिवेल में नीचे 5px स्पेस की तरह अतिरिक्त है जो मुझे पता नहीं लगा सकता कि कैसे निकालना है। मूलतः यह है कि मेरे पास क्या है जैसा कि आप देख सकते हैं कि छवि के नीचे थोड़ा "सफेद" स्थान है। यह वही है जो मैं चाहता हूँ (रंग का उपयोग करके संपादित) मूल रूप से मेरे पास शरीर के लिए एक ग्रे पृष्ठभूमि है, 70% की चौड़ाई वाली आवरण के साथ, आवरण के अंदर एक मेनू है (छोटी लाल चीज़ उस मेनू का हिस्सा है), फिर वहाँ एक div (आईडी = कंटेनर) है जो पृष्ठभूमि की पृष्ठभूमि है, चौड़ाई 142.8571% है, और बायीं 15% है, ताकि यह पूरे पृष्ठ को कवर कर सके। एचटीएमएल के लिए यह मेरा कोड है : & lt; div id = "कंटेनर" & gt; ...

- Where Developers Learn, Share, & Build Careers

Is there a way to create a process with wmic on a local host as a local user? wmic / node: localhost / user: user processes call "CMD" I know that I can use Rana, but I'm curious if this is possible. What could be the global switch? (/ ROLE, / IMPLEVEL, / AUTHLEVEL, / AGGREGATE / AUTHORITY). Or are some configurations changing? At the moment I get this error: Error: Description = User credentials can not be used for local links Edit: is that I have found for such cases WMI engine does not use credentials Due to being connected locally, the WMIC will not be either. RunAs is your best bet.

java - Saxon: Cannot call static method expecting String with xs:string parameter from XSLT -

I am trying to call a static Java method from my XSLT stylesheet: & lt; ? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xsl: stylesheet version = "2.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" xmlns: digest = "java: org.apache.commons.codec.digest.DigestUtils" & gt; ; & Lt; Xsl: output method = "xml" encoding = "UTF-8" indent = "yes" /> & Lt; Xsl: template match = "user" & gt; & Lt; Users & gt; & Lt; Firstname & gt; & Lt; Xsl: Select value = "value [@ type = 'first name'] [/ 1]" /> & Lt; / Firstname & gt; & Lt; Lastname & gt; & Lt; Xsl: Select value = "value [@ type = 'name'] [1]" /> & lt; / Lastname & gt; & Lt; Password & gt; & Lt; Xsl: variable name = "password" = "string (value [@ type = 'password'] [1])" /> ...

- Where Developers Learn, Share, & Build Careers

How to display my price ( 200,000 in 2 million, 20000000 => 2 million ) MySQL now needs to display this value as 200000 350000 2000000 20000000 2 / 2.00 lakh 3.5 lakh 20/20 lakhs 2/200 million Possible duplicate question Thank you. I agree with Rob Eger. I do not believe in your data, but such a thing is for the custom modifier function smarty_modifier_indian_currency ($ value) {if ($ value> 100000) {$ lacs = $ price / 100000; Returns $ 1.1 million ($ 100 million & lt; 100) ' lakh '; $ Crores = Floor ($ Million / 100); $ Lac = $ lac - ($ 100 * 100); If ($ lac == 0) returns $ 10 million 'Crore'; Return $ 100 million '/'. $ Million 'Crore'; } Return value $; }

- Where Developers Learn, Share, & Build Careers

I am using x264 to encrypt raw data captured with an iPhone camera. But the encoding is too slow is. Anybody can help me speed up the encoding speed. I used x264 lib: // armv6 cc = / developer / platform / iPhoneOS to use the following settings. Platamate / Developer / USR / Bin / GCC / Configure - host = Arm-Sep-Darwin - Serial = / Developer / Platforms / iPhoneOS Platform / Developer / SDK / iPhoneOSOS 4.3 SDK - prefix = 'dist' - accera-seflags = '- Command with armv6' --extra-ldflags = -L / Developer / Platforms / iPhoneOS Platform / Developer / SDK / iPhoneOSOS 4.3 SDK / USR / Lib / System / - Extra-LD Flag = '- Command-armv6' --enable-pic --disable-asm // for armv7 cc = / developer / platform / iPhoneOS.platform / developer / usr / bin / gcc ./configure --host = arm-apple-darwin --sysroot = / developer / platform / iPhoneOS.platform / developer / SDKs / iPhoneOS4.3.sdk --prefix = 'dist' --extra-cflags = '-arch armv7' --extra-ld...

Java Swing / JPA / Oracle inserting twice -

Maybe a newbie java ... but here it is. Using JPA to call INSERT stored procedure in an Oracle 11g database, everything works fine in the case of receiving data in the DB table I have wrapped the JPA code in the Java Swing application. The problem is that the data gets stored in some way or in some other form twice. I have a joypaypanpan.shows mezeidiog shows when I submit data only shows it once. But when I ask the table, there are two entries in the table. Here is my code .... Button Code Jebton BTsSubmit = New PayButton ("Submit"); BtnSubmit.addActionListener (New Exhibitist) {Public Zero Action Perfid (ActionAgeRGET) {AddNewCustomer ();}}); BtnSubmit.setBounds (24, 341, 91, 23); Add frmNewCustomer.getContentPane () (btnSubmit) .; Action Methods Public Zero AddNewCustomer () {Customer. AddCustomer (this.txtFirstName.getText (), it.txtLastName.getText (), this.txtAddress.getText (), this.txtCity.getText (), this.txtState.getText (), this.txtEmail.getT...

c++ - How to disable external warnings in Qt for Symbian? -

संक्षिप्त प्रश्न: क्या #pragma चेतावनी (पुश, 0 के बराबर है) ) और #pragma चेतावनी (पॉप) ? लंबा सवाल : इसमें चेतावनियों को अक्षम करने का एक "साफ" तरीका शामिल है सिम्बियन एसडीके जब सिबियन प्रोजेक्ट्स क्यूटी क्रिएटर में बनाते हैं? बड़े, गंभीर परियोजनाओं का उल्लेख नहीं करने के लिए, उनमें से बहुत से एक छोटा हैलो वर्ल्ड प्रोजेक्ट का परिणाम भी। मैंने एसडीके को पैचिंग के बारे में सुना है और यही वह है जो मैं बचने का प्रयास कर रहा हूं - यह एक के लिए अच्छा हो सकता है - डेवलपर, एक एसडीके परियोजना, लेकिन मेरे मामले में डेवलपर्स की एक टीम है, कई सिम्बियन प्लेटफार्मों के लिए प्रत्येक कोडिंग। डेस्कटॉप ऐप में हम लिपटे करते थे, इसमें बाहरी हेडर का उल्लेख किया गया है # Pragma चेतावनी (पुश, 0) और #pragma चेतावनी (पॉप) , लेकिन मुझे जीसीसी में कुछ समान नहीं मिल सकता है।

- Where Developers Learn, Share, & Build Careers

I'm trying to add automatic breakpoints using Chrome extensions Special script id I'm looking for then I add a breakpoint to the same place in the search result The code I use: chrome.debugger .sendCommand (debuggeeId, "Debugger. SearchInContent", {scriptId: scriptId, Query: "function"}, function (result) {for result (x result) {var lineNumber = result.result [x] LineNumber + 1; chrome.debugger.sendCommand (debuggeeId, "Debugger. SetbackPoint", {location: {scriptId: scriptId, lineNumber: lineNumber}});}}); In all, I'm getting a breakpoint in the wrong places, I do not even know where the breakpoint is, but it does not stop at the right line to make sure ... / P> What do I do?

- Where Developers Learn, Share, & Build Careers

"After the text" itemprop = "text"> I have the following hierarchy Season 1 Farm 1 Field a tree with 1 Field-Scene 2 Crop 1 Crop 2 Farm 2 Field 1 field 2 crop 1 crop 2 to display a GridView data using against treeview node selected value.I SQLDataSource show data in gridview with the following code and query as dim cmd OleDbCommand = new OleDbCommand () TreeView1.SelectedNode.Depth = 0 then select the SqlDataSource1.SelectCommand = ( "V_FARMS * where SSN_id = '' if & amp; TreeView1.SelectedNode. price & Amp; " '") elseif TreeView1.SelectedNode.Depth = 1 then choose SqlDataSource1.SelectCommand = ( "V_FARMS * where FRM_id =' '& amp; TreeView1.SelectedNode.Value & amp;"' ") elseif TreeView1.SelectedNode .Depth = 2 then SqlDataSource1.SelectCommand = ( "Choose V_FARMS where FLD_id = '" & amp; & Tree View 1. selected node. value and amp; "'") Elesef...

- Where Developers Learn, Share, & Build Careers

Then I have this current bit code that is fully compiled in Visual Studio 2005, even though when the target platform is 32 bit , It does not work in 64 bit. I do not understand why; In fact I've never seen a pointer before, is it the right C ++? # real-time real-time * point typed; Point * ptari; // (So this is basically double ** ptary?) Long arylen = (long) ptary [0]; Thanks in advance, it seems to work on 32 bit systems because both signal and long are 32 bit wide I fail to work on 64 bit systems, because the indicators 64 Bits are wide, but long (maybe) still only 32 bit wide. You can easily sizeof (double *) and sizeof (long) . My guess is that the 64 bit system will produce 8 and 4, respectively. If you need an integer type that is capable of keeping an indicator, then use intptr_t & lt; Stdint.h & gt; to

unable to send from javascript to php -

I am creating a dynamic form I am using the following javascript var Labels = []; Function add (type) {var element = document.createElement ("input"); Var label = prompt ("Enter name for label", "label"); Labels.push (label); warning label); Document.getElementById ('raj') innerHTML = document.getElementById ('raj') innerHTML + label .. Element.setAttribute ("type", type); Var Rohit = document.getElementById ("Raj"); Rohit.appendChild (element); Document.getElementById ('raj') innerHTML = document.getElementById ('raj') innerHTML + " " .. } Function add1 (type) {var element = document.createElement ("input"); Var label = prompt ("Enter name for label", "label"); Document.getElementById ('Secrets'). InnerHTML = document.getElementById ('raj'). InnerHTML + label + "::"; Element.setAttribute ("type", type); Var no = prompt (...

- Where Developers Learn, Share, & Build Careers

A php file (e.g. example.php) should write something in another file (say alma.txt). If example.php cron is run through the job, then everything is fine, but when I call it through the browser, it does not write alma.txt. Cron job runs a cron job under the owner of the crontab file that configures. Why? When you run your PHP with a Crown Daemon, Is executing the command. When you run your php script through the browser, this script has been executed by the user in the Web server that started the Apache process. For example, Ubuntu has a www-data user. This file looks like a permission problem. Just allow the file alma.txt to make sure. chmod 777 alma.txt and try again, if everything was okay, then there was a permission issue, and for the file I Suggesting setting correct permissions Probably add the www-data to the group in the file and give it to 775.

python - Check if widget exist(Tkinter) -

I want to check that before I delete it, any widgets (such as a rectangle drawn on the canvas) exist is. Here's my problem: I have two ways, which remove the rectangular I using a bind is connected to the button -1 (when it is clicked it rectangles ) And the second method removes a rectangle, if it is not clicked on a specific time ( Widget.after ). I would like to check whether the rectangle exists in the second method because I want to count the rectangle which was not clicked and the way I can think it has already been removed or not. Is there any way of doing it? Of course, I can set a variable inside the button-1 event handler and see it in another way. But just wanted to know that if tunicator provides a method like "item existence" Edit: OK, I just got a move if I got itemconfig on deleted widget , I get empty set. I use that value to see if any widget has already been removed or not. I'm not sure that this is a great way to do it though. I th...

sql - Distinctly sum a column on a joined table? -

This is a common problem, and I'm not sure if here's the problem here: = & Gt; Explanation: A ticket falls under one attendance There is a revenue receipt Get the total revenue by section and need. This double is present in the calculation because 2 tickets can be related to that same presence, thus in double counting I want to get the sum of revenue, but only want to count the attendees once. In my SQLFlash example, I want to see: section | Total_re venue ------------------------ a. 40 & lt; = 40 is correct, but I'm getting 50 ... b. Zero C | 40 I want to solve it without the use of sub-queries. I need a scalable solution that gives me the same query in different columns on different columns Will allow this to happen. So whichever one allows me to accomplish this, I am open to suggestions. Thank you for your help. here row_number () : Select section is a version using zodiac (revenue) t. Selection, A.View, Row_Number (), (AA...

sql - how to get full outer join in left and right join order -

कृपया नीचे दी गई स्क्रिप्ट देखें declare @ table1 तालिका (col1 int) घोषित करें @ टेबल 2 @ टेबल 1 मान (2) में @ टेबल 1 मान (3) डालें @ table1 मानों (5) में डालें @ टेबल 1 मूल्यों में सम्मिलित करें (7) @ टेबल 2 मानों में डालें @ टेबल 2 मूल्यों में डालें (2) @ टेबल 2 मूल्यों में डालें (2) @ टेबल 2 मानों में डालें (2) @ टेबल 2 मानों में डालें (6) @ टेबल 2 मानों में सम्मिलित करें (4) @ टेबल 2 मानों में डालें (7) मामला 1: चुनें @ से तालिका 1 बाएं बाहरी जुड़ें @ टेबल 2 बी पर a.col1 = b.col2 आदेश col1 परिणाम 1: col1 col2 ----------- ----------- | 1 | 1 | | 2 | नल | | 3 | 3 | | 3 | 3 | | 5 | नल | | 7 | 7 | --------------------------- केस 2: तालिका 2 से दाएं बाहरी सहभागी @ टेबल 2 बी पर कॉल करें। परिणाम 2: col1 col2 ----------- ----------- | 1 | 1 | | 3 | 3 | | 3 | 3 | | नल | 4 | | नल | 6 | | 7 | 7 | --------------------------- वास्तविक केस: तालिका 1 से एक पूर्ण बाहरी जोड़ने @ तालिका 2 बी पर a.col1 = b.col2 चुनें> वास्तविक परिणाम: col1 col2 --- चुनें --...

- Where Developers Learn, Share, & Build Careers

I'm going to update a section of html after a click event. But I do not want to render the whole page again ... my code looks like this; & lt; Div & gt; I do not want to re-render the other page's contents / lieutenant; / Div & gt; & Lt; Div & gt; & Lt; Span id = "update thisSection" & gt; {{Data}} & lt; / Span & gt; & Lt; Div & gt; I want to update the data within that period after a click event linkClicked: function (e) {// at the end of the update Update the data} You can always use it completely through the element or You can adjust just the parts you need: this. $ ('# UpdateThisSection') Html ('some new stuff.'); If you have a simple & lt; Span & gt; , you want to add a separate subsection for that part of that scene, you will tie the sub-view of the render to the appropriate change event.

Spotify API returning error on models.Search call for Artist "!!!" -

In our Spatial APP we are calling the model. Search function so that we can validate the list of 100 artists. The problem is that we are one of the artists who can be valid, "maybe !!!" This is the name of a real artist, though it returns back to Spotify and there is an empty list for error codes and valid artist names. We can validate the names of the artist in the app one by one and therefore handle the error code, though this will make the app a lot slower. Is this a bug in the API? Is Spotify going to fix it soon? Here's an example of what we are calling: var search = new model Search ("Artist:" Mother Love Bone "or Artist:" Hole "or Artist:" Soundgarden "or Artist:" Stone Temple Pilots "or Artist:" Blind Mellon "or Artist:" Silver Scher "or Artist:" Alice in Chains "Artist": "Throwing Moses" or Artist: "Frank Black" or artist: "Bush" or artist: "N...

- Where Developers Learn, Share, & Build Careers

I am trying to get a PHP application based on the Kohana framework working on a Linux server. There is a problem in my .htaccess or application (not yet known) which is blocking the use of beautiful URLs. When I was debugging, I found it in my $ _ server array: print_r ($ _ SERVER); ... [REDIRECT_KOHANA_ENV] = & gt; Output ... In my .htaccess file, there is only one line to set the environment variable: set envine kohna_nv production And I'm also making a redirection: revised rule ^ (fr | en) / (this | he) /? ([^ /] *) $ / Indix.fpp / $ 1 / he / [nc, ksa, l] Does anyone know how it is REDIRECT_KOHANA_ENV code? Is this something $ _ SERVER ['REDIRECT_REMOTE_USER'] ? It seems that this is something in your htaccess it is due to some rewrite on HTX There are some details on the description and REDIRECT _ constants in $ _ server :

ios - Dimming the LED for iPhone 5 flashlight app in xCode -

I want to dim the torch LED with a slider option; I know Apple supports it for iOS 6 Yes, though, I'm not really sure which code to use. Here is the code that is currently in .m file. - (IBAction) torchon: (ID) sender; {OnButton.hidden = Yes; OffButton.hidden = NO; OnView.hidden = NO; OffView.hidden = Yes; AVCaptureDevice * flashlight = [AVCaptureDevice default DeviceWithMediaType: AVMediaTypeVideo]; If ([Flash LightTrue is Available] & amp; [Flash LightSchmod Support is Supported: AVCaptureTorchModeOn]) {BOOL Success = [Flash Lot LockFor Configuration: Zero]; If (success) {[Flash Light Settorchmod: A Weekptuartchmod On]; [Flash UnlockFor configuration]; }}} - (IBAction) torchOff: (ID) sender; {OnButton.hidden = NO; OffButton.hidden = Yes; OnView.hidden = Yes; OffView.hidden = No; AVCaptureDevice * flashlight = [AVCaptureDevice default DeviceWithMediaType: AVMediaTypeVideo]; If ([Flash LightTrue is Available] & amp; [Flash LightSchmod Support is Supported: AVCaptureT...

titanium - iPad - AG.Calendar doesn't go full width -

version used: 1.2.3 I have my tiapp.xml: ag.calendar here This is a link to look at: I've ensured that there is no real stable width set. The strange thing is that the calendar is starting to go full width, but not quite. The top part of the calendar and the footer section is not just going to the full width. I used to link to the module used: Replace the line 196 with: CGRact recessed = CGRactam (0, 0, window RX.Width, WindowWrite) .size.height); // CGRCact Rack = CGRactMake (0, 0, minute (popoverrise.width, windowsrequate sequence.With), min (popoverrcod.yes.ite, windowsautactsquiz.height));

c# - How can I load list of child elements from XML? -

I have to list the titles in each inquiry below, I am only inquired, but it is not a list of list rows. XElement myElement = XElement.Load ("Inquiries.xml"); Select var query = in MyElement.Elements ("Inquiry"). Select the new {InquiryId = (int) s.Element ("InquiryId"), first name = (string) s.Element ("FirstName"), LastName = (string). Element ("last name"), from LineEtems = myElement.Elements ("Inquiry"). Element ("LineItems") Select new {quantity = (int) l.Attribute ("volume"), PartNumber = (string) L. Attribution ("Partnumber")}}; Var Results = Query.toList (); XML: & lt; Inquiries & gt; & Lt; Inquiries & gt; & Lt; InquiryId & gt; 0 & lt; / InquiryId & gt; & Lt; FirstName & gt; John & lt; / First name & gt; & Lt; Last name & gt; Smith & lt; / Last name & gt; & Lt; Line items & gt; & Lt; LineItem Volume = ...

- Where Developers Learn, Share, & Build Careers

When executing ldd on a file, it returns a hex number in parentheses and it Every library found. For example: root @ server & gt; Ldd wpa_supplicant linux-gate.so.1 = & gt; (0xb779b000) libnl.so.1 = & gt; /usr/lib/libnl.so.1 (0xb774d000) libssl.so.1.0.0 = & gt; Not Found libcrypto.so.1.0.0 = & gt; Not Found libdl.so.2 = & gt; /lib/i686/cmov/libdl.so.2 (0xb7748000) libc.so.6 = & gt; /lib/i686/cmov/libc.so.6 (0xb75ed000) libm.so.6 = & gt; /lib/i686/cmov/libm.so.6 (0xb75c7000) /lib/ld-linux.so.2 (0xb779c000) If the hex number is not one of the libraries Where does this value arise? How do I find out that hex is looking for value executable? (I.e. this is basically related) Hexadecimal numbers are related to memory address Look for further explanations in the library, it loads.

objective c - Accessing my malloc'd 2d array with [x][y] -

I used a member variable to define a 2D array limit instead of #defines to update a class I was doing this: #define kWidth3 #define kHeight 100 NSUInteger field [kWidth] [kHeight]; There are now wythth and KHite Eyes. I switch to the malloc conference, because I do not see any other option because the limit can now change The problem is that I have two [] ([] []) Can not reach the array. See my inline comment I'm sure I have correctly malloc'd I have done many times earlier and under iOS. Why can not I reach this way? self.kFieldsHeight = 100; Self.kFieldsWidth = 3; NSUntegaeer ** Field = (NSUNTEER **) Molok (Siezf (NSUNTEGER) * Self. Keffield Hight * Self. KeffieldSwidth); Memet (Field, 0x FF, Self Keffieldswidth * Self. KeffieldSite * Siezf (NSUNTEGER)); Now with the ////LLDB, I can see the array in one dimension // p field [0] / 0xFFFFFFFF // p field [29] / 0xFFFFFFFF // p field [300] / / 0xGARBAGE //// "Failed with error: The straight can not be demateria...

- Where Developers Learn, Share, & Build Careers

I'm using to close the Github game, and I'm having some trouble with the animation for the first time when I I started the animation (when I initialize the player unit in the main scene) then it works. But when I set the animation through the component of my custom control, it only plays the first frame of the animation. I believe the problem is in the custom controllables component, so here is the code for it: If you want to clone it and check it is all code: If someone knows what the problem might be, please tell me thank you! Edit: Everything is stripped except for the movement and what the animation should be: here var SPRITE_SIZE = 32; Crafty.init (); Crafty.canvas.init (); Crafty.sprite (SPRITE_SIZE, "http://i.imgur.com/9sN9V.png", {player_east_1: [0, 0], player_stest: [1, 0], player_ast_3: [2, 0], player_we_1: [ Player_south_2: [1, 2], player_south_3: [2, 2], player_north_1: [0, 1] 3], player_north_2: [1, 3], player_north_3: [2, 3]}); Crete Chest...

iphone - Removing all push notifications from list when i click on one notification -

Image
I'm applying an application that supports Apple push notifications. If I get three notifications from the Apple server, the Notification List is showing three notifications in the iPhone and if I am going to the application according to the notification of any one of them. After this I will check in the Notification List for two notifications, there was no push notification to see. Notification list no new information . And even my application is the universal app, push notification in iPhone 4 and iPhone 5 with iOS 6 is working fine but IOP 5 is not working in iPad 1 with it. Please help me Thanks in advance. This method is removed on the Application Representative when the User Notification in the tab notification center: - (BOOL) Application: (UIApplication *) Application FinishLaunchingWithOptions (NSDictionary *) launchOptions {// You can use the following methods call: // To delete the notifications in the Notification Center: Cancel [[UIApplication Shar...