Posts

Showing posts from March, 2014

how to convert ajax variable to scala variable in play scala framework -

मैं एजेक्स में चर को कैसे रूपांतरित कर सकता हूँ। & lt; li ng-repeat = "समाचार में आइटम: फ़िल्टर: q" शैली = "पृष्ठभूमि रंग: सफेद;" & gt; {{आइटम}} & lt; / br & gt; {{item}} ब्राउज़र में डेटा प्रदर्शित करता है लेकिन मैं इस मद डेटा को स्काले पक्ष में स्थानांतरित करना चाहता हूं। @ के साथ एक, क्योंकि मुझे आइटम की आवश्यकता है: @form (routes.application.newItem ({{item}}) {....} < / पूर्व> जब भी मैं इसे चलाता हूँ यह प्रदर्शित करता है। आइटम नहीं मिला मैं क्या चाहता हूँ इस एजेक्स डेटा को स्केल साइड वेरिएबल में कनवर्ट करने के लिए एक कदम या कुछ भी है। आप इसे सीधे नहीं कर सकते, ध्यान रखें कि जावास्क्रिप्ट ग्राहक-पक्ष है और स्कला टेम्पलेट बैकएंड है इसका मतलब यह है कि प्ले को क्लाइंट (और इसके जे एस) से पहले बहुत लंबे समय तक दृश्य बनाते हैं। आपके पास 2 समाधान हैं: बदलें क्रिया < / Code> जावास्क्रिप्ट का उपयोग कर form टैग की विशेषता आप यूआरएल बनाने के लिए प्लेस का उपयोग भी कर सकते हैं (पेज रेंडरिंग के बाद जावास्क्रि

Why does Chrome mark a "204 No Content" response red? -

Image
I am very confused with chrome, it responds to a "204 no content" response in the request list Is there a green dot for the time "status code"? I'm sure 204 is not an error, so what happens here? I have created a new script to make sure there is nothing else: More developer tools look like this: I'm using Chrome 34.0.1847.116 meters, this is not red in Firefox.

Getting "permission denied" with PROFTPD SFTP in Centos -

I want to configure a SFTP server with CentOS 6 But when I use "" with FileZilla client, I get this message: Open to write: Permission denied < P> sftp in my logs This is when I use 'put': ... unsupported 'simply@putty.projects.tartarus.org' channel requested , Ignored the 'subsystem' channel request for 'sftp' subsystem. 'Namefile' error for REALPATH detected: Aucun fichier ou dossier de ce type error opening 'file name'; I do not understand because it works very well on Debian ... Install Proftpd: sudo rpm -user http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm sudo yum install proftpd < / Code> For my tests, I blocked the firewall: service iptables stop I created the ssh configuration file "sshd_config" In the line "subsystem" has commented # subsystem sftp .... I add this line to proftpd configuration file "proftpd.conf"

How to change Android ViewPager Background Color? -

viewpace background is gray I can not find any clear text on the internet that shows For example how to change the color of that background in black Any thoughts would be appreciated. You can get it in 2 ways, Code> ViewPager in XML in Android: background = "# 000000" 2. It is dynamically like below, seePager pager = (Viewpoint) findViewById (R.id.pager); Pager.setBackgroundColor (Color.BLACK);

php - Route with name "HelloWorld" not found Zend Framework 2 -

Image
I have created a new module in ZF2 called 'HelloWald', what I am trying to do when clicking on the 'HelloWorld' link I'm just printing HelloWorld: I have I want to generate it by using: $ this-> Url ('hello', array ('verb' =>); But this is showing an error like this: Please Suggestion to avoid error. This is probably related to one of ZF2's "features" . It seems that if you use the ZF2 function to create your link, the function will skip any segment that matches the default value in your router script. See. Temporarily replace or delete the default from your router script and see if it does not solve your problem or not. If this happens, you may need to either reconsider your router script's plan or code your links without the ZF2's URL function.

ios - Change UIButton's default titleColor -

I seek the easy way to set the UIButton default titlecolor The app is initially for custom one but I want to respect the case when titlecolor is not the default and the custom value is [[UIButton presence] setTitleColor: forState:] Allows me to set custom colors for all buttons at once, though it has already been set to a custom color. Is there a faster way to override the default title color and respect custom colors at the same time? Use presence as you would like to set up globally (All Buttons) and Example Method [Button Settiller: [UIColor blackcolor] forState: UIControlStateNormal] To set the color for a button.

node.js - how to delete a room in socket.io -

I want to remove all users statically from a room, the idea that effectively removing the room is In the future, the second room of the same name can be rebuilt in the future, but I want it to be made empty (listeners of the previous room). I am not interested in managing the room itself but the situation is as though I can generate the socket. Is this possible? (See also) Do you want to? io .sockets.clients (someRoom). ForEach (function (s) {level (someRoom);}); or (untested): io.sockets.in (someRoom). Skip (someRoom);

android - Is there a way to send a route to the navigator in a smartphone -

We are modeling an Android and iPhone app where we plan a route for the user to travel on the map Are planning to allow. . We will turn this route into a KML or GPX file and send it to the smartphone's navigator. After disturbing this topic, however, I get very little information about it that I am starting to believe that nothing like this can be done. It seems that you can ask a smartphone navigator to do this, to go from point A, go to B on the route calculated by Navigator Can anyone confirm this from? Besides, what would be the reason? Does Google want to keep all businesses in the navigation area itself? What are the issues of performance? It is possible to route the route to Google Maps, so it seems that there should be no technical restrictions.

javascript - checkbox being checked on false - jquery -

$ ('# चेकइज़')। Prop ('checked', row ['checkb']); Var चेक = पंक्ति ['चेकब']; चेतावनी (जांच); । $ ( '# Checkyes') checkboxradio ( 'ताज़ा'); चेतावनी ठीक से पंक्ति ['चेकब'] के भीतर मान को झूठी साबित करने के लिए दिखाती है, फिर भी चेकबॉक्स को वैसे भी धकेल दिया जाता है। क्या मैं कहीं कुछ कोटेशन लापता हूं या क्या मैं पंक्ति मूल्य का उपयोग नहीं कर सकता हूँ? प्रयास करें $ ('# checkyes')। 'चेक', (पंक्ति ['चेकब'] == 'सच') सच है: गलत); प्रोप ('चेक', (पंक्ति ['चेकब'] == 'सच')) या $ ('# चेकइज़')। ; या var chk = (पंक्ति ['चेकब'] == 'सच')? सही गलत; // या var chk = (पंक्ति ['चेकब'] == 'सच'); $ ('# चेकज')। प्रोप ('चेक', चक); समस्या पंक्ति ['चेक'] में मान स्ट्रिंग true < / Code> या false नहीं बूलियन मान। तो $ ('# checkyes')। Prop ('checked', row ['checkb']);

MS Access Query into SQL Server -

तालिका वर्ष 2 4 7 4 2 और मैं एमएस एक्सेस क्वेरी कोड को हस्तांतरित करना चाहता हूं SELECT [year] & lt; 5 टेबल से उस कोड में जो SQL Server 2008 में काम करता है और इसमें एक WHERE खंड शामिल नहीं है मैं मानदंड का चयन करें कथन में होना चाहता हूं, जैसे कि यह एमएस एक्सेस कोड में है क्या यह संभव है? मैं इसे सीएई विवरणों के साथ कर सकता हूं, लेकिन क्या एक छोटा रास्ता है? (चयन कथन में मापदंड को शामिल करने की मेरी इच्छा का कारण जटिलता है पूरे प्रश्न का।)

How to use android mediaplayer on motionevent -

I am trying to set a sound for my game, but the last error on the line is MediaPlayer mp = Make MediaPlayer (this, no suggestion? Thx @override public boolean on touch event (motivation event event) {int x_aux = (int) (event.getax) / (this gatewidth () / X)); Int y_aux = (int) (event.getY () / (this.getHyight () / y)); Drawing (x_aux, y_aux); Final Media Player MP = Media PlayerCredit (this, R.A.MOVO); SetOnClickListener (New View.OnClickListener () {public void onClick (see v) {mp.start ();}}); Return super Tonentange (event); } create (...) method Media Player is required as the first parameter context The problem is that your game class is a view (which is context Does not extend) so that this can be used for the first parameter. T work. You can try to keep the context of context which is given in the constructor's private sector under private paint canneta; Add one for context . Example ... Public category games expand {private cell [] [] sing

How to change the series icon shape in Kendo UI linechart?Can I use custom icon? -

I know that the default icon is "circle", now I want to change the icon size. The total icon size is only "circle", "squire", "triangle", "cross". Can there be a Joseph custod icon? I use these codes in the Databende event, but I do not think so. var colorArr = new Array ("#FF 20000", "#FF8C00", "# 006400", "# 40ADD," "# 800080"); Var iconShapeArr = newArray ("circle", "squire", "triangle", "cross"); Function on databound (e) {var chart = E. Var series = chart.options.series; (Chart index.series [index] .color = colorArr [index]; Chart.options.series [index]. Markers.background = colorArr [index]; // chart.options.series [index] .notes.icon.shape = "class"; } As far as I know, it can not be custom. Like these types: Databound (e) {var colorArr = ["# FF0000", "# FF8C00", "# 006400", "# 40E0D0

c# - Entity Framework DbSet dynamic query -

I have been I am a DbSet of a type that passed me database for a dynamic field and value Need to query. Using Generic Where I use the function with Lambda Expression. Can it be obtained from a standard dbSet that is made as follows? DbSet table = dataContext.Set (EntityType); PropertyInfo propertyInfo = EntityType.GetProperty (property name); // Expression: "Unit" parameter Expiration parameter = expression. Parameter (EntityType, "entity"); // expression: "entity.PropertyName" member Akspereshn Property Value = Expression.MakeMemberAccess (parameter, propertyInfo); // expression: "value" object converted value = Knhwartkchenj type (value, propertyInfo.PropertyType); Constant expression rhs = expression Constant (Convert Value); // Expression: "entity.PropertyName == Value" binary expression equal = expression. Aqual (property value, ra); // Expression: "unit => entity.property name == value" lambdaexression lambda =

html - Big Cartel - Site Title -

During the weekend I worked on my page and there are still some wonderful things I am struggling with. Site is Both the home page and the main product page have a different font size for "Jonathan Powers" at the top of the page, I have been searching in search of all font sizes via CSS and Big savings, savings, come back again, if they do not want to change anything or make any other change from the title. I am not able to decide how to fix it. Another thing to discuss on this title is the option to be at the top of the page, will it be very complex for the headers (with links inserted automatically by BiltCart) under the title? Looking at the drop-down menu options, I found an example here Edit: I realized this example is one that I stumbled over someone with a theme and layout for BigTeletel. I really hope that I try not to move myself on the fingers of someone's feet trying to do this. Luna theme has a "script" plugin, which can improve your scre

java - Partial read of xml file -

I need to read 15 lines before about 100 XML files, which is up to 200,000 lines. Which is the way to do it efficiently? The steps mentioned in the use; It tries to parse the whole file at once. Edit: The first 15 elements are the metadata (page name, last edit date, etc.) about the file, which I would like to parse in the table. What you probably want to do here - as I wrote in the comment, use the SAX parser and when your position Edit: test.xml & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Root & gt; & Lt; First & gt; & Lt; Inner & gt; Data & lt; / Inner & gt; & Lt; / First & gt; & Lt; Second & gt; Second & lt; / Second & gt; & Lt; Third> Third & lt; / Third> & Lt; Next & gt; Next & lt; / Next & gt; & Lt; / Root & gt; ReadXmlUpToSomeElementSaxParser.java Import javax.xml.parsers.SAXParser; Import javax.xml.parsers.SAXParserFacto

java - Mule: getting a hold of the exception message -

I have a default catch exception in the haze, and I'm trying to gain access to the exception message: # [Exception] It does not seem to work, and I think I'm trying to use the wrong variable? I'm trying to use this logger and also run a custom component which runs in an exception message (as a string). Thank you, you can # [stop the exception ] as & lt; Option-exception-strategy & gt; & Lt; The catch-exception-strategy when = "exception exceptions (com.company.BusinessException)" & gt; & Lt ;! - [1] - & gt; & Lt; JMS: Outbound-Endpoint Qi = "Dead Letter" & gt; & Lt; JMS: transaction action = "ALWAYS_JOIN" /> & Lt; / Jms: outbound-endpoint> & Lt; / Catch-exception-strategy & gt; & Lt; Rollback-exception-strategy when = "exception exceptions (com.company.NonBusinessException)" & gt; & Lt ;! - [2] - & gt; & Lt; Logger level = "error" mes

php - What's wrong with my login script using PDO? -

I am using PDO and the login script is not working? The main reason is that password_verify will not match the actual password. & lt ;? Php session_start (); Include 'conn.php'; If (isset ($ _ POST) & amp; Count ($ _ POST)> 0) {$ user = $ _POST ['user']; $ Pass = $ _POST ['pass']; $ Option = array ('value' = & gt; 12); $ Hash = password_hash ($ pass, PASSWORD_BCRYPT, $ option); $ Secure = password_verify ($ pass, $ hash); // $ secure = hash ('sha512', $ pass); $ Query = "SELECT * signup user name =: user and password =: pass"; $ Result = $ conn- & gt; Ready ($ query); $ Result-> Execute (array (': user' = & gt; $ user, ': pass' = & gt; $ secure)); $ Race = $ result-> FetchColumn (); If ($ res> 0) {// Username Session session $ $ _SESSION ['user'] = $ set user; // Go to secure page header ('location: index.php'); } // AndIf other {header ('location: signin.

python - Django migrate command fails with foreign key to user model -

I have a very simple test application, in test_app, there is only one model in the degego 1.7b2: models.py username = Modlkarengki (settings.AUTH_USER_MODEL) When I run python manage.py makemigrations test_app , I get no error and the migration file is created successfully, however, when I python manage Py migrate So programming would come running, get me the following error: task to task: Synchronize unmigrated Apps admin, content type, authentication, session to implement all migration: test_app Synchronizing apps without auth migration: Creating tables ... Installing custom SQL ... Installing index ... Running migration: test_app.0001_initial ... Traceback (Most recent call final) Programmed to implement managed file ".py", line 10, & lt; Module & gt; Execute_from_command_line (sys.argv) file "C: \ Python27 \ lib \ site-packages \ django \ core \ management \ __ init__.py", line 427, execute_from_command_line utility.execute () file to &

java - Compare Serializable and Number -

I need to remove some objects from the list in the second list based on their ID. I am trying to remove a to list based on the ID given in valid . But the code returns the Set.contains always false , even if the ID is in the list . Can anyone talk wrong with this code? Class A {Serializable ID; Public serial getId () {return ID; } Class B {limit> lieutenant; A & gt; Deleted (List & lt; a & gt; List, Set & lt; Number & gt; Valid) {Eitreter & lt; A & gt; This = list.iterator (); While (this hasNext ()) {if (valid.contains (it.next.getId ())} {it.remove (); }} Return list}

c# - Add more parameters then are used in the query? -

Is there a way to add a parameter to my SQL command in the way the engine will not complain if it did not use it in me Has been the question? I have about 50 parameters to include in my query, but the need to include those parameters is highly dependent on the situation. I could easily remove 200 lines if I could just keep them above all and add my parameters and create my query. A very simple / dumb / incorrect .. Example (yes, the solution here is to add the ID to the second block) cmd.Parameters.Add (" @ Id ", SqlDbType.Int) .Value = id; Cmd.Parameters.Add ("@Name", SqlDbType.nVarChar, 250) .Value = name; If (id == null) cmd.CommandText = "Include tab (name) values ​​(@ name)"; Else cmd.CommandText = "Update Tab SET name = @name WHERE id = @id"; returns this error: System.Data.SqlClient.SqlException: parameterized query '(@ id, @ name)' parameter is expected ' @id ', which was not supplied If this is not pos

javascript - What does fusion chart buy you that D3 doesn't? -

We are trying to create heavy graph based dashboards. Among the things we have to choose, D3.js and Fusion Chart Fusion Chart are paid, so my question is, what is better in the Fusion Chart that D3 is not? D3 is a library that manages to manipulate the DOM, not a charting library, depending on the data. It will have to create a chart to give you full control, but you have to spend time creating chart (scales, margins etc.). There are some libraries like NVD3 which can reduce the process but they can be difficult to modify. Fusion charts get support for IE 6, 7 and 8, while D3 does not support them. Allows Fusion chart charts to export PDFs, PNGs ... easily. Fusion Chart has no support for the time series, while D3 support There is no Brush component in the Fusion Chart, whereas D3 is:

angularjs - Angular views and ASP.NET MVC Views in the same folder -

I am developing an application in Angular and ASP.NET MVC. I would like to keep some angular partial and MVC partial in the same folder because they are logically related i. For example: /MyApp/Widgets/Image-config.html /MyApp/Widgets/Image-designer.html / MyApp / Widgets / Image.cshtml I use it as a shared partial folder by adding it globally. The widgets that were made were able to create folders. AX: ViewEngines Engine. Add (New RangerVisin {Partial View Space = New String [] {"~ / Widgets / {0}. Cshtml", "~ / View / {1} / {0} .cshtml", "~ / View / Share / { 0} .cshtml "}}); and copying web.config from the original view folder However, now I get a 404 when angular HTML goes to get the template. Is there a way to configure widgets folder, so that it can serve both the static files and a place for my server side partial view? What do I create controller methods and uses partial sequences, so my angular View . Cshtml is also the

facebook - Increase access token validity -

Is it possible to generate an access token to read the Facebook account's feed, where access tokens never expire is. Initial Login Login Token is exchanged, so I understand maximum of 60 days. Is it possible to last more than 60 days? Now when offline_access is no longer available, no answer no . There is a permission called offline_access , which uses long to operate token time periods, but now. Instead, they are presented. When you redirect your potential user to the login dialog and the user completes his login and app authorization process, the user is redirected to your web page. This is where you get the code parameter and you will exchange it for short term access token , which is valid for about 2 hours. The login must be sufficient for the purpose. If you want to store tokens for later use, you should get longer access token . I believe this is what you have mentioned. This token stays at approximately 60 days because you have already figured

c++ - Appending to existing file via boost -

I need to collect several log files in a log. I tried to promote it with: FileSystem :: Copy_file but it does not support the applying. Any thoughts? (I'm liking it via libraries promoting) Tnx Don does not require a boost for this simple task - standard iostream will do the job: #include (Note that the above approach can have sub-optical performance, to see how to improve performance.)

reporting services - SSRS, record spans muliple pages, print current record id in footer -

I have a large SSRS report where data (tables and sub-reports) spread multiple pages (2-4) . This report is a printed survey that the user will fill and mail. I would like to add a footer with the record id in the footer, so that when the page is found, users will know which survey / business page goes. Customers can print many surveys at a time. Surveys are dynamically created and based on business data, the length is based on variable. Does anyone know how to insert row level data in the SSR report footer? I will use ReportItems syntax example = ReportItems! Id.Value

javascript - Format Date and Time into DTG -

I have a line where users enter different types of data, because there are different formats that I want to standardize. . For example, 12/21/2014 1900 This is a possible format I & lt; Td> to change it to DTG format DD-HHMMZ-MMM-YY day, instead of 24 hours in 24 formats Afternoon / Z requires Z for Zulu, Month and Year How will I make this change when the user enters data? I was looking for the javascript onchange, but I'm not completely sure. What am I saying 'again' is asking that the user to enter date information How to force subsequent input I'm assuming that you know how to format the date based on given input. This example shows you how to use Jquai. The original code looks like this: $ ('date'). Change (function () {$ (this) .val ('calculation / formatted date');}); However this is not specific to your use.

c# - How to correctly perform Linq-to-XML query? -

मेरे पास XDocument नामक currentIndex जैसा है: & lt; INDEX & gt; & LT; SUBINDEX & gt; & Lt;! - बहुत से टैग और इंफोस - & gt; & LT; SUBINDEX & gt; & LT; मद & gt; & LT; IDITEM & gt; 1 & lt; / IDITEM & gt; & LT; मद & gt; & LT; मद & gt; & LT; IDITEM & gt; 2 & lt; / IDITEM & gt; & LT; मद & gt; ... & lt; आईटीएम & gt; & LT; IDITEM & gt; एन & lt; / IDITEM & gt; & LT; मद & gt; & Lt; / सूचकांक & gt; मैं एक नया XDocument ऊपर एक जैसा पुनर्निर्मित करूँगा: & lt; INDEX & gt; & LT; SUBINDEX & gt; & Lt;! - बहुत से टैग और इंफोस - & gt; & LT; SUBINDEX & gt; & LT; मद & gt; & LT; IDITEM & gt; 2 & lt; / IDITEM & gt; & LT; मद & gt; & Lt; / सूचकांक & gt; मैं इसे सी # में करना चाहता हूं, मैंने इस तरह से शुरू करने की कोशिश की है: सार्वजनिक शून्य पैरासेटम्स (XDocument आइटम) {IEnumerabl

android - Getting Fatal Exception after showing "Custom Toast Message" -

I am trying to learn Android by following some online video tutorials. I've seen a video to create custom toast messages. I followed the same thing. But after seeing the toast message I'm getting fatal exception (when stopped). The exception is as follows: 04-28 21: 36: 03.726: E / Android time (2417): fatal exception: main 04- 28 21: 36: 03.726: E / Android Rendime (2417): java.lang.IllegalArgumentException: Do not Attach Window Manager 04-28 21: 36: 03.726: E / Android Time (2417): Android. On. Windows Manager. Iplend View Window (WindowManagerImpl.java355) 04-28 21: 36: 03.726: E / Android Randomime (2417): Android. On. Windows Manager Impl. Review (Window Manager Impl. Java Version) 04-28 21: 36: 03.726: E / Android Random (2417): For Android. Whit Toast $ TN Holland Show (Toast.Java: 370) 04-28 21: 36: 03.726: E / Androindertime (2417): On Android. Toast $ TN $ 1.Run (toast.java 302) 04-28 21: 36: 03.726: E / Android Time (2417): Android.OS Handler Handy

java - Save ArrayList<Object> in Android -

I am developing an app that will send emails in several steps, but I have to check the internet connection. If the user has an internet connection, I only send the email, but if the user does not have internet then I will have to save the email request and the user has to send an email to get it back in Internet connectivity. I have created an ArrayList and email requests have been added to that list when there is no user connection. How can the Permanent ArrayList save in the app? I have to store the list permanently because I need a list even after closing the user's app and reopening it. Simple answer: You need to have some type of SQL database to save data, though your code Without you will not get a specific answer. To learn how to use SQL Lite, via DB Internet connection. This helped me during the university: on the head

ajax - Primefaces CommandButton not working inside DataTable -

I have a prefetch command button which is outside the data table that works properly. Inside the datatable, I have the exact same command button, but when one click is done inside the data tab, this action caller does not say: & Lt; P: accordionPanel & gt; & Lt; P: tab title = "view of data" & gt; & Lt; P: command button value = "add domain" action = "# {triplostor controller.adademon ('domain')}" update = "domainkitable" /> & Lt; P: DataTable id = "DomainSkillTable" var = "result" value = "# {TripleStoreController.domainResults}" row = "# {results}" & gt; & Lt; P: column & gt; # {Results} & lt; / P: column & gt; & Lt; P: column & gt; & Lt; P: command button value = "add domain" action = "# {triplostor controller.adademon ('domain')}" update = "domainkitable" /> & Lt; / P: column & gt;

PHP/MYSQL Newsletter read/unread system -

मेरे पास एक छोटी सी समस्या है तालिका (user_table) आईडी | उपयोगकर्ता नाम | नाम | पासवर्ड तालिका (न्यूज़लेटर) आईडी | सारणी (न्यूज़लेटर_पॉस्ट्स) & lt; - यह तालिका मेरी समस्या के लिए बहुत महत्वपूर्ण नहीं है। User_table लचीला है, इसका मतलब है, कभी-कभी मैं नए उपयोगकर्ता बना देता हूं, कभी-कभी मैं उपयोगकर्ता हटा देता हूं। न्यूज़लेटर तालिका भी लचीला है। इस महीने 1 | 12345678 अगले महीने 2 | 23456789 और इतने पर ... लेकिन मैं कैसे सभी समाचार पत्रिका और सभी उपयोगकर्ताओं के लिए एक पढ़ा / अपठित तालिका बना सकता हूँ मेरे पास लगभग 100 उपयोगकर्ता हैं और प्रति वर्ष 12 न्यूज़लेटर हैं। ग्रीटिंग्स डेनिस आप एक तालिका बनाते हैं जो न्यूज़लेटर तालिका को उपयोगकर्ता तालिका से संबंधित करती है। न्यूज़लेटर_यूज़र ---------------- id user_id newsletter_id एक पंक्ति के अस्तित्व में घटित होना चाहिए (डालें) जब कोई उपयोगकर्ता समाचार पत्र पढ़ता है यदि कोई पंक्ति नहीं है, तो उपयोगकर्ता ने समाचार पत्र को नहीं पढ़ा है User_id, newsletter_id पर एक अद्वितीय अनुक्रमणिका बन

Java Array index out of bounds while making a string -

इस सवाल का पहले से ही एक उत्तर है: < / P> 13 उत्तर मैं एक कोड बना रहा था स्ट्रिंग में कुछ अनन्य पूर्णांक बनाता है और मैं अचानक एक अपवाद में भाग गया और मुझे यहां काफी समस्या नहीं मिली है, क्योंकि मुझे लगभग पूरा किया गया था। और अब क्या हो रहा है मुझे नहीं पता। यहां मेरा कोड है: स्ट्रिंग [] res = new string [12]; Int [] ia = {1, 6, 9}; Int [] ai = {97, 79, 8}; Int [] ए = नया इंट [10]; के लिए (इंट I = 0; i & lt; a.length; i ++) {a [i] = (आईआईए [नया रैंडम ()। NextInt (3)] ^ (एआई [नया रैंडम ()) nextInt (3)] * मैं)); के लिए (int j = 0; j & lt; res.length; j ++) {यदि (एक [i]> gt; = j) {res [j * i] = "j:" + (a [i] * एक [नया रैंडम () nextInt (10)])।; // अपवाद} और अगर (ए [आई] और एलटी; = j) {res [j * i] = "J:" + (- (एक [i] * एक [नया रैंडम ()। NextInt (10)]) ); }}} यहां फेंक दिया जाने वाला अपवाद है: थ्रेड में अपवाद "मुख्य" java.lang.ArrayIndexOutOfBoundsException: 12 testy.main पर ( I.java15) के अधिकतम मूल्यों को देखें I / j के

objective c - iOS Game Center simple leaderboard -

I have an iOS app using the Sprite Kit which I would like to add a simple leaderboard. I have tried many tutorials, but these are all for the older versions of Xcode and iTunes Connect. So far, I have successfully authenticated the user (ie when I open the app then it is welcome, or asks to log in if I am not logged in). What is there I will explain the tutorial a simple leaderboard which refers to (such as Flappy Bird included), which iTunesConnect side and updated with iOS 7 and iOS Xcode 5? Thanks! The apple document for leaderboards is very good, it explains how to divide the iTunes connection and in the second page Xcode implementation with code examples. You can find contact information from iTunes here: Example of code is given here: outside of the app code link that Iraki has mentioned, is a great one.

c++ - Why am I getting "No manual entry for gcc" -

When I enter: man gcc I get a "no manual entry for GCC" . The same thing happens with G ++ Why am I getting this and how can I fix it? I have both GCC and G ++, but when I use it on the Sigwin Terminal, it does not seem that. I am on windows You do not have support files for GCC (aka man pages) or installed in G ++ signin . You need to run Saigwin Setup * .exe again and select to install it. I'm not sure which package this is.

javascript - HTML.Textbox validate a string entered in a textbox -

There is no way to validate the information entered in this text box code - @ Html.TextBox (string.Format ("Customer.CustomerMeasurementProfiles [{}}. Customer Measurement [{.} Value", i, k), oMeasurement.Value, new {@class = "Form-Control Input-SM "}) I have to see if it is empty or empty, if so, I have to put 0 in the field. You may need a 2-step solution first of all in a client-side javascript in your text box Managing events will manage. This is not bulletproof, because any client-side behavior can be tricked / overridden. The next step will check / set the value presented in your controller code.

javascript - Error "undefined is not a funcion" when performing a $.find -

People, once again I beg for help I can not find my head about this - I only want to name my name The indexed texts require indexed updates of the name attribute. I want to show the user a row in the table and, as he clicks on the plus sign, another row is added too. To make my side work on the server side, I need to reindex the name parameter. In the same way I am trying to do this: function reindex () {$ ("table"). ("Tr.faixa"). Everywhere (function (index, value) {value ("input.faixa_min") etter ("name", "data [" + index + "] [bonus] [fuxa_min]"); // < Attr ("name", "data [" + index + "] [bonus] [fx_max]"); value.find ("input.valor_bonus"). Attr ("name", " Data entry ("name", "data [" + index + "] [bonus]] [payka_bone]" "[index +"] [boncerecgarga] [waler_bone] "); value.find (" input.perc_bonus ") ;;}); }

c# - How to programmatically detect if Windows 8.1 Update is installed -

I will check with the C # application whether the latest (KB 2919355) is installed There is nothing available on any Microsoft site or through Google which indicates how this can be done. Thank you! This update is actually a collection of "rollup" or other small updates. If you go to "File Notification" and see below, then you can see the update. In fact the combination of the following other updates. KB2919442 KB2919355 KB2937592 KB2938439 KB2934018 Then you will need to either examine all the updates listed above are applied or a single master update applies. I'm not sure how to do it in C #, but through the command line you can do it by console command get wmic qfe hotfixid. Search "KB2919355"

ios - Creating a note in a Evernote linked notebook -

मेरे पास एक लिखित नोटबुक में एक नोट बनाने के साथ कुछ समस्या है IOS evernote SDK । मैंने केवल सवाल में नोट स्टोरी प्राप्त करने का प्रयास किया है EvernoteNoteStore * noteStore = [EvernoteNoteStore noteStoreForLinkedNotebook: self .linkedNotebook]; मैंने तब [noteStore createNote: note success: सफलता विफलता: ^ (NSError * त्रुटि) के साथ एक नोट बनाने का प्रयास किया है {NSLog ( @ "% @", त्रुटि); }]; यह हमेशा एक त्रुटि कहता है कि मुझे नोट बनाने की अनुमति नहीं है। मैंने अपनी लिंक्ड नोटबुक में साझा की गई कुंजी के साथ प्रमाणित करने की कोशिश की है, लेकिन विफलता ब्लॉक में एक ही त्रुटि के साथ भी रोक दिया गया है। [noteStore authenticateToSharedNotebookWithShareKey: Self.linkedNotebook.shareKey सफलता: ^ (EDAMAuthenticationResult * परिणाम) {[नोटस्टोर बनाएँ नोट: नोट सफलता: सफलता विफलता: ^ (एनएसईआरआर * त्रुटि) {एनएसएलॉग (@ "% @", त्रुटि); }]; } विफलता: ^ (एनएसईआरआर * त्रुटि) {एनएसएलॉग (@ "% @", त्रुटि); }]; मैं एक लिंक नोटबुक में एक नोट बनाने

bash - placements of an error message in while loop with conditional statements -

This script checks for 5 seconds every 5 seconds for the file's existence. The script waits for the file to appear if it gets the file because it "info: waiting" If I can not find it, then with the error message it exits after 30 seconds If the file is not found. The way the script is configured, error timeout is now printed after each error. <$ P> #! / Bin / bash count = 1 while [$ count -le 6], then [! -e / TTP / 297 Tiaksteepi] again "Note: 5 Sleeping for seconds" ((count ++)) sleep 5 Alsf [-e /tmp/2007.txt] echo "information awaits" break fi echo "ERROR: 5 Sleeping for seconds: Timeout information: Sleeping for 5 seconds Error: Timeout information: Sleeping for 5 seconds Error: Timeout information: Sleeping for 5 seconds Error: Timeout information: For 5 seconds Sleeping error: Timeout information: Sleeping for 5 seconds Ruti: timeout If I place it out of the loop - it does a great job brake foot echo "ERROR: Timeout

In python 2.7 - How to read data from csv, reformat data, and write to new csv -

I'm a programming knob, and I'm stuck ... my goal is to open a CSV file (an export program A ), To reproduce the data, and to write it in a new CSV file (to import program B) I know that my code is not very good, though it works as long as They do not write in the new CSV file. It only writes the last line of data from the old CSV. Enter CSV print 'file location or press Enter for the default location.' APath = raw_input ('& gt;') # User Path ifPath == '': aPath = '/ default / path / to / file' # Default path aFile = raw_input ('Enter file name' '#) File name if AFile == '': aFile = 'orginal.csv' # Default file name myCSV = csv.DictReader (open (aPath + aFile, 'r'), delimiter = ',') print myCSV.fieldnames # field name Verify mysv at p: w = csv.writer (open ("output.csv", "w")) try: p = dict ((k, v) k, p.iteritems () in v if v. Except AttributeError, e: Print and Print P ex

firefox - communication between web page script and content script and main.js(Add-on code) script -

Image
इस सवाल का पहले से ही एक उत्तर है: < / P> 1 उत्तर अद्यतन करें: < / Strong> क्षमा करें, यह उदाहरण काम करता है, मुझे एक छोटा बग मिला और मेरे पूर्ण स्रोत कोड में तय किया गया। लेकिन मैं अब भी ऐसे किसी व्यक्ति को चाहते हैं जो बेहतर जानते हैं तो मुझे इस प्रश्न का एक अच्छा जवाब देने के लिए चाहिए कि वेब पेज स्क्रिप्ट और सामग्री स्क्रिप्ट और मुख्य। जेएस (एड-ऑन कोड) स्क्रिप्ट के बीच संचार कैसे प्राप्त करें, कृपया यह भी जवाब दें कि हम स्थानीय स्टोरेज वेब पेज स्क्रिप्ट से और ऐड-ऑन स्क्रिप्ट पर भेजें। मुझे पता नहीं है कि बीच में एक बुनियादी संचार कैसे ठीक होगा: पृष्ठ स्क्रिप्ट -> सामग्री स्क्रिप्ट -> ऐड-ऑन स्क्रिप्ट और इसके विपरीत ऐड-ऑन स्क्रिप्ट -> सामग्री स्क्रिप्ट -> पृष्ठ स्क्रिप्ट कृपया ध्यान दें कि मैं मूल वेबपृष्ठ स्क्रिप्ट के रूप में पेज स्क्रिप्ट समझता हूं, यह है एक सैंडबॉक्स में नहीं पृष्ठ स्क्रिप्ट वेबपेज हैडर से है: & lt; head & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "http://w

Deserializing 2D array of objects JSON to Java -

I am using GSON to deserialize my JSON string. It seems that when you try to deserialize the 2D array of objects, tickles here are bit: {. "State": ["Span": "{{" name ":" STATEA "," duration ": 4}, {" name ":" STATEB "," duration ": 4}], {" ALIVEPHASE ": [{" Name ":" STATEA "," Duration ": 5}, {" Name ":" STATEB "," Duration ": 4}]}]} A part of a larger JSON above is that I got the expected BEGIN_ARRAY but was BEGIN_OBJECT , I have seen my JSON, but I do not know where it is wrong Group g = gson.fromJson (configfile, Group.class); I use this to start reading. Is it not enough to take action on string for 2D array? I tried both in Group.class state state [] [] states; and public list & lt; List & lt; State & gt; & Gt; States; Everything else seems to recover. Do I have to use it (below)

php - Fatal error: Call to a function on a non-object in -

I am printing information from a table (tblgroups) and after that I am using a group of members (TWG Group_member) avatars (Tblgroup_member) When I try to get the Gram_id (I'm imprinting from the group) function Getmembers) This is telling me that I have a non-object ( $ memberinfo = $ Group- & gt; Getmembers ($ group ["group_id"]); ). But I declare the $ group = new group (); ? It is saying that the mistake is on this line: $ memberinfo = $ group-> Getmembers ($ Group ["group_id"]); PHP $ group = new group (); Foreign exchange ($ group $ group) {resonant "& lt; p class = 'groupname' & gt; & lt; a href = 'group.php? Group_id =' $ group ['group_id']. '' & Gt; ". $ Group ['group_name']" & lt; / A & gt; & Lt; / P & gt; "; echo $ group ['group_id']; $ memberinfo = $ group- & gt; Getmembers ($ group [" group_id "]); / * Foreach ($

javascript - Validation, how it make in jquery -

I have two main fields: Paceel and Nip . But if someone else is full, then it is not enough to fill it. For example, if I complete the field Nip , then I do not have to fill the field Pesel , but I can do it I am Validate $ ("# form1") ({submitHandler: function {form} Required: true, email: true}, nazivosco: {// compound rules required: true,}, sid: {required: true, meanline: 9, sid: true}, pecel: {minlength: 11, pesel: true} Nip: {required: true},}}); }); & Lt; / Script & gt; I download it from the link: on the basis , You will need to use the need_from_group method, where you will need to assign paycell and nip to a group: // script was compressed with $ $ ("#Form1"). Validate ({Rule: {pesel: {require_from_group: [1, ".example-group"]}, NIP: {require_from_group: [1, ".example-group"]}}}); I set this up, we have this form: & lt; Form id = "myform" & gt; & Lt; Label = "pecel

Timeout in copy or move file VB6? -

I want to copy a file from folder to another folder, but for some time the source is not available or yet available , The source file is located on the network drive, so sometimes the network is slow or even the file is in use. So I want to add the timeout parameter to the copy file command to avoid the "file not found" or any other error Can not copy / move operations when the standard copy / move functionality created in the operating system will fail. Will be completed (for example, when the file was not found). There are several ways to open it from VB 6. You can make the built-in call, or you can use the FileSystemObject , which also contains CopyFile method Finally, you can either import or import a function from a Windows API Are and can call. In any way you choose to go, you will simply write the error handling code which is the operation. If you want to avoid seeing this error in the user , you will swallow it in your code and your application will n

javascript - Dropdow menu keyboard responsive problm -

I'm really new to building websites, I'm trying to make this dropdown menu keyboard responsive but not working I am doing / P> Now I can display a tab and drop menu on the link. Demo: CSS: # menu {width: 200px; Background: # 444; } .noBullets {list-style: none; Padding-left: 0 pixels; } #Menu Li One {Padding: 15px; } # Menu a {display: block; Color: #fff; } # Menu ul ul {display: none; Background: # 000; } #MenuUlAlA: Hover {background: # 222; } HTML & lt; Div id = "menu" & gt; & Lt; Ul class = "noBullets" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Home & lt; / A & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; About us & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Instructions & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "

unmanaged win32 dll not loading in .net MVC app on IIS 8.5, Win Server 2012 R2, Azure virtual machine -

I'm trying to consume Win32 DLL in a .NET MVC app. Although I'm receiving the following error: Unable to load DLL 'experiment_dll.dll': The specified module was not found I used the Process Monitor to capture file system activity Trying to execute the code DLL has done. It shows that DLL can be viewed and most file system operations are successful. Two full size screen capture of file system activity - As you can see one of the results of an operation The file is only closed with readers . Why can it be that the DLL has failed to load and why the error message is saying that the DLL was not found? Update: I have found this forum thread saying that this result is really successful and therefore this should not be a problem - If this is a permission If the issue is, how can it be decided? I have already given full control over DLL file and bin and root folders to AP pool. I have a test MVC app and a test DLL (which only takes a function that gives

javascript - Best practice for offline compatibilty of mobile web app using MySQL and PHP -

I am preparing a mobile web app that has a MySQL database back-end and some simple PHP Fetch query datasets and put them into an array for further processing with Javascript. Right now, everything is built in a file, which is called index.php. What would be the best practice, site offline compatible, need to store SQL data in local storage with HTMX in any way and I would probably have to separate PHP code into my file and in it AJX The query is included, okay? Is there any code examples that? You can see this is support for MySQL and is easy to simplify JSN data management. . You load the data as JSON, which saves BreezeJS in its EntityManager, and then you can serialize the data and save it to the local storage. After working through some examples it is very fast and very simple. var exportData = manager.exportEntities (); Window.localStorage.setItem ('myOfflineData', export data);

jsoup - is there a var_dump like function in clojure? -

I like printf debugging, is there a function in the closure that works like var_dump of php which prints anything ? I am trying to parse the html with jsoup and I want to see that I see it as a printing reaction, in RPL I see that the HTML Loading the feedback as a file, which I tried to load, the browser I'm not seeing anything and the terminal shows an error: java.lang.Exception: unfamiliar body. Print to string on , use pr-str . Or use println to print REPL. (pr-str {: a1}); = & Gt; "{: 1}" (println {: a1}); = & Gt; If you want more options and beautiful printing, then you can try or ('requires [closeor * Pprint: see [Pprint]]) (Pprint {: 1} ); = & Gt; Void *** You can not see it but REPL now has beautifully formatted output ***

python - sci-kit learn crashing on certain amounts of data -

I am trying to process 71,000 rows of more than 200 columns with a lower array and two science-kit models I learn I'm trying to give both different error when I tried to remove the problem line more than 5853 rows, but it failed. Can not science-kit learn to handle this much data, or is it something else? A list of XLists is a narrow array. KNN: nbrs = Nearest navy (n_neighbors = 2, algorithm = 'ball_tree'). Fit (x) Error: File "knn.py", line 48, Value error: data type is not understood K-mean: kmeans_model = KMines (n_clusters = 2, random_state = 1). (X) Error: Traceback (last call final): File "knn.py", line 48, Please check dtype of your matrix X By typing X.dtype , if it is object or dtype ('o') , then in an array length = [for line in x] [lane (line)] then it Take a look to see if all the rows are of the same length, using np.unique (length) In more than one numbers, your line length is d

ios - Apple Mach-O linker error: Undefined symbols for architecture armv7 -

I am quite new to the coding world, but I'm picking things up on the real quick. However, this issue has defeated me - I have tried to look through many forums, what is the problem, but there is no dice yet when I try to run an app on my device then two linker errors there are - there is no error in this simulator is logged: undefined for architecture ARMv7 symbols: "_NewBase64Encode", refers to: -: + [NSData ([NSData (Base64) Base64EncodedString] in nsdata_and_base64.o "_NewBase64Decode", from Refers Base64) dataFromBase64String:] in nsdata_and_base64.o _checkReceiptSecurity in verification_controller.o ld: symbol (s) found for Architecture ARMv7 Clank: error: Failed out of the linker command exit code of 1 (use -v to see Invocation) Anyone found out what could be the problem? Help will be greatly appreciated .. Thank you !! lib If you are using the simulator (i386 architecture) has been compiled BTW for You need to find lib or create it if y

algorithm - Matlab graph theory asymptotic complexity -

I have recently been interested in graph theory and after having invested in the Bioinformatics toolbox for MATLAB, I have found the Graph ShorestestPath function incredibly useful. I "post-text" itemprop = "Text"> . However, while using the function, run times are always very similar, whether I set the function for the fourth-fourth quest, the algorithm of the dzstra, or the Bellman Ford algorithm. I have tried to differentiate between hundreds of thousands of nodes in a few hundred and still the run times are almost identical. Now on the MATLAB website, Dizkstra's algorithm reflects the complexity of a time that suggests it will be much faster than the other two algorithms. Since the time I have read the complexity, it is the worst case, but I hope that at least the difference in running time is seen. Look here () Am I missing something here? Any help would be greatly appreciated. Just an estimate, but depending on how you're measuring

bash - Pig installation in Cygwin -

I've installed Hadoop 2.3.0 in windows successfully, but trying to install pig using cygwin , I am stuck together in an error that pig-version of cygpath says: C can not make a name short: \ pig \ log error: looks or could not load Main class org.apache.hadoop.util.RunJar and my party variables here export JAVA_HOME = / cygdrive / c / java / jdk1.7.0 _4 5 Export Path = $ Path: $ JAVA_HOME / bin Export HADOOP_HOME = / cygdrive / C / Hadoop Export Path = $ Path: $ HADOOP_HOME / bin Export PIG_HOME = / cygdrive / C / Pig Export Path = $ Path: $ PIG_HOME / bin Can anyone help me get this error? Updated:? If I add HADOOP_CLASSPATH as the bottom, exported HADOOP_CLASSPATH = $ (cygpath -pw $ (Hadoop classpath)): $ HADOOP_CLASSPATH I am getting a different error as < 14/04/29 10:41:42 error util.Shell: winutils failed to find binary in haup binary p at Ath java.io.IOException : Could not find executable tap \ bin \ winutils.exe in Hadoop binaries. Any help w

Uploadify don't show upload button in internet explorer 11 -

Please browse the Browse IE11 link, you can see that IE11 does not show the upload button, instead it uses the original upload input Shows up How can I solve this problem or how to solve it? Thank you very much. Make sure that you have Adobe Flash installed I had the same problem with IE 11 and this issue Fixed it. Hope it helps.

sql - What is the correct way to get created row Id on Oracle using the RETURNING INTO clause in c# and OCI: -

I have the following statement for entering a line and inserting the id or line: Int ReturnId; Include string sql = "table_name (a, b, c) values ​​(1, 2, 3) return back ID: return iid;"; Oracle Commands Command = conn.CreateCommand (); Command.CommandText = sql; Console.light line ("line created has an id" + return iid); This does not work. I also tried to make the following differences: string sql = "table_name (a, b, c) values ​​(1 , 2, 3) Include in Returning ID; "; Oracle Commands Command = conn.CreateCommand (); Command.CommandText = sql; Int rowsUpdated = command.ExecuteNonQuery (); If (rows updated! = 1) return; OracleDataReader Reader = command.ExecuteReader (); While (reader.Read ()) {string id = (string) reader ["ID"]; Console.light line ("line created has an id" + return iid); } This includes two rows in this database, and the reader is empty. Your return section is ok But your C # code is all wrong Y

shortest path - Geodesic on Matlab PLY Surface Mesh -

Image
I have a CT scan for the heart and I'm designing the device that is located above it, like It is important to get the right length for attributes. The CST scan was split into Meshlab and my advisor gave me the code, which uses PLY_IO to read the ply file exported from Mashlab. From this, I have a surface map of Surf (Map.x , Map.y, map.zade) output to 3D model. Now, which ideally I want to be able to choose graphic points through the image window, and Matlab will either tell me what the points are or I have to draw a geodesic line to determine my length. Question : Does anyone know how I can do it in a simple way? Finally, the drawing on the figure can also be fine, if I can get it in the bus, the correct orientation is ideally, however, I select the beginning and the end point and then the matlab graphically I see a geologic surface on which I can get length later. I am willing to do some programming for this, but hopefully there will be something that you may already know.

visual c++ - When linking, how to find out which source lib refers to an non-existing target lib -

I realized that I have to deal with this problem using Visual C ++ 2008 to compile the old program , I got the error link: fatal error LNK1104: File 'LIBC.lib' Can not open VC project after scrutiny, I believe Is that it has been compiled from an old Lib (which will be associated with the final EXE) era of the C ++ 6 LIBC.LIB link-direction mb Dead ( cl / ml ... ). Because some of my projects have been added to my project, I think I should include the A quick way to locate which includes LIBC.LIB link-instructions in the lib so that I can fix those lbs to use the / MT>. BTW: Using /NODEFAULTLIB:LIBC.LIB as a solution, the linker option is not decent because there is a binary interface incompatibility between single threaded CRT and multithreaded CRT . "post-text" itemprop = "text"> I'm not sure because I have not developed for Visual Studio in a while, but give the Dumpin tool As you have the proper information about your l

iphone - How to close NSURLConnection -

[एनएसयूआरकनेक्शन भेजेंएसिंक्रोनससेंट: अनुरोध कतार: कतार समापनहैंडलर: ^ (एनएसरलआरआरस्पॉन्स * प्रतिक्रिया, एनएसडीटा * डेटा, एनएसईआरआर * कनेक्शनएर्रर ) {} अगर मैं sendAsynchronousRequest की तरह NSURLConnection का उपयोग करूँ तो मैं इसे कैसे बंद करूँ? यदि आपके पास NSURLConnection ऑब्जेक्ट [conn रद्द करें] है, तो आप निम्न विधि का उपयोग कर सकते हैं। ; कहां conn है NSURLConnection ऑब्जेक्ट। रद्द एक अनुरोध के असिंक्रोनस लोड को रद्द करने के लिए उपयोग किया जाता है। मुझे आशा है कि यह तुम्हारी मदद करेगा।

c# - Thread.CurrentPrincipal.Identity.Name vs OperationContext.Current.ServiceSecurityContext.WindowsIdentity.Name -

I have a WCF service which authenticates Windows authentication users until I used Operation Contact yesterday . Present. Service Security Links Windows Identity Uses the current user service to get the name, but this unit has difficulty testing the test so I switch to the thread. Currently the principal. Recognise. To retrieve the user using the service. My question is, is there any difference between the two in some environment? threads. Custom Principal. Identity can not be a valid user of your WCF. This may be the identity under which the WCF worker thread is being executed. For example, this may be an IIS user if you host your WCF in IIS.

jquery - JQGrid Date Picker error -

I use the code below to show datepicker for the text field. The grid is working well when I click the add button then an 'undefined' error appears. Please help me solve it. "FLD_PURCH_DATE", Index: 'FLD_PURCH_DATE', Width: 130, Editable: True, Editing: "Text", Editorial: {Required: True}, Form: {rowpos : 2, colpos: 2, elmprefix: "& amp; nbsp; & amp; nbsp; & lt; span class = 'required'> & lt; / span & gt; & amp; nbsp;" }, Editoptions: {dataInit: function (element) {try {$ (elem) .datepicker (); // error here } Hold (pre) {Warning (ex.Message)}}}}, If I add the latest jquery url, that means the grid has disappeared. < I use it to use datepicker. Include datepicker in my code: & lt; Script src = "../../jquery.ui.datepicker-pt-BR.js" type = "text / javascript" & gt; & Lt; / Script & gt; Edit and in my column date: Edit option: {Size: 20, DataType: f

html - Mobile Safari - Form Submit, go back, then on resubmit it refreshes page -

I have an HTML form where users can select the filter and submit requests for the list based on those filters Are there. The user goes back to the mobile safari only and tries to re-submit the form based on the same or different filters, it only refreshes the page. Here's the form code ... I added that click because it was initially not loaded but did not do anything. & lt; Form method = "get" id = "gamefilterform" & gt; & Lt; Select Name = "gametype []" Multiple & gt; & Lt; Option value = "0" style = "visibility: hidden" label = "zero" & gt; & Lt; / Options & gt; & Lt; Option value = "1" selected = "selected" label = "team" & gt; Team & lt; / Option & gt; & Lt; Option value = "2" selected = "selected" label = "head_to_head" & gt; Head to Head & lt; / Option & gt; & Lt; / Select & gt; &

Selecting Data from .CSV format and insert into SQL Server table -

I want to select data from a .sv file and it is a table in SQL Server I want to put in a query automatically by using a query. Which driver can be used to select for .csv driver such as 'driver = {microsoft text driver (* .txt; *) . .csv)}; DefaultDir = C: \ TempInterface \; ', Thank you in advance Please feel free to See the link below.

Multiple group-by with one common variable with pandas? -

I want to mark duplicate values ​​within an id group. For example, id AB i1 a1b1i1a1b2i1a2b2i2a1b2 Should be ID A is a bbn i1a1bb1a1a1b2 2i1a2 1b2 2i2a1 1b 2 1 Actually count the multiplicity within the one and BN each id group. How can I do this in Pandas? I've found from the group , but it was quite messy to keep everything together. Also I tried the individual group for id, a and id, b . Maybe there is a way of pre-group by first and then use all other variables by the id ? (There are many variables and I have lots of man lines!) Tried for ID, A and ID, B I think this is a straightforward way of solving it; As you suggest, you can do the by group each and then calculate the size of the group. And use change so you can easily add results to the original dataframe: df ['an'] = df.groupby (['id' "a [a] transform (NP Secure) DF [ 'BN'] = df.groupby ([ 'id', 'b']) [B] transform (NP. ID AB a BN 0 I 1A