Posts

Showing posts from May, 2013

Pass PHP variable array to Javascript -

इस सवाल का पहले से ही एक उत्तर है: 17 उत्तरों मैं Yii के लिए नौसिखिया हूँ मेरे पास php में एक वेरिएबल में सरणी मानों का एक सेट है मैं इन तत्वों को जावास्क्रिप्ट का उपयोग करके स्वत: पूर्ण में समायोजित करने के लिए उपयोग करता हूं। मुझे यह पता नहीं है कि इन सरणी मानों को जावास्क्रिप्ट में कैसे पारित किया जाए ताकि यह मुझे आवश्यक परिणाम दे। मेरा नियंत्रक क्रिया: सार्वजनिक फ़ंक्शन कार्रवाई इंडेक्स () {$ उपयोगकर्ता = Yii :: ऐप () - & gt; डीबी- & gt; createCommand () - & gt; चुनें ('cust_name') - & gt; से ('mst_customers') - & gt; क्वेरीअभी (); $ डेटाप्रदाता = नया कैक्टिवडेटाप्रदाता ('मॉडल_नाम'); $ This- & gt; रेंडर करें ('इंडेक्स', सरणी ('डेटाप्रदाता' = & gt; $ डेटाप्रदाता,)); } मेरा दृश्य: & lt;! - सामग्री - & gt; & Lt; div id = "content" & gt; & Lt; div शैली = "पैडिंग: 10 पीएक्स;" & gt; & Lt; a href = "& lt;? Php echo $ this- & gt; createUr...

c# - Get last call duration using AT+CLCC command -

I have coded a program and automatically dialed the last call when the phone is connected to a laptop. Duration is obtained. I command AT + CLCC to get the status of the current call. However this should return some string values ​​back as ....... etc., I have not found anything like this yet ... this is my code Is .. _serialPort.BaudRate = 9600; _serialPort.Parity = Samata. One; _serialPort.DataBits = 8; _serialPort.StopBits = StopBits.One; _serialPort.Handshake = Handshake.None; // Set the read / write time _serialPort.ReadTimeout = 500; _serialPort.WriteTimeout = 500; _serialPort.Open (); _serialPort.DtrEnable = true; _serialPort.RtsEnable = true; String phonen = ""; // string message; If (! _serialPort.IsOpen) {_serialPort.Open (); } _serialPort.WriteLine ("AT \ r"); {Console.WriteLine ("Enter the phone number:", the phone); Phonenr = Console.ReadLine (); _serialPort.WriteLine ("ATD" + PhoneRar + ";" + "\ r"); Conso...

xml - Parse document by template in Java -

