Posts

Showing posts from January, 2010

group by - MySQL - Looking for Top 10 records by Month -

मैं टेबल स्ट्रक्चर के साथ प्रस्तावना करूंगा: revshare r: आदेश सहित कोई खरीद के लिए जानकारी शामिल है, बिक्री , कमीशन, मद, इवेंटडेट उत्पाद पी: में एक पीआईडी ​​(उत्पाद आईडी) सहित एक उत्पाद की जानकारी शामिल है और व्यापारिक जानकारी प्राप्त करने के लिए व्यापारियों की मेज से जुड़ने के लिए उपयोग किया जाता है। व्यापारी एम: में उस व्यापारी के बारे में जानकारी शामिल है जिसे उत्पाद से खरीदा गया था, जिसमें MerchantName भी शामिल है प्रश्न मैं शीर्ष 10 आईआईडीआईडी ​​के पुल को खींचने के लिए एक MySQL क्वेरी बनाने का प्रयास कर रहा हूं किसी दिए गए महीने के लिए आयोग की राशि के अनुसार आदेश। पूरे डेटा सेट मैं प्राप्त करना चाहते हैं 120 रिकॉर्ड (10 प्रति माह) हो जाएगी 2011-2013 तो हर साल से है। मैं 1 महीने डेटा के लिए और एक के प्रयोग पर योजना बनाई खींचने के लिए एक प्रश्न बनाया प्रत्येक क्वेरी से 10 रिकॉर्ड्स के साथ एक रिकॉर्ड्स सूची बनाने के लिए यूनियन सब (प्रत्येक व्यक्तिगत क्वेरी, जो कि शीर्ष 10 मद आईडी का प्रतिनिधित्व करती है)। Query1 यह क्वेरी सही मायने में शीर्ष 10 मद आईडी मुझे उन...

How to get day of a ruby Date Object -

इस सवाल का पहले से ही एक उत्तर है: 9 जवाब कहो मैंने एक डाटा बनाया है इस तरह ऑब्जेक्ट। semester_start_date = date.new (2013,1,15) अब मैं कैसे पा सकता हूँ अगर semester_start_date.day = = 'गुरुवार' या उस बात के लिए कोई अन्य दिन? धन्यवाद। यदि आप 1.9 का प्रयोग कर रहे हैं, तो आपको यह करने में सक्षम होना चाहिए: 'तारीख' की आवश्यकता होती है d = दिनांक। नया (2013,1, 15) d.thursday? # = & Gt; झूठी d.wday # = & gt; 2 दिनांक :: DAYNAMES [d.wday] # = & gt; "मंगलवार" d.tuesday? # = & Gt; सच है मैं मान रहा हूँ कि आप वास्तव में एक तिथि ऑब्जेक्ट की तलाश नहीं कर रहे हैं जो स्ट्रिंग "गुरुवार" के समान है

multithreading - Java MulthiThreading Equal Cards divide with 4 threads -

