Posts

Showing posts from September, 2013

Localhost port 8000 and 8888 redirect to 8080 -

I'm forcing localhost to not track down: 8000 and localhost: 8888 to redirect to the localhost: 8080 Is there anyone who has an idea? I'm on a local machine, Mac OS X is not a server, I used jacile, pove, hackcro, node, vibric, and mamp. None of them is currently running (as far as I know). Very few devices that can do this for you Find port forwarding tools ... You can also make a tunnel with the SS.

javascript how to remove every 3rd element from an array -

How do I remove every 3 elements from an array? var TheArray = ['How can I make it without creating one without saying "Hello"? New array? Try this: for (var i = 2; I & lt; = TheArray.length; i + = 2) TheArray.splice (i, 1); If you want a string at the end, then just use TheArray.join ("") .

vb.net - Replacing a .NET dll -

I have a del, which is installed with the initial installation of my app (via the MSI file). DLL has a user key and it is a 'demo' for initial installation. When a user buys the license, he is provided with another DLL in which his name is included. The second DLL is the first, has been rebuilt with a different name, so this is the same GUID and file name. It works fine on my Win7 test machine, I can replace the dll in the Dll of my apps and it runs correctly. I recently provided a user DLL to a new customer, but the replacement method does not seem to work. She is quite a IT literate, so I think she is following the email instruction (by changing userdata.dll to your AP directory with attachment) it does not seem to replace DLL. She is using Win8 (Pro). I thought of sending an ino setup to copy the user DL to API DIR, Flags: Unblocked Resource Shared File Can a suggestion or an explanation be made? Later ... I have now sent an inline setup to the updated DLL and it w...

sql server - Query to select records in one table that have a record existing in another table -

मेरे पास दो टेबल हैं: अपॉइंटमेंट्स (ग्राहक आईडी, अपॉइंटमेंटआईडी, सेल्सआरिपआईडी, स्थिति, अपॉइंटमेंट डेट ) परिणाम (ग्राहकआईडी, अपॉइंटमेंट आईडी, परिणामित) मैं नियुक्तियों में अभिलेख ढूंढ रहा हूं जहां: स्थिति का परिणाम है (लंबित के विरोध में, रद्द , खुली, आदि) ग्राहक को पहले (Resultedales में ग्राहकआईडी) को बेचा गया है नियुक्ति का परिणाम बिक्री के रूप में नहीं हुआ था (अपॉइंटमेंटआईडी नतीजे में नहीं) नियुक्ति तब पहली बार हुई जब उपभोक्ता को पहली बार (ग्राहक नियुक्ति के लिए ResultedSales में AppointmentDate & AppointmentDate के सबसे छोटी AppointmentID रिकॉर्ड) बेच दिया गया था नियुक्ति के लिए सौंपे गए विक्रय रप पहले तीन के साथ प्राप्त कर रहे हैं का चयन करें अलग नियुक्तियों से एनटीआईडी ​​ए में शामिल हो गए हैं। A.CustomerID = RS.CustomerID पर आरएसयूटीसआईडी = 'परिणाम' और ए। कस्टमरआईडी में (ग्राहक आईडी से परिणामित सेल चुनें) और A.AppointmentID नहीं है (Resultedales से AppointmentID चुनें) लेकिन मैं समझ नहीं सकता कि # 4 और # 5 कैसे प्राप्त करें कोई भी मदद ...

MVVM, MEF, Silverlight and Service Agent -

मेरे पास वर्तमान में मेरे व्यूमोल्डल में निम्नलिखित कन्स्ट्रक्टर हैं सार्वजनिक कार्टिव्यू मॉडेल (): यह ( नया PayPalCompleted ()) {} सार्वजनिक कार्टव्यू मॉडेल (IPayPalCompleted serviceAgent) {if (! IsDesignTime) {_ServiceAgent = serviceAgent; WireCommands (); }} मैं अपने आवेदन प्रिज्म और एमईएफ modularise करने के लिए कोशिश कर रहा हूँ। मेरे मॉड्यूल ठीक काम करते हैं, लेकिन मुझे अपने एक व्यू मॉडेल्स के साथ परेशानी हो रही है। मेरी समस्या यह है कि मुझे कन्स्ट्रक्टर पर EventAggregator आयात करना पड़ता है, लेकिन मुझे यह समस्या है कि मैं यह कैसे एक paramatless निर्माता और साथ ही एक आयातक निर्माता [आयातक कॉन्स्ट्रस्ट्रक्टर] सार्वजनिक कार्टव्यू मॉडेल ([आयात] IEventAggregator eventAggregator) {if (IsDesignTime) {_ServiceAgent = new PayPalCompleted (); TheEventAggregator = eventAggregator; WireCommands (); }} यानी मैं इस तरह कुछ करना चाहता हूँ सार्वजनिक CartViewModel (): इस (नया PayPalCompleted (), IEventAggregator eventAggregator) {} [ImportingConstructor ] सार्वजनिक कार्टव्यू म...

javascript - In large JS apps where do I put custom methods to libraries and plugins -

I have a very large javascript application, which mostly use ZeeK and Knockout, basically I use my folder structure app in which I have written and all the constants, views, models and views are divided into models. Then I have the seller , which is the code I do not write like jquery, knockout, plugins, etc. The problem is that where I keep the stuff which falls in the middle, I've written some custom binding for the noseout and some functionality of some jquery plugins has increased and they just got me in the root of my app dir What is the best practice or naming convention for sitting? + app - constant - model - view-models - view jquery-plugin-extras.js knockout-binding.js etc + vendor Jquery.min.js knockout.min.js jquery-plugin .min.js + app - system (or core) // There is a core or system related generic-config / single location to store your configuration in, if you have only one, then put it on the root plugins / all plugins or bindings here - constellati...

javascript - JSON object repeated string efficiency -

I have a JSON object that contains approximately 150 entries of the form [key]: [sentence] Where the sentence often contains the same text repeatedly, for example: var test = {"abc": "This is the first sentence that is in this JSON object. . " "Abd": "Red, this is the second sentence that is in this JSON object. "AB": "This is the third sentence that is in this JSON object. Hey! Yellow." "ABF": "White, this is the fourth sentence that is in this JSON object. } You can see the string "Sentence that is in this JSON object." It often repeats whether it will be more efficient to replace it with some anchors and then should I replace an anchor when I get an entry from the object? That is: var test = {"abc": "This is the first # anchor # hello!" "Abd": "This is the second # anchor # Hi!" "AB": "This is the third # anchor # O!" "ABF...

php - How to Test if exists a Method inside a Property? -

त्रुटि फेंकने या "@" का उपयोग कैसे करें? वैध हो सकता है: $ foo- & gt; बार_एक्स; या $ foo- & gt; बार () - & gt; x (); मुझे ऐसा कुछ चाहिए: अगर (($ foo- & gt; बार () - & gt; x ())) echo $ foo- & gt ; बार () - & gt; एक्स (); अगर (($ foo- & gt; बार_ x)) echo $ foo- & gt; bar_x (); $ bar = $ foo- & gt; बार (); अगर (method_exists ($ बार, 'x')) {गूंज $ बार- & gt; x (); } अगर (property_exists ($ foo, 'bar_x')) {गूंज $ foo- & gt; bar_x; } बेशक, उन वस्तुओं से निपटना जिनके प्रकार आपको अच्छी तरह से पता नहीं है कि उन पर तरीके कॉल करने में सक्षम होना अच्छा नहीं है। यह स्पष्ट होना चाहिए कि किस वर्ग का एक ऑब्जेक्ट है और किस प्रकार का ऑब्जेक्ट एक विधि वापस आएगा और इसलिए कौन से तरीकों और गुण उपलब्ध हैं। परिभाषित इंटरफेस ओओपी का मुख्य बिंदु है। सबसे ज्यादा आपको यह तय करना चाहिए कि किस तरह की ऑब्जेक्ट के आधार पर कॉल करना है: if ($ foo exampleof SomeClass) {$ Foo- & gt; बार (); } और अगर ($...

python - Getting 400 from Bitbucket OAuth -

से आयात करें OAuth1 सेवा OAUTH_REQUEST = "https://bitbucket.org/!api/1.0/oauth/request_token "OAUTH_AUTH =" https://bitbucket.org/!api/1.0/oauth/authenticate "OAUTH_ACCESS =" https://bitbucket.org/!api/1.0/oauth/access_token "सेवा = OAuth1Service (name = 'परीक्षण' , Consumer_key = 'xxxxxxxxxxxxxx', consumer_secret = 'xxxxxxxxxxxxxxxxxxxx', request_token_url = OAUTH_REQUEST, access_token_url = OAUTH_ACCESS, authorize_url = OAUTH_AUTH) resp = service.get_raw_request_token () प्रिंट resp मैं बीटबकेट पर गया और एक उपभोक्ता कुंजी-युग्म उत्पन्न किया, लेकिन प्रतिक्रिया 400 थी। कोई भी विचार क्या चल रहा है? मैंने बिटबकेट डॉक्टर को देखा और यूआरएल सही है। अपना समय यहां लेने के लिए कृपया @maxcountryman के लिए धन्यवाद। मैंने सिर्फ उसे पढ़ा है: आयात से आयात ओएस आयात OAuth1Service OAUTH_REQUEST = "https://bitbucket.org/!api/1.0/oauth/request_token" OAUTH_AUTH = "https: // बिट bucket.org/!api/1.0/oauth/authenticat...

c++ - crash on find() of set container -

I have a SyncSet template class that is locked on the set operation. When I was under stress testing, I had an accident. When I check the crash output file, it seems that there is some reason to find the set container function. You can see your template class below and you can access related crash output in the pastebin link: Is there something wrong with my template class like this? Secondly, this is an OS cancellation application because there is more than or above the memory limit, is there a way to check the message on the OS (Windows 7 Professional)? All the advice and comments are good Thanks. template & lt; Typename T & gt; Class SyncSet {Public: SyncSet () {Initial Critical Science (& amp; m_lock); } ~ SyncSet () {DeleteCriticalSection (& amp; m_lock); } Insert blank (T'Ems) {EnterCriticalSection (& amp; m_lock); M_set.insert (ELEM); LeaveCriticalSection (& amp; m_lock); } Bool (t ames) {if (m_set.mti ()) m_set.find (amm) == m_set.end ()...

stream - A data buffer to subscribe and unsubcribe with real-time data using rabbitmq -

Actually I want to create a data buffer that the client can sometimes subscribe, get all the data from the last time Keep listening, for real-time data, then unsubscribe after some time, and repeat. I'm thinking of using a TTL rabbit queue that ends. This idea sometimes subscribes to the client and is unrelated to it. When the customer subscribes to the queue, he should receive all the messages in the queue. Then the real time data on the client channel will be pushed to them. Is this a good way to go about this? I know how to make pub / how can I make it about rabbits, so that the customer can push all the data on Qi on the criterion? It depends on how much data you are talking about on your method The drawback is that the queue can fill with a large amount of data, if the data rate is high and TTL is set to long. You have to keep the queue alive and you have a line from the beginning for every possible customer. I would suggest suggesting it to keep more messages. ...

java - Tomcat JDBC pool connections all stuck at Socket Read, and no new connection is created -

I have hosted on a Tomcat 7 application Amazon ElasticBeanstalk, and hosted on a MySQL 5.5 database Amazon RDS. The database server only serves a tomek application and its maximum connection limit is 10,000. Although there are strange things happening on the DB connection after a few hours of uptime. MySQL server reports that only 3 connections were created by the Tomcat JDBC connection pool, all of which were "sleep" (eg output): | 228 | Root | IP-10-240-xx-xxx.ap- Southeast -2 compute.internal: 33270 | Xxxxx | Sleeping 13. | Faucet Tomcat reading thread dump suggest that all 3 connections (blocking) network IO socket have: on java.net.SocketInputStream.socketRead0 (Native method) java.net.SocketInputStream.read (SocketInputStream.java:150) java.net.SocketInputStream.read (SocketInputStream.java:121) on com.mysql.jdbc.util.ReadAheadInputStream.fill (ReadAheadInputStream. java: 114) at com.mysql.jdbc.util.ReadAheadInputStream.read on Com.mysql.jdbc.util.ReadA...

CodeIgniter routing issue, advice how to do it -

I'm not a CI programmer, just trying to figure it out. Perhaps this is a wrong approach, please advise. My Controllers (not in subdirectory): Extend class user CI_Controller {function __construct () {parent :: __ construct (); } Public Function Index ($ msg = NULL) {$ this- & gt; Load-> Assistant (array ('form')); $ Data ['msg'] = $ msg; $ This- & gt; Load-> View ('Users / Login', $ data); } Public function process_logout () {$ this- & gt; Session-> Sess_destroy (); Redirect (base_url ()); }} and one way to login: $ route ['user / login'] = 'user / index'; The problem occurs when I want to logout, it shows me 404 because I do not have this in my way: $ route [ 'User / process_logout'] = 'user / process_logout'; And in my opinion, I & lt; A href = "users / process_logout" & gt; Logout & lt; / A & gt; When I add, it works, and it is stupid to add a path t...

java - Drawing & creating the canvas on the android screen -

The code will run through an array. If the character is seen in the 'X' array, then it will be painted on the respective location on the screen. The problem is that the color is not really being dragged on the screen Some of the Android websites talked about the need for canvas, bitmap etc. e.t.c. My question: What do I need to do to show the color with a direct method on the screen? package com.example.routedrawingtest; Import android App Import Android.graphics. Canvas; Import android.graphics.color; Import android.graphics.Point; Importroid.os.Bundle; Import android.view.Display; Import android.graphics.Paint; Import android.view.View; Public classroom enhances main activity activity {@ Override Protected Zero (Bundled Saved Instance) {super.onCreate (savedInstanceState); SetContentView (R.layout.activity_main); } Float scale_x; Float scale_y; Public Zero Main (string [] Args) {@SuppressWarnings ("unused") display display = getWindowManager (). GetDefa...

get all possible single bytes in python -

I test for a machine learning algorithm (8-3-8 mural network encoder) to generate all possible bytes I am trying to Is there a way to do this in dragon without doing 8 loops? What settings can help? I would prefer a great way to do this, but what can I get at this time. desired output: [0,0,0,0,0,0,0,0,0,0] [0,0,0, 0,0, 0,0,1] [0,0,0,0,0,0,1,0] [0,0,0,0,0,0,1,1] [0,0,0, 0,0 , 1,0,0] [0,0,0,0,0,1,0,1]. . [1,1,1,1,1,1] Yes, There is: import itertools itertools.product ([0, 1], repeat = 8) & gt; & Gt; & Gt; List (itertools.product ([0, 1], repeat = 8)) [(0, 0, 0, 0, 0, 0, 0, 0), (0, 0, 0, 0, 0, 0, 0) , 1), [...] (1, 1, 1, 1, 1, 1, 1, 0), (1 , 1, 1, 1, 1, 1, 1, 1)]

performance - NP-complete, no efficient algorithm? -

Image
I do not have much information about NP-completion, but read more about it here and here. The introduction of the book of algorithm, I am reading (myself), "Although no efficient algorithm has ever been found for the NP-complete problem, nobody has ever been proved that an efficient algorithm for someone is not in existence. " I'm just thinking, how does it know that they do not have any algorithm, which is not the most efficient ... if it's all the efficient set of algorithms? Thank you, Sam Great question I'm curious I will answer the question, but this is my endeavor. It is my endeavor. It is astonishing to know if a better algorithm exists, on which you come (if you know, then your algorithm will be better). The question arises when you should stop trying to see better algorithms. The primary approach involves coming with a lower limit of the problem, and then gradually makes them stronger and stronger. Imagine that you are a researcher Th...

jquery - Javascript array results returning undefined -

I am working on a simple math game and I am having trouble getting the result of the total answer after the end of the game is . What is my return function function pShowResults () {var pNumResults = document.getElementById ("result"); (Var i = 0; i & lt; = 10; i ++) {pNumStore.push (pNumGuess [i]); Var pNumTable = document.createElement ("div"); PNumTable.innerHTML = (pNumGuess [i]); PNumResults.appendChild (pNumTable); }} Too much debugging help is needed. I'm new to this, so I'm guessing that there is a ton which is closed, but until I can get results back, I should be okay You do not value the x in many codes $ (document) .ready (function () {// var pNum1 = []; var pNum2 [[]] var pNumAns = []] var pNumGuess = []; var pNumStore = []] var PNumCarry = 0; var declare arrays and variables for use under pNumTrack = 0; var PNumMessageRight = ['Excellent job!', 'Right!', 'Great work!'] Var pNumMessageWrong = [...

Overflow error Python for Modular Cubes -

इस समस्या को हल करने का प्रयास: एक सकारात्मक संख्या n के लिए, एस (n ) के रूप में integers x की राशि के लिए, जिसके लिए 1 & lt; X & lt; N और x ^ 3 â ?? ¡1 mod n । जब n = 91 , एक्स के लिए 8 संभावित मान हैं 9, 16, 22, 29, 53, 74, 79, 81. इस प्रकार, S (91) = 9 + 16 + 22 + 29 + 53 + 74 + 79 + 81 = 363 । खोज एस (13082761331670030)। बेशक, मेरा कोड S (91) के लिए काम करता है और जब एस (13082761331670030) मुझे दो भिन्न त्रुटियां मिलती हैं। यहां मेरा कोड है: def modcube (n): results = [] के लिए k में श्रेणी (1, एन): यदि k ** 3% n == 1: results.append (k) रिटर्न परिणाम यह अतिप्रवाह त्रुटि उत्पन्न करता है: श्रेणी में बहुत अधिक आइटम हैं । जब मैं 'रेंज' के बजाय 'एक्सरेन्ज' का उपयोग करने की कोशिश करता हूं, तो मुझे एक त्रुटि मिलती है जिसमें अजगर int बहुत बड़ी है जिसे लंबे समय से कन्वर्ट करने के लिए कहा जाता है। मैंने सफलता के बिना कई अन्य चीजों की कोशिश की है क्या कोई मुझे सही तरीके से बताए बिना सही दिशा में मुझसे बात कर सकता है? कोई घृणास्पद ...

cocos2d x - Parallax effect on tile map layers -

I am using three layers of tiled map and I want to give a vertical effect on these layers. My code is: cctmcyclizedmark * city = cctmixedmarket :: build ("citymix"); CCTMaclayer * Foreground Layer = City-> Named Layer ("Foreground"); CCTMxlayer * Background Layer 1 = City-> Named Layer ("Background 1"); CCTM Accelerator * Background Layer 2 = City-> Renamed ("background 2"); CCParallaxNode * voidNode = CCParallaxNode :: Create (); // Now 3 layers have 'zero' node voidNode- & gt; Add Child (Picture Layer 2, -1, CCP (0.4 F, 0.5 F), Add to CCPointZero); VoidNode-> Add Child (Background Layer 1, 1, CCP (2.2 F, 1.0 F), CCP (0, -200)); VoidNode-> Add Chald (foreground layer, 2, CCP (3.0F, 2.5F), CCP (200,800)); VoidNode-> RunAction (temporary); // Some action temp addChild (voidNode); This claim fails: child-> m_pParent == 0 If we use sprites instead of TMXLayers, then the same code works. Did I do wrong in th...

locationmanager - Android: Issue in calculating distance using Location manager -

Currently I'm working on an application where I want to calculate the distance of the vehicle's travel. I need to drive a car, my Android device should calculate the total distance and send this information to the server. To do this, I set up the Android's Location Manager API, criteria and used getBestProvider. In this way we can either use GPS or network for latitude and longitude. The following code snippet is as follows: locationManager = (LocationManager) getSystemService (context.LOCATION_SERVICE); Criterion Criteria = new criteria (); Criteria.setAccuracy (Criteria.ACCURACY_FINE); Criteria.setPowerRequirement (Criteria.POWER_HIGH); Provider = locationManager.getBestProvider (Criteria, Incorrect); LocationManager.requestLocationUpdates (provider, 30000,5, this); onLocationChanged () call back method provide latitude and longitude each time. We always store the previous coordinates and when we get new coordinates, then we get two distance between the distance...

cpu - In C++, is it better to cap a value using std::min or an if branch? -

A very common pattern in programming is to caps a value at the maximum after any kind of updates. What I want to know, is that if there is a difference between the two pieces of code, and if there should be a favorite: value + = increment; Value = std :: min (value, value max); versus value + = increments; If (value> Price Max) value = valueMax; My thinking is that it comes down to the fact that if there are instructions for taking two values ​​of CPU and minimum output, then call std :: min in this instruction. Want results and avoid an unnecessary branch. If not, the second edition avoids an unnecessary assignment when the value I am not very good with such things, but I am sure that old school assembly hackers who know this. I ask them: Which is better? Modern compilers are smart enough to generate the same code in both cases. For example, 32-bit GCC generates: ADL% esi,% edi cmpl% edx,% edi movl% edi,% eax cmovgl% edx,% eax 64-bit clang: % 1 = NSW iO...

How does the buttonClass directive in ember.js work? -

This code: {{bindAttr class = "buttonClass: hidden"}} This Bind ATTR code does not appear to do anything, I can remove it altogether and the Todd app works just like before. What exactly is the button's button instructions doing? There is no buttonclass property on Todos Controller. You are right, it is not needed. Maybe this button was there to hide it, if it did not have all the work but because it's wrapped in now: {{if hascompleted}} It should be removed

Practical usage of wildcard generics in Java -

Recently there was an examination on Java, and there was a wide section about wildcard genetics in Java. However, little has been said about their use in practice. When should we use them? See a general use: check for zero (archive & lt;? Extension in animal list) {// something} What the documentation says is, it does not allow adding any element to the archive list. So originally a collection of wildcards can be done for read-only. Is this their use only? Is there any practical need for this? For the past four years I have participated in many programming projects in Java, but I have not seen any project that will use such a facility as a wildcard. So, from a practical perspective, is there a situation when wildcard generics are inevitable and necessary? So, it is practical to see, is there a situation where the wildcard generics Are indispensable and necessary? I do not think that they are 'indispensable and necessary' because the Java compiler remov...

Best method to render a pdf on a view in android -

I know that there are many libraries available that are not suitable for commercial use, such as mupdf.my company is a startup and There is not a lot to spend in this situation. I am working on a magazine app. Can anyone recommend a good open source library to use for providing a single PDF or if this is not possible, should I pay? Thanks in advance You can use the webview with Google Docs. & lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" Android: layout_width = "fill_parent" Android: Layout_height = "Fill_parent" & gt; & Lt; WebView Android: id = "@ + id / wv" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" /> WebView wv = (WebView) findViewById (R.id.wv); Wv.setVerticalScrollBarEnabled (true); Wv.setHorizontalScrollBarEnabled (true); . Wv.getSettings () setBuiltInZoomContro...

javascript - Arrangements of days from top to bottom intead of left to right in fulcalendar -

I am trying to change the system of days in fullcalendar. Now the hull of days is arranged from left to right in the week's view. I need to make arrangements from top to bottom rather than left to right. I use tables to arrange days. My opinion table may not be suitable for this requirement That's why I changed the table with the div, the day is arranged from top to bottom, but the incidents are not showing up completely, can anyone help me? thank you in advanced. I am using the fullcalendar.js code and updated with my complete requirement Events are shown on the calendar, in which the basis of the system from the left to the day The necessary condition is found on the right side Please give a suggestion If you want to do this, you will need fullcalendar. Js will need to modify the source code. The function in the document does not support you as needed.

PHP and MySQL - can't select database -

I'm trying to use a database 'coolometer I tried to connect to it like this: $ con = mysqli_connect ("localhost", "x", "x", "coolometer") or die ("can not connect"); But this is just a 'no database selected' suggestion? I think your MySQLi extension is disabled, so you first need to check var_dump ( Function_exists ('mysqli_connect')); If it outputs to bool (false), then you have to enable the MySQLi extension.

java - Many named Model on TDB or SDB at jena -

I am developing an application that uses Jena, I want to use several designated models on TDB or SDB . However, the data source class has been removed. To do this, I will use Graph and Dataset graph, not just the model? Use dataset , datasource / Dataset partition has been removed Dataset You now have the necessary operation.

database - Oracle - Compare rows with large number of columns -

I have to compare 2 rows with a large number of columns. This is something like this: ID A column 1 column 2 ... ID B column 1 column 2 ..... ID C column 1 column 2 ..... I want to compare columns in large quantities like subtract them from them. I do not want a zero from the tables, I want to take similar action on all the columns. Any call should tell me how to name each column without referencing CDE01 A 06 CD PDE02 B 07 CD PDE 03 A 05 CD So if I compare with CDEAD then 2 and 3 columns in the other rows are identical. I have several columns that require matching. There are two types of rows in the table and I have to compare each row of a set, where there will be a section with the second row of the second row. There are two different types of lines, like PDE and CDE. why you do not make two views or need more). Each scene shows what you consider as cloaking (you call them like rows). So you can end up with a sequence: CDE_Data and PDE_Data Then you have to ...

css - custom cursor image -

How to implement a custom cursor image for the listback dropdown? When applied as a CSS, Select body, body option {cursor: url (pointer, koor), auto; } This is not applying for the dropdown in Chrome browser. used on cursor: url (/ img / magnify .cur), -moz-zoom-in, -webkit-zoom-in auto; You can also see keywords supported by different browsers. You can

node.js - NodeJs looping through object variables behaving strange -

I am running mysql from within a loop, for some reason my variable is being overwritten. Under my code: setInterval (function () {for s_bots in var} {if (_bots.hasOwnProperty (s)) {var obj = _bots [ S]; for (var in Obj) {console.log ('-----' _bots [s] [Sahara]. Channel + '-----'); channel = _bots [s] [Sahara] Channel, CC = S; dd = prop; var sql = 'SELECT * FROM `usrs' Where CID =' + connections. Escape (_bots [s] [prop] channel) + 'border1'; connection. Query (SQL, function, result) {if (results.length! = 0) {console.log ('NAME --- & gt; '+ cc;) console.log (' MSG_TO --- & gt; '+ dd); console.log (' id --- & gt; 'channel);} Other {// ....}}}}}}}}, 15000) The problem is that NAME - & gt; MSG_TO - & gt; Variable (CC, DD, and Channel) Always keep the last value from the object. For some reason they are overlapping .. Strangely I do not have permission to use in my code for s and prop inside m...

iphone iCloud - how can we upload picture from our app to iCloud. -

I am new to icloud I am working on an app In my app I want to back up pictures on iCloud server. I am but I do not want to back those images back to my iPhone. Is it possible how this can be done? I am new to iCloud. Any good tutorial or demo code Many thanks in advance Here is the link to the tutorial. I hope you can have this good idea

Eclipse IDE - Open Call Hierarchy is empty/broken -

What should I do if the "open call hierarchy" is broken (empty for each method in a project)? This code is very useful for navigation, do not know how to work without it! Help: Calling with eclipse.exe - Running Make-up for reconstruction of the latest index, this facility then works again. Finishing and reopening the project.

mysql - specific search in database -

I am looking for a method to search specific words in mysql with insodeb engine. Consider the following example: Text: 1. There are two sides of the card 2. This is my card. 3. We have a car 4. The color of the car is good 5. This was my car. 6. The car is good Suppose these points are separate rows and the same columns are under "text." I need a query that requires the use of the word "cart" to remove rows with the word "word" even if the word "car" starts at the beginning, in the middle, or at the end. Keep in mind that "card" is not required. Here it is. from SELECT * Name like 'car' or 'name car' or name 'name' or '% car%' like name 'car' name '% car' This word will select between both the word start word and the word

Guarantee unique number generation with spring data and hibernate -

I am developing a spring MVC webapp with spring data and want to be in hibernation. I have a unit composed by a boolean field and an integer field. The boolean field is false at the beginning and the integer field is zero. When Boolean fields are correct, then I need to assign an integer field that a unique value equal to Max (CEC) +1 To do this, I will write my service method like this: @ Override public synchronized obz service (obj entry) {if (entry.getbool ()) and entry .getSeq () == tap) {Integer CEC = Obj.Repository.Getleste Sec (); If (seq == faucet) {seq = 1; } Insetsetset (CEC); } Return entry.save (entry); } and in my repository: @Query (choose from "Max MAX (seq) +1 OB") Integer getLastSeq (); I have put the synchronized keyword in the service method to ensure that only one thread can get a unique maximum number + 1 number at a time. But I'm sure Not that it works Do you agree correctly? Am I convinced that this is the guarantee of s...

ruby on rails 3 - render show page inside index page, how to put a different id on each modal -

I am using a model to pop up the show page inside the index page ..... someone Click on the product for some reason, the same name is popping on the model for each product I know that this is a simple fix, please help ... This is my code for the new Rail : View _show.html.erb & lt; Div id = "mymodal" class = "modal hidden fade" role = "dialog" area-labeling = "mymodel label" axia-hidden = "true" & gt; & Lt; Div class = "content-internal hero-unit" & gt; & Lt; H1 class = "pump-up center" & gt; & Lt; Br> & Lt; Strong & gt; Coming soon. & Lt; / Strong> & Lt; / H1> & Lt; Br> & Lt; Br> & Lt; P & gt; & Lt; B & gt; Name: & lt; / B & gt; ** & lt;% = @ product.name% & gt; ** & lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt; index.html.erb & lt; Div class = "row" & ...

crm2011, javascript onchange event system entity -

I am new to CRM2011 and can do this, but I have been given a task that I do not know how Resolve and no answer was found in Google. I have 2 institutions case and notes (annotation - system unit). Notes are related to the case and are represented from the area where the user can add their notes. After adding a new note, I need to run a JS. How can I do this? I can not specify the changing event, because this system is a unit and I can not modify anything there, even the exchange event can also be selected. I can not set the event handler on the case form for this note. Properties also block if I send Event Handler to the Inchen area where there is no property. Does anyone know how to run JS for the changes in the related system property in the form? Thanks I believe that based on the exact details of your work in hand, Would like to use a plugin. The negativity is that you will not use Javascript but C # (if you have not created a plugin before making any treatment). On th...

Docopt - one ore more options are required -

I have three arguments: - a - b - c and I want to at least accept commands on them but All combinations of A / B / C are also valid. Example: command.py --a command.py --a --b - command - py - a - b - c ... But without logic: Thanks! I want to accept at least the command on these You can do the following: & gt; & Gt; & Gt; Docop import from Docopat & gt; & Gt; & Gt; U = '' 'Usage: command.py - A [--b --c] ... command.py --b [--a --c] ... command.py - c [- A - B ] '' '& Gt; & Gt; & Gt; Document (U, ['-a']) {'- A': True, '-b': false, '-': false}> gt; & Gt; & Gt; Dococort (U, ['- B']) {'- A': false, '-b': true, '-c': false}> gt; & Gt; & Gt; Dococort (U, ['-' ']) {' - A ': false,' - B ': false,' - ': true}> gt; & Gt; Docopt (u, []) Usage: command.py - A [--b --c] command.py --b...

jpa - Make a java class that has a list of itself OR some other variable -

इस नमूना वर्ग पर विचार करें: सार्वजनिक वर्ग फू {निजी सूची & lt; Foo & gt; manyFoos; निजी स्ट्रिंग बार; } मैं इस वर्ग के उदाहरणों को केवल दोनों विशेषताओं में से एक को पॉप्युलेट करने के लिए चाहता हूं सादे जावा में मैं एक इंटरफ़ेस का उपयोग करेगा और दो वर्गों को बनाऊँगा, लेकिन मुझे जेपीए के काम के लिए ठीक से टिप्पणी करने का एक तरीका नहीं मिल सका (ईक्लिप्ससिंक)। क्या इस तर्क को कुछ चालाक डिजाइन तकनीकों के साथ लागू करना संभव है या क्या गेटर्स अंड सेटर्स के अंदर अतिरिक्त कोड की आवश्यकता होती है, जिससे ऐसा व्यवहार हो सकता है? कोई सुझाव अत्यधिक सराहना करते हैं, धन्यवाद! मैं इस नियम को अपने मॉडल संरचना में रखने की कोशिश नहीं करता, बस अपने तरीकों, या अनुप्रयोग में नियम को लागू करें। / P>

PowerShell: Using already created objects -

$ यानी = नया ऑब्जेक्ट- com इंटरनेट एक्सप्लोरर.अप्लिकेशन मैं इस ऑब्जेक्ट को पुन: उपयोग करना चाहता हूं स्क्रिप्ट अगली बार चलता है मैं एक नया ऑब्जेक्ट नहीं बनाना चाहता / रही हूं आप इस के साथ प्रक्रिया को संलग्न करने में सक्षम होना चाहिए , विंडोज़ () विधि का परिणाम जांचें, आईई एक का पता लगाएं और फिर सही कहां बनायें: $ ie = (न्यू ऑब्जेक्ट -सीओम्बैक शेल.एप्लिकेशन) .वाइंडो () | जहां-ऑब्जेक्ट {...}

ember.js - ensure user login in Ember app -

Is the user the best way to ensure that the user is logged into the Amber App? I would like to stop any url before getting excited about routing, will show a model popup with user_id / password, and go to the original url. Perhaps something like Rail Application - the first_filter to be executed before any other controlling methods. I have the following routing: App.Router.map (function () {this.resource ('folder', {path: '/'}, function () {This.resource ('files', {path: '/: folder_id'}, function () {this.route ('index');})}};}); I'm trying to set up ApplicationRoute: App.ApplicationRoute = Ember.Route.extend ({activate: function () {console.log ("Enable App Routes" );}}); But the problem is, if I hit index.html # / folder01 , folder is executed before application route summarizing workflow Appearance should appear: User hit index.html # / folder01 url App check is not a user login. If no modal po...

c# - .NET 3.5CF WebRequest to Slim Framework -

I am writing a mobile application in .NET 3.5 compact framework and attempting to make a GET request for a PHP slim framework I am doing the page. If I try to access the page from a web browser on that local machine, but if I try to access it from the mobile device C # app or mobile device's web browser, then I An HTTP 404 is found, I have created a standard PHP page to display the current time and works on all the three above, hence separating the problem especially on slim pages. I also saw a look at access.log in XMPP which looks like this: [20 / Mar / 2013: 17: 07: 38 +0000] "Received / Slim Test / HTTP / 1.1 "200 21" - "" Mozilla / 4.0 (compatible; MSI 6.0; Windows NT 5.1; SV1; NAT CLR 2.0.50727; NAT CLR 3.0.04506.648; NTL CLR 3.5.21022) "[20 / March / 2013] : 17: 09: 37 +0000] "GET http://10.0.2.15/SlimTest/ HTTP / 1.1" 404 523 "-" "- The machine is first from the local and the other Handheld device and as you...

how to call javascript function from c++ in cocos2d-x -

In my cocos2d-x js project, I force the c ++ function to use c + In this way, I see an IOS alert and show it as my JS code, but when the user clicks the OK button, I can pass the event to JS, I tried and rounded all in 2 days, but I Can not do this, if someone knows what the solution is, please help me, Hut Many thanks! You have not provided any code, so it is difficult to give you specific help, but in this way Should give something in some direction: Poo.h class JSObject; Square poo: cocos2d :: CCNode {public: static zero hello (JSObject * target, std :: string selector); } Poo.cpp Poo :: hello (JSObject * target, std :: string selector) {if (target) {js_proxy_t * p; JS_GET_PROXY (P, Target); If (! P) {return; } Jaswal Ratwal; JSL Data Val = Std_String_to_Jeswal (Scriptingcore :: getInstance () - & gt; getGlobalContext (), "Hello World"); Scriptingcore: Receive () - & gt; With performance work (OBJECT_TO_JSVAL (P-> OBJ), selector cistrated (),...

r - Changing Git protocol for RStudio project already under version control in Windows -

I like to use RStudio for built-in integration with version control systems. However, there is a way to change GET protocol in contrast to http to ssh or project on Windows, RSTIO Control to delete and restore the project? I'm missing something, but I'm basically cloning my code using http after which I suffered a lot because every time I change the project I want to enter my user name and password again so I want to enter the version control ( project -> Project Option -> gtit / SVN -> version control system: any ) and then Gn control try to re-use the ssh but it will only allow you to return to the selected protocol when creating the project in the first place. The only way to change the protocol is by removing the project and then using the correct ssh parameter to create a new project from Git Hub. I really want to be able to change the version control protocol for projects without deleting http and removing ssh without cloning. Is this...

javascript - Prevent nested label link from following, but change checkbox state -

मेरे पास एक ऐसा मुद्दा है जहां मेरे पास निम्न मार्कअप है: & lt; input type = "चेकबॉक्स" id = "foo" / & gt; & Lt; लेबल = "foo" & gt; के लिए & Lt; a href = "http://www.google.com" & gt; चेकबॉक्स पाठ & lt; / a & gt; & Lt; / लेबल & gt; उपयोगकर्ता के पास जावास्क्रिप्ट सक्षम नहीं होने पर लेबल में नेस्टेड एंकर हैं, और उस स्थिति में वे लेबल पर क्लिक करते समय लिंक का पालन करेंगे। I चेकबॉक्स स्थिति को बदलते समय लिंक को क्लिक करने और एक चेतावनी दिखाने के लिए निम्नलिखित जावास्क्रिप्ट / jQuery हैं: $ (फ़ंक्शन () {$ ("लेबल")। क्लिक करें (फ़ंक्शन (E) {e.preventDefault ();}); $ ("# foo")। परिवर्तन (फ़ंक्शन () {चेतावनी ("चेकबॉक्स बदल गया");});}); हालांकि लेबल पर क्लिक करने पर चेकबॉक्स को चिह्नित स्थिति परिवर्तित नहीं होती है। मुझे पता है कि मैं hack कोड की जाँच करें और चेक की गई स्थिति को सेट करने के लिए कोड को जोड़कर मूल ब्राउज़र की कार्यक्षमता का प्रयास करें और उसका अन...

ruby on rails - `method_missing': undefined method `add_delivery_method' for ActionMailer::Base:Class -

Hi I'm trying to start the ActionMailer :: base: Class with some data: ActionMailer :: Base.add_delivery_method: Session, AWS :: SES :: Base ,: access_key_id = & gt; '0PxxxxxxxxxxxxS8Dyyy' ,: secret_access_key = & gt; 'AJxxxxxxxxxxxxx2Tpppa + ZQ6ddddddkN2' but it throws an error: `method_missing: 'Undefined method` add_delivery_method' for Base: ActionMailer :: Base (NoMethodError) My Rail version - 3.2.13 What am I doing wrong Most likely, whatever you are trying to do should be in an environment file, that is, config / environment / Production.rb . Do it like this: config.action_mailer.delivery_method =: smtp config.action_mailer.smtp_settings = {: address = & gt; "Email-smtp.us-east-1.amazonaws.com" ,: user_name = & gt; "..." # Your SMTP user here : Password = & gt; "...", # your SMTP password here : Authentication = & gt; : Login,: enable_starttls_auto = & gt; True} ...

c++ - Why typedef to a function is required, while casting void* to function pointer? -

मैं एक फ़ंक्शन प्रतीक लोड करने के लिए dlsym () का उपयोग कर रहा था void (* func) (int); Func = (func *) dlsym (फ़ंडल, "फंक्शन"); यह संकलन त्रुटि का परिणाम था हालांकि, जब मैंने फ़ंक्शन के लिए टाइप किया हुआ typedef शून्य (* func) (int); फ़ंक्शन फ़ंक्शन = नल; फ़ंक्शन = (फंकक *) dlsym (फ़ंडल, "फंक्शन"); यह ठीक संकलित है, लेकिन मुझे समझ में नहीं आ रहा है कि पहले मामले में यह क्यों असफल रहा था? किसी कारण से कृपया बता सकता है? मैंने पढ़ा है कि सी + + मानक शून्य से सीधा कास्टिंग की अनुमति देता है * कार्य सूचक करने के लिए? यह क्यों और कैसे टाइप किया गया है इस समस्या का हल typedef? यह पहले मामले में विफल रहता है क्योंकि Func एक चर है, एक प्रकार नहीं है, और किसी कलाकार में उपयोग नहीं किया जा सकता है। ध्यान दें कि * गलत है: टाइपिंगफ़ीड (* फ़ंक्शन) (इंट); / * ^ यहां होना चाहिए। * /

date - How can I auto populate a dropdown with years going into the future with php -

I have a dropdown that I want to run for 5 years in the future with the date starting from the previous year, but I Maybe it's easy if I tell that I want to finish with trying to explain. This year should be hangy and should have dropdown next year & lt; Select & gt; & Lt; Options & gt; 2013-08-31 & lt; / Options & gt; & Lt; Options & gt; 2014-08-31 & lt; / Options & gt; & Lt; Options & gt; 2015/08/31 & lt; / Options & gt; & Lt; Options & gt; 2016/08/31 & lt; / Options & gt; & Lt; / Select & gt; And so on Any ideas got? You can create a function like this P> function getNextYears ($ to $, $ nbYears) {$ time = strtotime ($ to $); $ Dates = array (); ($ I = 0; $ i & lt; $ nb years; $ i ++) {$ date [] = date ('ym-d', mktem (0, 0, 0, date ('m', $ time ), Date ('d', $ time), date ('y', $ time) + $ i); } Return $ dates; }

c++ - Collatz sequence algorithm not working right -

For some reason, it always returns 1 value. This means that the initial number (1-1, 000,000) is the longest edge (till Jammu = 1) Jammu will always be finally 1 (Cologet's theory) , I divide Jammu by 2 if Be it too, or more than 3 and add 1 if it's odd. Add # & lt; Iostream & gt; using namespace std; Int callouts () {int counter = 0; Int holder = 0; (Int i = 999999; i & gt; 1; i -) {// loops 999,999 times (int j = i; j! = 1; counter ++) {// loops of jops = 1 to loops, when To loops (j% 2 == 0) {// If J is also, then divide by 2, to +1 j = j / 2; } And {J = (J3) + 1; // If j is weird, multiply by 3 and add 1, counter to 1}} if (holder You are not calling your work , You are printing the function pointer (which is converted to bool value true (that is, 1 )).

web applications - how to delete file according to its date and time in asp.net c# -

I search a lot on google, I get some feedback, but I do not know what I want for what I want It seems that I have 5 files for the same file, for the same date: 1 file - 1 MB 2 file = 2 MB 3G file - 3 MB 4 files - 4 Mb 5th file - 5 MB Now when I click on my button it will remove all files except 5 MB due to its size. First I want to search the files according to the date in a folder and afterwards leaving the file and removing all the files for that special date, size. I do not want the code I want to be used in this project. Thank you in advance DirectoryInfo you can get all the files Obtain the maximum size file based on the specified path, File.Length property, and then delete it like this: DirectoryInfo di = new DirectoryInfo ("C: \") ; Var files = di.GetFiles (); var maxFileSize = files.Max (r = & gt; r.Length); foreach files (filesInfo file) where (R = & gt; R. lang & lt; maxFileSize)) {File.Delete ();}

Spring MVC and html input -

itemprop = "text"> In the spring 3.1 web MVC form, I am using the following fields, taking the date from the date and the field with the string . I am getting all the values ​​but I can not find the date field. Try earlier & lt; Form: input id = "fromDate" Class = "mydate" path = "fromDate" size = "10" maximum length = "10" /> & Lt; Script type = "text / javascript" & gt; Spring.addDecoration (New Spring.ElementDecoration ({elementId: 'fromDate', widgetType: 'dijit.form.DateTextBox', widgetAttrs: {promptMessage: 'Enter from date', Invalid message: 'Please enter valid date', required : False, Obstacles: {datePattern: 'dd / MM / yyyy', Required: False}, Date Pattern: 'DD / MM / Yay'}}))); & Lt; / Script & gt; Try another & lt; Input id = "toDate" class = "mydate" path = "toDate" size = "10...

android - YotubePlayerSupportFragment full screen view in landscape mode -

After I am trying to show the YouTube player in full screen in landscape mode but it is not working. I put player.setFullscreenControlFlags (YouTubePlayer.FULLSCREEN_FLAG_CONTROL_ORIENTATION); Player.setFullscreenControlFlags (YouTubePlayer.FULLSCREEN_FLAG_ALWAYS_FULLSCREEN_IN_LANDSCAPE); But the exception is coming: java.lang.IllegalArgumentException: 10 :: 0 9 .8 9 2: install FULLSCREEN_FLAG_CONTROL_ORIENTATION 03-21 16 FULLSCREEN_FLAG_FULLSCREEN_WHEN_DEVICE_LANDSCAPE set without can not e / AndroidRuntime (15,996): com.google.android.youtube.player.internal.r at $ a.handleMessage (unknown source) flags parameter setFullscreenControlFlags bitmask, so you do a bitwise or of all the flags you want, and to call for Should set them with setFu LlscreenControlFlags instead of using multiple calls

emacs - Mark region and insert prefix -

I have recently switched from vi to emacs, and now I am porting my most important macros to emacs I am Ability to prefix the first area of ​​the text marked with a string including headers and footers what I need most: Original: line 1 line 2 line After marking row 3 and 4, I want Emacs to ask me a number, say 002, and do the following, remember my choice: line1 * # 002 # Start: * $ line 2 * $ line 3 * # 002 # finite So far, I have been able to insert the start and end tag with the following code: (inline comment-field) "4" ("* # Xxx # end. \ N") (goto-four start) (enter "* # xxx # start \") However, I can not seem to know that in this area, * Any ideas? "Post-text" itempro P = "text"> I have solved this kind of problems dynamically generate a snippet recently. Here is the code: ('yasnippet is required') (defun cobol-comment-region (comment) "Comment on an area as COBOL (Rows 2,3 have been com...

c# - making a text field read only -

I am using the code below to read only the text entry, but this is not read only This is why @ Html.EditorFor (model => model.UserName, new {readonly = "readonly"}) why you use @ Html.EditorFor (model => model UserName, new {@readonly = true}); Using or you @ Html.EditorFor (model => model.UserName, new {@readonly = "readonly"}) Can;

html - How to align text (right/center) on MobileSafari iPad1 -

I am trying to align an input field center or text and placeholder on the right. It works by using the text-align property in all browsers, but the mobile safari on the iPad fails. The text is self-aligned, but the placeholder text remains on the left side at all times. See Bella: How can I align the placeholder text on iPad 1? form input {height: 40px; Width: 200px; Font-size: 18px; font-weight: bold; Border: 1 px solid gray; Text align: center; } Form {margin: auto; Font-size: 18px; font-weight: bold; Text align: right; }

android - JSONArray to String[]? -

How to get the string array from JSONArray? string [] D; Protected Zero ParseJsonString (ArrayList & lt; string []> DeptList, String Jason) {try {JSONArray array = new JSONArray (json); Int dl = array.length (); Println (dl); For (int i = 0; i & lt; array.label (); i ++) {d [i] = array.getString (i); } DeptList.add (d); For (string e: d) {System.out.println (e); }} Hold (JasonX Express E) {e.printStackTrace (); }} I am debugging this code and I get an error here NullPointerException: d [i] = array.getString (i ); you forgot string [] d = New string [array.length]; then the string array D has not been started. And you try to use it on your first element d [i]

Android in app billing version 2 multiple restore -

I'm applying appbilling version 2 to Android, I want to restore many products but I'm not sure How to get the list of all the products that have been purchased I'm using managed type for your reference and can not use version 3 You have to call this method billing service mBillingServ Ice = new billing service (); MBillingService.setContext (this); MBillingService.restoretransactions (); And this method will call several different methods one by one and there is a method called ResponseHandler.java within the purchaseResponse () name. > Public Static Zero Purchase Response (Last Reference Reference, Last PurchaseState PurchaseState, Last String Product ID, Last String Order ID, Final Long Purchase Time, Final String Developer Payload, Last String Shopping Token) { The method inside of you all Pad will receive details.

javascript - Bootmetro tiles border colour -

Image
So I'm using a boot metro template but I have run into a problem. You can view a demo or download the source. The problem is that when you hover over any tile you will see a border, it looks like a blue color. Well, I used JavaScript or The last time I tried to find the CSS file, but for this I can not make settings to find it. I was hoping someone could have any experience of bootmetro / css / javascript and can tell me in the right direction. I want to change the Border Highlight color to everyone. boot metro-tiles. CSS Row 101: . Metro. Tile: Hover [Outline: 3px Solid # 225A68; } (Firebug is your friend.)

How to duplicate Prestashop contact form page? -

I am using Prestashop 1.5 and want to clone the contact form page. I tried it myself, but no success. I again contacted ContactController.php, contact form.fip, with different names contact-form.tpl new page backfix / SEO and URL / URL / have appeared in the desired URL, but if I try to use the page with the URL then I found the page not found. You have to change the class name and $ php_self property to do this work if the class is not found, Then erase the /cache/class_index.php file.

java - copying parameters from one PreparedStatement to another -

I create a new drawn position like this: was created Statement newPs = origPrepStatement.getConnection () .prepareStatement ("Expon" + sql); OrigPrepStatement is also prepared and includes parameters. I want to copy the parameters of origPrepStatement to the new POS. Is there any way to do this? There is no easy solution; Find me uncomfortable solutions below classes apply the permiters invoice handler designed {map & lt; Integer, object & gt; Map = new hashmap & lt; & Gt; (); PAS prepared place; The statement statement prepared (place page prepared) {this.ps = ps; } The invocation of public goods (Object proxy, Method method, Object [] AGR) throws the throwable {if (method.getName (). StartWith ("set")}} return method.invoke (Proxy, Args); } Public Zero Copy Parameter (PS in Prepared Position) throws SQLException {{Map entry} for E: map.entrySet ()) {ps.setObject (e.getKey () , E.Gast Value ()); }}} Public class T2 {public static ...

jquery - add class "selected" -

नमस्कार दोस्तों में मेरे पास निम्न स्क्रिप्ट है: $ (document) .ready (function () ($ '(दुकानदार-छवियों उल ली)' पर क्लिक करें (फ़ंक्शन () {$ ('। खरीदार-छवियाँ उल ली')। निकालेंक्लस ('चयनित'); $ (यह) .addClass ('चयनित' );});}); यह काम करता है जैसे मैं चाहता हूँ ... लेकिन मुझे यकीन है कि सीएसएस गलत है क्योंकि यह कुछ घोषित मूल्यों को ओवरराइट कर रहा है .. और। चयनित वर्ग कभी नहीं दिखाएगा # फ़ुट-ट्रांसपोर्ट {पृष्ठभूमि: url (../ img / css / register-runner.png) नो-दोहराना; पृष्ठभूमि-स्थिति: केंद्र केंद्र; मार्जिन-दाएं: 20px; } # साइकिल-परिवहन {पृष्ठभूमि: यूआरएल (.. / आईएमजी / सीएसएस / रजिस्टर-बायक्रियाकल पेज) नहीं-दोहराना; पृष्ठभूमि-स्थिति: केंद्र केंद्र; } # वैन-परिवहन {पृष्ठभूमि: url (../ img / css / register-van.png) नो-दोहराना; पृष्ठभूमि-स्थिति: केंद्र केंद्र; मार्जिन-बाएं: 20px; }। चयनित (पृष्ठभूमि: यूआरएल (../ img / सीएसएस / चेक-छवि.png) नो-दोहरा; पृष्ठभूमि-स्थिति: केंद्र केंद्र; } यह मेरा html है: & lt; div class = "span7 shoppe...

javascript - jQuery validation plugin not working after JQM page change -

I am currently working on a mobile html5 project. I am using jQuery validation plugin to validate the login screen with a form. I'm also using jQuery mobile with a single page template (I have different HTML files, but when the pages change, the JQ file reads and injects the contents of the new page in the DOM). App Junk to reload the page in every page: $ Mobile.changePage ("pageurl", {reloadPage: true}); The first page is the login screen with a simple form for username and password. Everything goes well in the first shot: Verification plugin complains that the submit button is pressed and some fields are empty. If all the fields are ok and the submissions are pressed, then I call some AJAX call for the WS, I save the data in DB and the next page is displayed. This is the code for the login screen: $ (document) .on ("pageinit", "#login_screen", function () {// this event every Once we show this JQM "Page", a fire occurs. Val...

regex - python regular expression: re.findall(r"(do|re|mi)+","mimi rere midore") -

मैं समझ नहीं सका क्यों यह नियमित अभिव्यक्ति, re.findall (r " इस परिणाम को उत्पन्न करता है, ['मी', 'पुनः' , 'पुनः'] मेरा अनुमानित परिणाम ['मिमी', 'री', 'मध्य'] ... हालांकि, जब मैं इस नियमित अभिव्यक्ति का उपयोग करता हूं, पुन: फाइनल (r "(?: Do | re | mi) +", "मिमी रीर मिडोर"), यह अपेक्षित परिणाम उत्पन्न करता है क्या आप मुझे दो नियमित अभिव्यक्तियों के बीच अलग बता सकते हैं? धन्यवाद। अंतर कैप्चरिंग समूह में है कैप्चरिंग फूरुप के साथ, findall () रिटर्न केवल क्या पकड़ा गया था। एक कैप्चरिंग समूह के बिना, पूरे मैच वापस कर दिया जाता है। आपके पहले उदाहरण में, समूह केवल दो अक्षर दोहराता है, दोहराया या नहीं दूसरे उदाहरण में, पूरे मैच में किसी भी पुनरावृत्ति भी शामिल है। इस अंतर पर काफी स्पष्ट है: सभी गैर-अतिव्यापी स्ट्रिंग में पैटर्न के मिलानों को लौटें, जैसे तारों की सूची [एक ?? |] यदि एक या अधिक समूहों के पैटर्न में मौजूद हैं, तो समूहों की एक सूची वापस करें; यह ट्यूपल्स की एक सूची होगी...