Is there a ready-to-use Java library, which is given a template, can read an XML file Does it compile with that template and parse its value in Java class? The job is in the ordered direction on the basis of velocity. For example, the following template & lt; Person & gt; & Lt; Name & gt; $ {Person.name} & lt; / Name & gt; & Lt; Age & gt; $ {Person.age} & lt; / Age & gt; & Lt; / Person & gt; and input file & lt; Person & gt; & Lt; Name & gt; John & lt; / Name & gt; & Lt; Age & gt; 20 & lt; / Age & gt; & Lt; / Person & gt; This class can read its values ​​ class person {public string name; People's age } Update: The general idea of ​​the above example is to show the meaning and nothing to do with its sorting, the actual example can also have elements and attributes Which are in conformance with the fields related to different Java objects and can have structure in t...

android - Dynamic radio button is not aligned properly -

Image
वजन LinearLayout गतिशील, ठीक से सेट नहीं है उल्लेख निम्नलिखित कोडिंग LinearLayout.LayoutParams mainparams = नए LinearLayout.LayoutParams (LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT, 1.0f); मुख्यपार। मार्सिन (0, 10, 0, 0); लीनियर लेआउट ली = नया लाइनर लेआउट (अपॉइंटमेंट डिटेल्स। इस); li.setOrientation (LinearLayout.HORIZONTAL); li.setLayoutParams (mainparams); LinearLayout टेक्स्ट = नया लाइनरलेआउट (अपॉइंटमेंट डिटेल्स। इस); text.setWeightSum (1); LinearLayout.LayoutParams lparams = नए रैखिक लेआउट। लेआउटपारम्स (लेआउट पर्म। WRAP_CONTENT, लेआउट पैरा। WRAP_CONTENT, 2.0 एफ); text.setLayoutParams (lparams); टीवी = नया टेक्स्टव्यू (यह); tv.setTextSize (18); tv.setTypeface (MyriadPro); tv.setLayoutParams (lparams); tv.setText (Alldata.question.get (i) .getgQuestion ()); tv.setSingleLine (); टीवी .सेटपैडिंग (25, 0, 0, 0); tv.setMarqueeRepeatLimit (10); tv.setEllipsize (TruncateAt.MARQUEE); tv.setSelected (सही); text.addView (टीवी); li.addView (पाठ); LinearLayout Spi = नया LinearLay...

codeigniter - MySQL Error Getting Values with Span -

I have another query about my database, I am using Codeigniter and when I use SPAN I get the data and save it to me. MySQL database uses a \ n drawing in this data and this is why the error arises. Here is the problem value ('\ n16', 'SMDC') ` But in my ultimate 16 is getting the value where it spans. is a special character for \ n mysql and other languages ​​and means: line The end of (character line) you have to protect from characters like that which are using another backslash "\" in front of them. Check it out: An example with codeigniter for you is: $ search = '\ n16'; $ Sql ​​= "SELECT id from table WHERE column like '%'. $ This-> db-> Escape_th_st ($ search)."% '"; See this for:

php - Observer Cancel order Magento -

Hello I'm trying to add functionality when I am canceling order in Magento. My config is working and when I cancel an order, my function is triggered, but I do not get the order sent to the supervisor. Here is the initial code of my class. class Imo_Model_Observer {static function export order ($ inspector) {$ command = $ inspector- & gt; GetData ('entity_id'); Self :: createFile ($ command, 'complete'); // resonance "start export"; } In this case I have canceled it but with no luck, I have tried to get the entity_id in order to get the full order To cancel an order means that the order is actually set to "cancel" so that you have an event You should follow Sales_order_save_after and get the order object from the event, check who was the previous state and your own place End Set

apache - htaccess Redirect a Specific Directory URLs to another different URL? -

.htaccess के साथ से रीडायरेक्ट कैसे करें: under apple.example.com/old_folder जो भी गहराई - & gt; से : .. केवल? मैंने निम्नलिखित कोड का उपयोग किया है, लेकिन काम नहीं कर रहा है: रीवरइटएन्गइन ऑन रीराइटकॉन्ड% {HTTP_HOST} ^ apple.example.com / old_folder $ RewriteRule ^ (। *) $ Http://banana.example.com/new_folder/ [आर, एल] आप RewriteCond% {HTTP_HOST} में यूआरआई से मिलान नहीं कर सकते हैं apple.example.com : RewriteEngine पर RewriteCond% {HTTP_HOST} ^ सेब के रूट से कार्य करना चाहिए। \ .example \ .com $ [NC] RewriteRule ^ old_folder (/ | $) http://banana.example.com/new_folder/? [आर, एल] संपादित करें: या फिर /old_folder/.htaccess में इस नियम का उपयोग करें: RewriteRule ^ http://banana.example.com/new_folder/ पर पुनर्लेखन इंजन? [आर, एल]

javascript - Modal pop up after submitting form on the same page -

I'm a whole newbie and I do not know how to do it. What do I want: When I click submit on the form of my page, it goes to the servlet and loads the data in the database Again, as a confirmation of the load, it shows a successful model that I want to achieve something in which servlets do not redirect. That's it, it remains on the same page and shows a "Data-Leded Federal" model that pops up. I am using response.sendRedirect to redirect to another page in my servlet but I do not want to redirect, I would like to be on the same page in which Appears in a pop-up form page. You can add jquery-ui to two ways: 1 ) This link will be sent to your gt; tag & lt; link rel = "stylesheet" href = "// code.jquery.com/ Ui / 1.10.4 / themes / smoothness / jQuery-ui.css "> src =" // code.jquery.com/jquery-1.9.1.js"></script> Lt; script src = "// code.jquery.com/ui/1.10.4/jquery-ui.js"></script>...

java - DB constraint violation not throwing Exception in Hibernate -

मेरे पास निम्न कोड है: try {userDAO1.save (userrecord); userDAO2.save (userRecord); } पकड़ (DataIntegrityViolationException ई) {नई ApplicationException ( "contraint का उल्लंघन")} फेंक userDAO1.save (userRecord) का उल्लंघन एक अखंडता बाधा - तो बाद पूरे कोड चलाया जा रहा है, वहाँ है तालिका userDAO1 को कुछ भी नहीं लिखा है हालांकि, userDAO1.save () कथन त्रुटि / अपवाद नहीं डालता है - इसलिए userDAO2.save () को भी निष्पादित किया जाता है। लेकिन डेटाइन्टेग्रीटी उल्लंघन उल्लंघन अपनाना है, और स्टैक ट्रेस रिक्त है। मैं कैसे जांच करूं कि डेटाइन्टेग्रीटी उल्लंघन का अपवाद कहाँ से निकाल दिया गया है, और userDAO2.save () को निष्पादित होने से रोकने के लिए अगर userDAO1.save () एक बाधा का उल्लंघन करता है ? मैंने इस कोड के आसपास एक ट्रांस्ैक्शनल एनोटेशन जोड़ने की कोशिश की, लेकिन वह भी काम नहीं कर पाई। स्टैक ट्रेस: ​​ org.springframework .dao.DataIntegrityViolationException: ORA-00001: अद्वितीय बाध्यता (UNIQUE_EMAIL) का उल्लंघन; एसक्यूएल [एन / ए]; बाधा [UNIQUE_EMAIL]; नेस्टेड...

Conflict Error in PHP PostgreSQL Setup -

I am trying to connect to a PostgreSQL database with PHP .. PHP was already installed. When I tried to execute the following code on the command line (Centos), then the error below install yum php-pgsql check the transaction error: file /etc/php.ini Php-common-5.3.3-27 .file with file from el6_5.x86_64 package php54-common-5.4.24-1.ius.centos6.x86_64 file /usr/lib64/php/modules/curl.so php-common From the installation -5.3.3-27.el6_5.x86_64 package conflict with file from php54-common-5.4.24-1.ius.centos6.x86_64 file /usr/lib64/php/modules/fileinfo.so php-common - 5.3.3-27.el6_5.x86_64 Package conflict with file php54-common-5.4.24-1.ius.centos6.x86_64 file / usr / lib64 / p Php54-common-5.4.24-1.ius.centos6.x86_64 file / usr / lib64 / conflict with file from .3-27.el6_5.x86_64 package by installing hp / modules / json.so php-common-5.3. From the installation of php / modules / phar.so php-common-5.3. Clash with file from 3-27.el6_5.x86_64 package -5.3 from the installation of p...

ibm mobilefirst - Background color is seen while performing dojo transition -

There is a problem with my app. I am using Vertical v 6.0 and Dojo Framework. I'm using Galaxy Tab 2 for testing. There is a white space between the two headers when the transition occurs. What should I do to solve this problem? You can reduce it by reducing the width of the first page error.

android - Switching between activities through Navigation Drawer -

मेरे पास 2 गतिविधियां हैं जो आधार गतिविधि का विस्तार करती हैं: कक्षा आधार गतिविधि गतिविधि को बढ़ाता है > वर्ग ए बेसएक्टिविटी बढ़ाता है वर्ग बी बेसएक्टिविटी बढ़ाता है अब मेरे पास ए बटन है से उपयोगकर्ता बी पर जा सकते हैं, और बी पर एक बटन को A पर वापस जाने की अनुमति देता है। > अभी तक, बहुत अच्छा। अब दस्तावेज पढ़ने के बाद, जो कि सीधा है, मैं बेसएक्टिविटी और A , बी । संरचना हो जाएगी: वर्ग आधार गतिविधि गतिविधि का विस्तार करती है कक्षा माईड्रावर बेसएक्टिविटी का विस्तार करता है वर्ग ए माइंड्रावर का विस्तार करता है कक्षा बी ने माइक्रॉयर का विस्तार किया एक नेविगेशन ड्रॉवर का उपयोग करने के लिए MyDrawer गतिविधि में कोड है मुझे जो समस्या है, मैं समझ नहीं पा रहा हूं कि मैं नेविगेशन ड्रॉवर में टुकड़ों के बजाय मेरी गतिविधियों का उपयोग कैसे करूँ? मैं चाहता हूं कि उपयोगकर्ता दराज के माध्यम से गतिविधियों के बीच स्विच कर सकें क्या यह संभव है? या क्या मुझे क्रियाकलापों के बजाय टुकड़ों का उपयोग करने के लिए सभी को फिर से लिखना है? किसी भी मदद की सराहना ...

c - Inserting comments into typename will give error -

इस सवाल का पहले से ही एक उत्तर है: 6 उत्तर निम्नलिखित पंक्ति में लिखा है सी प्रोग्राम इन / * हैलो * / टीके; त्रुटि या नहीं मेरे अनुसार, पहले प्रीप्रोसेसर कोड से टिप्पणियों को निकाल देगा और फिर कोड कंपाइलर पर जाएंगे, इसलिए कोड जो संकलक पर जाता है int k; जो बिल्कुल ठीक है। लेकिन वास्तव में जब मैं इसे जीसीसी कम्पाइलर पर चल रहा हूं तो इसे कंपाइलर त्रुटि देता है में , k , t परिभाषित नहीं है कोड में टिप्पणी को कम्पाइलर द्वारा एक सफेद स्थान पर बदल दिया जाएगा। तो इन / * हैलो * / टी कश्मीर; हो जाएगा इन टी के; जो सही नहीं है। सी 11 § 5.1.1.2 अनुवाद चरण 3 स्रोत फ़ाइल को पूर्वप्रक्रमित टोकन में विघटित कर दिया गया है और सफेद-स्पेस वर्णों (टिप्पणियों सहित) के दृश्य। एक स्रोत फ़ाइल आंशिक प्रीप्रोसेसिंग टोकन या आंशिक टिप्पणी में समाप्त नहीं होगी। प्रत्येक टिप्पणी को एक स्थान वर्ण द्वारा प्रतिस्थापित किया जाता है। नए-पंक्ति वाले वर्ण बनाए रखे जाते हैं। चाहे नया लाइन के अलावा श्वेत-स्पेस वर्णों के प्रत्येक गैर-अनुप्रय अनुक्रम को एक स्थान चरित्र...

c# - Windows Phone MediaElement -

I am creating an app using C # and XAM where I have 20 pages in some pages of each page And when I tap on it some dialogs should pop up. So I have taken a media idea and made it universally: App.xaml: & lt; MediaElement x: Key = "StorySound" Volume = "1" Autoplay = "True" /> App.xaml.cs: Get Public Static Media Assemble SourceSound {Current Return. Resources ["StorySound"] as MediaAliment; }} And on the tap event I wrote this code on every page: app Storysoud Source = New Uri ("/ Voice / Dialog /" + TextBox.text + ". Mp3, UricKind.Relative); App.StorySound.MediaOpened + = StorySound_MediaOpened; Zero StorySoundmediaopenad (Object Sender, Routing and EgEnges E) {App StorySound .play ();} When I navigate to the third page using the next page, then I do not play sound on more than 2 pages, on which I have not created any drama , But when I close the app and go straight to the The third page plays the rol...

python - Flask - How to print different variables on the same page -

I am trying to print a list of entries, total entry and the time generated in the flask. I have in my Pyro code: def stream_tomplate (template_name, ** reference): app .update_template_context (context) t = app.jinja_env.get_template (template_name) rv = t.stream ( References) Reverse RV @ app There is something here for preparing for #Doll data: root ('/', methods = ['post']) DEF get_data (): generated_time = get_generated_time () entry_list = get_entry () def blog_entries (): Entry_list for Entry: Product Entry Return Response (Stream_Template ('blog.html', Data = Blog_entry ()) I have blog_entry (): (for testing) Purpose ) In category (i) (5)] I have in blog.html: (For the purpose of the test, each entry Person to assume as an integer) data {% i:%} & lt; Br> Entry: {{i}} & lt; / Br & gt; {% Endfor%} As a result, I will get a list of all entries. However, I would like to print the entries on printed page and then print_outry an...

c++ - Copying part of an array stored in a memory mapped file -

An array of stores doubles I have memory mapped file, and I want to read the last three entries in the array I ( is one of zero ReadDataArrayToMMF (double * Detaare, Mamf), Int Srnilembn, Elpisitisarti * Pibifpitiar) (Pratimeri (Detaare (Pivioaidi) * Pibifpitiar, Akarf (double) * Arralenment);} and use the necessary entries, but it means that the realization Copying whole array of required some values. I arrayLength before n is a number for receipt of entries n , but in me is having trouble to copy a portion of the array, which had started before. I pBufPTR try to play with the pointer, but the only runtime errors . The entire array was copied How to do an array of memory / copy center? nth-element to the start offset : const double * offset = reinterpret_cast & lt; Const double *> (* PBufPTR) + n; To copy the last 3 elements: Copimamori (Detaare, Riintrif_kast & lt; Const double * & gt; (* pBufPTR) + Srnilembn - 3, 3 * size (double)); ...

put LINQ code in sitecore code -

I have to get "comment" by the article ID and I can only get all the comments in all the articles. My plan is making LINQ code in my code please see my code var childrenss = new list & lt; Sitecore.Data.Items.Item & gt; (); Exotic hair (various hair in item. Gate Child ()) {childrenss.Add ((Sitecore.Data.Items.Item) child); } Any advice is appreciated. Thank you. good looks as if you should be able to use: / P> using System.Linq; ... var kids = item Gate Childland () ToList ();

Working of getchar and putchar or example in The C language 2nd Edition -

कोड 1: #include & lt; stdio.h & gt; Int main () {int c; जबकि ((सी = getchar ())! = EOF) पुच्चर (सी); वापसी 0; } कोड 2: # शामिल हैं & lt; stdio.h & gt; मुख्य () {int c, d; c = getchar (); d = getchar (); putchar (ग); putchar (घ); } 1) यदि इनपुट: बो आउपुट: बो मुझे दूसरे प्रोग्राम में यह पता चल गया है कि यह चर में सी और डी में दोनों स्टोर करता है लेकिन यह उन्हें पहले कार्यक्रम में कहां रखता है। 2) पीएल पहले प्रोग्राम के काम की व्याख्या करते हैं कि क्यों यह किसी भी शब्द को अपनी लंबाई के बावजूद दोहराता है जो कि एक से अधिक वर्ण है। 3) पुस्तक से मुझे यह पता चल गया कि जब भी मैं प्रवेश करता हूं या कोई त्रुटि होती है यहां तक ​​कि अगर मैं प्रेस दर्ज करता हूँ तो यह प्रोग्राम बंद नहीं होता है लेकिन यह फिर से अगले अक्षर को प्रिंट करता है। , यह उन को c में संग्रहीत करता है (लेकिन केवल एक समय में)। कोड, बेहतर इंडेंट, है: जबकि ((c = getchar ())! = EOF) पुच्चर (सी); ताकि आप प्रत्येक चरित्र इनपुट को c में देख सकते हैं, यह भी उतना ही आउटपुट करता है ध्...

php - fatal error: call to undefined function redirect() -

I am using mobile users to redirect to a specific page. But, when I am writing this then I am getting serious error for redirect () will someone tell me where else I am missing? need_once 'Mobile_Detect.php'; $ Address = New Mobile_Detect; $ DeviceType = ($ detect-> hasmobile ()? ($ Detect-> IsTablet ()? 'Tablet': 'Phone'): 'Computer'); $ Script warsian = $ address- & gt; GetScriptVersion (); If ($ detect- & gt; isMobile ()) redirect ('iammobile.php'); Else echo & lt; H1 & gt; I'm desktop & lt; / H1> '; header Header ("Location: iammobile.php"); Die ();

javascript - jquery bootstrap datepicker only month and day -

मेरे पास उदाहरण है ? jqueryui datepicker तीसरे डेमो उदाहरण जहां केवल महीना और तिथि है। मुझे बूटस्ट्रैप दिनांक पिक्चर पर यह चाहिए। & lt; http: // www .eyecon.ro / बूटस्ट्रैप-datepicker / & gt ;? बूटस्ट्रैप दिनांकपिकर मॉड्यूल एक तीसरी पार्टी टूल है जिसे आपको डाउनलोड, इंस्टॉल करने और इंस्टॉल करने की आवश्यकता है। आपके कोड से संदर्भ। जावास्क्रिप्ट लाइब्रेरी को डाउनलोड करें। आपको बस इतना करना होगा कि कोड की निम्न पंक्ति जोड़ दी जाए और फिर यह काम करे। $ ('datepicker')। Datepicker ({format: "mm / dd"}) `

javascript - Page reloading back to login page after refresh -

I have made a main page for my website but before that I have also created an index.html page which Redirects to html via the page login panel. The problem I am facing is that when I refresh my entry after entering the main page, it returns to the login page which it should not do. Can someone help me how can I overcome this problem? My HTML code for index.html is as follows: - & lt; Head & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = ISO-8859-1" /> & Lt; Title & gt; Index & lt; / Title & gt; & Lt; Frameset column = "100%" & gt; & Lt; Frame src = "login.html" & gt; & Lt; Frame src = "index1.html" & gt; & Lt; / Frameset & gt; & Lt; Noframes & gt; & Lt; / Noframes & gt; & Lt; / Head & gt; Try using one such real-time redirect: Index 1.html & lt; Script type = "text / javascript" & gt; W...

java - JPA not persisting entity -

I am trying to save database changes made in a different unit. The objective of the unit is given by the argument (designated as data): generate private bullion (common game data data) {Boolean results = true; EntityManager em = HibernateUtil.currentEntityManager (); Try {em.getTransaction (). Start (); Em.merge (data); Em.flush (); ... some changes in the data object ... em.persist (data); Em.flush (); Committed to em.getTransaction (). } Hold (ex before) {... return false; } Back true; } As I've read that I am using a different unit, I must first merge. But after work is done successfully, I do not see any change in the database. Where's the mistake? As you do not save a new unit (by your comment), you do No need to continue to call () . Apart from this I did not see any reason to make 'some changes' after calling merge () , so I called merge () after those changes. > Therefore, try the following: em.getTransaction (). Start (); ... some chang...

php - Wordpress - random URLs getting called by some bot -

I have this WordPress site in which the bbPress plugin was installed (basically forums plugin). Later it was not used and flooded by spambots, so I disabled it. There are still random links in the forum that were the first (e.g., / platform / tag / {random_string}) they are not available anywhere because the plugin is no longer active, however, these calls are too large. Should I be worried about them or leave them? The site does not seem very slow or anything, and visitors call / forum / links with different IP addresses, so they will be very difficult to blacklist. itemprop = "text"> Dismiss those people, unless you are positive they get a "404" error and not "200" . In addition, add to robots.txt: / platform / so that the good bots will be forgotten.

PHP regex templateparser -

Dear programmer and code devil, I have found this function & lt ;? Php function ListRow ($ name) {preg_match_all ("'{row name ='" $ name. "'} (. *?) {\ / Row}' si", $ this- & gt; Tpl, $ match); Return match [1]; }? & Gt; What is it going to do to get information between {row name = 'products'} and {/ row} Used to be. It receives data between tags if they are on the same line but enter them, it does not catch anything, I'm just stuck on it, so I appreciate some help and then some as well. This works, for me (see the "return" row, this is the only difference in your code ..): & lt ;? Php Print Lynxsu ("ABC"); Function linkerave ($ name) {preg_match_all ("/ {line name = '" $ name. "' (. *?) {\ / Row} /", "{row name = 'abc' TEXT_SEARCHED {/ row}" , $ Match); Return match [1] [0]; }? & Gt; And now, test it ...: $ php test.php TEXT_...

reflection - What are the compiler generated implicit values in Scala 2.10? -

The following is written to: With the manifest, make any request in effect maybe compiler generates a TypeTag only type Taiptag [t] is used to specify the underlying evidence parameter is if the compiler contained fails to find a matching unexpected value during the search, it automatically TypeTag [T ] Will generate. stack Ovrflo tells answer clearly the concept of "extensive evidence" However, it will still generate entirely unclear whether this means that compiler for me A typewriter [T] Does this mean that this "inherent evidence" is a special case of discovery? To wit. The classic typewriting [t] is handled in a special way when the compiler searches inherent? I tried to look at the underlying parameter values ​​in Scala reflection API, but I have no type was not provided Taittag [T], so I'm coming from inside the underlying parameter compiler that I consider Taiptag [T] (as the documentation says Are). Therefore, classname is difficult to s...

xamarin - Mvvmcross iOS Push Notification Setup -

I want to set my app with push notifications What is currently a mvvmcross demo that uses push notifications in all platforms Does it? I saw some third-party libraries such as Pushsharp which handles the most, but wondered if someone likes preference to set up for cross-platform development. I am still starting a relative in mobile dev, Not sure that you have AZULl Notification Hub

linq - Adding where and sum to lambda expression -

Image
मेरे पास लिनक क्वेरी नीचे है: var qry = आउटपुट में db.Outputs आउटपुट पर शिफ्टहौर्स में शामिल हों। शिफ्टहॉरस आउटपुट पर। शिफ्टहौर शिफ्टहौर के बराबर हैं। शिफ्टआप डीबी में शिफ्टडाटा में शामिल हों। आउटपुट पर शिफ्टडेट्स। शिफ्टआइएड शिफ्टडाटा के बराबर है। शिफ्टआइड जहां शिफ्टडाटा। शिफ्टडेट == तारीख और amp; ShiftData.Line == लाइन नई प्रगतिडेटा () का चयन करें (CPM = ShiftData.CPM, लक्ष्य = ShiftData.Target, CurrentOutput = db.Outputs.Sum (x = & gt; x.Quantity), PercentOfTarget = (db.Outputs.Sum X = & gt; x.Quantity) / ShiftData.Target) * 100}; यह लगभग मैं क्या चाहता हूं, लेकिन जैसा कि यह खड़ा है, वर्तमान आउटपुट लैम्ब्डा अभिव्यक्ति आउटपुट तालिका की संपूर्ण मात्रा कॉलम की राशि लौट रहा है क्योंकि मुझे कोई अनिश्चित नहीं है कि कैसे एक ' जहां 'खंड और साथ ही योग समारोह (और इसलिए PercentOfTarget भी गलत है)। जहां खंड पहले की तरह ही होना चाहिए, जहां खंड (तिथि और पंक्ति विधि को पारित पैरामीटर हैं): जहां ShiftData.ShiftDate == तिथि और ; & amp; ShiftData.Line == रेखा क्या...

