Posts

Showing posts from January, 2013

php - My .htaccess seems to rewrite my URL in GET, instead of maintaining POST -

मेरे पास निम्न .htaccess है: विकल्प + अनुवर्ती साइज लिंक्ड रिव्रैटएन्जीन ऑन रीवरिटबेस / रीइरिट नियम ^ । * $ / Dispatcher.php मेरा लक्ष्य यह है कि सभी अनुरोध मेरे डिस्पैचर के माध्यम से जाएंगे (जैसा कि मैं खुद को छद्म-एपीआई लिख रहा हूं, मेरी कॉल्स / यूआरएल केवल कार्य कर रहे होंगे दुर्भाग्य से जब मैं अपनी साइट को किसी POST विधि के माध्यम से कॉल करता हूं, तो मेरा प्रेषक मुझे बताता है (के माध्यम से $ _ server ['REQUEST_METHOD'] ) कि मेरा अनुरोध एक अनुरोध है, और मेरे सभी POST डेटा खो जाता है UPDATE : मेरे ब्राउज़र के माध्यम से मेरी अनुरोध प्रतिक्रियाओं को चेक करने के बाद मैं POST के रूप में अनुरोध विधि को बनाए रखने के लिए क्या कर सकता हूँ? , प्रतिक्रियाएं 404 पृष्ठ नहीं मिली हैं, हालांकि, पृष्ठ अभी भी सही तरीके से प्रदर्शित किया जा रहा है। शायद विधि को प्राप्त करने के लिए सेट किया जा रहा है क्योंकि यह एक 404 रीडायरेक्ट है? हालांकि, अभी भी यह समझने के करीब नहीं है कि इसका क्या कारण होगा। हालांकि 404 प्रतिक्रिया अजीब है, हालांकि मुझे पता है कि मेरा .htaccess ...

jar - Java.lang.Class.newInstance() throws IllegalArgumentException -

मेरे पास सरल प्रारंभ वर्ग के साथ सार्वजनिक प्रारंभ (स्ट्रिंग [] पैरामीटर) कन्स्ट्रक्टर, जिसे मैं दूसरे चल जावा प्रोग्राम के स्तर से गैर-रननेबल JAR फ़ाइल से कॉल कर रहा हूं। रनटाइम पर्यावरण में सब कुछ काम कर रहा है क्लास प्रारंभ इस तरह दिखता है: वर्ग को प्रारंभ करने के लिए, जब मैं नई इंस्टेंस () विधि को कॉल करने की कोशिश करता हूं, तब समस्या होती है। सार्वजनिक वर्ग प्रारंभ {सार्वजनिक प्रारंभ (स्ट्रिंग [] पैराम्स) {/ * मेनस्टेज ऑब्जेक्ट इनिशियलाइज़ * / मेनस्टेज चरण = नए मुख्य स्टैज (पैराम्स); मंच पर शो(); // मेनस्टेज को पैराम्स के बारे में कोई प्रतिबंध नहीं है। Length}} और इसी तरह से मैं प्रारंभ कॉल कर रहा हूं: स्ट्रिंग [] टी = नया स्ट्रिंग [] {"एक", "दो", "तीन"}; {Class & lt;? & Gt; क्लैज = क्लास। फोर्नाम ("org.plugin.Start"); / * नीचे दिए गए अपवाद * / clazz.getDeclaredConstructor (स्ट्रिंग []। वर्ग) .नवीन इंस्ट्रेंस ((ऑब्जेक्ट []) टी; } पकड़ (अपवाद ई) {e.printStackTrace (); } यह उल्लेख के लायक है, कि यह अवैध अवैधत...

java - How does Karel run without "main" method? -

I was thinking like a run in the program because it does not use the main () method instead of it () method Used: Import Stanford. Karel Karel; Public Class Collect Notes Kerala Kerala (Public zeroless) (move ()); }} How does this work? The actual main method is elsewhere, for example, when Java program executes, The runner is actually executing the main method in class. Your run method is called that runner code.

intellij idea - Lombok prefix configurations in Android Studio -

I am using the lombom which can cause the accusator methods. I have a lombok.config file in the module / src / main / java directory that looks like a config file. lombok.accessors.prefix + m config.stopBubbling = true I have the following in my code. getMRoute () seems to generate the function instead of getRoute () / Code>. I have tried to change the location of the file lombok.config , and even installed the Lombok plugin for the intelligencer. add @Accessors (prefix = "m") before class declaration Fixes the problem. @Asseters (prefix = "m") Public Classes MyCalus {@Getter PrivateInternet; } Will generate getNum () instead of getMum ()

apache - CGI script showing as plain text -

मैंने निम्नलिखित चेक किए हैं: शेबांग लाइन फाइल एक्सटेंशन .cgi स्क्रिप्ट निष्पादन योग्य है पुनः आरंभ एपाचे मैंने अपनी परियोजना। साइट-सक्षम: & lt; निर्देशिका / var / www / perl_project / cgi-bin & gt; विकल्प ExecCGI SetHandler cgi-script & lt; / Directory & gt; मैं अपने लिंक्स में http: //project.local/cgi-bin/routes.cgi? Page = reports की तरफ इशारा कर रहा हूं, लेकिन वे ऊपर लाते हैं स्क्रिप्ट का पाठ और उन्हें न चलाएं ... स्क्रिप्ट किसी भी HTML को प्रदर्शित नहीं कर रही है, यह एक प्रकार का राउटर है जहां मुझे क्वेरी स्ट्रिंग मिलती है और उस टेम्पलेट टूलकिट फ़ाइल पर आधारित मैंने अपनी सीजीई लिपियों को के तहत रखा है / Usr / lib / cgi-bin mod_cgi मॉड्यूल को स्थापित करने के बाद मैंने देखा कि / cgi-bin निर्देशिका / vagrant , लेकिन यह किसी कारण के लिए काम नहीं करता है इसलिए मैंने पूर्व cgi-bin निर्देशिका को शिकार किया। आशा है कि यह किसी को मदद करता है

Creating line segment lists from x,y lists in Python -

I want to sync data for the rectangle in two lists (for example): X = [1, 8, 9, 4] y = [2, 3, 6, 7] I want to make a list of line segment endpoint representing the rectangles. . The list will ideally be: segment_endpoints = [((1, 2), (8, 3)), ((8, 3), (9, 6)), (( 9, 6), (4, 7)), ((4, 7), (1, 2)) My attempt: Vertices = zip (x, y) segment_endpoints = zip (vertices, vertices [1:] + [parenthesis [0]]) But Python will not let me zip a zipped object. Surely there is an easy way to do this. New for Programming New StackHowflow in New When you use the list in Python 3 ( [10]: In the [10]: Courses = list (zip (x, y)) [11]: list (zip (meridian, meridian [1:] +) [Meridians [0]])) [11]: [((1, 2), (8, 3)), ((8, 3), (9, 6)), (9, 6), (4, 7)), (1, 2)) in python3 zip as an iterator returns python2 You list in the list (zip ()) synta Must use S.

Trouble sorting this Lua Table -

मेरे पास निम्न रूप में एक Lua तालिका है: tTest = {} tTest शब्द 1 = {IsOnline = true, UpdateTime = 2, Value = 150} tTest.word2 = {IsOnline = true, UpdateTime = 1, Value = 25} tTest.word3 = {IsOnline = true, UpdateTime = 1, Value = 1000} मैं इस तालिका के माध्यम से फिर से सबसे अधिक मूल्य के साथ फिर से करना चाहता हूँ इसलिए मैंने यह कोशिश की के लिए, जोड़ी में v (tTest, फ़ंक्शन (a, b) a.value & gt; b.value end) प्रिंट (v.value) समाप्त करें लेकिन यह सॉर्ट किए गए मानों को प्रदर्शित नहीं कर रहा है। यदि आप अपनी संरचना को नियंत्रित कर सकते हैं , तालिका की तरह डिज़ाइन करें: tTest = {{"word1", IsOnline = true, UpdateTime = 2, Value = 150}, {"word2", IsOnline = true, UpdateTime = 1, मान = 25}, {"word3", IsOnline = true, UpdateTime = 1, Value = 1000}} और, अब आप तालिका को इस प्रकार सॉर्ट कर सकते हैं: table.sort (tTest, फ़ंक्शन (u, v) वापस u.Value & gt; v.Value end) यदि आप स्रोत तालिका को नियंत्रित नहीं कर सकते हैं ; अस्थायी तालि...

javascript - Removing a specific element depending on the URL with jquery -

I have searched the Internet for an answer and I think that when I try to gather Don The main problem is not that I am trying to create an entry show on one page. The problem is that the platform (Tumbler) does not allow you to edit the other pages directly ('/ tags / page') then this element, the carousel, is present on every page. I thought that the solution was to use jquery to remove the element based on the URL, but it is not working. I am a newbie for programming, while I know the basics, I am missing the experience to implement it. if (document.location.pathname == '/ tags /') {} else {function showOne (id) {$ ('hide.'). ('#' + ID) .hide (); } ShowOne (1); } I think you can try the code below: if (document.location.pathname.indexOf ("/ tagged /")> = 0) {} Other {function showOne (id) {$ ('. Hide'). No ('#' + ID) Hide (); } ShowOne (1); }

ios - UIImageView changes its display size when added to a new window -

In the initial view, the UIImageView size is 60x60, and it has a UIImage of 300x300 in size. It looks like 60x60 on the screen. However, when I do this: [self.topWindow addSubview: the ImageView]; The image view jumps to the size of a display of 300x300, it contains the size of the UIImage included. Why does this happen Both the initial window and the new window have the same size. Logging the frame of the image view after being added to the new window shows that the size is still 60x60, what could cause UIImage to respect the size of that UIImageView now? Again, the only one I'm working on is adding as a subview of a separate window. EDIT: I tried to do this with a simple UIUV. When it is added to a new window, its size does not change. Only happens with UIImageView.

wordpress blog connects with php website -

I have a WordPress blog and php website. I want to put information about new articles on the WordPress blog on the php website. I did something. I have the title of articles Mysql_connect ("LocalHost", "...", "...."); Mysql_select_db ("...", $ db); $ Result_redaktor = mysql_query ("SELECT * fp wp_posts WHERE Post_Status = 'Post Order' post_Data DESC LIMIT 10", $ db); If (! $ Result_redaktor) {exit (mysql_error ()); } If (mysql_num_rows ($ result_redaktor)> 0) {$ myrow_redaktor = mysql_fetch_array ($ result_redaktor); Do {printf ("& lt; div class = 'main' & gt; & lt; a href = 'http: //redaktor.11klassniki.ru/%s'>% s & lt; / a & gt; Lt; / div & gt; ", $ myrow_redaktor [" guid "], $ myrow_redaktor [" post_title "]); } While ($ myrow_redaktor = mysql_fetch_array ($ result_redaktor)); } And {resonate "& lt; p & gt; no data. & Lt;...

actionscript 3 - Text Input Rotation + Styling the text -

मेरे पास textInput मंच पर है, यह घटक नहीं है; बल्कि एक textField जो कि inputText के रूप में व्यवहार करने के लिए सेट है इनपुटफिल्ड । में पाठ के चुने हुए हिस्से को बोल्ड करने के लिए मेरे पास मंच पर एक बटन भी है, जो कोड ठीक से काम करता है: var प्रारूपडिफ़बॉल्ड: टेक्स्टफ़ॉर्मेट = नया टेक्स्टफॉर्मेट (); FormatDefBold.bold = false; Var formatBold: टेक्स्टफ़ॉर्मेट = नया टेक्स्टफॉर्मेट (); FormatBold.bold = सच; बोल्ड Btn.addEventListener (MouseEvent.CLICK, मेकबल्ड); फ़ंक्शन मेकोड (इवेंट: माउसईवेंट): शून्य {var sbi: संख्या = myInputField.selectionBeginIndex; Var sei: संख्या = myInputField.selectionEndIndex; यदि (sbi! = Sei) {var अनुभाग: टेक्स्टफ़ॉर्मेट = myInputField.getTextFormat (एसबीआई, सेई); अगर (section.bold == गलत) {myInputField.setTextFormat (formatBold, sbi, sei); } और {myInputField.setTextFormat (formatDefBold, sbi, सेई); } Stage.focus = यह [selectedTextField]; // चयनित पाठ फिर से हाइलाइट करें }} समस्या : जब मैं पाठ इनपुट को घुमाने के लिए, पाठ गायब हो जाता है। अगर...

angularjs - Warn user before navigating to a different view -

I want to warn the user and before that the user navigates from some pages in their application, like a new one Message view If you can say a link or button to navigate to another route or state , You can easily show a model that verifies navigation: & lt; A href = "" ng-click = "goToAnotherState ()" & gt; Go .. & Lt; / A & gt; $ Scope.goToAnotherState = function () {// show modal and confirm if your choice is (modalResponse.Ok) {$ state.go ('anotherstate'); }} Another option would be to do this in the $ locationChangeStart event of the UI-router, but if you are looking at it only here , The first approach is better $ locationChangeStart approach: $ rootScope $ ('$ LocationChangeStart', function (event, next, previous) {event.preventDefault (); // Show Modal if (modalResponse.ok) {var destination = next. Substr (next.indexOf ('#') + 1, next.length) .trim (); $ location.path (destination)}}

keystore - Unable to export signed APK in Android Studio -

जब मैं keytool -list -keystore /path/to/keyfile.jks का उपयोग करता हूं और अपना पासवर्ड, मैं उस प्रविष्टि को देख पा रहा हूं, लेकिन जब मैं उसी पासवर्ड का उपयोग करते हुए हस्ताक्षरित एपीके जेनरेट करने का प्रयास करते समय एक ही पासवर्ड का उपयोग करता हूं, तो मुझे त्रुटि मिलती है कुंजी स्टोर लोड नहीं किया जा सकता: Keystore के साथ छेड़छाड़ किया गया था, या पासवर्ड गलत था कृपया मदद! अथक खोज के 20 घंटों के बाद उत्तर मिला। जाहिरा तौर पर चरित्र के साथ कुछ समस्या है & amp; यहां वर्णित पासवर्ड में हालांकि मेरे मामले में, चरित्र '@' था मैं keytool -keypasswd -alias & lt; KEY_NAME & gt; मेरी कुंजी उपनाम पासवर्ड के लिए पासवर्ड बदलने के लिए --keystore mykeystorek.jks कमांड। चूंकि मुझे शक है कि मेरी मूल फ़ाइल में कुछ समस्या थी, मुझे लगता है कि चाबी को किसी अन्य फाइल में निर्यात करना सबसे अच्छा है मैंने ऐसा किया कि keytool -importkeystore -srckeystore my.keystore.jks -destkeystore new.keystore -deststoretype pkcs12 के बाद keytool -importkeystore -srckey...

entity framework - Enable Migrations Not working -

I have an application that has three layers. I am using EntityFramework 6.1 and the first migration code using the existing database. The three layers are 1. attendance level : ConceptuCodeFirstMigrationDemo just a console application for simplicity data layer terms and Starter The codes are given below: Namespace ConceptuCodeFirstMigrationDemo.Data.DataContext {Using the system; Using System.Data.Entity; Using System.ComponentModel.DataAnnotations.Schema; Using System.Linq; ConceptuCodeFirstMigrationDemo.Domain; Public partial class concept indicator: DBCTNET, IDisposable {public concept context (): base ("name = concept capture") {} public virtual dbset & lt; Users & gt; User {Received; Set; } Secure Override Zero OnModelCreating (DbModelBuilder ModelBuilder) {modelBuilder.Entity & lt; Users & gt; (). Essentially (E => E. User) .HasForeignKey (E = & gt; E. Creet). WillCascadeOnDelete (wrong); }}} ConceptuInitializer.Cs namespace Co...

java - How does the IDE verifies the syntax errors simultaneously on the go? -

I'm new to the programming era so that this question might look something strange but I doubt: When I write a program using a text-editor, when I compile the code, I would get syntax errors such as inserting semicolon or closing curly braces () at the end of the statement, etc.) and some other reason the numerical type And the range for everyone .... But when I am writing a piece of code in my eclipse IDE, it generates in error, if any, while I am writing code. My question is how does the IDE do this operation, and what type of mechanism (datastructure, etc.) does it use to accomplish this task? Each IDE uses its own method specifically eclipse javac Uses the "patch" compiler instead of IDE This compiler is saved once by default (by default), so when you are typing compiles files some syntax errors The ability to compile the code with the unique and eclipse compiler There are specializations. It actually compiles what you can do and throw exceptions if ...

javascript - jquery ajax send data double to php -

I counted a normal JavaScript and at the end of the countdown, an AJAX request should save the database to the database. It works fine but it saves entrance twice, why does it save double but any suggestions? (Sorry for my English I'm German) var countdown = Kind regards change this: if (countdown> = 0) {setTimeout ("count ()", 1000); } with this: if (countdown> gt; {setTimeout ("count ()", 1000); }

c - Wierd output for string operation IDEONE -

Can someone tell me why this happens, what's wrong here: Print the part of the string where the beginning of the string is given in the input to print the space and length. Problem: When I run it devC ++ then everything runs fine and fine. When I run it in IDEON, unless the printf ("% s \ n", abc) does not print the entire string, the code generates an output [not from the character array]; ---> When I do not use Printf ("% s \ n", ABC); Includes # lt; Stdio.h & gt; # Include & lt; Ctype.h & gt; Int main () {long long int q; Int length = 0; Scanf ("% lld", & amp; quot;); Whereas (q--) {int location, cutlength = 0, k = 0, pos, plen = 0; Four ABCs [100001], [100001], C; While (1) {scanf ("% c", & amp; c); If (C == '+' || C == '?') Break; } If (C == '+') {scanf ("% d", and loc); Position = loc; Cutlength = length-loc; For (int i = loc; i & lt; = length-loc; i ++) [k ++] = ...

PHP timetable statement -

I am currently working to improve a php timetable. A statement used by the timetable is: $ array2 ['username'] echo? $ Array 2 ['username']: '-'; I understand that the echo is displaying information but why is the question mark? What is the purpose of the colon? I am trying to forward the line above so that if statements and an ARF tag are included in PHP then I need to know what is doing to break the above statement So that I can read properly / P> These are turner operators . This is equivalent to a if-else statement. The above statement is trying to see if the index username is present or set. If true , this index uses the value of the username otherwise, it returns an empty string. Context ::

php - cakedc search plugin search in price range -

I am trying to search between two prices using the cakedc search plugin, this is my model code: public $ worksAs = array ('Search.Searchable'); Public $ filterArgs = array ('value' = & gt; array ('type' = & gt; 'expression', 'method' => 'merange condition', 'field' => 'value. And?') ); Public functions makeRangeCondition ($ data = array ()) {if (stupus ($ data ['value'], '-') == incorrect) {$ tmp = explosion ('-', $ data ['value'] ); $ Tmp [0] = $ tmp [0]; $ Tmp [1] = $ tmp [1]; Return $ tmp; } Other {Return Array ($ minPrice, $ maxPrice); }} Code for my controller: Public function index () {$ this- & gt; Prg- & gt; Common practice (); $ Cond = $ this- & gt; Property- & gt; ParseCriteria ($ this-> passed); $ This- & gt; Set ('property', $ this- & gt; paginated ('property', $ cond)); } Code for my idea: & lt ;? Ph...

Unity3d, cannot run the build on mac os -

I Mac failed but tried to make Mac on your Mac I do => File => Build & amp; Settings => Choose Mac => Choose the view (I tried) => Build & amp; Run The game can be made, but not run. I happened to click on the icon, went bouncing a window, but disappeared immediately went .. Then I CD using terminal CD, game content folder, CD for Mac OS folder. My start playing Finallly I got this response, file to read '/Users/Hoop22/Desktop/StudyUnity3DProject/StudyMultiplePlayerFPS/Builds/MultiFPS.app/Contents/Data/mainData' because it Is corrupted (File Name: Line: 442) Player Integogenphoographic Settings: What ....................... ................................ Thank you very much Can you give me a hand? Thank you very much It looks like your data is corrupted. Maybe you've got some serious and broken antivirus (or just a virus)? Was the network (FTP, samba, http etc) created on this computer? Is your license ... legal? ...

python - writing decompressed file to disk fetched from web server -

मुझे एक फ़ाइल मिल सकती है जिसमें content-encoding जैसा gzip । तो क्या इसका मतलब यह है कि सर्वर उसे संपीड़ित फ़ाइल के रूप में संग्रहीत कर रहा है या क्या यह भी संकुचित ज़िप या 7z फ़ाइलों के रूप में संग्रहीत फ़ाइलों के लिए भी सही है? और यदि ऐसा है (जहां डर्ल एक ज़िप फ़ाइल है) & gt; & gt; & gt; Durl = 'https://db.tt/Kq0byWzW' & gt; & gt; & gt; Dresp = requests.get (durl, allow_redirects = ट्रू, स्ट्रीम = ट्रू) & gt; & gt; & gt; Dresp.headers ['सामग्री-एन्कोडिंग'] 'gzip' & gt; & gt; & gt; R = requests.get (डरल, स्ट्रीम = ट्रू)> gt; & gt; & gt; डेटा = r.raw.read (decode_content = true) लेकिन जब मैं जाप पर डिस्क पर ज़िप फ़ाइल निकालना चाहता हूं, तब डेटा रिक्त हो रहा है! तो सबसे पहले durl एक ज़िप फ़ाइल नहीं है, यह एक ड्रॉप बॉक्स लैंडिंग पृष्ठ है । तो आप जो देख रहे हैं वह HTML है जो जीज़िप एन्कोडिंग का उपयोग करते हुए भेजा जा रहा है। यदि आप जिज़िप का उपयोग करते हुए कच्चे सॉकेट के डेटा को ...

Openshift Connect To MySQL From Local Java Application -

Image
I am using a scalable app on the openshift and I am trying to access the database from my local app, But I'm having trouble in setting up the connection I need to use my MySQL 5.5 database. IDE: Netbeans 7.4 I am using environment variable values ​​for the connection. I have no problem with using my Jbbus app in OpenEstiff. Any help would be much appreciated. Sorry for the incomplete information I am new in the SOF. If you have the rhc customer installed (see if it is not) , You can send it to the server via rhc port-froward . Use the localhost as the host and port number it tells you, given the username and password. Note that this will only work when running locally, and must run with the command Rhc . Also see

wordpress - How to debug this angularjs error? -

I am working on a Wordpress and AngularRescue project on the Linux Mint 17 machine. Install the managed project on my development machine correctly, and everything works well. However, I used it on git clone from the same repo used on my repo. Everything apparently got cured, but when I try to load a certain page, it does not appear correctly. So I look at the Chrome Developer Tools console and this is what says: Error: [$ parse: syntax] http://errors.angularjs.org/1.2.16/ $ Parse / syntax? P0 =% 3F and p1 = No% 20a% 20 Primary% 20 Expression & amp; P2 = 60 and P3 =% 7 bilineanues% 3 asholn% 2c% 20mod% 3 applicationx '% 2c' & lt; Div class = "code mirror cm -s-default-ng-pristine ng-valid" ui-codemirror-opts = "{lineNumbers: showLn, mode: 'plain text', onload: config editor & lt; if (! $ Can_write ):? & Gt; "nLoad% 3AconfigEditor% 3C% 3Fif (% can_write!)% 3A% 3F% 3E% 2C% 20readOnly% 3A'nocursor '% 3C% 3Fendif% 3B%...

haskell - Order of evaluation for multiple operators in infix form -

यह देखते हुए: डेटा बेस = बेस {key1 :: text, key2 :: पाठ, key3 :: text} उदाहरण से दिखाना (उदाहरण के लिए) जेसन बेस से जहां parseJSON (ऑब्जेक्ट v) = बेस & lt; $ & gt; ((V।: "बेस 123") & gt; & gt; = (।: "Key1")) & lt; * & gt; - 1 ((v।: "बेस 123") & gt; & gt; = (।: "Key2")) & lt; * & gt; - 2 ((v।: "बेस 123") & gt; & gt; = (।: "Key3")) - 3 parseJSON_ = mzero यह किस क्रम का है इन्फिक्स ऑपरेटरों & lt; $ & gt; , & lt; * & gt; और & lt; * & gt; लागू होते हैं? दूसरे शब्दों में, अगर मैं इसे उपसर्ग फार्म में फिर से लिखता हूं: उदाहरण FromJSON बेस जहां parseJSON (ऑब्जेक्ट v) = बेस & lt; $ & gt; ((V।: "Base123") & gt; & gt; = (।: "Key1")) $ (& lt; * & gt;) ((v।: "Base123") & gt; & gt ; = (।: "Key2")) ((v।: "Base123") & gt; & gt; = (।: "Key3"))) parseJSON _ ...

php - How do I put the name in JavaScript getElementById function from the checkbox -

तो, मुझे यह कोड मिला है: PHP यदि ($ पंक्ति ['स्वीकार'] == 1) {गूंज "& lt; इनपुट प्रकार = \" चेकबॉक्स \ "नाम = \" चेक ["। $ पंक्ति ['आईडी']। "] \" मान = \ "0 \" & gt; अस्वीकृत; } Else {echo "& lt; input type = \" चेकबॉक्स \ "नाम = \" चेक ["। पंक्ति ['आईडी']।"] \ "मान = \" 1 \ "& gt; स्वीकार करें; } जावास्क्रिप्ट फ़ंक्शन do_this (c) {var चेकबॉक्स = document.getElementsByName ( 'चेक[]'); Var चेकअील = दस्तावेज़.getElementById ('checkAll'); Var v = gid (c); अगर (checkAll.value == 'select') {for (चेक बॉक्स में var i) {checkboxes [i] .checked = ''; v.style.display = "कोई नहीं"; } CheckAll.value = 'अचयनित करें'; } Else {for (चेकबॉक्स में var i) {चेकबॉक्स [i]। Checked = 'true'; v.style.display = "इनलाइन"; } CheckAll.value = 'select'; }} मुझे इनपुट चेकबॉक्स से नाम प्र...

javascript - How to remove character in html with jQuery -

यहां html है: & lt; div class = "upme-field-value "& gt; & Lt; div class = "upme-rememberme" & gt; & Lt; i वर्ग = "upme-icon-check-empty" & gt; & lt; / i & gt; मुझे याद रखें क्या इस वर्ण को दूर करने का एक तरीका है "|" JQuery या CSS से ऊपर दिए गए HTML से? यह इस समस्या में काम करेगा $ ('div.upme-field-value')। Html ($ ('div.upme-field-value')। Html ()। Replace ('|', ''))

php - NuSoap - Nested Array in addComplexType are allowed ? -

I need to get an XML input (with 2 or more elements) of this kind from the customer: & lt; List & gt; & Lt; Items & gt; & Lt; Code xsi: type = "xsd: string" & gt; 123 & lt; / Code & gt; & Lt; Product xsi: type = "xsd: string" & gt; Hello & lt; / Products & gt; & Lt; Level xsi: type = "xsd: float" & gt; 3 & lt; / Level> & Lt; / Item & gt; & Lt; Items & gt; & Lt; Code xsi: type = "xsd: string" & gt; 1234 & lt; / Code & gt; & Lt; Product xsi: type = "xsd: string" & gt; Halo 2 & lt; / Products & gt; & Lt; Level xsi: type = "xsd: float" & gt; 4 & lt; / Level> & Lt; / Item & gt; & Lt; / List & gt; Can I define a complex type like the description of the input parameters for the service method (an array (array (...)? $ server -> wsdl-> add complex type ('name', 'com...

css - Numbered/Ordered Lists in Panels - Twitter Bootstrap 3 -

I am using list groups in the panels for my FAQ. Many of these lists are ordered and sequential instruction sets, and I would like to show the number for various reasons. It seems that, even when a listed list is written as a listed group, a listed group is formed. Has anyone already overcome this? List-style: Decimal List-style-nutrition: Inside Other thoughts? Object: & lt; Div class = "container" & gt; & Lt; Div class = "panel-panel-default" & gt; & Lt; Div class = "panel-title" & gt; Test & lt; / Div & gt; & Lt; Ol class = "list-group" & gt; & Lt; Li class = "list-group-item" & gt; Item 1 & lt; / Li & gt; & Lt; Li class = "list-group-item" & gt; Item 2 & lt; / Li & gt; & Lt; / Ol & gt; & Lt; / Div & gt; & Lt; / Div & gt; Get a work solution for any other: ol li.list-group-item {List-style: decimal ins...

c# - HttpClient.SendAsync using the thread-pool instead of async IO? -

So I am implementing via HttpClient.SendAsync reflectors. The intention that I wanted to know knowingly was the flow of execution of these methods, and to determine which API is called to perform asynchronous IO work. HttpClient , I saw that internally it uses the HTTP client handler which is obtained from the HTTP Message Handler And its SendAsync method applies. This implementation of HttpClientHandler.SendAsync : Protected internal override work & lt; HttpResponseMessage & gt; SendAsync (HttpRequestMessage request, cancellation token cancellation token) {If (request == blank) {New argument NullException ("Request", SR.net_http_handler_norequest); } This.CheckDisposed (); This.SetOperationStarted (); TaskCompletionSource & LT; HttpResponseMessage & gt; Source = new task end source & lt; HTTPPRPS messages & gt; (); RequestState state = new requeststate {tcs = source, cancellation token = cancellation token, request message = reque...

powershell - Remote execute Power Shell scripts to collect data -

Image
I am looking to gather data snapshots on a random interval from different machines in our network, which we do not own Keep access, but to gain access to setting up an agent to collect these figures. These machines are either in a domain or work group and the data I receive is the role they play and their information is based on. Machines are "Windows Server 2003" and above and I do not want to install anything on those machines before starting, so I thought I could use PowerShell scripts that I could use my server using remote server I can pass the script that runs it and to return the data I was thinking that it is like powerless scripts It is possible to do so and as it is supposed to run in a safe environment, there is no major security effect with this approach, that is, I need to do anything on client machines that can make them vulnerable to security threats. . BTWs are not exposing these machines to the Internet and behind the firewall. If you can be us...

ios - Overriding designated initializer -

that you have a class subclass with a designated initiator when (eg, initWithNibName: Bundle: a subclass of UIViewController), and available If guests need to call to override its own designated initiator, Big Nerd Ranch book provide their own designated initiator and designated initiator of the superclass to call their own newly designated initiator. But what can you do if additional parameters are required? Concretely, something like this: @interface MyViewController: UIViewController - (instancetype) initWithNibName: (NSString *) nibNameOrNil Bundle: (NSBundle *) nibBundleOrNil andDummyObj: (DummyObj *) Delegate with P: (ID & lt; DummyObjEditDelegate & gt;) Representative; @end I overriding super class representative my subclass is properly configured if it seems to be a nib file extracted from the archive? But if someone calls the named Superclassed Starter they will not be able to provide the representative, and I need that to be installed correctly. Thank yo...

checkbox - PHP remeber checked checkboxes -

I am trying to put a filter using checkboxes. The problem occurs when I select some boxes and deposit values, all the boxes are selected again. I think the problem can be here if (isset ($ _ POST ['option_meno'])) What could be the problem? And yes, I am new here, so to help simplify my code, it will also help me warm any thoughts Thank you. & lt ;? Php // Create a MySQL connection $ query_o_meno = "Select from the menu via the command menu"; $ Result_meno = mysql_query ($ query_o_meno) or die (mysql_error ()); ? & Gt; & Lt; Form method = "post" & gt; & Lt ;? Php if (isset ($ _ POST ['Filtrovat'])) {// check check box "Lieutenant; Strong & gt; Menu: & lt; / strong & gt; Echo" & lt; Br / & gt; "; while ($ line = mysql_fetch_array ($ result_meno)) {// I believe the problem is the line given below ------------------- ---------- If (isset ($ _ POST ['option_meno'])) {echo ...

database - Mule ESB data flow design -

I recommend how to implement flow in mining studios I need to create a web service based on that data Which has returned from the database's three processes. That is, I need to run three processes in order to get the required data. Each subsequent process uses the results of the previous process as input parameters. So ... which is better: To write a process, which will run three processes from the database and ultimately generate the desired data for the web service Studio Call three processes, which ultimately creates the desired array of data (I know now how to store the result of the first process in the field to run the previous process)? Which point (1 or 2) will work faster? Is it necessary to combine all the three processes Archestrating is your decision. The result of each process call will automatically become your payload flow of mules, so that the data becomes available for the next process. If you want to store information from each process, then...

ios - How to retrieve position of a sprite by name -

I have created a loop that creates multiple sprites (SKSpriteNode * spritebutton) Specifies different names (@ "1", @ "2", @ "3", etc.) and various posts on the screen. Now, how can I retrieve the position.x and position.yx of the given phantom in the series, do we call Sprite Number 1? Thanks childNodeWithName: method is a Looking for for more information,.

libgdx gradle - forgot to make android project -

I set up my libgdx project with HTML5 and desktop, but decided to add Android support later. How do I add an Android project? I am afraid that if I use the setup UI it overwrites my code. Use the setup-UI once and with the same parameter as if you initially created the project, but use the other destination folder. Then recreate them all again. When you are done with that, copy the android folder to your original project. You will need to copy some single files in the root folder. They are settings.gradle and build.gradle . If you have manually changed your build.gradle file, you should only copy it to the original file instead of replacing it for the Android project only. Then you - Import your project into its IDE once more.

java - Test with Robolectric and Google Play Service throw me “AndroidManifest.xml does not have the right value -

I have an Android project that has Google Play Services and Robotric Test in the same module, another package. I have this manifest: & lt; Meta-Data Android: name = "com.google.android.gms.version" android: value = "@ integer / gms_version" /> And this is in integer.xml But when I run the trial, I get this error: java.lang.IllegalStateException: Your app's Android manifest. In XML, Meta- The data tag does not have the correct value, expected 4323000, but found 0. You have & lt; Application & gt; Element: & lt; Meta-Data Android: name = "com.google.android.gms.version" android: value = "@ integer / google_play_services_version" /> I tried to keep this tag directly in the manifest but I get a nullpointerexception in getting this value. How can I solve it? What version of the roboliculture are you using? It was a bug where Robo considered all metadata as a string, but should have been fixed (I am ...

struct - golang 2 slice types with 1 field -

In light of the fact that Golland does not support unions, what is the best way to obtain: Type Fu Structure {word} [string] [] int} This can be used only for words or nums One thing I may have tried once used in: type foo struct {values ​​[] interface {}} But I like something that would restrict the type There are two described or something with pointers. Use a foo package to hide implementation. For example, package foo const (type word = iota + 1 type name) type foo struct {fooType byte words [string string] [int} new word (word [] string) * Foo {Foo (Foo Type: Typed, word: word}} Freak New News (nums [] int) * Foo {Return & amp; FU {Foo Type: TypeNoom, nums: nums}} Function (F * Foo ) Word () [] string {if f.fooType! = Type {return number} return f.deododes} funk (f * fu) names () [] int {if f.fooType! = TypeNums {return nil} Return f.nums} ADDENDUM: Since we package Foo is hiding the implementation of , we can apply it in another way, for e...

parsing - Get <div> content with PHP -

मैं & lt; div & gt; के माध्यम से file_get_contents । मैं क्या करना चाहता / सकती हूं, सामग्री को google.com पर div resultStats से लाने के लिए है मेरी समस्या (एफ़िक) इसे छपाई है। कोड का एक छोटा: $ data = file_get_contents ("https://www.google.com/?gws_rd= सीआर & amp; # q = "। $ _GET ['कीवर्ड']।" और gws_rd = ssl "); Preg_match ("# & lt; div id = 'resultStats' & gt; (। *?) & Lt; \ / div & gt; #i", $ डेटा, $ मैचों); बस का उपयोग कर print_r ($ matches); केवल आरे देता है (), लेकिन मैं preg_match नंबर चाहता हूँ। किसी भी मदद की सराहना की है! संपादित करें: मुझे सही दिशा दिखाने के लिए धन्यवाद! मैं preg _ कॉल से छुटकारा पा लिया और इसके बजाय डोम के लिए गया। हालांकि मैं PHP के लिए बहुत नया हूँ और यह मुझे एक सिरदर्द दे रहा है; मुझे इस कोड को स्टैक ओवरफ्लो पर मिला और मैं उसे काम करने के लिए इसे संपादित करने का प्रयास कर रहा हूं। अब तक मुझे केवल रिक्त पृष्ठ प्राप्त होता है, और यह नहीं जानती कि मैं क्या...

javascript - client side server side templating nodejs -

I'm using nodejs on a webapp. I was originally just going to the server side HBS template, but then I found out about the backbone for client side templates. I found out that if it can get data from the server, then display it using the HBS template, prepare and send the entire HTML page instead of the server side. But still I have read that some people suggest that it is not a good practice to get and display data for a webpage to make many AJAX calls in the client side, there will be many requests for the server, and The page will appear to be slow. So I am thinking that the general rule is how many requests can be made for one page? Should I Answer a Classic Request? Or should there be some client-side JavaScript that should receive and display data from the server? Thank you I have found that to render your template server side The best solution is and after that your backbone app is connected to the elements provided by the server. I use Z as my template engine, whi...

HTML/CSS grid layout with different size boxes? -

Image
I am trying to create a layout in HTML / CSS (as is illustrated). I have tried using Divs and ul / li but stacking is not working. Can anyone tell me in the right direction? You can use table tags and Colspan / rowspan attributes, however, this is a very old solution. The best thing you can do is, Brad Werth has been suggested using the bootstrap. For a horizontal rectangle for a vertical rectangle You can assign each div to its related class Should be made with Remember that you have to play with the display feature to achieve your goal.

node.js - MongoDB Driver for NodeJS, specifying multiple servers -

People, I'm trying to specify an array of MongoDB cluster hosts via my config. config: {"host": {"ip1", "ip2", "ip3"], "port": 27017, "database": "auth", The code works: this.server = new mongodb.Server (host [0], port, {auto_reconnect: true}); This.db_connector = new mongodb.Db (this.dbname, this.server); However, as you connect im to only ip1 If I have EC 2 examples in different areas, then reset the ID correctly. What I've read reveals what node is to write, and reads based on replication settings. What is the proper way of specifying a Mongo cluster which is a multi-region I want to keep all areas bound to one area. Assume that the Mojo driver connects to the 'closest' DB host. Thank you!

sql - Determine how long a phase takes, looking at current row and next row -

I am working on a project for work, using the data logging type system currently SQL Server 2008, if Upgrade if necessary. We are currently taking 1 minute interval of equipment, we are collecting all types of information, I am only concerned about time, and step number. I am trying to determine the length of time, the machine spends in a certain step before going out. I have a way that I use it currently. Although it takes a long time to run (5+ hours) I currently have a visual set that looks like this. with with steps (select *, ROW_NUMBER ()) at the time (depending on the time) from the RONM FOR dbo.Data_All. Time, step Y On Steps as Inner Join Steps from the [Production Stage] Step Rowlum = y. Rome + 1 and phase. [Production phase] & lt; & Gt; Y [production phase] By doing this, I start to break, at the time that he entered that stage, it will take about 30 seconds to run, so it should not be bad . Realize that we have more than 250,000 records, which are seei...

php - how to convert line breaks stored in mySQL to a single line -

I have the details stored in mySQL with Lin Brakes, so when I output them, I use it and it shows: line 1 line2 line3 So far, it's great. Now, I want to use the same description for the meta tag and the problem is if I like them: $ old_string = nl2br ($ description); $ New_string = preg_replace ("/> ," ", $ old_string); Echo $ new_string; I still find these meta tags: How can I get it out in line 1, just with one place between them? Thank you very much for any help. For Meta nl2br , but instead of line breaks on the string database. Note that depending on your environment, a line break can be displayed with \ r \ n or simply with \ n . Try using the following code: $ onelinestring = str_replace ("\ r \ n", "", $ description); $ Onelinestring = str_replace ("\ n", "", $ inlinestring);

android - Retrieving SMS messages from Inbox -

I am working on the Android application and I am trying to get the list of messages from the device SMS Inbox. In Inbox, I have 2 messages from a contact number and 1 message from another contact number. However, I'm not just receiving messages from every contact, not all of these. I'm using the following code Recover Public Zero SMS Message () {String Address = ""; String body = ""; Uri Inboxuri = Uri.Parse ("Content: // SMS / Inbox"); String [] reqCols = new string [] {"_id", "address", "body"}; Controller Contender = context.getContentResolver (); Cursor cursor = contentResolver.query (inboxUri, reqCols, blank, empty, zero); Cursor.moveToFirst (); While (cursor.movetynext ()) {address = cursor.getString (cursor.item column index ("address")); Body = cursor.getString (cursor.getColumnIndex ("body")); }} Thanks for any help Get rid of the call cursor. MovoveToFirst (); . You move t...

android - Multiple fragments in one activity or separate activities -

I'm reading this (excellent BTW) and it states that those pieces With layouts you can do: Use an activity, which displays two pieces on tablets and handset devices. In this case, you will switch the pieces in the activity when necessary. For this it is necessary that the piece is not declared in the layout file, as such pieces can not be removed during the runtime. Use different activities to host each piece on a handset. For example, when the Tablet UI uses two pieces in an activity, use the same activity for the handset, but provide an alternative layout that includes only one part. When you have to switch pieces, start another activity that hosts the other piece. The second approach is the most flexible and generally better way to use pieces. In this case the main activity checks whether the pieces of detail are available in the layout. If there is a broad piece, then the main activity tells the piece that it should update itself if the scope of the extension is una...

css - Sub-Navigation Dropdown deactivates on mouse-out -

I have to display the menu and submenu submenu on the mouseover but display it under the colorful area. When I mouseover of item 3, the submenu disappears. I understand why this is disappearing and I am thinking that there is no way to do this work. Margins and padding ul li do not work on CSS & lt; Div id = "bg" & gt; & Lt; Ul class = "menu" & gt; & Lt; Li class = "first leaf" & gt; Item 1 & lt; / Li & gt; & Lt; Li class = "leaf" & gt; Item 2 & lt; / Li & gt; & Lt; Li class = "extended" & gt; Item 3 & lt; Ul class = "menu" & gt; & Lt; Li class = "leaf" & gt; Sub-item 1 & lt; / Li & gt; & Lt; Li class = "leaf" & gt; Sub-item 2 & lt; / Li & gt; & Lt; Li class = "leaf" & gt; Sub-item 3 & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt; & Lt; Li class = "...

inconsistancy in writing image to hardware in android -

I'm having a problem I'm trying to create a bitmap in a directory on your phone, though it does not always work Does and does not work right at any time. If I run to see in the directory it wont get, I often do not see it at all before it shows up in the other folder, to keep Bella around and refresh. I do not understand, no help or would be much appreciated insight, thanks ByteArrayOutputStream bytes = new ByteArrayOutputStream (); MyImage.compress (bitmap.compress format.png, 40, bytes); try {File f = new File (Environment.getExternalStorageDirectory () + '/ myDirectory / "+" test.png "); f.createNewFile (); FileOutputStream fo = new FileOutputStream (f); fo.write (bytes.toByteArray ( )); fo.close ();} catch (Aioi Akspshn e) {log. a (tag, "was unable to copy the image" + Ikstosting ());} no one comes due over this with a similar problem to that, then I discovered the solution. as long as I USB cable The phone does not disconnect, so l...

iOS Game Center - designing game achievements for offline use -

I am designing and developing iOS games with achievements and leaderboards. I understand the mechanics of making achievements in iTunes Connect, and I'm unlocking / unlocking them in the iOS game. But I do not know how to include achievements for users who refuse to use the game center. I also want to present these achievements to these users, so there is an approach to keeping a list of duplicate, offline achievements in iOS binary and unlocking them in the local app? I'm not talking about "offline" in reference to "network connection", but in the context of "not using a game center" Or is it thought about today, and should I achieve achievements only for GC users? My intention is to provide achievements to all users, even those who do not authorize the game in GC. Any suggestions in the approach would be appreciated, thanks!

c# - Live preview from webcam + Expression encoder = kill app -

I hit the wall: / ... I'm trying to get a preview from the webcam and take a snapshot (I just Not even that away ...), I am stuck in the live feed to winform for now ... I do not want to use some unknown libraries or libs that are not allowed for commercial use. Anyway now I experiment with MS Express encoder, but I can not add source devices when LiveJob.AddDeviceSource app should be executed without any F ***! @ ^% # Error; (... my code is: Private Zero startLivePreview (try {try} // a_Devices = EncoderDevices.FindDevices (encoderDeviceType.Audio) on audio devs; if (a_Devices.Count & LT; 1) {New exception throw ("otherwise if available audio devices please be sorry, but at least one should be ...").} EncoderDevice a_Dev = a_Devices [1]; // camLiveSource = camLiveJob.AddDeviceSource (camDevice) , Tap); // I do not need audio overdue (this new size (640, 480), 15) // This line app kills CamLiveSource.PickBestVideoFormat; camLiveSource = camLiveJob.AddDeviceSour...

php - Embedding JSON in responseText -

I am using jquery iframetransport (to upload Blob) and to access my responses through data I am compelled to I am able to embed simple JSON from my PHP such as echo json_encode (array ("feedback" => "hello")); and my console will return the log {"response": "hello"} but I need To collect data from Divs and my PHP requests If I try to embed it, then I immediately fail: echo json_encode (array ("feedback" => gt; & lt; div & gt; hello & lt; / Div & gt; ")); I ends with "response": "hello "} What can I do for this kind of Jason data in Resposnetext? Alternatively you can enter htmlentities () for the response code Like this: echo json_encode (array ('response' = & gt; htmlentities ('& lt; div & gt; hello & lt; / div & gt;'))); // {"Response": " Hello "} Exit; On retrieving the responses, when you a...

javascript - Delete data after save inside modal bootstrap 3 -

I have 2 pb to solve the model in bootstrap 3 with my form First of all : My data has been saved twice: Secondly, when I save a data, how to delete text and data within my data in input or if I reload the model thanks First: catagories.php ==> Call a Model & lt; Style & gt; .model-dialog {width: 900px! Important; } & Lt; / Style & gt; & Lt; A data-toggle = "model" href = "& lt ;? php echo FILENAME_MANUFACTURERS_POPUP ;? & gt;" Data-target = "#mymodel" & gt; & Lt ;? Php echo osc_image (DIR_WS_ICONS. 'Create.gif', TEXT_CREATE)? & Gt; & Lt; / A & gt; & Lt ;! - Modal - & gt; & Lt; Div class = "modal fade" id = "mymodal" tabindex = "- 1" role = "dialog" aria-labelbedby = "myModalLabel" aria-hidden = "true" & gt; & Lt; Div class = "modal-dialog" & gt; & Lt; Div class = "modal-content...

mysql - how to express taxonomy-like relationships with a relational diagram -

I am trying to represent a simple classification scheme through a relational database. Or more specifically, I am trying to figure out whether this is a good idea or not. When I look at an image like I just shut down Google, then I'm one of the many organizations that this amphibia is going to be completely coincidental because I am not biologist. "itemprop =" text "> Just one example: create a column for the same table case forein key parent and column, the node at the top level is 1 and the parent is zero;

android - Combine seekbar and progressbar to create media player with trim support -

Image
हम एक खिलाड़ी / ट्रिमर बनाना चाहते हैं ... नीले बॉक्स के अंदर प्रगति के लिए टच एरिया है, पीले बॉक्स में ट्रिमर हैं जो सेट करने के लिए उपयोग किए जाते हैं प्रारंभ और अंत बिंदु। हम इस उद्देश्य के लिए "रेंज-लुक-बार" जैसे कस्टम दृश्य का उपयोग कर रहे हैं। हैंडलर छवि तलाश-बार दृश्य बंद कर रहे हैं और दूसरे दृश्य में (नीचे की छवि देखें)। हम जो प्राप्त करने की कोशिश कर रहे हैं वह हैंडलर को स्थानांतरित करने के लिए केवल उन हैंडलर के सर्कल (संपूर्ण चित्र नहीं) पर क्लिक कर रहा है, लेकिन चूंकि ये बिटमैप हैं और क्लिक बार की तलाश के बाहर किया जा रहा है, हम ऑनक्लिक कॉल नहीं प्राप्त कर सकते हैं। उपयोगकर्ता उस लाल वर्ग के अंदर क्लिक करते समय सुनने में समर्थ रहें। आपकी मदद के लिए बहुत धन्यवाद और उत्तर: आप इस पुस्तकालय को भी जांचना चाह सकते हैं: "श्रेणी -छोड़-बार "जो मैंने जुड़ा था, अंगूठे के बाहर छूने की अनुमति नहीं देता है इसके बाद आप नेत्रहीन और इसे अनुकूलित कर सकते हैं () उदाहरण के लिए पारदर्शी बना सकते हैं। इसे संशोधित करने के लिए इसे थंब रहित होने की अनुमति द...

html5 - Creating a responsive image row -

Image
I have images for my navigation bar in Photoshop. I will create a black background and left during a shape Will they have displayed them in a vertical line down? Once this shape changes, they come in white and are not seen. In addition, if you are using Chrome, you have to hit the top left logo to move the nav images for any reason .. This is the only browser in this browser. CSS: / * --- Navigation --- * / NAV (float: right; margin-top: 12px; margin-right: 25px;} A: {padding: 15px;} # contact {padding: 4px;} #bO {padding: 4px;} # photography {padding: 4px;} #design {padding: 4px;} # scatch {padding: 4px;} # Web {padding: 4px;} html: header> gt; & lt; a href = "index.html" id = "HomeLogo" title = "home" & gt; & lt; img src = "picture / paint logo. Jpg" alt = "Ryan Warner amous" & gt; & lt; / a & gt; & lt; nav & gt; & Lt; a href = "contact.html" id = "contact" ...