Posts

Showing posts from September, 2013

c++ - boost serialization of struct derived from struct list -

I'm not sure how I can serial a string that comes from another type of list type. Below is sample code for what I am asking: // nodes. Http #include & lt; Boost / serialization / serialization.hpp & gt; #include & lt; Boost / serialization / access.hpp & gt; #include & lt; Boost / serialization / optional.hpp & gt; #include & lt; Boost / serialization / list.hpp & gt; Struct node {std :: string firstname; Std :: string lastname; Private: Friend class promotion :: Serialization :: Access; Template & lt; Classic Collections & gt; Zero serial (archive and AR, consigned unsigned bunch version) {R & amp; First name; R & A last name; }}; Structure nodes: Public stadium :: List & lt; Node & gt; {Std :: String Address; Std :: string country; Private: Friend class promotion :: Serialization :: Access; Template & lt; Classic Collections & gt; Zero serial (archive and AR, consigned unsigned bunch version) {R & amp; A

how to change the file name after uploding the file name in radeditor in asp .net -

I have a radEditor in the web project. I uploaded the image by uploading the image manager in radEditor and botton. For example, my file "MyFile.jpg" is the name "MyFile.jpg" name while saving my file in server path. I want to change the file name after uploading to the server and save it. I write the FileUpload event: Public Bund Rad Detector 1_File Upload (Object Sender, String Filename) {string FileNameTemp = fileName.Substring (fileName.LastIndexOf ("/") + 1); String strExtension = System.IO.Path.GetExtension (FileNameTemp); FileNameTemp = FileNameTemp + "-" + Guid.NewGuid () + Strictation; FileName = fileName.Substring (0, fileName.LastIndexOf ("/") + 1) + FileNameTemp; Back true; } Please help me but save the file still the particle name "MyFile.jpg". You can apply FileSystemContentProvider and override the StoreFile method. For more information see this forum: Best regards of Jakmann Row

c++ - Renaming File With Unicode -

How do I insert Unicode characters in the filename? I have an ostringstream that I use to define the offline name through the file, but I can not use Unicode characters. What would be the easiest way to do this? Change it to Unicode format? And please tell me how I will do this. / * This program tries to rename the file named < / pre> * CRT_RENAMER.OBJ to CRT_RENAMER.JBO. To be successful for this operation, a file named CRT_RENAMER. OBJes should be present and a file named CRT_RENAMER is present. JBO should not exist. * / #include & lt; Stdio.h & gt; Int main (zero) {int result; Four old [] = "CRT_RENAMER.OBJ", new [] = "CRT_RENAMER.JBO"; / * Try renaming file: * / result = rename (old, newer); If (result! = 0) printf ("Could not rename '% s \ n", old); Else printf ("File '% s' has been replaced with '% s', \ n" old, new threads); }

jquery - what difference does it make to append stylesheets or js files on different order? how to use append and prepend stylesheet or append and prependfile? -

अगर मैं लिखूं तो यह क्या अंतर करता है: $ this-> headScript ( ) - & gt; प्रीपेफ़फ़ाइल (PUBLIC_PATH। "/ जेएस / फ्रंटएण्ड / एफबी.जेएस"); और फिर यह: $ this- & gt; हेडस्क्रिप्ट () - & gt; अनुलग्नक फ़ाइल (PUBLIC_PATH। "/ Js / jquery.bPopup.js" ); प्रीपेनफ़ाइल () विधि सूची के ऊपर जोड़ती है , और ऐपेंडफ़ाइल () पद्धति सूची के अंत में जोड़ती है। पुस्तकालयों के लिए jQuery जैसे prependfile का उपयोग करना बेहतर है I

javascript - Passing the elements of an array as argument list to a function (not as a combined string) -