scorm1.2 - How to design LMS in PHP for executing a SCORM 1.2 package -

Image
I have a SCORM V-1.2 package for which I want to create an LMS system in PHP. Here is the SCORM 1.2 package structure ... I know, LMS can use their APIs with SOCM objects. But, my problem is that I can not enable figs out of what the entire architecture of the LMS system should be, so that all of them can be done. I mean, do I have to write any code, index.html (inside SCORM package) or something else I have done a lot of hit-n-trial but no luck yet so I can play SCORM course However, SCORM can not enable OBJ to communicate on any server-side file so that I can track user activity. Store in my DB I went through this God guide () but, in fact, I can not be able to know how to proceed. Any thoughts ...? Read official documents, they describe each piece of detail in detail.

php - Event notification error in sql -

I have written the code for the event notification that is shown below. I want to store some information on the event date and set as the time specified, I can work at that particular time as any other table named PT. I have not received any error but after that incident the information is not stored in PT. Any ideas ... drop event `t1`; Prepare for '2014-02-17 03:43:00' on Disaster = `Route` @ Preferred on 'Localhost' EVENT T1; Select PT (PNA, DNA, TestName) Patient.pname, Doctor. Doknam, Test. Patient, doctor, test, assistant WHERE (Assist.Date = '2014-02-17 03:43:00') and (Assistant .pd = patient.pid) and (Assist.Did = Doctor.de) and ( Assistant Ted = Test. TD); END You need event scheduler configuration for the event Is to work The default status of the event scheduler is disabled . you need to enable any of the following SET GLOBAL event_scheduler = ON; SET @@ global.event_scheduler = ON; Set global event_scheduler = 1; SET @@ global.e...