I am trying to learn multi-threading by implementing the code snippet. The problem is that using the four lists (13 each) to distribute the card (52) between the four lists, please suggest a better solution or improvement in the code given below. Because it is for practice on multi-threading, I have not been stressed on conferences and generic nomenclature (apology for this) import java.util .LinkedList; Import java.util.list; Public class carddivideinterfire {static final int max = 52; Static Int Val = 0; Static object ob = new object (); Fixed list list 1 = new linked list (); Fixed list list 2 = new linked list (); Fixed list list 3 = new linked list (); Fixed list list 4 = new linked list (); Public Static Zero (String [] Args) {Thread T1 = New Thread (New Runnabal) (Public Zero Free) {While (true) {If (Val> = Max) {Brake}} Sync (bull) {List1.add (++ val); System.out.println ("a & gt;" + val); Ox.notifyAll (); Try {if (val> = max) {// System.out.println...

php - issue with wordpress Fatal error: Cannot redeclare frm_dl -

I got this issue using this website wordpress I do not know what the problem is Anyone can help us, please. Fatal error: frm_dl () You think wp-settings There are duplicate function definitions of rm_dl () function in php. Please review that file so that only one definition. Posting this link is also not a good idea to ask your website and ask "please take a look". If you post specific errors (definitely without a password) with the affected files, then it is very easy and easy to help us. If nothing is wrong, the error with your file is most likely because it is some automated hack due to some newly installed or updated theme or plugin. In both cases you should work back up and make sure to update any plug-ins and base installation with security. Update.

sql server 2008 - MERGE leads to 'Subquery returned more than 1 value' error in trigger -

The trigger below is on the table and I'm using it to update. trigger This trigger will update a type ID column based on the entered or any other column ... Is bound to type on the badly prepared table ID column is a identity column. Update Statement Merge using Table 1 typing in Table 1 Table1.TypeName = TypeTable.TypeName is matched when updated SET TypeID = TypeTable.TypeID; I get an error when the trigger is enabled: Subkey returned more than 1 value when subquery = =,! =, & Lt;, & lt; =, & Gt ;, & gt; = Or when subquery is used as expression, then it is not allowed I found this post describing that the issue is that the trigger in the table is only available at the same time A record was designed for. I disabled the trigger and was able to successfully update. My question is how to write the trigger, as there is no problem on large scale updates like this. Some things: Your trigger has been assumed that all operations affe...

javascript - Using Kendo Grid How to remove the column Borders? -

I am using a Candido UI grid and by default I get a column separator line or border line. (Workbench line below column). How can you remove them? Mark-up: & lt; Div class = "grid" & gt; & Lt; H3 & gt; Current & lt; Duration class = "target-count" & gt; 15 & lt; / Span & gt; & Lt; / H3 & gt; & Lt; / Div & gt; Itemprop = "text"> Try defining the following style : .k-grid td {border-width: 0; } Note : Remember that this style is defined in KanduIi CSS, so you should define it very last.

c# - WPF How to make the background of DataGridComboBoxColumn to be the same as DataGridTextBoxColumn -

I have a DataGrid ComboX column in DataGrid. Cambodia is applied in this form to show Cambodia like blanket-box all the time (click or not) xmlns: dg = "http://schemas.microsoft.com/ Wpf / 2008 / toolkit " & lt; Dg: DataGridTemplateColumn header = "time unit" x: name = "timeUnit" & gt; & Lt; DG: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combobox selected value = "{binding relataram.time usenet}" background = "white" borderbrows = "{x: faucet}" itemsource = "{binding time unit list}" & gt; & Lt; / ComboBox & gt; & Lt; / DataTemplate & gt; & Lt; / DG: DataGridTemplateColumn.CellTemplate & gt; & Lt; / DG: DataGridTemplateColumn & gt; Now the issue is that there is an alternative background in Datagrams. I want CombBlocks in the DataGrid to use the same background as the text box column in DataGrido. Whenever datagr...

jquery - Setting dialog to modal and appending to form causes dialog box to be modal too -

The title itself is interpretive; When I add a dialog box in a form and set it as a modal, this dialog box also makes the modal. Use of jQuery UI - v1.10.0 $ ("# dialog"). Dialog ({autoOpen: incorrect, resizable: incorrect, model: true, hide: "puff", attach: "form", width: '350px'}); Any help would be greatly appreciated. This works for me. .ui-dialog {z-index: 101; }

r - Shuffle the columns of a matrix indepently using apply or plyr -

I have a matrix in R, and randomly altering rows without the need to do any loop I want to, but for each column independently Ie, a = cbind (c (1,2,3), c (4,5,6)) And I have to be a new matrix, say excitement, where columns 1c (1,2,3) and column 2c (4,5,6) randomly reshuffle. For example, asflu = cibind (c (1,3,2), c (6,4,5)) That is, in column 1, random shuffle changed the position of 2 and 3, and in column 2 a different random shuffle changed the position of 6 to 4, 4 to 5 and 5 to 6. What would be a good way to do this without requiring a loop in the ROS? Thank you! How about it? & gt; Apply (A, 2, sample)

jquery - JavaScript - Read XML Document -

I have a YouTube video ID and I want to get the video title for this ID. I have received the XML feed that contains the title, but it is uncertain how to remove it. $ Ajax ({url: 'http: // gdata .youtube.com / feeds / API / video /' + video ID). Done (function (data) {console.log (data.title); // console.log does not work (data.entry.title); / / does not work}); jQuery will not automatically convert JSON to XML for you. Just use jQuery to treat XML documents as DM trees. $ (function () {$ .ajax ({url: 'http://gdata.youtube.com/feeds/api/(video/vnUwxDhE1kU', datatype: 'XML'} ) (Function) {console.log ('done', $ (data) .find ('entry'; title '). Text ());});});

pdo - MySQL Query issue; Illegal mix of collations for operation 'like' -

I do not know what I'm doing wrong in the following questions; SELECT main.id as id, d.name as departmentName, sectionName as s.name, fullName as m.fullName, as the title of main.title, main Prior to EntryDate pre_tickets, include pre_ticketscategory as main INNER in pre_ticketscategory D on d.id = Main.mainCategory_id IN_ER as s.id = main.category_id INNER mid = main.member_id Join form, where main.softDelete = '0' and main.parent_id = '0' and main.status = '0' and ('main_id' my_query_Å ?? '%' or 'd.name' such as'% my_query_Å ?? Like '% my_query_Å ??'% 'or m.full name like'% my_query_Å? ''% 'Or' main.title 'like' sname. ' '%' Or 'main.entryDate' like '% my_query_Å ??%') by ORDER main.id LIMIT 0, 25 all 3 tables (including fields); Illegal mix of collations (including fields) for action; Error / Strong> Character set: UTF-8 Collation:...

extrapolate in R for a time-series data -

I have time-series data for the past 20 years. Variables are measured every year so I have 20 values. Close is a tab-delimited file in which the first column is represented and the second column is the value. This is what it likes: 1991 438 1992 408 1993 381 1994 361 1995 338 1996 315 1997 28 9 1998 261 1999 22 9 2000 206 2001 190 2002 173 2003 151 2004 141 2005 126 2006 108 2007 99 2008 93 2009 85 2010 77 2011 71 2012 67 I want to extrapolate the value of the second column for the coming years. The rate at which rate is decreasing in the second column is also going down, so I think we can not use linear regression. I want to know which year will the second column reach the value of zero. I have never used R, it would be great if you could also help me with code that will be used to read data from a tab-delimited file. Thanks The following is a sketch that can help you get started . ## Get Data & lt; - read.table (text = "1991 438 1992 408 1993 381 1994 361 19...

python - Comprehensions: multiple values per iteration -

Is there a way to output two (or more) items of repetition in a list / dictionary / set sense? As a simple example, to output all positive and negative doubles from 1 to 3 (that is, {x | x = ± 2n, n â ???? {1 ... 3} } ), is there a syntax similar to the following? & gt; & Gt; & Gt; [2 * i, -2 * i Category (1, 4)] [2, -2, 4, -4, 6, -6] I know that I do Can I output the touple and the level of the code (+ i, -i) , but I was wondering if there was any way to solve the problem completely to use a single understanding . At present, I is creating two lists and by adding them (which works, unless the order is not necessary): & gt; & Gt; & Gt; Range (2, 4, 6, -2, -4, -6) Nested for range (1, 4)] for +2 [i (i, 4)] in category i Another form of understanding: & gt; & Gt; & Gt; ; (2 * i, -2 * i)] [2, -2, 4, -4, 6, -6] / div>

system.reactive - Rx debouncing inputs -

I have to cancel the input stream. Wait for 5 seconds on the state's first incident 1 and see if the last state was 1. Only I have a constant sign. (time) 0-1-2-3-4-5-6-7 -8-9 (state) 0-0-0-0-0-1-0-1 -1-1-1 (Results) - & gt; 1 Here is an example of a non-static signal. (time) 0-1-2-3-4-5-6--7-8-9 (state) 0-0-0-0-0-1-0-0 -0-0 (results) - & gt; 0 I tried to use a buffer, but buffer has fixed the starting point and I need to wait 5 seconds for my first event. Really take your needs The first incident of state 1 I have to wait for 5 seconds and to confirm that the final position was also 1. Only I have a constant sign. I can come in some ways to solve this problem. To clarify my assumptions, you want to push the last value that produces 5 seconds after the first occurrence of 1. The result will be the output of the previous value, despite one or 0 or 1 (i.e. any other values. )). (10) Select. Select (i = & gt; {if (i == 5 || i == 7} I == 9) {r...

java - Error Message When Running MyBatis at the first time -

Text after "div class =" itemprop = "text"> I have a strange problem when running my application in JBoss at first: The error message is: javax.servlet.ServletException: java.lang.IllegalArgumentException: map statement collection before assuming the project.services.dao.workerDAO.getAllWorkers org.apache.struts.action.RequestProcessor.processException (RequestProcessor.java 535) Orgkapachekstrts.akshnkrekvesprosessorkprosssakshnprform (Rekvesprosessorkjawa:433) Orgkapachekstrts.akshnkrekvesprosessorkproses (Rekvesprosessorkjawa:236) Orgkapachekstrts.akshnkakshnsserwletkproses (ActionServlet Java: 1196) org.apache.struts.action.ActionServlet.doPost (ActionServlet.java:432) javax.servlet.http.HttpServlet.service (HttpServlet.java:637) Javax.servlet.http.HttpServlet.service (HttpServlet Java: 717) org.displaytag.filter.ResponseOverrideFilter.doFilter (ResponseOverrideFilter.java:125) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (R.EplyHeaderFilter....

comparison - Android SQLiteDatabase - Storing and Comparing Large Numbers -

I am trying to store a very large number which is larger than 8 bytes, INTEGER and real field type. I need to be able to return the lines in which this field contains a number which I specify is less than or greater than any other large number. I'm not sure how to do this. It seems that my only option is to store it as text, but then when I & gt; And & lt; In a question, comparison of TEXT is not equal to a numerical comparison (numbers are not the same number of numbers). I have tried to use Blob or to store my large number as a byte array, but there is no benefit. Padding numbers with zero so that they do not have the same number of digits in fact work because I do not know how big the number can be. Thanks for any help appreciated! For storage, there is only one option text or blob, so you need to give your numbers the So much so that lexicographical and numerical commands are only For unsigned numbers, you can use a mechanism similar to SQLite4. Let's ...

batch file - Placing 2 for loops inside a findstr inside another for loop -

How can a loop inside a finder 2 for loop? What do I have to do inside the loop for two loops inside a finder, am I doing the brackets correctly? I want to find var1 (%% a) inside * .map files, which will be at the end of a line if I want to capture another object (% B) on that line And call the var2 and fourth item (%% c) on that line and it is called var3 and then resonates all three variables. @echo offto / / "for strings of a string in accordance with XXApension" (marks.txt) (% var)! E "Var1!" "* .map" If the error is not level 1 (/ f "tokens = 2" delims =% =%, "%% b do (var2 =! Var2!% B set)" & amp; / F "token = 4 "dellimus =% =%," %% c (set var3 =! Var3! %% c)) echo! Var1! Echo! Var2! Echo! Var3! Choice / C X / T8 / D X & gt; Nul I am getting an error and the window closes, so I can not read it. I try to use a timer and a break, but I can not open CMD prompts. I have my issues fixed I had ...

swing - How do we actually implement the entity boundary control pattern in java? -

I am trying to create a library management system. Now, I know that the border can not interact directly with the unit. Control class acts as an intermediary between the boundary and unit classes. However, when the objects of these classes have been made? First of all, talk about login. A limit login user will be created using the Java swing. The controller class will be PersonController which contains a function called "validateUser ()" contains the information used in the unit class of the user name and access to the database. Now, I need to create UI, bring usernames; Using the action listeners, create a user contact with the username and password, followed by the user and create the user. Password, and then check the valid (user) method of the user controller for verification that the login is correct and the user is valid. How do I do this? Where can I create these objects? So far my code is: public class main class {Main menu} Static [] ElGs {Person contr...

itextsharp - Error when extracting text -

type 'iTextSharp.text.pdf.PdfLiteral' Unable to type to cast object 'iTextSharp.text.pdf .PDFNumber '. Code: StringBinder Text = New StringBuilder (); SimpleTextExtractionStrategyTraffic = New SimpleTextExtractionStrategy (); {Text.AppendLine (PdfTextExtractor.GetTextFromPage (Reader, P, Strategy)) for (; P & lt; = reader.NumberPages; integer P = 1P ++); } Reader. Stop it (); Return text. Toasting (); Only get this error with a lot of PDFFF. Any thoughts stack trace:? iTextSharp.text.pdf.parser.PdfContentStreamProcessor.ShowTextArray.Invoke (PdfContentStreamProcessor Processor, PdfLiteral Oper, List`1 Operand) but on ITextSharp.text.pdf.parser.PdfContentStreamProcessor.InvokeOperator iTextSharp. ITextSharp.text.pdf.parser.PdfContentStreamProcessor.ProcessContent (via textparty), PDF literal operation in ListBytes, on pdfDictionary resources, List `1 Operator) on text.pdf.parser. DCS Comon.pdf Functions. PDF reader content on Gatetext PDF (PDF Reader...

python - How to spawnProcess with multiple arguments in Twisted? -

I'm trying to start a process through twisted. I am parsing a JSON file with several commands in the following framework: {"key": "test", "cmd": "cat", "args": "/ Opt / Vinci / rxDaemons.json | grep cmd "," restart ": 5," auto ": 0} The command I'm trying to make is very simple; I am searching for a file for the word "CMD" (as I'm sure you can choose) I am using this process to lay eggs, as follows: CMD, RGS, UID, GID, NV = selfprocesses [name] protoz = logging protocol () proto esrosis = self-protozes. Name = name itself Protocol [name] = Proto itself Time Starred [name] = self.rector .seconds () newArgs = str (cmd) .split () + args.split () self._reactor.spawnProcess (proto, str (cmd), args = newArgs, env = env, Uid = uid, gid = gid) The response is: cat: |: There is no such file or directory cat: grep: any such file Or directory is not a cat: cmd: such a file or...

linux c sockets -

Good evening, I am a newbie using Linux sockets under the C programming language. For now I am trying to communicate with a client to a server. Basically the thing that I'm stuck on accepts the server connection to the customer and after printing numbers Prints. Here is the source code for the server so far: #include & lt; Sys / socket.h & gt; #include & lt; Netinet / in.h> # Include & lt; Arpa / inet.h & gt; # Include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Unistd.h & gt; # Include & lt; Errno.h & gt; #include & lt; String.h & gt; # Include & lt; Sys / types.h & gt; # Include & lt; Time.h> Int main (int argc, char * argv []) {int listenfd = 0, connfd = 0, n = 0; Struct sockaddr_in serv_addr; Four transmitted buff [1024], retook buff [1024]; Listenfd = socket (AF_INET, SOCK_STREAM, 0); Memos (& amp; serv_addr, '0', ss (serv_addr)); Memeset (posted buff, ...

facebook opengraph - Proper workflow for onboarding new customers via API (we're a PMD partner) -

We are actively developing our PMD advertising management tools. We have several clients who want to advertise but there are no Facebook accounts. I have two questions: (1) Can they create a proper user account for our clients? Are an API / programmatic way for which clients can login to their new Facebook account and enter the ad payment information? For example, I can imagine an open graph call like this: createFBUserAccount (f_name: "which", l_name: "Smith", email: "joesmith@gmail.com" , Isbusiness: "wrong"); or for a person createFBUserAccount (business_entity_name: "ACME Corp", email: "contact@acmecorp.com", isbusiness: "true" ); (2) For users who do not want Facebook accounts but still want to advertise on Facebook, what is the right way to create their ads? Suppose it is a business interested in buying external website advertising (or mobile app installs, or any number of other ad units). ...

php - add inline image to a message sent with swiftmailer -

Please forgive my php, but, I am using Swift Mailer to send emails from a customer website. They have requested to add an image or two as signature etc. and therefore are watching swiftmonder specs here They suggest adding an inline image like this $ message-> Message- & gt; Embed (SWIFT_IZEZ :: Separation ('http: //site.tld/image here')) Or in this way (in 2 steps) $ Cid = $ message- & gt; Embed (SWIFT_IZEZ :: Separation ('image here')); then in the Email body section Tried both the steps but it is of no avail. When I press the send email button, I get this error which I do not know what to do about it. / home / content / 78/5152878 / html / 4testing / erase / ask-doc-proc2.php on line 89 in a member function I was already working directly in code and email only one thing image code was directly in email this error clearly from the examples in the docs pages If I remove it, then this email sends right away. Since I need to add...

html5boilerplate - AngularJS in HEAD vs BODY -

In all AngularJS examples, the angular library is placed in the head tag of the document. I have an existing project that was built on the HTML5 boilerplate layout. It defines that JS libraries are very low under the DOM & lt; / Body & gt; must be placed before the tag. Should AngularJS be kept in HEAD? Angulios do not have to be placed in the head, and in reality you should not normally do it , Because this block will be loading HTML However, when you load AngularJS at the bottom of the page, you will need to avoid or use "Flash of Unrelated Content". Note that you only need to use ng-clock / ng-bind on your "index.html" page. When using ng-added or ng-view or other angular structure to draw additional material after the initial page load, that material will be compiled by the cooner before it is displayed. See also

ios - UICollectionView cells allign horizontally instead of vertically to mimmick springboard? -

Trying to display the iPhone 5 app springboard (horizontal line and 4 apps in 5 rows) in my collection view Am my apps I currently have 5 cells (approximately 25 cells or so many plans) and the collection view is set to scroll horizontally when paging is enabled which works but when I add the cells to this method : - See the (NSInteger) archive: (UICollectionView *) View numberoff item ins: (NSINtega) section {return apps.count; // current 5} They vertically horizontally align, how can I align this horizontal? Here's a sketch > What's happening: Cell cell cell cell cell What do I have to do: Cell cell cell cell Can someone help me with this? You need to create a UICollectionViewLayout

c++ - Definition of class member -

हम इस तरह एक क्लास सदस्य घोषित कर सकते हैं: class test {public: int a ; } यह हम कैसे घोषित करते हैं, लेकिन मैं जानना चाहता हूं कि चर a कहां परिभाषित है। मैं स्थिर वर्ग जानता हूं सदस्य, यह स्थैतिक चर है, इसलिए इसे कक्षा में परिभाषित नहीं किया जा सकता है, इसे कक्षा के बाहर परिभाषित किया जाना चाहिए। इसलिए मुझे लगता है कि सामान्य वर्ग के सदस्य को परिभाषित करने के लिए एक स्थान होना चाहिए, मुझे लगता है कि यह कन्स्ट्रक्टर है जहां सामान्य सदस्य को निहित तरीके से परिभाषित किया गया है। क्या यह सही है? गैर-स्थिर डेटा सदस्यों के लिए, घोषणा और परिभाषा एक और समान हैं। इसलिए मुझे लगता है कि सामान्य वर्ग के सदस्य को परिभाषित करने के लिए एक स्थान होना चाहिए, मुझे लगता है कि यह कन्स्ट्रक्टर है जहां सामान्य सदस्य को निहित परिभाषित किया गया है। I लगता है कि मैं देख सकता हूँ कि आप कहां से आ रहे हैं प्रत्येक स्थिर डेटा सदस्यों के लिए, केवल एक चर आवृत्ति प्रति प्रकार (टेम्पलेट्स के लिए - प्रत्येक टेम्पलेट इंस्टाशन एक विशिष्ट प्रकार बनाता है) - और यही कारण है कि घोषणा सामान्य चर के लि...

android - Is there a way to get a File path to a Drawable compiled into the project? -

Code> content values ​​= new content value (); Values.put (Bluetooth share.URI, Uri.fromFile (new file (filePath)). ToString ()); Values.put (BluetoothShare.DESTINATION, device.getAddress ()); Values.put (Bluetooth Share Direction, Bluetooth Share. DIRECTION_OUTBOUND); Long ts = System.currentTimeMillis (); Values.put (Bluetooth share.TIMESTAMP, ts); Uri Content URI = C. Gate Content Resolver (). Enter (Bluetooth Share, Contransurance, Value); LD. ("Insert content": "+ contentUri +" on device: "+ device.getName ()); This works perfectly for files on sdcard (this Note, on the second line of the sample, the file path is being passed). But now I allow the user to print compiled images in the app. It seems that the Drawable Folder does not have its direct path because of how Android has its image based on the device Prepares them, I'm curious that I can go through this printing method to get some code so that it can print embedde...

ms access - 'Microsoft.ACE.OLEDB.12.0' provider is not registered -but it is -

short and sweet: App X86 works on the machine, but on x64 Not a 2008 server and Windows 8) The Microsoft Access Database Engine 2010 is already installed (this includes Microsoft Office 2007 Access Database Engine also) MS Office is not installed Confirmed the existence of C: \ program files (x86) \ general files \ Microsoft share \ OFFICE12 \ ACEOLEDB.DLL code: Tring conn = "provider = SQLOLEDB; data source = localhost; initial list = northwind; integrated security = spi;"; OLADBACCATION _CONVILMENT OLE = new allelebonection (cone); What should I do to make this app work on x64 machines? Thanks! I can think of two scenarios which can explain your problem: Your C # project is set to target both 64-bit and 32-bit platforms and is a 32-bit version of installing Access database engine in a 64-bit machine. This reference fails because the program is running as 64-bit, but the machine is missing C: \ Program Files \ Common Files \ Microsoft Shared...

Android ListView with TextView and Spinner -

Initial question here I wonder if someone can tell me in the right direction. I need a list view of 'accounts' where each item will include a text view and a spinner to choose from a predetermined amount, so each item will: ________________________. Text view ------ spinner | | ________________________ | I have so far: activity_topup.xml is the main XML for this activity And then my Java file TopUpActivity.java String [] listAccounts = { "Acc1", "Acc2" , "ExC3"}; AccountListAdapter = New Arrayheader & lt; String & gt; (This, R.Let.LilVestu_Item_Counts, RID.Account_L_L_YSTEV, LISTEX); ListView = (ListView) findViewById (R.id.topup_accounts_listview); ListView.setAdapter (accountListAdapter); listview_item_accounts.xml contains the contents of each item (a text viewer and spinner) & lt; TextView android: id = "" @ + id / accounts_list_tv Android: layout_width = "150dp" Android: Layout_h...

ios - MPMoviePlayerController restarting instead of resuming -

I am trying to access MPMoviePlayerController programming and playback time, then reassign the initial, current and end time Play "Start over again" then play first, say, for 4 seconds from start, pause / pause, start over again and play from 4 to 8, etc. ... But after reassigning the present, the initial and the last playback times and run [emplaire play], i Video restarts from time to time (starts with 4) and plays at original end time, even if debug messages confirm new time after the second game NSURL * fileURL = [Nsur file url path: pathpath]; _mplayer3 = [[MP3 MPV Player Controller Alok] initWithContentURL: fileURL]; _mplayer3.controlStyle = MPMovieControlStyleNone; [_mplayer3.view Set Frame: self.view.bounds]; [Insert Self.viewSeeview: _mplayer3.viewSubviewView: _TopBrag]; _mplayer3.endPlaybackTime = 4.0; [_mplayer3SetheldEatellite: No]; [_mplayer3 ready]; [_mplayer3 view] .userInteractionEnabled = Yes; [[NSNotificationCenter defaultCenter] addObserver: Self...

mysql - SQL:HOW TO TAKE SUBSTRING FOR QUERY -

I have a date 1012009 I have to finally take this date How to get the last four digits in the column 2009 I need this Another example: 1032009 How to take the last four values. simple string function: SELECT RIGHT (INC_DATE, 4);

oracle - Alternatives for PL/SQL Group Functions -

I've imported a required old PL / SQL package that uses group functions: Create_Group Add_Group_Char (or number) _Cell Delete_Group and FF datatype: Record group Group column However, when I compile it I try to do that, since then this work / datatype is undefined / undeclared. I have been told what they do and now understand their experiments. I am just asking whether there are existing packages that implement these tasks so that I do not have to code them myself. Thanks! The above oracle forms can not be used in built-in PL / SQL only To be used in the form

c# - Sorting pictures into folders by date taken -

I want to make software that group images in folders from the date actually taken together, with folders in names in pictures The order will be sorted in: Folder: 2000 Inside the folder: some photos taken in 2000. How do I do this? The picture has actually been taken, to get this date, you want to see Xf Are information. When you use Image.FromFile () , this data automatically reads in PropertyItems . You can use another reference again (to get the right code for date information). You can also use the code to make it easier to read. Not all images will have FTP data, so you might want to include a reply to Dawood's fallback. Once you receive the relevant date information, you can Directory.Create (year) and File.Move (oldpath, newpath) Can be used. To organize files.

javascript - jquery - .submit() function not working inside ajax() function -

I'm new to Ajax. The requirement is quite simple when the submit button is pressed, javascript makes an asynchronous request, which will validate different side user input. If the input is ok, then the form standard will submit, otherwise there will be an error message. So, this is my form: & lt; Form id = "form" action = "dosomething.jsp" method = "post" & gt; & Lt; Input type = "text" name = "name" & gt; & Lt; Input type = "text" name = "email" & gt; & Lt; Input id = "submit" type = "submit" value = "go" & gt; & Lt; / Form & gt; This is my javascript: $ (document) .ready (function () {$ ("# form"). Submit (function (event )} {Event.preventDefault (); var form = $ (this); var button = $ ("# submit") button. Reuters ("disabled", "disabled"); $ .aex ({url: "valid Search: "post...

Sqlalchemy Querying and filtering -

Then you can say that I have some simple classes like class person's birthday And I want the oldest person from every state, I think I should do it db.session.query (address) class pet species / former> And I Find out the oldest person as follows I am ... John - MI - dog - 50 Alex - MI - dog - 51 jo - MI - cat - 10 Tina - Florida - cat - 20 I just want Alex, Joe, Tina But not John, because he was not the oldest. How do I create a query to go about doing this? Which topic should I learn? This is by far my best effort. This code is specific to my database: def most_recent_completed_uss (user): lids = [] in user.organizations: for o.survey_headers for sh: sh.survey_sections in ss : L = Datetime.datetime (1,1,1) lid = none for uss in ss.user_survey_sections: if o.id == uss.organization.id: if l == datetime.datetime (1,1,1 ): Lid = Uss.id if (uss.completed_date and uss.completed_date & gt; = l): l = uss.completed_date lid = uss.id lids.ap...

shell - Compiling multiple programs with Makefile -

मुझे 4 अलग सीपीपी फ़ाइलों और एक क्यूडा फ़ाइल सहित तीन अलग प्रोग्राम को संकलित करना है। फ़ाइलें हैं: final_serial.cpp final_mpi.cpp final_mpicuda.cpp और final_cuda.cu अंतिम_ंपीक्यूडा.cpp और final_cuda.cu को एक साथ लिंक करना होगा। MPIDIR = / usr / lib64 / mpich2 / cc = $ (एमपीआईडीआईआर) / Bin / mpic ++ LIBS = -L $ (MPIDIR) / lib -lmpl -lopa सभी: सीरियल एमपीआई एमपीआई: फाइनल_एमपीआईपीपी $ (सीसी) $ (लिबीएस) -ओ $ @ $ ^ सीरियल: फाइनल_सिरियल सीपीपी जी ++ -ओ सीरियल Final_serial.cpp लगता है, एक साथ final_mpicuda.cpp और final_cuda.cu को लिंक करने के लिए, मुझे ये करना होगा कमांडः /usr/local/cuda-5.0/bin/nvcc --compiler-bindir / usr / local / gcc / bin -c अंतिम_cuda.cu -o cudacode.o / usr / Lib64 / mpich2 / bin / mpic ++ -lmpl -lopa -c अंतिम _mpicuda.cpp -o mpicode.o / usr / lib64 / mpich2 / bin / mpic + + -lopa mpicode.o cudacode.o -l / usr / local / cuda-5.0 / lib64 -lcudart -o cuda कौन सा नामक निष्पादन योग्य का निर्माण करता है cuda । तो, मेरा प्रश्न यह है कि मैं ऊपर दि...

internet explorer - jQuery.browser script or shim for backwards-compatibility of plugins with 1.9.1 -

I'm trying to use the jquery plugin quicksand and I'm getting this error with jquery 1.9.1 . "Unkit type error: Undefined" msie "property can not be read I know that the MSI jQuery.browser property is on jQuery.browser The flag was deprecated since version 1.3 and it was removed in jQuery 1.9.0 That is why it is causing the error but is there a fix so that the quick work is working again Any help or advice would be great! Thanks in advance! fearless day Note for walper A (mandatory) word jQuery.browser and on jQuery.support : jQuery.browser Read the flag from the user, We recommend using this property ; instead the feature Try to locate (see jQuery.support ). jQuery.browser to be moved to the plugin in the future release of jQuery Could. Instead of $. To use the browser, to determine the current user agent and to change the page presentation based on which browser is running, this is a good practice to locate the fea...

java - ActivityNotFoundException due to wrong namespace? -

I want to start an activity like this: intended intent = new intent (This, FeedbackActivity.class); Activity.startActivity; I have declared activity in my manifest: & amp; Activity Activity: Name = "Feedback Activity" Android: parentActivityName = "de.fun4mobile.jumba.GameActivity" & gt; & Lt; Meta-Data Android: name = "android.support.PARENT_ACTIVITY" Android: value = "de.fun4mobile.jumba.GameActivitry" /> & Lt; / Activity & gt; However, I get the above ActivityNotFound exception: Unable to find the obvious activity class {de.fun4mobile.jumba / de.fun4mobile.jumba. FeedbackActivity}; Have you declared this activity in your Android manifest. XML? It is quite clear that the path / name space for the activity is in some way wrong (duplicate) but why is it so? Is this an error in my manifestation? android: value = "de.fun4mobile.jumba.jivactivree" is not gameactivity is there a typo? ...

javascript - JW player is not working in IE 8 -

I'm just checking the JW Player in compatibility with all browsers. But, there is not even a blank screen in the IE 8 browser, it works well in other browsers. I have already read the link but no help is found. & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "jwplayer.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Script & gt; If ((window.outerWidth and window.outerWidth> 640) || (document.boney.clitwidth & amp; document; body.clientWidth> 640)) {warning ('error'); } & Lt; / Script & gt; & Lt; Div id = "myElement" & gt; Loading player ... & lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; Jwplayer ("myElement") setup ({file: "myVideo.mp4", image: "myPoster.jpg",}); & Lt; / Script & gt; & Lt; Ul & gt; & Lt; Li on...

applet - How to set JVM option on Windows Java Plugin -

On Windows I tried the following two but nothing worked. Set Java Control Panel / Java / Java Runtime Settings / View / User / Runtime Parameters -Dfile.encoding = UTF-8 JAVA_TOOL_OPTIONS = -Dfile.encoding = > Maybe you choose a global JVM option: You can add JAVA_OPTS to the window environment try. Set JAVA_OPTS = -Dile.encoding = UTF-8% JAVA_OPTS%

.net - Build DataGridView table without a source? -

I've never worked as much as I needed, but I'm returning it again and hoping I know I can find it, find out. Currently I have a class where I store a lot of data about each individual support ticket coming in every software, but I only want to display some data on the DataGrid view. The class looks as follows: .. public class tickets {get public string ID { Set; } Public String TicketID {get; Set; } Public String DeptID {get; Set; } Public String UserID {get; Set; } Public string name {get; Set; } Public String Email {get; Set; } Public string c {get; Set; } Public string theme {get; Set; } Public string message {get; Set; } Public string status {get; Set; } Public String Priority {Received; Set; } Public Date Time Date {Received; Set; } Public DateTime LastResponse {get; Set; } Public IPadation IP {Receive; Set; }} I want to create a table that shows name / message / priority or some combination of these values, but of course all of them are no way Can I just creat...

sql server - using dynamic sql in c# code in visual studio -

I am developing an application in which I have to prepare a report based on staff entries and entries. I do not have experience with databases related applications using dynamic queries. In this particular application, I have to pass dynamic SQL queries. In this I have to select column names based on user selection and then they will have to pass them in other SQL queries as parameters. Here are the questions ... DECLARE @ cols AS NVARCHAR (MAX), @class AS NVARCHAR (maximum) select @cols = STUFF ((SELECT ',' + QUOTENAME (date + Select 'Log In Union', select 'Door', Convert (Four (10), Dordert, 101) XML Path (Choose from '_' + LogName) ('.', 'NVARCHAR (Max)'), 1 (Convert for '', type), (10), Dorardet, 112), 10), Dordreit, 112), Date, LogName Order. , 1, '') set @query = 'select employee, name,' + @ cols + '(employee Select name, convert (four (8), dortream, 108) dormitimate, date + "_" '+ ...

asp.net - How to add textbox to each and every cell in a table row and let user add multiple rows? -

निम्नलिखित मेरा मार्कअप कोड है: & lt; asp: तालिका आईडी = "tbldata" रनैट = "सर्वर" बॉर्डरविड्थ = "2" & gt; & Lt; asp: TableHeaderRow ID = "tableheaderrow1" runat = "server" & gt; & Lt; asp: TableHeaderCell width = "80" runat = "सर्वर" & gt; एसएनओ & lt; / asp: TableHeaderCell & gt; & Lt; asp: TableHeaderCell width = "200" runat = "server" & gt; विवरण & lt; / asp: TableHeaderCell & gt; & Lt; asp: TableHeaderCell width = "80" runat = "सर्वर" & gt; राशि & lt; / asp: TableHeaderCell & gt; & Lt; asp: TableHeaderCell Width = "120" runat = "server" & gt; कर & lt; / asp: TableHeaderCell & gt; & Lt; asp: TableHeaderCell width = "300" runat = "सर्वर" & gt; अन्य एक्सपेन्डिचर & lt; / asp: TableHeaderCell & gt; & Lt; asp: TableHeaderCell width = ...

Japer Reports - How to use a REPORT PARAMETER's value in the WHERE clause of that Report's Query? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब कहो, मेरे पास एक सरल एक डेटा-स्रोत सेटअप के साथ रिपोर्ट करें मैं जावा एप्लिकेशन में रिपोर्ट को एम्बेड करने जा रहा हूं उस एप्लिकेशन में उपयोगकर्ता एक विशिष्ट इनपुट देता है। यह इनपुट एक पैरामीटर के रूप में रिपोर्ट में पारित हो जाएगा उस पैरामीटर के आधार पर रिपोर्ट की क्वेरी परिणामों को उत्पन्न करना चाहिए। कैसे प्राप्त किया जा सकता है? उदाहरण .. उपयोगकर्ता को एक स्कूल के लिए इनपुट के लिए कहा जाता है, रिपोर्ट एसक्यूएल क्वेरी में SCHOOL_ID का मान डालता है, (चयन करें * छात्रों से WHERE SchoolID = $ R {SCHOOL_ID};) & lt; --- ($ R {SCHOOL_ID} यहां रिपोर्ट पैरामीटर है) डायनामिक परिणाम जनरेट किए जाते हैं । क्या यह किया जा सकता है? किसी भी ट्यूटोरियल? क्वेरी इस तरह होगी SELECT * छात्रों से जहां स्कूल आईडी = $ P {SCHOOL_ID} हम पाठ फ़ील्ड अभिव्यक्ति के लिए $ R {} और पैरामीटर के लिए $ P {} यदि आप इस क्वेरी को iReport में विकसित करते हैं, तो पैरामीटर से उस पैरामीटर को खींचें जहां आप क्वेरी में जोड़ना चाहते ...

Setting up a multilingual wordpress site -

I am trying to establish a multilingual site using WordPress. I went through this topic and decided to use plugins like this option like multizite language switcher and newcomer multilingual press link, different WordPress network (multi-dimensional) installation for each language by pinging forward and back Now I set up multilingual press and a network. My site's URL was wordpress.private.net and forward it to this. Wordpress.private.net both domains are served from the same folder. But even when I go to the .__ site, it shows in the English language and that too without all the positions. I get this error on the Network Dashboard You did not setup any blog relationships! You must first setup them to use multilingual press. For that, go to Network »Sites» and select a blog to edit. Then go to the tab "Multilingual Press" and establish relationships. But there is no alternative to establishing relationships in the tab "Multilingual Press. Please guide ...

android - display mobile device to desktop -

We have created a mobile application and want to make a presentation for about 20 people. We use Android's Samsung Galaxy S3 and want to get a 1: 1 display on Beamer. Any thoughts? With best regard, KjubE We apply for your requirements Please use it to see. Any device will work, provided ADB and device drivers have been installed. You do not need to root either.

java - in JAXB, can I create one Unmarshaller instance and use it to unmarshall xml nodes or files many times? -

I use the SAC to parse a large XML file which is large and has several repeating nodes and JAXB Use persuasion to paraphrase javabeans and duplicate dom nodes map. Here is my code snippet. I use a code of partial unmarshalling of JSASB, it creates the Unmoderner object every time a node is started parsing. Can I reuse it for an entire XML parsing or can I cache it for multiple XML parsing? & Amp; amp; & amp; Local Names.Ajals (A Product) ???) {Unmarshaller unmarshaller = null; Try {// I want to reuse it, do not create it in the initial method at every start- jaxbContext.createUnmarshaller (); } Hold (JAXBException e) {new SAXException (E); } ... Unless your JAXBContext changes, Unmarshaller can reuse Also see. In this there is an example which reuses the same unmarshaller for mulitple XML files, only when the reference ( BazObject package is not on the reference path), you will need to create a new unmarshaller from different references.

unix - Error when starting script : No such file or directory while executing a shell script -

I have only encountered the problem as described on : Question by user: "I am getting: There is no such file or directory when executing the shell script, but I have this file in this file and it also has executable rights." Answer: "Did you Started the name of your script / directory / script or ./scriptname? " Worked for the time being, once I started the script using "./scriptname" I started this script on multiple servers and on some machines I could use "script name" and others could have "./scriptname" "Why was it necessary to" use on some machines "but not" on others "? File permission is the same on all machines. If the current directory ( . ) PATH You can run a script in both ways: will see script.sh in every directory listed in script.sh # Shell # in $ PATH ./script.sh # Shell will invite # script.sh located in the current directory. If the current directory is not in the PATH , ...

Python does not recognize the type of a namedtuple -

I suspect that this question has been asked before, but I can not find it, so here goes: On Python (using 2.7) I create a namedtuple below: & gt; & Gt; & Gt; Sgn_tuple = nametuple ('sgnt', ['signal', 'type']) & gt; & Gt; & Gt; I want to check the type of t and my results are weird: & gt; & Gt; & Gt; Type (A) & lt; Class' __main __. Sgnt '& gt; & Gt; & Gt; & Gt; A tube fall and gt; & Gt; & Gt; A named Tupal Fail is & gt; & Gt; & Gt; A sgnt traceback (most recent call is final): File "& lt; stdin>", line 1, & lt; Module & gt; Name error: name 'sgnt' is not defined & gt; & Gt; & Gt; A sgn_tuple false & gt; & Gt; & Gt; Why is that so? I hope a should be identified as the Tupal type, but it is not. Any signals? does not check the membership of the class is checks that if two objects are the same, t...

c# - How do I create new controls inserted into newly generated HTML on runtime? -

Image
I am still new to ASP.NET, but I myself get stuck on a problem which is not too high One problem .. Now I have a page that holds this div: & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Div & gt; & Lt; / Div & gt; How it looks: Let me press a user + button (addAdditionalDDLColumns). When I press that button, I want to reveal a new table row in the same control so that it looks like at the time of the runtime: & lt; Div id = "EditSurveySetID" class = "EditSurveySet" runat = "server" & gt; & Lt; Div class = "cell" & gt; & Lt; Div class = "cell-title" & gt; Survey Set (Le) & lt; / Div & gt; & Lt; Table ID = "SurveySetSetData" run = "Server" style = "margin: 10px;" & Gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; Td square = "form_labelSurveySet"...

python - Changing font for four buttons at once in tkinter -

लक्ष्य मैंने 4 बटन बनाए हैं जो डिफ़ॉल्ट फ़ॉन्ट में हैं टैक्निकर में अब मैंने तय किया है कि सभी चार बटन बहुत छोटा हैं। इसलिए मैं उनमें फ़ॉन्ट के आकार को बढ़ाना चाहता हूं। समस्या का सामना करना पड़ता है मैं font = custom को जहां custom = tkFont जोड़ना नहीं चाहता सभी चार बयानों में फ़ॉन्ट (परिवार = 'हेलवेटिका', आकार = '18 ') । क्या यह पूरे फ्रेम के लिए ऐसा करने का एक तरीका है कि ये बटन मौजूद हैं? कोड f = self.frame कस्टम = फ़ॉन्ट (परिवार = 'हेलवेटिका', आकार = 15) प्रारंभ = बटन (f, text = 'स्टार्ट', कमांड = स्व.स्टार्टरिंग) start.pack (साइड = "टॉप") स्टॉप = बटन (एफ, टेक्स्ट = 'STOP', कमांड = स्व.स्टॉपरिंग) stop.pack (साइड = "टॉप") लैप = बटन (f, text = 'lap', command = self.endlap) lap.pack (side = 'top') रीसेट = बटन (f, text = "RESET", command = self.reset) reset.pack (पक्ष = "शीर्ष") close = बटन (f, text = "QUIT", bg = "black", fg = "red", ...