I have a customized (console.) Log function function clog ( ToConsole, toFile) {Console.log (toConsole); // other things} But now I call it 'value:% d', value format ... until I get it Do not wrap any array (['console:% d', value], 'other things']) Is that a way Is a way to pass the elements of the array : Function such as: console:% d, value] : console.log ('console:% d', value) What you are searching for is that it allows you to call a function with an array That is B logic is loaded as. In this case console.log.apply (console, ['console:% d', value]); will be equal to console.log ('console:% d', value);

python - Advanced slicing with tuple using *args -

According to , you can do it in a simple way: & gt; & Gt; & Gt; A = Category (20)> gt; & Gt; & Gt; B = (5, 12)> gt; & Gt; & Gt; But what I need is advanced: a [5:] a [: 12] a [:] a [-1] a [-2:] A [: - 2] A [:: - 1] How to do it with Tupal and * args ? b = (5, :) & gt; & Gt; File "& lt; ipython-input-26-c4eae 928199d"; Line 1 & gt; & Gt; B = (5, :) & gt; & Gt; ^ & Gt; & Gt; Syntax error: invalid syntax For those options that you want to terminate, Replace with any . Generally, if any option is omitted, then it is not the default on any . Such an option is piece (none, none, none) is equal to a [::] . Do not miss the start and step argument for any default . for East. a [5:] - & gt; B = (5, none, none) one [: 12] - & gt; B = (none, 12) A [:] - & gt; B = (none, none) One thing to note is that the slicing action is different from the sequencing. You can

Mysql datetime entry with php -

मैं अब () MySQL कॉलम में दर्ज नहीं कर सकता datetime stamp विकल्प: $ sth = mysql_query ("डेटा में प्रवेश करें (आईडी, यूज़र_आईडी, डेटा, डेटाइम, डेस)"। "मूल्य ('', '$ userid', '$ data' , अब (), '$ desc') ", $ link) या die (" क्वेरी विफल "); MySQL: 4 दिन-समय का टाइमस्टैम्प नहीं CURRENT_TIMESTAMP आउटपुट: आपके SQL सिंटैक्स में एक त्रुटि है; वैल्यू ('', '', '', नाओ (), '') 'पंक्ति 1 पर' के लिए उपयोग करने के लिए सही सिंटैक्स के लिए आपके MySQL सर्वर संस्करण से संबंधित मैनुअल की जांच करें अब () के लिए उद्धरण जोड़ें क्योंकि यह एक MYSQL फ़ंक्शन है इसके अलावा यह अभी भी नहीं है (), यह NOW () है। $ sth = mysql_query ("डेटा में दर्ज करें (आईडी, यूज़र_आईडी, डेटा, डेट टाइम, डिस ) मूल्य ('', '$ userid', '$ डेटा', अब ()), '$ desc' ", $ link) या मर (" क्वेरी विफल ");

python 3.x - converting for loop to while loop -

Here's my code, can someone tell me how to change an internal loop in a loop for a while? import turtle import time wn = turtle. Screen () Alex = Turtle. Turtle () alex.hideturtle () Alex Pancis (5) List = [[[Alex. Left (90) ',' Alex. Forward (200) ',' Time Slip (1) '], [' Alex. Right (90) ',' alex.forward (75) ',' time solid (1) '], [' Alex. Wright (90), 'Alex. Forward (55) ',' Time Sol (1) ', [' Alex Pump] ',' Alex Jito (65,136) ',' Alex Pendon (')', 'Alex Syracle (10)', 'Time Solid (1 ), 'Alex Pump ()', 'Alex (75,127)', 'Alex Pendown ()', 'Alex Jito (75,98)', 'Time Solid (1)'], ['Alex. Right (90) ',' Alex. Forward (30) ',' Time Slip (1) ',' Alex Geoto (10098) ',' Time Solid (1) '], [' Alex Pump ('' '),' Alex Geoto (75), 9 8) ', [' Alex Pendoff () ',' Alex.

Broadcast Message in Java -

I need some mechanism that allows me to move some data from a Java program to another in the same PC. I have already checked the RMI but I want to send some messages for 1 app 2 without the request of 2 AP. Only client can start communication in RMI. Raw sockets are not desirable (too low level). I want something like RMI with a different plan to start communication: 1 server Can you please suggest some libs / technology (for desktop app) ? I suggest you use it and its implementation such as <.

Using JSP values in Javascript -

I want to use values ​​in Javascript as follows, & Lt; Script type = 'text / javascript' & gt; $ ("#logopt") .change (function () (if ($ ("# logopt option: selected"). Text () == "full log") {warning ("hi"); document.getElementById (" Box "). InnerHTML + '' & lt;% = logs%>; '}}}); But it does not show anything, what's my fault? What is the correct way to reach JSP values ​​using scriptlets? I have the '& amp; Lt;% = logs; ' have tried and tried, but this is and lt;% = logs% & gt; is displayed but there is no value in log . I believe that if you change document .getElementById ("box"). InnerHTML + = & lt;% = log% & gt; to document.getElementById ("box"). InnerHTML + '' & lt;% = logs% & gt; '; This will work. For valid javascript you will have to have the string literal in single / double quotation mar

delphi - Reading large binary files -

Image
I am working on a project where I am logging some signals (1d arrays) into a binary file . I can store large amounts of data (usually several giga bytes). Now I would like to reload those files I have two visual elements, one is called an observation and the second is just a plain Y / T chart overview users should give the idea that the whole file (large File), while the chart only shows a part of the file which is usually run, which is selected in the observation with the resettable rectangle / band. Because the files in the memory can be very large load, therefore not optimal, so the main idea is to load into memory (maximum up to several MBs) only to load and display important data / visual data. If the user zooms on the chart, then the data needs to be reloaded with more data points from the file. My question is how to attract the viewing component to show the whole contents of the file best (do not actually load all the samples from the file) Suppose that my files are fr

sql - Access Pivot Query -

I want to create a crosstab query, where Pivot is the area with natural numbers (delayed days of a document) but I want to I am a group (those documents have been delayed by less than 1 week, then delayed less than those two weeks, and then the rest of the document), but I try and only those people whose delay day is only 1 Week and not less Not. This is my code: selection document of [quinta document no. 1] as Transformam calculation (BlueZilo. [Document number]). [Discipline international], bluesillo [Client Response Returns Position], Calculation (BlueLLO [Document Number]) From AS [Quentadedoc Number] BlueLLO Inner Doubles on BlueLLO [Document number] = documents. [Numero documento client] WHERE ((Document. [Document International]) = "N" Group By Documents [Discipline International], Blossilo [Client Response Return Status] Order of Documents [Discipline international], bluesillo [Client Response Return Status] PIVOT Blossilo. (Late Day) in (0, 7, 14, 21); The

javascript - JQuery - Item selected -

I want to get selected items in my select tag The HTML code is: & lt; = "Mail" for label & gt; Envoyer Mail: & lt; / Label & gt; & Lt; Select name = "mail" id = "selectmail" & gt; & Lt; Option value = "1" & gt; Case NA ° 1 & lt; / Options & gt; & Lt; Option value = "2" & gt; Case NA ° 2 & lt; / Options & gt; & Lt; Option value = "3" & gt; Case NA ° 3 & lt; / Options & gt; & Lt; / Select & gt; & Lt; Input type = "button" id = "sendmail" name = "mail" value = "envoyer" & gt; & Lt; A href = "" & gt; & Lt; / A & gt; And here is my JQuery function: $ ('# sendmail'). Click ($ .post ('adressepagetraitement.php', {v: $ ('# selectmail'). Val ()}, function (data) {warning ('message invitation';})); < type error: Handle oz. handler Th

android - Service with LocationListener -

मेरा कोड है सार्वजनिक वर्ग अलार्मसेवा सेवा लागू करने स्थाननितकर्ता {सार्वजनिक int onStartCommand (आशय) आशय, int- झंडे, int startId) {getLocation (); यदि (पहुंच स्थान ()) {आशय अलार्म = नए आशय (getApplicationContext (), मुख्य गतिविधि। वर्ग); startActivity (alarmIntent); stopSelf (); } @ ओवरराइड पब्लिक रिकॉइड ऑन लोकेशन चेंजेड (स्थान स्थान) {getLocation (); यदि (पहुंच स्थान ()) {आशय अलार्म = नए आशय (getApplicationContext (), मुख्य गतिविधि। वर्ग); startActivity (alarmIntent); stopSelf (); }} onLocationChanged कभी नहीं कहा जाता है। मैंने 1 मिनट के रूप में अपडेट के बीच न्यूनतम समय रखा है। इसे 1 मिनट पर नहीं बुलाया जाता है और जब स्थान बदल दिया जाता है। आपको प्राप्त करने से पहले अपडेट का अनुरोध करना होगा किसी भी: स्थान प्रबंधक लोक प्रबंधक = (स्थान प्रबंधक) context.getSystemService (context.LOCATION_SERVICE); locManager.requestLocationUpdates (LocationManager.GPS_PROVIDER, 0, 0, यह); इसके अलावा, अपने मैनिफेस्ट की अनुमति के रूप में ACCESS_FINE_LOCATION को जोड़ने का ध्यान रखें

c# - ASP.NET Webapp hosting options other than IIS -

In addition to IIS, what are the options available for hosting ASP.NET 4.0 webpages / websites? In IIS we are facing issues like up to 4 GB upload, service of multiple requests etc. ... Depending on which specific features you are using, you can use walking inside an appetite like you. I have been using this combination successfully in some deployment - as soon as it moves, it is very stable. But you need to verify that the NET framework you are using has already been implemented in mono and setup is a more complex IMO. Especially if you are using a common server OS such as Santos / RHEL or Ubuntu, because you need to compile the latest Mono version on your system because there is no official pre-compiled package. You have also mentioned that you have a problem completing multiple requests - what's the problem there, because it should not be a problem with IIS?

python - mrjob: Invalid bootstrap action path, must be a location in Amazon S3 -

Image
I am on Windows 7. I have installed mrjob and when I run from the website, it works fine on the local machine. However, I get an error when trying to run it on the Amazon EMR. . EMR: Aws_access_key_id: Xxxxxxxxxxxxx Aws_region: us former -1 aws_secret_access_key I just Boto and it works with the Amazon S3 mrjob.conf file runners tested adding: XXXXXXXX ec2_key_pair: bzy ec2_key_pair_file: C: \ aa.pem ec2_instance_type: m1.small num_ec2_instances: 3 s3_log_uri: S3: // myunique / s3_scratch_uri: S3: // myunique / < P> Run in my CMD dragon word_count.py -c mrjob.conf -r emr mytext.txt it creates On suggestions that this is a window There was a problem related, I double checked the source code in parse.py, and it seems that there should be relevant probing to deal with window file types # candidate candidate Uri is actually a local Whether or not the window is in the way, it is used to check. WINPATH_RE = re.compile (r "^ [aA-zZ]: \\") def is_window

ios - Find out, that the touch position is in Imageview -

I try to run some code when my finger goes to one place, where the image is the view I have defined the position of the image view: cgrt imagehop = myImage.frame; and the position of the actual touch position: UITT * myTouch = [[touches all the object] ObjectOutInx: 0]; CGPoint current page = [myTouch locationInView: self.view]; I did try it with CGPointEqualToPoint then I tried it with CGRectContainsPoint because it did not even work, Because, when the image and the current context have the same X coordinate, my "some code" is running (my finger does not move into the image, they are only those x positions. Y positions are completely different). How can I say, when my finger (touched even in the method) has come anywhere in touch / image, then run some code or method? Thanks for the answer. Method method in your touch, you can try something like this: < Pre> - (Zero) Turing Brinjal: (NSSET *) touches the event: (UIIvent *) event {UITT * To

javascript - Retrieving JSON from PHP File, and Append inside div -

Is trying to pass the real-time graph update within my site i basically a php in every 30 seconds Trying to reload the file, to deselect it, I've dynamically unpacked the data of PHP as json code as shown below. The ad also contains and , which retrieves the database to retrieve the file. {"YesterdayCalculateCR": "35%"} {"todayCalculateCR": "5%"} {"todayEPC": "0.20"} {"todayCTR": "34%"} {"yesterdayCalculateCR"} { {"MonthEPC": "0.03"} {"yesterdayCTR": "24%"} {"monthCalculateCR": "14%"} {"monthEPC": "0.07"} {"month CTR": "24%"} Actually now I want to put some jquery code on my index.php page to load this file, explain json code and add data to the correct divs. Example: & lt; div class = "yesterdayEPC" & gt; 0.03 & lt; / Div & gt; I am looking at jquery.com

python - Get file name only (without extension and directory) from file path -

मेरे पास क्या है: import os import ntpath def fetch_name (फ़ाइलपथ): वापस आओ .path.splitext (ntpath.basename (filepath)) [0] a = u'E: \ यह यहाँ पर कुछ स्ट्रिंग है \ news_20.03_07.30_10 .m2t 'b = u'E: \ और यहाँ कुछ स्ट्रिंग भी है \ Logo_TimeBuffer.m2t.mpg 'fetch_name (a) & gt; & gt; यू; वह यहाँ पर कुछ स्ट्रिंग है news_20.03_07.30_10' # गलत! Fetch_name (b) & gt; & gt; u'Logo_TimeBuffer.m2t '# गलत! मुझे क्या चाहिए: fetch_name (a)> gt; & gt; u'news_20.03_07.30_10 'fetch_name (बी) & gt; & gt; u 'लोगो_टाइम बफर' आपका कोड बिल्कुल वैसे ही काम करता है जितना चाहिए उदाहरण के लिए, \ n को बैकस्लैश वर्ण के रूप में नहीं माना जाता है क्योंकि यह एक नया अक्षर है उदाहरण b में, एक्सटेंशन है। एमपीजी, जो ठीक से हटा दिया गया है। एक फ़ाइल में कभी भी एक से अधिक एक्सटेंशन नहीं हो सकता है, या किसी अवधि में कोई एक्सटेंशन हो सकता है। पहली अवधि से पहले ही थोड़ा सा प्राप्त करने के लिए, आप ntpath.basename (filepath) .split

c# - Show a huge number of data in DevExpress GridView -

With 3000 lines I have a DevExpress grid view and each row has 10 as extensions (this means that when I have 30000 loads in grid load items to load) All data loads It takes a long time to do so, then there is a way to show example 100 lines, and when I use the automatic filter, do I show the lines I want? Example I tried to leave and take (using LINQ), but what I actually see for it Also want to use the automatic filter of the grid. Public Static Binding List & lt; Patient & gt; GetObjectUsingLinq (string sql = "", int skipCount = 0, int lekton = 0) {var gsData = GetDataContext (); Var query = (to choose q.nom q with GS dataApotate order); Return new compulsory list & lt; Patient & gt; (LinqHelper.DoSortPaginate (Query, "" Leave, Techcount) .Oolist ()); } and to call it on the grid listPatient = patients.getObjectUsingLinq (); myGrid.DataSource = listPatient; If you need to display large amounts of records in the grid control,

BPEL OutOfMemoryError in JBOSS SOA P -

Image
I have deployed BPL process in JBOSS AS in SOA platform and it works fine. However, when I tried to test the load test using the SOAP UI. It stops with the OutOfMemoryError shown below. 16: 48: 58,226 ERROR [Jeoandpoint] socket processor error in allocating Java .lang.OutOfMemoryError: java.lang.Thread.start on org.apache.tomcat.util.net.JIoEndpoint $ Worker.start (JIoEndpoint.java:475) org.apache.tomcat.util.net.JIoEndpoint, unable to create new native threads in java.lang.Thread.start0 (Native resident method) on (Thread.java:640). newWorkerThread (JIoEndpoint.java:695) on org.apache.tomcat.util.net.JIoEndpoint.createWorkerThread (JIoEndpoint.java: org.apache.tomcat.util.net.JIoEndpoint.getWorkerThread on org.apache (JIoEndpoint.java: 706) at org.apache.tomcat.util.net.JIoEndpoint.processSocket (JIoEndpoint.java:741) 674). tomcat.util.net.JIoEndpoint $ Acceptor.run (JIoEndpoint.java317) at java.lang.Thread.run (Thredkjawa: 662) 16:48: 58 229 info [STDOUT] document in the f

json - Sending a Collection of requests for Distance matrix in android -

I see I docs Read and I can clearly understand that we have the latitude & amp; URLs and destination on URL http://maps.googleapis.com/maps/api/distancematrix/output < / Code> The output will be JSON, then we will attempt to parse it and get the distance value My question < / Strong> :: So it parses each one of them when we send different requests and a collection of requests That's why I'm 10 latitude and Amp; If possible Any examples to learn? Yes, this is possible. In this way, you can get what you are getting: So you | can set many different destinations and destinations. Then you need to parse your Jason data app.

backpropagation - Momentum in neural networks -

तंत्रिका नेटवर्क और गति क्या गति कारक प्राथमिकता [दोनों डाटासेट उदाहरण और व्यक्ति से संबंधित हैं] वज़न] या [केवल वज़न] ईजी: def get_momentum (उदाहरण, वजन): वापस फ्लोट आवृत्ति 1 = वेक्टर 1xn उदाहरण 2 = वेक्टर 1xn वजन = वेक्टर 1xn # विकल्प 1 मिलते हैं_मॉमेंटम (उदाहरण 1, वजन [0]) # उदा रिटर्न 0.1 get_momentum (उदाहरण 2, वजन [0]) # उदा रिटर्न 0.3 & lt; - वही वजन, अलग गति # विकल्प 2 get_mementum (उदाहरण 1, वजन [0]) # उदा 0.1 get_momentum (उदाहरण 2, वजन [0]) # उदा रिटर्न 0.1 दूसरा विकल्प कम स्मृति की जटिलता होती। मेरा मानना ​​है कि इससे सीखने के एल्गोरिथ्म को भी पहले विकल्प की तुलना में स्थानीय ऑप्टिमा में फंसने की अधिक संभावना होगी। विकल्प 1 को एक मजबूत गति "पुल" होना चाहिए परीक्षण किया गया मैंने अपनी परिकल्पना के कुछ परीक्षण किए हैं दोनों दृष्टिकोण लगभग समान दिखते हैं, लेकिन पहले विकल्प का उपयोग करके एक स्पष्ट सुधार है। गति डेटा संरचना की मेमोरी की जटिलता: दृष्टिकोण 1: हे (उदाहरण * वजन) दृष्टिकोण 2 : ओ (वज़न) परिणाम: प्रत्येक दौर एक पूर्वनि

selenium webdriver - How download exe files with ChromeDriver? -

I try to download EXE files through ChromeDriver. But I see the following message: "This type of files can harm your computer ..." How can I avoid this message? I do not think we can stop those messages in Chrome. But I have an alternative solution. 1) Chrome: // settings / - & gt; Download - & gt; Check the "Ask where to save each file before downloading" check box. So before downloading a file chrome, you will ask where the file has been saved & amp; The default location is the "Downloads" folder. 2) Just enter an email, (as the focus is already on popup). Send ("{ENTER} 3) Once you click on the download link, run the following AutoIt script using the command: Runtime.getRuntime ( ). Exec ("AutoIt Executable Path");

javascript - Yii - Retrieve Drop Down Value before form submit. -

I have a web page with the menu drop down and many other stuff I want to retrieve the value of the dropdown menu , I know that $ _POST can be used after submission. But I want to get it before the presentation and so I want to use the javascript code. document.getElementById (). Value; I am confused about how to write this code in my form page. $ form-> Dropdown list ($ model2, 'anonymous' CHtml :: listData (lists :: model () - & gt; search (), 'anonymous', 'anonymous')); How do I call JavaScript in the form page? dropdown id like yourModelname_ename of your dropdown Get the ID and use this code var dom = document.getElementById ("idofyourdropdown"); Var results = dom option [DOM SelectedIndex]. Text; // Give selected text

Mule - how to access files in src/main/resources in Java class when running in Studio and Standalone? -

I have a rat CE application that is using XML component to convert to CSV file in XML. My Java class needs access to a flatpak XML file named map.xml - I have placed it in src / main / resources . My Java class is in src / main / java . I am currently accessing the map.xml file in my Java class: fr = new FileReader ("src / main / resources / map.xml") ; This works fine in a true studio, but when I try to run this app in standalone genre, I get the following error: < Code> java Io.FileNotFoundException: src / main / resources / map.xml (no such file or directory) Is there any way that I can make this file mutually? Work in the studio and standalone? I have also tried fr = new FileReader ("map.xml"); and it fails in the studio. UPDATE By combining a reply from Loireer, and some information in the post, I have been able to find a solution to this problem. The Java class has been updated in the following and has worked in both studio a

html - some of my pictures are not loading on my website -

I was working locally, and everything was perfect. All the images were loading completely. Once I put my website online, some images are stopped loading, and are no longer visible. I have developed my website using WordPress 3.7.1. Here is my website: Can anyone tell me what is going wrong? I have tried full paths and I have and lt; Have tried to change bloginfo ('stylesheet_directory'); ? Post-text "itemprop =" text "> On the site you used the name of the image, Attempting to consider the case in detail, along with the name of the file on the Linux server, is that they are case-sensitive. You can find the difference. / P>

I can't write two times over the same file (java) -

I am writing in a text file, the first time a file output stream, and the second time through a file. The file-optical stream text file looks just fine. However, FileWriter does not, after executing FileWriter, the contents of the file disappear, though it should be written to the file writer. Below is my code: try {serverSocket = new ServerSocket (850); If (ServerSocket.isBound ()) System.out.println ("Saver socket not back ..."); Else System.out.println ("Server is surrounded by socket port:" + serverSocket.getLocalPort ()); ClientSocket = serverSocket.accept (); If (! ClientSocket.isConnected ()) System.out.println ("client socket is not connected ..."); Else System.out.println ("Client Socket Connected:" + clientSocket.getInetAddress ()); InputStream = clientSocket.getInputStream (); Int byteRead = 0; Byte [] bytere = new byte [1024]; // Type action in a file action file = new file ("C: \\ user \\ false \\ document \\ MATLAB \\

c# - Get Type T from String -

इस सवाल का पहले से ही एक उत्तर है: < / P> 4 जवाब 2 जवाब मुझे विधि मिली: शून्य EmberIU & lt; T & gt; () जहां टी: फॉर्म {for (int I = 0; i & lt; ins.Length; i ++) इन [i]। क्लिक करें + = प्रतिनिधि {ShowForm & lt; T & gt; ("आर्ग")); }; } क्या मैं उस विधि का उपयोग कर सकता हूँ जैसे: var thing = Type.GetType ("namespace.class"); EmberIU & gt; वस्तु & gt; () आपको Type.MakeGenericType (पैरामीटर प्रकार []) विधि (यहां देखें:) उदाहरण के लिए: अपना टाइप टाइप = टाइप करें। गेटटाइप ("नेमस्पेस.क्लास"); प्रकार EmberType = typeof (EmberIU & lt; & gt;)। MakeGenericType (yourType);

Insert modeshape into SQL Server -

I want to know that there is any tutorial or program that shows all the necessary actions so that the nodes in the modepet and create an SQL Server database? I am struggling well with this new technology and I have no help. I have some global ideas with the help of some experts. After starting the engine: Create a session and save the nodes to save the session and close the engine. I want to know how he links to the database. < I have prepared the nodes. I have installed SQL jdbc with the help of Maven I have the Dependency pom.xml file . I want to know what should I do in config.json ? What should I do in infinspan.xml ? How do they store in databases (either by putting one)? I need some help badly. Thank you for your valuable help 1 and 2 no problem 3 Nothing, unless it works with the default settings 5 I do not know, maybe Randall Hoch can answer about it. Compared to the example given by 4 git (), here's something you want

smt - Getting symbolic values of bit vectors in Z3 -

I want to use Z3 for reasoning from a few vectors. Along with a satisfactory decision, I also want to symbolically represent the bit vectors so that I can apply their own computations to them as per need. For example: Come, X [3: 0], Y [3: 0], Z [4: 0] is declared a bit vector Print X [3: 0] X [3: 0] without launching any value < - X [3: 0]> gt; & Gt; 1 [logical change] Print X [3: 0] Z [4: 0] Print Z [4: 0] ....... desired output (something symbolic like this): & gt; 2. [x3 x2x1x0] & gt; 4. [0 x3 x2 x1] & gt; 6. [s4 s3 s2 s1 s0] Is it possible to use Z3? Generally, this is not possible after the simplification of the formula, Z3 is a bit-blaster (boolean). Translates into variables and runs a set solver, which usually assigns an assignment to all boolean variables (and thus, after translation, in the bit-vector variable). Strategy that Z3 has given employment for QFVVV formulas. For some (simple) formulas, in your case bit m

css - Why string assignment in javaScript is case insensitive? -

I have created simple HTML pages with a button, when its color changes when clicked: & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Button onclick = "if (this.style.backgroundColor == 'red') {this.style.backgroundColor = 'green'} else {this.style.backgroundColor = 'Red'} alert (this.style.backgroundColor)" & Gt; Ok & lt; / Button & gt; & Lt; / Body & gt; & Lt; / Html & gt; It is surprising to me that is the warning (this.style.backgroundColor) instead of red red . Why? An assignment is this.style.backgroundColor = 'Red' and starts with capitalization in Red . CSS styles have not been saved as a literal string, they are in the internal, Are changed. Color styles are case-insensitive, and the canonical representation is lowercase.

c# - Why is the AutoCompleteExtender firing the Page_Load event instead of the service method? -

Then I'm trying to implement the AutoCompleteExtender tool from AJAX Control Toolkit. The following is the implementation of AutoCompleteExtender on my ASPX page: & Lt; Asp: RequiredFieldValidator runat = "server" ControlToValidate = "Customer Textbook" CssClass = "text-danger" ErrorMessage = "Customer area is required." Display = "none" /> & Lt; ajaxToolkit: AutoCompleteExtender id = "CustomerAutoCompleteExtender" runat = "server" TargetControlID = "CustomerTextBox" MinimumPrefixLength = "1" EnableCaching = "true" CompletionSetCount = "1" CompletionInterval = "1000" ServiceMethod = "GetAllCustomerNames" & gt; & Lt; / AjaxToolkit: AutoCompleteExtender & gt; The service system implemented in the code behind this file is: [System.Web.Services.WebMethod ()] [System.Web.Script .Services.ScriptMethod ()] Public Stabilize

amazon web services - How to add attachment in email send using AWS SES API Interface -

I can not find the option to add an attachment in sending e-mail using the ADS SES API interface. Where thanks "text"> < P> Do you have a specific requirement to use the regular SSS SMTP interface versus the SES API interface? If not, then use the SMTP interface instead and adding the attachment is the exact same process as any other SMTP provider - really plug a play. I use the SES only to send emails for multiple projects, and never came in an application where SES API interface was necessary on AWS SMTP SES - it is not saying that you There is no valid need for this, but do not just vote for the notion that SES API is the only way to go - keep things simple if you can.

Perl Split on first occourence -

मान लें कि स्ट्रिंग है: एबीसी-डाइजेस्ट-एम 2- 2.03-04.01.00.05 मैं " एबीसी-डाइजेस्ट-एम 2 " और " 2.03-04.01 को विभाजित करना चाहता हूं। 00.05 "दो स्ट्रिंग्स में - और अंक संयोजन की पहली घटना। " - \ d "। मैं इसे कोड की एक पंक्ति से कैसे कर सकता / सकती हूं? आप अंक की खपत के बिना यह करने के लिए एक आराख़ले का दावा के साथ विभाजन का उपयोग कर सकते हैं। जैसे perl -MData :: Dumper -e 'प्रिंट डम्पर (विभाजन / - (? = \ D) /, "एबीसी-डाइजेस्ट-एम 2 -2.03-04.01.00.05", 2) ; ' $ VAR1 = 'एबीसी-डाइजेस्ट-एम 2'; $ VAR2 = '2.03-04.01.00.05';

HTML5 Web Audio API - Recording Sound Temporary -

I am currently making an HTML5 music editing program. I started with the recording audio, I came to know how to gain access to the microphone and so on. The code from "recorder.js" helped me a lot. But instead of typing in a .wave file, I want to create a temporary audiobuffer, I got the float 32 array with an input buffer in the "OnDioproses" event and saved them together in a float 32 array. Now I have an array with values, we say 3 seconds of recording. Now I want to create an audio buffer to record sound (saved in that array). (Read the [Webaudio API Specification]) But there was no possibility of creating a new audiobster An invisible float 32 array Maybe I'm doing wrong recording or I just read I am blind in Every other question I read was adding on the Recorder.js, but for the first time I do not want to save a file and then want to reload it. Anyone know? It would be horrible Thanks everyone! I am quite new to javascript but I think yo

reporting services - Chart related query: adding new category field manually -

I am trying to create a chart using SSRS 2008. I have 4 category fields: Field 2 Field 2 Field 3 Field 4 I want to add another category field that will be the total in the chart, example: area1 + area2 + area3 + area3 + area4 Now I do not know how to do it. Field 1 comes directly from one field 4 to 4, but because field 5 is total, how do I know how to add it manually? In the area of ​​the range of charts, I used (on the column name) group) and want to add another field to the chart that will be total. I have also tried: - = Field! Columnname.value Ecloss ("ABC") + Field! Column name value. Ecloss ("die") + field! Column name.Wail Ecloss ("GHI") + Field! Column name.Wail Eccles ("JKL") Please help !! !! I will select the chart object, then click it again to see the chart data pane. Then I will click the + button next to the value, then select the expression. In the expression I will enter something like this:

jquery javascript this function is not calling -

मेरे पास यह जावा स्क्रिप्ट फ़ंक्शन है: फ़ंक्शन copyToClipboardCrossbrowser2 (text) {alert (text ); $ ('# बटन 1')। Zclip ({पथ: '/js/ZeroClipboard.swf', कॉपी: टेक्स्ट}); } जब मैं पथ: js / Zeroclipboard.swf करता हूँ, तो Google क्रोम मुझसे कहता है कि यह फ़ाइल मौजूद नहीं है लेकिन जब मैंने / डाल दिया तो मुझे यह नहीं बताया कि यह काम नहीं कर रहा है। इसलिए एसडब्ल्यूएफ स्थापित है। परिवर्तन सही मूल्य छपाई कर रहा है। लेकिन प्रतिलिपि काम नहीं कर रही है। क्यों कृपया? मैं पहले से ही इसमें शामिल हूं: & lt; script type = "text / javascript" src = "/ js / jquery.js" & gt; & lt; / स्क्रिप्ट & gt; & lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "/ js / jquery.zclip.js" & gt; & lt; / स्क्रिप्ट & gt; नोट एक अन्य परियोजना में, मैं इस पुस्तकालय के साथ काम कर रहा हूं, जिसका अर्थ है कि मेरा फ्लैश प्लेयर काम कर रहा है यह html है बटन वाला बटन बटन & lt; बटन प्रकार = "बटन&quo

java - How to get data out of an array list by using the String -

मेरे पास एक सरणी सूची है: ArrayList & lt; vehicles & gt; कारेंअरे = नए अर्रे लिस्ट & लेफ्टिनेंट; वाहन & gt; (); carsArray.add (नया वाहन ("कार", "पेगोट", "3008", 12500.00)); CarsArray.add (नए वाहन ("कार", "बीएमडब्ल्यू", "316", 49 9 5.00)); carsArray.add (नया वाहन ("कार", "फोर्ड", "फिएस्ता", 12995.00)); carsArray.add (नया वाहन ("VAN", "P", "3008", 22500.00)); carsArray.add (नए वाहन ("VAN", "B", "316", 24995.00)); carsArray.add (नए वाहन ("VAN", "F", "Fiesta", 22995.00)); मैं क्या करना चाहता हूँ यह सरणी सूची के माध्यम से जाना जाता है और केवल वैन को बाहर निकालता है। वहाँ सरणी के माध्यम से लूप का एक तरीका है और अगर वाहन प्रकार "वैन" को सांत्वना देने के लिए प्रिंट किया जाता है। धन्यवाद ऐसा कुछ हो सकता है: के लिए (int i = 0; i & lt; carsArray.size (); i ++) {if (carsA

Obtaining associated file type icons in ios -

I have downloaded a list of file names from a free web service and have a UITWV population with file names. Now, in the image of the cell, I would like to display an icon for each filename, in which the applications are connected to the iOS device (as you will see in the general list of files). Such as PDFs, doctors etc. Where / How do I get each affiliate app and its icon? OK, I solved this by using the UIDocumentInteractionController to get an associated file type icon You can. It has a property called the icon which provides an array of symbols for the file in that URL that you started with the UIDOnt Interactive Controller. The big advantage of my situation is that if the file URL you supply does not exist then in my case I only used this snippet in the cellforu endindepapath method of UITLview. NameIPPier * Doctor = [self.lstDocsObjectAutandx: IndexPath.ro]; // get the file name cell.textLabel.text = doc.Name; Ns url * file url = [nsur file url andathpath: doctor. Noam]; U

ios - Copy NSMutableArray to NSArray in iPhone -

I am copying the contents of NSMutableArray to NSArray in the table section number of rows in the section - (NSInteger) table view: (UITableView *) table view numberofrose injection: (NSInteger) section {if ([appDelegate.selectedCalenDAteEqualToString: @ "TODAY"]) ​​{back to appDelegate.calenderSowArray.count; } And if ([appDelegate.selectedCalenDAteEqualToString: @ "this week"]) {// NSArray * newArr = [NSArray arrayWithArray: testArray]; NSArray * newArr = [NSArray arrayWithArray: [testArray objectAtIndex: section]]; New ARR return; } Using the above method, it does not show any object in the new array while testArray has two objects. change NSArray * newArr = [NSArray arrayWithArray: [testArray objectAtIndex: section]]; With NSArray * newArr = [testArray copy];

css - 3px border automatically added when using border-style without specifying border size -

I have noticed that to add a border-style without specifying the size of the boundary, be added to your element in the range Used to be. HTML: & lt; Div class = "box" & gt; & Lt; / Div & gt; CSS: .box {width: 200px; Height: 300px; Background color: green; Border-style: solid; } Expected Result: There is no limit around the box, because we have not specified the width of the boundary. Actual outcome: A black 3px limit appears almost box. Ingredient: I think my question is, why does this happen? Is this a part of W3C CSS specs? It is important to understand where the qualities come from: In relation, if it is not unspecified then it comes from the border-color property, which, if not set, each border- * side * -color , which is set Does not return the value to, which is set by the value set for color which is the default for black color. Color range - & gt; No color set - & gt; Get the range color - & gt;

c# - How to set values to nullable struct members -

मेरे पास यह कोड है: सार्वजनिक ifStatement? m_IfStatement; सार्वजनिक संरचना ifStatement {सार्वजनिक स्ट्रिंग स्टेटमेंट {get; निजी सेट; } सार्वजनिक स्ट्रिंग तुलना {get; निजी सेट; } सार्वजनिक स्ट्रिंग कंडी हालत {प्राप्त; निजी सेट; } सार्वजनिक स्ट्रिंग IfCondition_True {get; निजी सेट; } सार्वजनिक स्ट्रिंग IfCondition_False {get; निजी सेट; }} और जब मैं इस तरह struct को मान सेट करने का प्रयास कर रहा हूं: m_IfStatement = new ifStatement (); M_IfStatement.Statement = cboIfStatement.SelectedItem.ToString (); M_IfStatement.Comparison = cboComparison.SelectedItem.ToString (); M_IfStatement.ConditionValue = txtIfValue.Text; M_IfStatement.IfTrue = ""; M_IfStatement.IfFalse = ""; मुझे इस त्रुटि को संगतक द्वारा प्राप्त हो रहा है: 'सिस्टम.अनुरूप & lt; कोर.बेस कंट्रोल। इटैक्शनटूल.फ्रेमडेटामैनलिपिलेशन। आईफ़स्टैटमेंट & gt;' 'स्टेटमेंट' के लिए कोई परिभाषा नहीं है और कोई एक्सटेंशन विधि 'स्टेटमेंट' को 'सिस्टम। नल योग्य & lt; कोर क

Using PHP nuSOAP webservice in C# -

Image
I am working on Windows Phone Project in Visual Studio 2012 for Windows Phone. I am trying to use the PHP NuSOAP webservice by adding service reference . Here I followed the sample app normally when you create a VS reference.cs file you create a dictionary of your web service service (sample) app The reference files of reference.cs can be viewed in my reference.cs someMobileServicePortType file is empty line 19 Public Interface SomeMobileServicePortType {} Because of this I can not find any way to enter the webservice to my project. ServicesRefer1 Some mobile service portacax clients Client = new service ration 1 Some mobile service type service clients (); What is wrong in PHP webservice I tried some more webservices [especially in asmx, I did not get any sample of PHP NewsOAP webservice to try] which is working fine Anyone can tell me how PHP can use the NuSOAP service using C #. =========================================== ====================

ios - UINavigation stack display weird message -

मेरे पास 3 UIViewControllers, एक MenuVC, एक गेमवीसी और एक ResultVC है I मेन्यूसीवी से मैं गेमवीसी में जाता हूं और जब गेम खत्म हो जाता है तो मैं रिजल्टव्यूसी में जाता हूं। जब मैं ResultVC में बटन को वापस दबाता हूं, तो मैं मेनूवीसी में segue का उपयोग करते हुए वापस आ जाता हूं (जैसे खोलना टूललिस्ट)। मैं गेमवीसी में फिर से जाने के बाद और निम्न संदेश प्रकट होता है 'शुरू करने के लिए असम्स्थित कॉल / अंत उपस्थिति बदलाव।' और गेमवीसी में प्रगति बार अब और काम नहीं कर रहा है। मेनूवीसी - & gt; गेमवीसी - & gt; ResultVC - & gt; MenuVC - & gt; गेमवीसी मैंने नेविगेशन नियंत्रक स्टैक की जांच की और सबकुछ ठीक है, कोई भी गेम वीवीएस इंस्टीट्यूट नहीं है। मुझे पता चला कि यह संदेश तब दिखाई देता है जब आप दो बार एक दृश्य को ढंकने की कोशिश करते हैं लेकिन स्टैक में मेरा केवल एक बार विचार होता है और पहली बार यह ठीक काम करता है। क्या मुझे कुछ याद आ रहा था? मुझे समस्या मिली मैंने अपने गेमवीसी में एक स्थिर बुलियन घोषित किया था जो एआरसी द्वारा जारी नहीं किया गया था। मुझे समझ में न

android - Design dynamic UI like in given Image -

Image
मैं चित्र में दिखाए गए UI को बनाना चाहता हूं। क्लोज बटन के साथ TextView गतिशील रूप से जोड़ा जाना चाहिए कुल दृश्य चौड़ाई तय हो गई है। जोड़े गए दृश्य (टेक्स्टदृश्य + बंद करें बटन) को माता-पिता की चौड़ाई के अनुसार स्वयं समायोजित करना चाहिए। यह कैसे संभव हो सकता है किसी भी सहायता की सराहना की जाएगी। अग्रिम धन्यवाद। मेरे उत्तर को देखो यहाँ यह अपनी समस्या को textView और SpannableString के आधार पर हल करता है, जैसे Gmail और Google Hangouts में काम करें।

java - reuse cached spring contexts to build a bigger context -

I have separate spring tests, some of them only use the entity manager and repositories but some other beans and Use unit managers and repositories Can I reuse the references created for DB tests and make only the missing part of the larger context? And so avoid expensive construction of the unit manager Yes, this is a clever hierarchical structure for you Possible references You can not actually deploy your production application using such a hierarchy, but for any such construction, beans in the same context, as well as the parent reference A hierarchy in can see tests in beans will allow you to avoid the functionality of reloading the JPA Entity Administrator . In fact, you will use @ContextHierarchy for annotation within a test class hierarchy, where (potentially abstract ) parents test class The context is loaded defines the bean for EntityManager . See the section of the test chapter in the Spring Framework Reference Book. Regards, Sam (author of the

asp.net - HttpRequest header “X-Forwarded-Proto” missing -

हमारे पास IIS ASP.NET वेब अनुप्रयोग के लिए एक लोड बैलेंसर है जो सभी https अनुरोधों को आगे बढ़ाता है http इसलिए हमें https की पहचान करने के लिए X-Forwarded-Proto शीर्षलेख की आवश्यकता है मैं X-Forwarded-for हैडर को देख रहा हूं लेकिन Proto नहीं देख पा रहा / रही हूं। मैं अनुरोध कर रहा हूं। हेडर < / <> > एक्स-अग्रेषित-प्रोटो हैडर स्पष्ट रूप से लोड कोड के द्वारा IRule के द्वारा सेट किया गया है। जैसा कि आईआरुले लागू नहीं किया जा रहा था X-Forwarded-Proto हैडर अनुपलब्ध था।

linux - How to build CentOS ISO with custom packages like vlc,eclipse etc.? -

How can I create a CentOS iso with software packages of my choice, ie, Ganglia, VLC etc. Distro Alternatively, say that I have installed the aforementioned package on my OS, how to make the customized "standalone" Iso of this OS so that I can repeat / install it on other machines in an Internet connection I am You can create a Kickstart file and install all packages in the % post section Thin DotNetNet

android - why my app crash when i try to post some data into web service? -

What I am doing is that I am trying to send some strings from my activity and post for a web service My code is like this: approve.setOnClickListener (New OnClickListener) {@SuppressWarnings ("uncontrolled") @Override Public Zero onClick (see v) {// TODO Automatic Created method stub // intent = new intent (Info.this, MainActivity.class); condition = "1"; ORDERNUMBER = "25", User ID = "11"; // AsyncCallWS AsyncCallWS function = new AsyncCallWS () Create an example for: // L'work performed. Execute ();}}); Personal class AsyncCallWS extends asyncTask {@Override protected object doInBackground (object ... parameter) {// TODO auto created method stub loginStatus = WebService.invokeLoginWS (status, ORDERNUMBER, User ID, "GetOrderData"); Return tap; } Secure Zero PostExecute (zero result) {// Create progressive invisible webservicePG.setVisibility bar (see. INVISIBLE); IntObj = new intent (notice.This, pending ordersers class); //

php - Something wrong with this for loop -

I have this loop which does not do the right thing and I will thank you very much if you tell me where the problem is here : $ num_rows = 3; Echo '& lt; Div id = "slideshow" & gt; & Lt; div & gt; '; ($ I = 0; $ i & lt; $ num_rows; $ i ++) for {echo '& lt; Div class = "" & gt; Text & lt; / Div & gt; '; If (($ i + 1)% 1 == 0) echo ' The problem is that it pulls another empty div. The result is: & lt; Div & gt; & Lt; div class = "" & gt; Text & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Div class = "" & gt; Text & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; Div class = "" & gt; Text & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div & gt; & Lt; / Div & gt; Why is that so? Thanks for your help! The problem with your code is given below

asp.net - Host Angular JS and Web API 2 in same port using Local IIS -

How can I go about hosting both my client and server in a single port? I have an angular JS Front and Web API2 service, which I would like to host on that web server. I have locally installed IIS and want to use it, but I'm not sure how You can not do you need to deal with different ports and CORS. How will this work? How is the IIS going forward or the call back to the backend? Without the port it is not possible. There is only one option that is a project deployed on a port, but it is not suitable for SPA in my opinion. To do this, you need to return index.html to the Web 2.0 project.

julia lang - How to set values to the elements of DArray? -

I'm looking for parallel computing Julia and tried this: A = dzeros (5); A [1] = 5 but just got this error: setindex! DArray {{Float64, 1, array {Float64, 1}} Well, I thought Manuel said setindex! is fully implemented by DARRA What am I missing? I was using v0.2.1 for Windows 32-bit. I'm just an investigator, but after reading, I tried to do what works It seemed. $ / julia _ _ _ _ _ _ _ _ _ _ _ | A new approach to technical computing (_). (_) (_) | Documentation: http://docs.julialang.org _ _ _ | | _ _ _ _ _ _ | Type "help" to list support topics. | | | | | | / _` | | | | | _ | | | | (_ | | | Version 0.3.0-prerelease + 2703 (2014-04-22 18:57 UTC) _ / | \ __'_ | _ | _ | \ __'_ | | committed 942ae42 * (0 day old Master) | __ / | i686-redhat-linux Julia & gt; versioninfo () Julia version 0.3.0-prerelease + 2703 committed 942ae42 * (2014-04-22 18:57 UTC) platform information system: Linux (i686-redhat-linux) CPU: genuine Intel (

How can I use Perl in Visual Studio 2010 -

परिस्थिति: मैं एक सी # है। नेट डेवलपर जो Visual Studio 2010 प्रीमियम / अंतिम के आदी है , लेकिन मेरी नई (दीर्घकालिक) नियोक्ता पर्ल और जावा का उपयोग केवल सब कुछ के लिए करता है। प्रश्न: मैं विजुअल स्टूडियो 2010 में पर्ल को कैसे काम करूं? मैं जानता हूं कि इस जांच के संबंध में स्टैक पर एक मौजूदा पद है, लेकिन यह पद लगभग चार साल का है - सॉफ्टवेयर जीवन काल में एक जीवनकाल निश्चित रूप से किसी ने इस ज़रूरत को पूरा करने के लिए कुछ भी बना दिया है? नोट: मुझे नफरत है .. ग़लत .. गंभीरता से नापसंद, ग्रहण और जावा आधारित अनुप्रयोग, इसलिए मैं वास्तव में सिर्फ एक प / न-पर्ल काम करने के लिए जाने की तलाश कर रहा हूं दृश्य स्टूडियो में बोनस के रूप में, अगर आपको यह भी पता है कि वी.एस. में जावा के साथ काम करना संभव है। मैं अंतर्दृष्टि का स्वागत करता हूं। - हमेशा की तरह, अपने समय और ज्ञान को समुदाय को उधार देने के लिए धन्यवाद। - मुझे पर्ल के बारे में नहीं पता है, लेकिन यह आपके लिए जावा के लिए हो सकता है:

jquery - If window width > 1080 then this - else, revert to css and check on resize AND page load -

I am creating a section in one page, set height by using screen.availHyight That is exactly what needs to be done, but I also need it so that when the width directly in the CSS is less than 1080px, then I am trying to do some things, but this will not work, if I am using the check statement and only using screen.availHyight if width 1080p Above X, but when it is lowered down again, it will not be reset. In addition, I need to see that when the page is loading, as i (window) Resetize - There is a way to use both (windows). and resize (document) .ready so that it checks the width of the load, but when its size has changed? & lt; Script & gt; $ (Window) .on ('load resize', function () {// Amended line which now works ($ window). Width ()> 1080) {var screenHeight = screen.availHeight; $ (' # Home '). CSS (' height ', screenhit +' px ');} and {$ (' home '). CSS (' height ',' ');}}); & Lt; / Script &am

c++ - How to pass STDIN to child process? -

Image
शून्य WriteToPipe (शून्य) // एक फाइल से पढ़ें और बच्चे की एसटीडीआईएन के लिए पाइप में इसकी सामग्री लिखें। // जब कोई अधिक डेटा नहीं है तब बंद करें {DWORD dwRead, dwWritten; चेर चबफ [बुफसिज़]; BOOL bSuccess = FALSE; चार * नाम = मॉलोक (100); Fgets (नाम, 100, stdin); BSuccess = WriteFile (g_hChildStd_IN_Wr, नाम, 10, और dwWritten, NULL); यदि (! BSuccess) त्रुटिएक्सिट (""); } शून्य ReadFromPipe (शून्य) // STDOUT // के लिए बाल प्रक्रिया के पाइप से आउटपुट पढ़ें और STDOUT के लिए मूल प्रक्रिया के पाइप को लिखें। // जब कोई अधिक डेटा नहीं है तब बंद करें {DWORD dwRead, dwWritten; चेर चबफ [बुफसिज़]; BOOL bSuccess = FALSE; हैंडल hParentStdOut = GetStdHandle (STD_OUTPUT_HANDLE); BSuccess = ReadFile (g_hChildStd_OUT_Rd, chBuf, BUFSIZE, और dwRead, NULL); अगर (! BSuccess || dwRead == 0) 100 रिटर्न; BSuccess = WriteFile (hParentStdOut, chBuf, dwRead, और dwWritten, NULL); अगर (! BSuccess) 101 वापसी; } मुख्य (पूर्ण नहीं): जबकि (1) {नींद (500); ReadFromPipe (); WriteToPipe (); } मैं

php - symfony2 form entity add values -

I need to add another default option in symphony 2 to an "entry field". Displays this name, and I need an option "not in the list of names", but I can not find a way to achieve it. Although the data transformer cant seem to fix my problem though. $ builder - & gt; 'Family', 'unit', array ('class' = & gt; 'interfaith bundle: family', 'property' = & gt; 'name')) if family If the name is not in the list, then "Not in the list of names" should be an option .. Thank you very much! I'm sure you can specify only one empty value option: < Pre> $ Builder - & gt; ('Family', 'unit', array ('class' = & gt; 'interfifier bundle: family', 'property' = & gt; 'name', 'empty_mana' = & gt; 'name not in list'

nginx - Include 'some.php' just pasting in PHP code, no correct preprocessing -

I was using Apache before setting up my new website, the whole code was worked well with Apache So it's something with Nginx Now I am using NGNX and there were some problems I had to fix. But now I ran into some trouble. I have created a test.php so that you can easily see what's going wrong. File is just: graph.php contains some PHP codes that usually require some graph content to be displayed. that does not matter. What matters is that this code should never be posted or printed. When I change the only statement contained in the code that works in the file then why contains or need_once does not work well for me? added the graph.fp code for you OK just here the code of graph.php was added: include 'graph / mycalendar.php'; with that file and & lt ;? It works now with Php .

awk - convert a 15 digit number to hex -

I need to input a 15 digit numerical input for a different hex string than a comma, but I started it Can not seem to get it for the first character, which I have so far received: echo "012345678912345" | Awk 'BEGIN {FS = OFS = ""} {for (i = 1; i & lt; = nf; I ++) {if (i% 1 == 0) $ i = $ i ", 0x3"}} 1 '0,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x31,0x32,0x33, 0x34,0x35,0x3 echo 123456789123456 | Awk '$ 1 = $ 1' FS = OFS = ", 0x3" 1,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x31,0x32,0x33,0x34,0x35,0x36 < / Pre> How can I insert 0x3 initially or initially add a random character, then delete it later? The expected result ID will be from the input of 012345678912345: 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x31,0x32,0x33,0x34, 0x35 awk -v OFS = ", 0x3" -v fs = your example With: "$ 1 =" 0x3 "$ 1" $ echo "012345678912345" | Awk -v OFS = ", 0x

regex - Match exact word with awk on Mac OS X -

Mac OS X पर awk का उपयोग करने का प्रयास करें। उदाहरण: $ echo "abc स्टॉक डीईएफ "| Awk / stock / abc स्टॉक def $ गूंज "एबीसी स्टॉकहोल्डर def" | Awk / stock / abc स्टॉकहोल्डर डीएफ़ मुझे परेशानी हो रही है जब मैं एक शब्द के साथ सटीक मिलान करने की कोशिश करता हूं। उदाहरण के लिए, मैं उपरोक्त उदाहरण में स्टॉकहोल्डर के बजाय स्टॉक से मेल करना चाहता हूं। मैंने \ & lt; , \ & gt; , \ b , \ y के साथ प्रयास किया। हालांकि, सभी ने मुझे उम्मीद के परिणाम नहीं दिए। धन्यवाद अगर यह हमेशा दूसरी स्थिति में है, तो आप इसका उपयोग कर सकते हैं: awk '$ 2 == "स्टॉक"' अगर यह किसी भी स्थिति में हो सकता है, तो इसका उपयोग करें: Awk '{for (i = 1; i & lt; = nf; i ++) अगर ($ i == "स्टॉक") {print; अगले}} ' उदाहरण देखें: $ गूंज "एबीसी शेयर स्टॉक डीईएफ़" | Awk '{for (i = 1; i & lt; = nf; i ++) अगर ($ i == "स्टॉक") {print; अगले}} 'एबीसी स्टॉक स्टॉक def $ गूंज "एबीसी स्टॉक डीईएफ़"

Issue with writing a criteria /hibernate query? -

How can we write the following SQL queries in the criteria query and also in the Hibernate query? The following types of sql queries, select - Test ID DESC limit 1 from table 1 command; I have written as follows, Standards TobaccoID = SessionFighter .getCurrentSession (). CreateCriteria (table1.class); TobaccoID.add (Restrictions.eq ("surveyId", send_Survey)); TobaccoID.addOrder (Order.desc ("testId")); // How can I specify 1 limit here in the tobacco id? Restrictions ("Restrictions" ("Algorithm", Lifestyle Hbbs on)); Tobacco id.ed. (restrictions .ec ("string no", "01")); Scrollable tobacco idp = tobacco id. Scroll (); But I do not know how I can set limits here. Any suggestions.

sql - How do I select distinct records -

I want to select a separate record from my data, at this time it shows the record repeatedly shows my question: select different id, firstname, second name, department, company, total employee, COUNT (case total excavator where 1 or so tap end), COUNT (case total guard where 1 Since then, the name, second name, department, company, total employee employee before 1 ELSE NAL ED) I have different words But I am getting results again and again. separately with that column Use the key word that you want to separate, the ID is always different. As different from first name will be different from FirstName.

sql - MySQL errno 150 without solution yet -

However this is a repeated question, but I am searching through many similar posts, but nothing is useful Found. Here is my SQL script for MySQL. The database does not exist if the store does not exist; Use shop; The creation of the table does not exist, the box (coord VARCHAR (255), box_id INT is not unsigned NULL, img_path VARCHAR (256), primary key (coord, box_id)); Toolbase (tool_id), foreign key (tool_id box_id) reference box (box_id) is not present if the table is not present, then the device (serial VARCHAR (50), INT, descr VARCHAR (256), box_id INT unsigned NULL, tool_state boolean, primary key (tool_id) ); Output is: Error 1005 (HY000) on line 9: The table can not be created 'store.Tool' (errno: 150) Any suggestions < P> from: You had to delete a table again, making it a definition that Foreign key refers to obstacles that should be consistent. It should have the correct column names and types, and it should be indexed on the referenced key, as m

RequestDispatcher in jsp -

I am trying to use RequestDispatcher's inclay method in my JSP page. The problem is that it is not giving the desired output. Here's my code: & lt;% out.println ("end"); Out.println ("Start"); Request Dispairs RD = Request.GateQuestion Detector ("MyFile .Jsp"); Rd.include (request, response); & Gt%; and myfile.jsp: <% = "good"%> This output gives: good end starts But I hope the output should be: the end starts well. Can someone please explain thanks That's because you requested your request Response from the dispatch class is included in jsp, so this is being done by printing details of Calling JSP (i.e.) out.println . By java docs, If the resource is static, the method involved is included in the programmatic server-side if the resource is a web component, then the method The effect of this is to send request to the web component, execute the web component, and then include the result