vmware - vSphere 5.1 authentication via external OpenLDAP -

I try to add the OpenLadap authentication option to vSphere. I would like to give some users the possibility to log in to VSPE using LDAP accounts. I have not got anything yet All the tutorials in the internet are for Microsoft Eddie. I am doing this: Administrator @ system- vSphere - Client, Sign-On and Discovery - & gt; Configuration - & gt; After that, I provide all the basic information: Name: ldap test Primary server URL: ldap: // ldap: 389 The base DNA for users: DC = ldap, dc = my_domain_here, dc = com When I click on "test connection" I am receiving it: "Connectivity failed for investigation" " There is no problem with LDAP because I add LDAP proof for many other services. Or maybe I can not do this proof for vCenter. Maybe I can not understand the purpose of this feature in vSphere and it is possible that it is possible to use a user account for auth from OpenLDAP Any idea? You will get the official monument. Add a ...

java - Android broadcast receiver to scan every incoming SMS for specific Contant -

I want to scan every incoming SMS for specific content. When special content is found then a special task is done. Let's assume that the specific content string is "Hello World" when the service finds this string then it will trigger a specific task. Take a photo with the i.e. front camera and place that photo on a specific folder. The receiver has to always run when the phone is on. Create an SMS broadcast receiver for this that triggers a SMS received Public class SMSBroadcastReceiver broadcasts broadcasts receivers {Private constant final string SMS_RECEIVED = "android.provider.Telephony.SMS_RECEIVED"; Private static final string TAG = "SMSBroadcastReceiver"; Override public zero at @Receive (reference reference, intention intent) {Log.i (TAG, "intent received:" + intent.getAction ()); If (intent.getAction () == SMS_RECEIVED) {bundle bundle = intent.getExtras (); If (bundle! = Null) {object [] pdus = (object []) bundle.get (...

html - Unwanted space between list item -

I have divs inside each list item and list item is a place before each list item on IE and FF. I'm pretty sure why this is doing this because it looks fine on chrome, I searched online and tried to put margin and padding on 0 and tried to put the code in the same line but I got it from my div Do not get rid of the above place. Those divisions that I have have jquery attached to them, so I'm not sure whether to influence it in any way? I checked online, some say that only Lee should be inside ul / ol, so I'm not sure that this is another reason for the unwanted place? Just wondering if anyone knows what an unwanted space? If not, I have to use the second way (without the list) to get the desired result. Thanks in advance. My code & lt; Ol & gt; & Lt; Li & gt; & Lt; Div class = "doSomething" & gt; Test 1 & lt; / Div & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Div class = "doSomething" & g...

javascript - Populate a combo from a json hash but in sorted order -

I have a JSON hash and I populate the combo box as follows: $ each (json_hash, function (key, value) {$ ("#selected"). Append ("& lt; option value = '" + key + "'> gt; + + value +" & lt; / Option & gt; ");}); It works fine but the problem is that it does not show data in sequential order. The easiest way I can populate the combo so that the data can be sorted in a sequential order? Add it to your code before json_hast.sort (function (A, b) {return a.value - b.value});

java - How to get month according to day of year -

I have input 34 meaning its third day February How to programmatically determine Java in and month name or month month value such as 0 to get from day to day In java it handles i searched in calendar class but no one found calendar cal = calendar.justinstance (); Cal.set (Calendar: DAY_OF_YEAR, 34); Println (cal.get (Calendar.MONTH)); Back 1 (with 0 from the start of months).

java - Setting a parameter from a backing bean -

I am creating a CRUD web application using JSF and created an add form to create a new unit Which is maintained in the database. When successfully saved, I would like to navigate the user to the page where the details of the newly created unit will be displayed. For more information, what I do not want to do is to create a navigation rule where a successful user is saved, it is delivered to "Commodation Details .xml" I "Face-Navigation.Xml" And this part works fine. My problem is that I have to pass a parameter that allows me to bring the newly created institution ID. Bellow, add form has buttons. & lt; P: command button value = "save" action = "# {dilution.save ()}" & gt; & Lt; F: Action Listener Binding = "# {dilution.prepareForSave ()}" /> & Lt; / P: CommandButton & gt; When called dilution.save () (which also 'saved' on the success of the navigation case), the unit will be established S...

wpf - How to convert DataGrid to dataTable -

I want to copy all the datagrid archives into datatates without using any loop. For X: New Datatable DT = Data Grid 1. DMTT as the item but it is not working and is giving an error message. My development platform is Visual Studio 2010 and language is with WPB vb.net 4.0 How to transfer all records from DATAGRID to datasheet without using LOOP VB: DMTT as new Datatelle DT (DataGrid1.ItemsSource, DataView) .toTable Dt = (DataView) DataGrid1.ItemsSource .toTable ();

java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList -

मेरे पास एक वर्ग है: सार्वजनिक वर्ग प्रश्नावली {निजी स्ट्रिंग प्रश्नावली लिबेल; निजी सूची & lt; प्रश्न & gt; प्रशन; .....} और मैंने एक नई प्रश्नावली को इस रूप में आरम्भ किया है: प्रश्ननाम q = नया प्रश्ननाम ("आर्किटेक्चर डेस ऑर्डिनेटर्स", Arrays.asList (नया प्रश्न ("1. ला पार्टि डू प्रोससियरर स्पै © सिकल्स एंड इकोन लेस गणना:"), नया प्रश्न ("2। डेन्स एंड ऑर्डिनेटर, लेस डोनाएस् एस एस प्रोप्रे एक लेक्ट्रीक डे ला फॉर्मे: "), नया प्रश्न (" 3। लेस डिफैए © किराए पर © लेन्स डीए। यू आर कॉन्टिनेटर (एमए © मूयर, प्रोसेसर, पीए आरपीएई आरसीई |? |) एसटीआई रिले © एस एंट्रे ईयुक्स पर्स डेस: "))); जैसा कि आप देखते हैं मैंने एक नया सरणी सूची घोषित करने के बजाय arrays.asList () का उपयोग किया है। अन्य वर्ग से मैंने इस कोड का इस्तेमाल किया: के लिए (प्रश्न q: (ArrayList & lt; प्रश्न & gt;) request.getAttribute ("listQuestions")) लेकिन मैं उस पंक्ति के लिए यह त्रुटि मिली: java.lang.ClassCastException: java.util.Arra...

c++ - What is left and right node where node may > 2 -

I do not understand what left is and right The node in the tree. Suppose I have such a structure, struct rect {void visit () {} std :: vector & lt; Rect *> Organ; }; What is left and what is right here? Does it exist here? If so, how can I determine that w / c is rest and W / C is correct? I want to cross them with root (post-sequence) Is this right? Zero Post Order (Riket * Rect) {if (rect == nullptr) return; (Auto & amp; i: Promotion :: Adapter :: Reverse (Rect-> Component)) (Poster (I);} Rect-> Travel ();} but the left and right nodes are not here? there is no left and right (unless That your rectangles are not sorted by the x-axis position, which is not shown).

When should we use jQuery append() and appendTo()? -

I know about addendum () and appendTo () functionality. Is it different in terms of performance? It depends on what you should value in return. If you want to revert the newly created objects reference If you want the object to which the values ​​are added then

ios - UIDocument loadFromContents: is not always called after document was changed on another device -

मेरे पास एक कस्टम यूआईडीओका सबक्लास है और इसका कार्यान्वयन loadFromContents: और contentsForType: । यह पता लगाने के लिए कि दस्तावेज़ दूसरे डिवाइस पर बदल दिया गया था, मैंने loadFromContents: के लिए एक प्रतिनिधि जोड़ा: - (BOOL) loadFromContents: (आईडी) की सामग्री की प्रकार: (NSString *) प्रकारनाम त्रुटि: (NSError **) outError {डिस्क से लोड [एक ??] | अगर ([_delegate respondToSelector: @selector (नोट दस्तावेज़ दस्तावेज़ अद्यतन :)) {[_delegate noteDocumentContentsUpdated: self]; } हां लौटें; } मेरी समस्या यह है कि जब मैं किसी अन्य डिवाइस पर दस्तावेज़ को बदलता हूं, तो मुझे दस्तावेज़ स्टेट परिवर्तन सूचनाएं प्राप्त होती हैं ( edit_disabled इसके बाद normal ), लेकिन सामग्री नहीं पुनः लोड की गई है और loadFromContents: नहीं कहा जाता है। सामग्री निश्चित रूप से डिस्क पर अपडेट की गई थी जब मैं मैन्युअल रूप से यूआई के माध्यम से दस्तावेज़ को फिर से खोलता हूं, तो मैं तुरंत नवीनतम बदलाव देखता हूं। दूसरी बार यह काम करता है और loadFromContents: को स्वचालित रूप से कहा जाता है मै...

PHP Client can't connect to RabbitMQ server on localhost -

OS : CentOS 6.4 I try to connect to RabitMQ server using PHP The client is doing the following, $ connection = new AMQPConnection ('10.1.150.109 ', 5672,' guest ',' guest '); $ Channel = $ connection- & gt; Channel (); But when I run a script from the browser, gives me this, the exception is 'phpAmqpLib \ Exception \ AMQPRuntimeException' Error message (13): Connecting to server 'with message' permission denied '/var/www/html/event/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php27 at netstat show this, TCP 0 ::: 5672 ::: * LISTEN 10776 / beam In this post, this man gives inherent answers, but he has not described the procedure he followed to fix this problem. I thank you for any person who can help me in this regard. What happens if you telnet 10.1.150.109 5672

jquery - Using 2 $(Window).scroll scripts -

I am using 2 scripts which are dependent on $ (window) .scroll function for a perpendicular image. Js and inview.js for a CSS3 animation, while the element is in the viewport both scripts are as follows Inview.js $ (function () {var $ Blocks = $ ('AnimBlock.notViewed'); var $ window = $ (document); $ window.on ('scroll', function (e) {$ blocks.each (function (i, amm) {if ( $ (This) .hasClass ('View')) Return; isScrolledIntoView ($ (this));});});}); Function isScrolledIntoView (elem) {var docViewTop = $ (window) .scrollTop (); Var docViewBottom = docViewTop + $ (window). Light (); Var elemOffset = 0; If (elem.data ('offset')! = Undefined) {elemOffset = elem.data ('offset'); } Var elemTop = $ (elem) .offset () Top; Var elemBottom = elemTop + $ (elem). height (); If (if elemOffset! = 0) {// is based on custom offset scrolling direction (docViewTop - elemTop> = 0) {// scrolling with elemTop = $ (elem) .offset () Top + elemOffset; } The ot...

wso2is - Permissions to set in order enable acess to XACML PDP -

I am using WSO2 detection server version 4.6.0. I try to search for the list to enable a certified user to reach entitlement service to achieve PDP's decision " Internal / All "allowed on the roll. I have read during my search that the entitlement service is considered as the "Admin" level service, but I do not know which specific permission set is necessary. I do not want the third party application PDP Use a full admin user to send a request to Yes. The entitlement service is an administrator service, which means that you need to authenticate and authorize the identity server. You need "Permission / Administrator / Management" to access this server. This means that you need to create a role by choosing "Manage Permissions - & gt; Manage" in the Permitted Tree. And provide the user the role created.

javascript - How do I fire the same event on multiple links when hover over - jQuery -

I am trying to write a simple function using an event holder and can use some help or points where I can work on how to do it. I have three link elements in which the titles are present within them. When the mouse enters the element, I want to see the title (the garage door effect) slide and vice versa when leaving the mouse element. I have managed to write the first part. I can get the elements to hide the titles on the hover, but instead of at a time, different incidents on different elements have not been known separately to the phenomenon of fire. Or how to remove the event to leave the mouse Should I use () event or .mouseenter () and .mouseleave () My code is here "post-text" itemprop = "text"> .hover () method both Connects the handler to the mousecenter and mouseleave events . You can use it only to apply the behavior of the element during that time when the mouse is within the element. In addition the ID should be unique. Then ...

php - Select rows from specific date with left join -

I am currently working on a simple employee scheduling tool and there is a problem with SQL queries. To explain my problem, use these two very abstract tables. In the first table, there are just employees employee ====================== empId | | Name | ... ---------------------- 10 | Scott | 11 | Schrute | 12 | Halpert | 13. Howard | In the second table you find the work assigned to each employee by day. Tasks ========================================== ==== tasId | Name | Work | Date | ... ---------------------------------------------- 10 | Scott | Support | 2014-02-17 | 11 | Scott | Bugfix | 2014-02-18 | 12 | Halpert | Bugfix | 2014-02-17 | 13. Halpert | Development | 2014-02-18 | 14 | Howard | Support | 2014-02-17 | Now I want to know what the employees are doing on 17th February or if there is no work plan for that day. I use the following SQL query to do this. Select E. Names, employees to vaccinate and E.name = TNN Add functionality where the date is zero or date...

using PHP global variable -

I have a PHP global variable that I fill in a row from a database in the PHP section of my file. Global $ Row; / * Recover each row as an Associate array and display results. * / While ($ line = sqlsrv_fetch_array ($ stmt, SQLSRV_FETCH_ASSOC)) When I resize the $ line individual field, print the value as expected. Resize $ line ['crust_lost_name]]]. ",". $ Line ['Cust_PRI_Phone_Number']. "& Lt; br / & gt;"; When I try to use different fields later in the HTML code, nothing in the file is visible. & lt; Label & gt; Name & lt; / Labels & gt; & Lt ;? Php Global $ line; Echo ['Cust_Last_Name'] per line; ? & Gt; Is anything else that should be coded for the name? Thanks, Bob H global $ rows; While ($ line = ...) {$ line [] = $ line; } You have all the rows in the $ rows. (But try to avoid using global variables.)

mysql - SQL join with aggregated data -

मेरे पास दो SQL टेबल हैं। यूज़रर्स आईडी | USERNAME 001 | टॉम 002 | जेन 003 | पीटर 004 | मैरिया उत्पादों आईडी | PR_NAME | USERID 01 | ऐप्पल | 002 02 | नाशपाती | 001 03 | टमाटर | 002 04 | ऐप्पल | 003 05 | टमाटर | 001 06 | ऐप्पल | 001 अगर मैं "ऐप्पल" को किसी प्रपत्र / सूची / ऐप में चुनता हूं तो मुझे यह देखना है कि "एप्पल" किसने खरीदा है और कितने लोगों ने खरीदा है: USERID | USERNAME | NUM_PRODUCTS_BOUGHT 001 | टॉम | 3 002 | जेन | 2 003 | पीटर | 1 मैंने जो कोशिश की है SELECT USERS.ID, USERS.USERNAME, COUNT (PRODUCTS.PR_NAME) के रूप में NUM_PRODUCTS_BOUGHT उपयोगकर्ताओं से उत्पाद पर छोड़ दिया गया उत्पाद शामिल हैं .USERID = USERS.ID WHERE PRODUCTS.PR_NAME = USERS.ID द्वारा "एप्पल" ग्रुप लेकिन यह मुझे NUM_ALL (1) जैसी गलत नंबरों की तरह देता है आईडी | USERNAME | NUM_PRODUCTS_BOUGHT 001 | टॉम | 1 002 | जेन | 1 003 | पीटर | 1 मैं इस परिणाम को 3 तरीके में प्राप्त कर सकता हूं लेकिन मुझे जो चाहिए वह नहीं मिल सकता। मुझे लगता है कि ...

javascript - Assign __proto__ to an interface to turn it into an object - clever or dangerous? -

When using a post message () to copy data from / from the webmaster, you can post that item Which is a class. But on the far side, the received object is just data (i.e. the interface, no class). has suggested that the correct __ proto __ turn it back on in the class on the receiving side of the object. But this solid & amp; Is safe or is it asking for trouble? I am not asking about the opinion (a big no-number), I am asking that there are some technical problems that can cut me back. Some browsers may not support patching __proto___ or in the future , Can stop supporting it. I searched this hard when my code stopped working when used in HTML applications. must correctly call (in ES5) Object.create (Constructor.prototype, obj) ()

c# - Encapsulating how a private member variable is modified, but allowing the member to be accessible for reading -

This is a very basic OOP question. I do not want to make a copy of _objectSettings and I think that I can see a brain fart in question object in the gator function. Example: Public class cool object {personal dictionary & lt; Long, bool & gt; _objectSettings; Public cool object () {//. Do stuff}} Public Zero Update Settings (Long, Boole) {// Applying New Settings Applying Some Rules} Public Dictionary & lt; Long, bool & gt; GetSettings () {// The return dictionary of settings, but users are not allowed to modify _objectSettings}} thanks :) Edit: I have a Net 4.0 I am at , So the answer I choose can not show the best solution for future readers. Make either a copy or your dictionary is required in NAT 4.5, but you can easily You are not on .NET 4.5. public dictionary & lt; Int64, Boolean & gt; GetSettings () {// Return a snapshot of the current settings Return the new dictionary & lt; Int64, Boolean & gt; (This._objectSettings); } Publi...

python - NDB many-to-many KeyProperty kind reference not working -

After I am trying to connect different entities with one another with KeyProperties in App Engine like this: ModelA (ndb.model): mod_bs = ndb.KeyProperty (type = ModelB repeated = true) mod_cs = ndb.KeyProperty (like = ModelC repeated = true) # Other classes of properties ModelB (ndb. Model): mod_as = ndb.StringProperty (like = ModelA repeated = true) mod_cs = ndb.StringProperty (like = ModelC duplicated = true) # Class of other properties ModelC (ndb.Model): mod_cs = ndb.KeyProperty (type = ModelA , Repeated = true) mod_as = ndb.KeyProperty (like = ModelB repeated = True) # other properties But I'm saying that "ModelB" is undefined in this structure to get an error. Obviously, whatever is referred to below is not recognized. So if I get rid of some kind of work in Model A and Model B, then in Model C they are fine and everything runs. I need to refer them to circuit form, and it seems like I should work. Am I doing something wrong? In such cases, you can ...

php - How to get /user/8/lesson/79 to work without giving user access to all lessons? -

My two models are: a user model and a lesson model. The user for text is one of the many relationships. I have defined that it has many links in the user and text model. Essentially, I want to force the user into my lessons; User 8 should not be able to access the Lessons of User 7 However, it does not work: return user :: Search ($ userId) - & gt; Lesson () - & gt; Where ('id', $ id); and I do not want to say return text :: search ($ lessonId) because it means That any user can do anything else with the lesson of another user. I think what you want Route: Filters ('user-free'), function ($ route, $ request) {// is probably a better way of getting value from the request, // but I could not find it // $ uid = $ request- & gt; Segment (2); $ Lid = $ request- & gt; Segment (4); // Check user id and text value - Not sure how you want to test it; // I have just made up some // if (user: search ($ uid) -> gtc: gtc-> gt; lesson...

c++ - How do I iterate through a two dimensional vector -

To be repeated and printed through the use of a single dimensional vector, Vector & lt; Integer & gt; a; For (vector = lieutenant> gt; :: iterator = a.begin (); this & lt; a.end (); it ++) cout & lt; & Lt; * this; How do I do this for a two-dimensional vector? Or ever since we are using C ++ 11 ... #include & lt; Iostream & gt; #include & lt; Vector & gt; using namespace std; Int main () {Vector & lt; Vector & lt; Int & gt; & Gt; V = {{1,2}, {3,4}}; For (Const Auto and Inher: v) {For (Cost Autos and Item: Inner) {cout & lt; & Lt; Item & lt; & Lt; ""; }} Cout & lt; & Lt; Endl; Return 0; }

javascript - Find all onclick attributes and append a value to them -

I am trying to find all the elements with a onclick attribute and toggle the " () "Add" var original attribute = $ ('[onclick]'). Attr ('onclick'); $ ('[Onclick]') Attr ('onclick', original attribute + 'toggle ()'); Something is clearly wrong, but what? $ ('[onclick]'). Attr ('onclick'); First will return a value for the mailing element. All you need to do is try this for each element: $ ('[onclick]'). Each (function () {var $ this = $ (this); var originalAttribute = $ this.attr ('onclick'); $ This.attr ('onclick', original attribute + 'toggle');}) ;

php - Append selected value in the middle of a URL -

Any idea how would I add the URL to the place where it says is VALUE? I'm not sure how this is even more possible: & lt; Form method = "get" action = "& lt; php echo site_url () ;? & gt; / discover /? Search_query = & amp; orderby = empty & tax_category = VALUEHERE & amp; wpas = 1" & gt; & Lt; Fieldset & gt; & Lt; Select name = "" & gt; & Lt; Option value = "" & gt; All categories & lt; / Options & gt; & Lt; Option value = "college-student" & gt; College students & lt; / Options & gt; & Lt; / Select & gt; & Lt; Button type = "submit" & gt; Search & lt; / Button & gt; & Lt; / Fieldset & gt; & Lt; / Form & gt; jQuery usage: var url = $ ("Form") attr ("action"). // Get URL; Url = url.replace ("VALUEHERE", $ ("Choose Form"). Val ()); Warning (url); // Your f...

javascript - angularjs routeProvider not working on live server -

Image
I have just uploaded a project from my local host to a live server, but I have a little trouble with some links is! I have this in my route provider: $ routeProvider.when ('/ projects /: project', {templateUrl: 'partials / projectPage.html', administrator: 'ProjectPageCtrl'}) But when I go to the page which is in link text mysite com / project / testing, the hole site crashes and I get this error in the console: Syntax error: Unexpected token & lt; Com / js / jquery-1.8.0.min.js on eval (native) on mysite: function at 2: 14066. p.extend.globalEval (mysite com / js / jquery-1.8.0.min.js: 2 : 14077) p.ajaxSetup on .converters.text script (mysite com / js / jquery-1.8.0.min.js: 2: 83767) cc (mysite com / js / jquery-1.8.0.min.js: 2 : 5858) on Y (mysite com / js / jquery-1.8.0.min.js: 2: 79924) at d (mysite com / js / jquery-1.8.0.min.js: 2: 85578) Object.send On (http: // mysite com / js / jquery-1.8.0.min.js: 2: 85705) function at p.extend.ajax (m...

css - Push footer down to page when div content is generated? -

Image
मेरे पास पृष्ठ को दिखाया गया चित्र है जब कुछ दाएं स्तंभ पर क्लिक किया जाता है, बाएं कॉलम पर DIV जनरेटेड कंटेंट के साथ दिखाई देगा। इस डिवेल में एक निश्चित ऊंचाई है लेकिन इसकी स्थिति दाएं कॉलम पर क्लिक की स्थिति के आधार पर भिन्न हो सकती है। जैसा कि आप देख सकते हैं कि जब div दिखाई देता है, तो पाद लेख नीचे धराशायी नहीं होता। मैंने बहुत से समाधानों की कोशिश की ताकि पाद लेख को फिर से स्थान दिया जा सके, लेकिन उनमें से कोई भी मेरे लिए काम नहीं करता है। शायद मैंने कुछ गलत किया है? मेरा पाद लेख सीएसएस: #footer {color: # 666666; पृष्ठभूमि: # डी 3 डी 3 डी 3; सीमा-शीर्ष: 1 पीएक्स ठोस # एएएए; पैडिंग: 1 एएम; मार्जिन-टॉप: 0; स्थिति: पूर्ण; चौड़ाई: 100%; } जाहिरा तौर पर आपको अधिक कोड सम्मिलित करने की आवश्यकता होगी लेकिन आपका पाद लेख पूरी तरह से नहीं किया जा सकता है क्योंकि यह अन्य divs के बावजूद एक विशिष्ट स्थिति लेता है

javascript - Styling a geoJSON Feature Layer in MapBox -

I'm just starting playing with MapBox and running in a deceptive issue. I am creating a ground floor layer map using this code: var map = l.mapbox.map ('map', ' gt;'); Var zipLayer = L.mapbox.featureLayer ('data / blah.json'); ZipLayer.addTo (map); ZipLayer.setStyle ({color: 'red'}); The map appears and reflects the geographical position, but this style ignores when I copy the last line in the JS console in my browser, it works fine, although. What am I missing here? Apart from this, I have tried at least a dozen different ways to include the style in the optionleer () call directly, but nothing has worked, how can I specify the style when I make a feature layer? ? I'm guessing a bit, because I do not know the mapbox JS very well, but It looks like an async error, oddly, I do not see anything in the MapBox or Litter API about a callback for this function. But, you can directly facilitate GeoJSON (), then I suggest using jQuery (...

python - BeautifulSoup4 parse everything except specific tags -

I am using Python to parse some HTML. The problem is that I & lt; Ul & gt; and & lt; Li & gt; I want to remove only the text of the document execept for the tag, sort the reverse order, so I need a function parse_everything_but_lists which will have the following behavior & gt; ; & Gt; & Gt; Lt; li & gt; & lt; / li & gt; & lt; li & gt; & lt; / l & gt; & lt; l & gt; & lt; li & gt; Dr & lt; / p & gt; Pablov & lt; / li & gt; & lt; / ul & gt; ")" Hello this & lt; ul & gt; & lt; li & Lt; li & gt; Dr. Pablov & lt; / li & gt; & lt; / ul & gt; " P> You can still use open , just keep tag DRF (tags) from BS4 import = ('Ul', 'li')): In the tag for L: If Eastense (L, Tag): get a bit recursive. Opening (L) # Remains of the first, open it later if not el.name: el.unwrap () demo: s = '' Dr & ...

how do you create a AutoHotKey spin macro? -

I have something that repeats the keyboard key "up, left, down and right" and until the key to insert Not being pressed repeats in the end, I am not sure how to get it done to stop it? Can anyone help me point in the right direction? I am not currently on a windows computer, so this code is untested This is not ahk_L for ahk_basic You will need to create a hotkey to start this loop. You should also make sure that it runs only on the window on which you are inducting, as well as a way to exit the script quickly, because the script may run away from you, so that you restart the computer You can. ; While the physical insertion key is above, while the keystest ("insert", "d") ({} {up} {left} {right} {bottom}} For information on that particle topic, you may need to use a different transmission mode (and I suspect that may be possible).

class - In an operation between two objects in python whose overloading of the operation as priority? -

For example, if I have __ add __ and __ radd __ Is defined in two classes and I add two objects which will use the definition of operation? If left and right hand objects are unrelated, then the left hand wins the object. However, if an object is a subcategory of another object, then the subcategory wins it despite the left or right hand object. & gt; & Gt; & Gt; Square Fu (object): ... def __add __ (self, rhs): ... print ('foo.add') ... def __radd __ (self, rhs): ... print ('foo.radd ') ... & gt; & Gt; & Gt; Square Bar (Foo): ... def __add __ (auto, rhs): ... print ('bar.add') ... def __radd __ (auto, rhs): ... print ('bar.radd ') ... & gt; & Gt; & Gt; A = fu ()> gt; & Gt; & Gt; B = bar ()> gt; & Gt; & Gt; A + b bar.radd & gt; & Gt; & Gt; B + once.ad & gt; & Gt; & Gt;

php - Package for viewing "pretty" monolog files -

Is there a package that displays in "beautiful" HTML format with parsing monol files and filtering for log level? Does, etc.? I'm a suggested developer, thanks for advising Carlton! This allows you to filter by log level and you can install it once and access log files from multiple domains or install it on the same domain and Can access files locally. If you feel that a feature is missing, do not hesitate to open a Geethbub issue and I will see what I can do.

vb.net - Using open file dialog and save file dialog with a list box in VB -

I will save those things that add to a list and enter the open a txt file list box. When I open a txt file, I get a one-line code and only my efforts to save empty textile files are generated. Any kind of help would be appreciated. Here is my code: import System.IO Public Class Form1 public String Private Sub OpenToolStripMenuItem_Click (ByVal as the System.Object, ByVal e listed as System.EventArgs) OpenToolStripMenuItem.Click dim AllText handle = "" as a string, LineOfText string = "as" dim StreamToDisplay as StreamReader OpenFileDialog1.Filter = "text files (* .txt)} | * .txt "OpenFileDialog1.ShowDialog are () = DialogResult.OK then StreamToDisplay = My.Computer.FileSystem.OpenTextFileReader (OpenFileDialog1.FileName) Label1.Text = OpenFileDialog1.FileName Strymtodisep LEONDOffStream LineOftext = StreamTypeSpell Readline () 'AllText = AllText & amp; Lineofftext & amp; VbCrLf lstBox.Items.Add (listed) loop lstBox.Items.Add (AllText) Ko...