Posts

Showing posts from March, 2011

drupal - Programmatically get and set field values -

I have two fields that I want to fill with exactly the same values; Users should fill only one. I also have a function that checks whether the second field is empty or not. How are the field values ​​obtained in dripple 6 and drupal 7 and set? EDIT: I'm just trying to edit the module. Yes, I'm talking about the node field. The $ node array has the ID of the words added only in the node. How can I know my name? Since you have tagged this question with cck. I think that with the node field Are working. To copy the value of one field ( x ) to another ( y ), you can either install the module and set it up So that the value of y is calculated by the value of x , or you can create a custom module with something similar to the following: This hook copies all data in the field x from x : function mymodule_node_presave ($ node) {$ node -> field_y = $ node- & gt; Field_x; } This hook simply copies the value of the first instance of the x field y fi...

python - How can I use Pika to send and receive RabbitMQ messages? -

I am having some problem so that the pic is getting in the way of working with routing keys or exchanges, which It is compatible with AMQP or RabbitMQ documentation. I understand that the RabbitMQ documentation uses an earlier version of Pika, so I have ignored their example code What I'm trying to do is a line, defines "order" And there are two consumers who handle "Production" of Exchange or Routing_ and who handle "Tests" by looking at the Rabbit MQ document which is directly using direct exchange and routing keys or Isi theme should be quite easy using Exchange. Although the pica does not even know what to do with the exchanges and routing keys, using RabbitMQ management tool to inspect the queues, it is very clear that the pic or the message may be correctly queued Does not give or that RabbitMQ threw it On the consumer side, it is not really clear how can I force a user to exchange or handle routing And the documentation is not really h...

Does Windows have a JSON API that can be called from C? -

Is there a basic implementation of JSON in Windows that I can call from C? If not, what about .NET or C #? Or if a library or implementation people want to use JSON in any Windows app, what do they use? Yes, there is an built-in Windows JSON Parser: Can be said using the .NET Interop feature (), which actually works for you from the local library, the first answer suggests.

iphone - MBProgressHUD or DSActivityView - tap to cancel -

I have come to both MBPRGURD and DSECTIVITY to show black round corner "loading" type overlay on an iPhone app. I am just wondering if anyone knows how to expand one of these to find out one of the overlays, so that the action can be canceled. I have seen at least one app there with "loading" indicator but with text "tap to cancel". Thank you! - (zero) showHUDWithCancel: (NSString *) aMessage {self.HUD = [MBP Progress HUD show HUDDED: Self. Animated Animation: Yes]; Self.HUD.labelText = aMessage; Self.HUD.detailsLabelText = @ "Tap to Cancel"; [Self. Hood addGestureRecognizer: [[UITapGestureRecognizer alloc] initWithTarget: Self-action: @selector (hudWasCancelled)]]; } - (void) hudWasCancelled {[hide self.HUD: Yes]; }

php - Make DateTime::createFromFormat() return child class instead of parent -

I'm expanding DateTime to add some useful methods and constants Everything is okay when using the new to create a new object, but when using the static method createFromFormat it always returns the original DateTime object And certainly none of the hair methods are available. Am I using the following code to solve this problem? Is this the best way? Name space noilibbs \ datetime; Class datetime extension \ datetime {static public function createFromFormat ($ format, $ time) {$ ext_dt = new self (); $ Ext_dt- & gt; Settimestamp (guardian :: createFromFormat ($ format, time) -> getTimestamp ()); Return $ ext_dt; }} This is a way to go though, because you think what you do Want to provide Extensible DateTime class, I suggest you use static instead of self : Namespace NoiseLabs \ DateTime; Class Datetime extension \ datetime {stable public function createFromFormat ($ format, $ time) is {$ ext_dt = new static (); $ Ext_dt- & gt; Settimestamp (...

Use a Profile in an ASP.NET Web Application -

संभव डुप्लिकेट: मैं एक एएसपी.नेट बुक पढ़ रहा हूं जो कहता है कि यदि आप कोई प्रोजेक्ट शुरू करते हैं तो आप वेब अनुप्रयोग का चयन करते समय प्रोफ़ाइल का उपयोग नहीं कर सकते। यह केवल वेब साइट के अंतर्गत चलती है। क्या वेब अनुप्रयोग के लिए कोई विकल्प हैं? या आपको अपनी प्रोफ़ाइल सिस्टम बनाने की आवश्यकता है। यदि आप उपयोग कर रहे हैं तो आप प्रोफ़ाइल प्रदाता का उपयोग कर सकते हैं वेब साइट के बजाय एक वेब अनुप्रयोग, लेकिन आपके पीछे एएसपीएक्स पृष्ठ कोड से बॉक्स में से प्रोफ़ाइल नहीं कर पाएगा। माइपरप्रोटी । यह एक नहीं है थोड़ी सी कोशिश के साथ बड़ा सौदा आप कुछ समान करने में सक्षम होंगे। एक वेब एप्लिकेशन के साथ प्रोफ़ाइल प्रदाता का उपयोग करने के तरीके पर उपलब्ध होने वाला उदाहरण अच्छा कूद होता है। उपर्युक्त लेख के रूपांतरित प्रोफ़ाइल ऑब्जेक्ट कोड अनुभाग को संक्षेप करने के लिए एक ProfileCommon वर्ग सार्वजनिक वर्ग प्रोफाइलकॉम {सार्वजनिक शिक्षक शिक्षक {वापसी (शिक्षक) HttpContext.Current.Profile.GetPropertyValue ("शिक्षक"); } सेट {HttpContext.Current.Profile.SetPropertyValue...

r - Going from multiple dummy variables to a single variable -

How do I n are mutually exclusive in a data frame that I can take the dummy variable and Do they include a single variable? In the following example, K & lt; - data. Frames (H = sample (C (T, F), 100, T)) ifelse (k $ H == T, F, sample (C (T, F)) - & gt; K $ kk $ u & lt; - ifelse (k $ H == T | k $ k == T, F, T) A simple way of them to convert a variable i h , k or u with the level of? To do this I think with that you can do ifelse etc., as in this example, but I have my data file several hundred dummy and I manually I am also lazy for. - The name (k) [applied (k, 1, joe)] will transform Bull into a dummy variable.

php - find the root word of a word -

I need to create a php dictionary, which will get the root word of a word. East. Search "car", it will say "plural of cars" or "taken", this is "the problem of the past" I'm thinking of using wordnet, but it seems complicated. Any suggestions? Regards; OK, since the suggestion is that stammer is not working properly There is also a few interesting libraries: Stack overflow also has links to similar questions: Update: Wordnet Lematizer:

bash - exit status in shell script -

I am running an application form shell script now I know that it is usually out of or unusual (accident etc) Wants to know the exit status of the application to get out. How do I know this? Example: ./mytestApp $? In the the last out-of-order command is executed. Therefore, if the last command is ./ mytestapp , $? will immediately include the situation outside of it (note that you can only recover this value once and it should be re-instantly received, after which the condition of the command you want to know). You might want to capture it in a variable, eg #! / Bin / bash ./mytestappappspcc = $? Continue what you are doing All of this assumes that you bash (sh and zsh will also work as IIRC).

NginX 0.9.6 Frustrating Compile Issues Ubuntu/GCC 4.6.1 -

Today I'm working on installing additional VPS clones and I have participated in a strange and frustrating compile time error, the latest NGN Development Edition (0.9.6). I am running Ubuntu 10.04.2 LTS x86_64, however, I have upgraded GCC to 4.6.1. ./configure runs without errors, but I have seen the following error when running make -j4 : GCC-C -Pip-O-wa-wall-wienener-arith-vino-unused-parameter -weuxed-function -wife-variable -weeked-value-value- G-i src / core -i src / event -i src / os / unix -I objs \ -o objs / src / core / ngx_open_file_cache.o \ src / core / ngx_open_file_cache.c src / core /ngx_resolver.c: function 'Ngx_resolver_process_ptr': src / core / ngx_resolver.c: 1425: 43: error: variable set to 'qclass' but its use Not done [-driver = unused-but-set-variable] src / core / ngx_resolver C: 1425: 36: Error: Variable 'qtype' set but not used [-error = unused-but-set-variable] cc1: All warnings are considered as errors creat...

how to process an XML NODE in PHP -

Here's the simple code. I just want to know how the $ reader-> Expand (); open ("data.xml") (die ("failed to open 'data.xml')";} while ($ reader-> read ()) {$ Node = $ reader-> Expanded (); // How to process this node now?} $ Reader- & gt; off ();? & Gt; & lt; php $ xml = & lt; & lt; & lt; XML & gt; Xml version = "1.0" encoding = "UTF-8" standalone = "no"? & Gt; Parents xmlns: dc = "myns" & gt; & lt; DC: child & gt; & lt; DC: one & Gt; & lt; / DC: A & gt; & lt; DC: p & gt; B & lt; / DC: p & gt; & lt; / DC: Children & gt; DC: Children & Gt; & Lt; dc: a & gt; c & lt; / dc: a & gt; dc: p & gt; d & lt; / dc: p & gt; & lt; / dc: child & gt; & Lt; dc: child & gt; & lt; dc: one & gt; e & lt; / dc: a & gt; dc: p & gt; f XML ($ XML); While ($ reade...

c++ cli - Help with loading a .Net DLL from c++/Cli -

I have one. Net DLL, which I need to call from a third party application The third party application does not support the loading of the managed DLL and therefore I am using c ++ / CLI DLL which displays the basic c ++ function called by the application as shown below. Third Party Applications - & gt; C ++ / cli DLL - & gt; .NET DLL My problem is that my c ++ / cli dll crashes with "Access violation" error when it tries to call the function from .NET dll. If I call the .NET DLL directly from the VC + console application, this problem does not occur. Do you think I will create C ++ / CLI DL with the CRR option, Studio? I followed the suggestion of Hans Pacente and debug it, the exception I was getting was a "file not found exception". My scenario is Third party app - & gt; C ++ / CLI DL - & gt; .Net managed DLL In the same folder as the third party exe problem solved. Placing Net managed DLL. Now my question is "Can I get C ++ /...

how to copy all the data of a table to a new table in rails -

मैं MySQL का उपयोग कर रहा हूँ मेरे पास एक एक्स तालिका n इसी mvc और y तालिका n इसी मॉडल है । जब मैं एक्स के दृश्य में नष्ट करना चुनता हूं, इसे दो कार्यों को पूरा करना चाहिए सबसे पहले, एक्स तालिका से आईडी को नष्ट करें और आईडी से शुरू होने वाले सभी डेटा को बचाने के लिए .... y's table कृपया कृपया मुझे मार्गदर्शन करें कि मुझे क्या संबंध बनाना चाहिए और यह कैसे करना है। मैंने इसे से संबंधित बहुत सी कोडिंग की कोशिश की लेकिन मैं विफल रहा, क्योंकि रेल पर रूबी के गहरे ज्ञान की कमी है ... कृपया पर एक नज़र डालें यह मुझे लगता है कि आप यहां पूछ रहे हैं। संपादित करें: रेल 2.3.5 का उपयोग न करें। 2.3.11 पर अपग्रेड करें या रेल 3 पर स्विच करें, जिसे आप भी कर सकते हैं क्योंकि आपने कहा था कि आप वैसे भी सीख रहे थे। मणि संस्करण के लिए, बस actions_as_archive निर्देशों का पालन करें और जो भी नवीनतम संस्करण का उपयोग करें। इसे कहां रखे जाने के बारे में, आपको इसे पढ़ना चाहिए उस पृष्ठ पर अनुभाग के लिए विशेष ध्यान दें "बुंडलर के साथ फ़्रेमवर्क" का उपयोग करें एक रेल ट्यूटोरियल पढ़ना...

read eval print loop - Scala REPL class loader returns 'null' when calling getResourceAsStream() method -

क्यों है Scala REPL का TheReplClassLoader.getResourceAsStream (someGeneratedClassName) रिटर्न रिक्त? शायद नाम someGeneratedClassName मौजूद नहीं है? जावा null वापस करेगा।

easy c++ loop with pause but output is very weird! -

I'm just trying to write a program that is one of the numbers that overwrite each other on the same line as the console screen. Outputs series. Such as 10 9 7 7 etc. I am using xcode and compiling it in xcode. And it outputs "10 121469 121468", what am I doing? Why does not this look? #include & lt; Iomanip & gt; # Include & lt; Iostream & gt; using namespace std; #ifdef __GNUC__ #include & lt; Unistd.h & gt; #elif Defined _WIN32 #include & lt; Cstdlib & gt; #endif int main () {cout & lt; & Lt; "Description: This program will show you how much change" & lt; & Lt; Endl; Cout & lt; & Lt; "You already have" & lt; & Lt; Will need to complete the transaction using; Endl; Cout & lt; & Lt; "Specified sect" & lt; & Lt; Andal & lt; & Lt; Endl; Cout & lt; & Lt; "CTRL = C to exit ... \ n"; (Int units = 10; units; 0; units-) {cout & lt; ...

cocoa touch - How to know which UIView index or tag has been shown by UIScrollView? -

I have a UIScrollView with many tagged images. I have to process some code after selecting a specific image inside the user UIScrollView . To perform this process, I need to know what image or UIScrollView was showing when the user selected. I tried to track the frame.origin.x of my subviews, but without success Can you share something about this situation? Set the view area of ​​the bound of the scrollview.

javascript - jQuery - how to trigger a lightbox when click on table row? -

नमूना सारणी: & lt; तालिका & gt; & Lt; tr class = "record" id = "10" & gt; & LT; टीडी & gt; 1/1/2010 और lt; / टीडी & gt; & LT; टीडी & gt; $ 10.00 & lt; / टीडी & gt; & Lt; / टीआर & gt; & Lt; tr class = "record" id = "11" & gt; & LT; टीडी & gt; 1/3/2010 और lt; / टीडी & gt; & LT; टीडी & gt; $ 15.00 & lt; / टीडी & gt; & Lt; / टीआर & gt; & Lt; / तालिका & gt; मैं इस जेएस का इस्तेमाल कर रहा हूँ जब क्लिक पर तालिका पंक्ति से id प्राप्त करने के लिए, और एक यूआरएल (कुछ कोडइग्नेटर मार्कअप) बनाते हैं। $ (document) .ready (function () {$ ('tr.record')। Bind ('click', function () {var record_id = $ (this) .attr ("id"); var लिंक = '& lt;? Php गूंज base_url ();? & Gt; खर्चे / संपादित करें /' + record_id;});}); उस यूआरएल के साथ, मैं एक लाइटबॉक्स में एक पीएचपी / एचटीएमएल पृष्ठ खोलना चाहूंगा। अधिकांश jQue...

winpe - How does Windows pass arguments to a program? (And is there a SetCommandLine function?) -

How does entry point get logic from the command line? I looked through a disassembly of one and found that it calls __ getmainargs to get the argument. Is there any way of " __setman args "? I know that CreateProcess already does this but I want to see how CreateProcess does this The AFAIK logic has been passed as a string in memory, so there is really just one argument - many are divided by your program, the kernel receives the argument from the CreateProcess () call and Keeps it in a predefined memory space while setting a new process. But this is only my semi-educated guess

vb.net - Create Event Log Source as part of installation - windows forms app, vs deployment project -

I have a vb.net window form which I am deploying as a visual studio deployment project. The application needs to write an event log in the Application log in Event Viewer. By stating the reason I need to create an event source during the installation process. Something like this to run as part of the installer if not event lodge. SOURCEXIST (My.Application.InfoPrintCamName) Event Logs CreteEventSource (My.app.InfoPontCam, "App") End if The code needs to be run with high privileges during installation. So my questions are: How can I execute that code as part of the installer? How do I get the UAC prompt to allow the installer to run as part of the installation? Adding an empty registry key for HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ services \ eventlog \ Application \ MY_CUSTOM_SOURCE_NAME_HERE works fine

assembly - How can one implement printf-like functionality in assembler? -

I'm just looking for feedback and guidance rather than a straightforward answer. .586 Assembling instructions, how can you simulate functionality like printf? For fixed width areas, I know that I can do something like this: .data format BYTE 'you are ## years old., 0 And before printing the string, change the ## value to the appropriate number, to be changed later if I need to use the format string multiple times with different values. It may not be the best way, but now it works. I do not understand how to do it if you do not know the number of digits before time. The option is okay if you should know which marks in the maximum number you want to use (For example, do not work very well for people 100 years of age or older, you lose space between words). If you reserve a lot of space, you get double space between your number and your world. . Data format BYTE 'You are ### years old, 0 My plan will be used with 12 people: You are 12 years old M...

ruby on rails - capybara: page.should have_no_content doesn't work correctly for display:none element -

I would like to use the page. It is to check whether the page does not display the label to the user, here's what it is in HTML: & lt; Li id = "account_input" style = "display: none;" & Gt; & Lt; Label = "account_name" & gt; My Account & lt; / Label & gt; ... & lt; / Li & gt; So when I use the page.What will happen_no_content ("my account"), it lies instead of truth. You can use this statement # Account_input '). Should_not be_visible

powershell - segmenting list of values -

After I am writing some code to figure out how to list volumes of values ​​in more manageable pieces. The reason for this is that I have received around 100,000 live value and I want to reduce the risk of failure. $ wholeList = $ 1..100 $ nextStartingPoint $ workList function Get- NextTenItems () {$ workingList = (1 + $ nextStartingPoint) .. (10 + $ nextStartingPoint) $ nextStartingPoint + = 10 Write host - write host-host "nights-nextTenItems inside" "next StartingPoint: $ nextStartingPoint" $ workingList Write host "go out- NextTenItems"} Function Write-ListItems () {foreach ($ li $ in the working list) {Write - Host $ li}} Go-Agentain Write List-List Item Received-NextThen-List Write-List I ran the code in the Power GUI debugger and I got my $ next startpoint I have watched, when I exit the Get-NextTenItems function. Why is this happening and how can I stop it? Should I also believe that the same thing $ $ is working? In your example ...

c++ - How to share data between kernel tasks? (Game engine with kernel/kernel tasks) -

I have the IKernelTask ​​and its derivative classes (input, make different kernel functions for sound. .) Also I have CKernel which runs various kernel functions. CKernel has a function execution () that runs through a list of kernel tasks and runs their update () function. I am having difficulty sending data between kernel works, so I tried to execute the kernel objects in the context of the kernel object sending the data and then the kernel functions in update () Is sent in the same way. The execution of CKernel () is: execute (CKernel and orchell) for each kernel task: {Update (OCLL) ); } In the main: while (current) {oKernel.Execute (OKernel); } This will allow kernel work to be forwarded to the data between the kernel functions, by providing access to the kernel through their update () function. However: 1. Is this a good solution? If not, what would be another traditional way to share the data? 2. If this is the right solution; The problem is that CK...

Python: How to match nested parentheses with regex? -

I am trying to match string like a mathematical expression, which is a nested bracket. import re p = re.compile ('\ (. +)') Str = '(((1 + 0) +1) +1) Print printing (files) I wanted to match it to all the attached expressions , Such as (1 +0), ((1 + 0) + 1) ... I do not care if it matches the unwanted ones (((+ 1 + 0), I can take care of those people. Why is not it already doing this, and how can I do it? Try regular expressions It is possible to match as much text as possible to which all your strings are consumed. It does not find matches in addition to regular expression on parts of that string, that is why you get only one answer . If you are actually trying to parse math expressions, then use a real analysis parsing. If you really want to capture only May include the pieces within the bracket, when you see (and) fall just loop characters of calculating a counter increments

Setting WPF RepeatBehavior to "none" in VB.net Code Behind -

How do I set up duplication of a WPF 4 mediatimeline in VB.net 2010 code? I understand that the following code always sets repeats: MyMediaTimeline.RepeatBehavior = RepeatBehavior Forever However, no presets seem to be for anyone to establish a repeat behavior, I'm guessing that I have to do something like the following, but "? " MyMediaTimeline.RepeatBehavior = New repetitive (?) As a side note, I have the following above the class. Importing System. Windows Media. Animation Behavior to get the default (play once) , You only have 1 () MyMediaTimeline.RepeatBehavior = New RepeatBehavior (1) HTML>

facebook-c#-sdk -

I would like to host more applications on the same domain, so that the canvas URL, www.mydomain.com such as subfolders / app1 , Www.mydomain.com/app2 and so on. I can not create a single virtual directory because only root is an IIS virtual directory. That's why I was thinking of doing a file to redirect to a page on the root in each VD, which can act as the actual entry point of the application (i.e., app1_default.aspx, app2_defaul.aspx etc.) However, it seems that this does not work because "FacebookConfigurationSection" web ID and Secret both of the web. Receives from config, which is clearly unique. Is there any remedy? thanks Marco It seems that you You can do this by applying several config files

vb.net - Opening a word document -

Word application has an add-in for opening my company's portal. I am responsible for bringing the folders format to the portal and the UI displays them in the window. Now I have been asked to download the document and open it and use the key to display.i a document.can for any of me Guide on? To really provide a specific answer here is not really enough. All types of ways to draw a document from an unknown "portal" are FTP, HTTP downloads, web pages, and so on. All words can be used from Word Adin. In fact, you drag the DocX file down as a byte array, save it to disk, then tell the word to open the file. Very simple.

objective c - how to display twitter feeds in iphone sdk -

How to display Twitter feeds of a specific user account in iphone sdk? You can get specific user tweets from the link below: Username & amp; Count = 25 & amp; Page = 1 and use any parser like NSXMLParser to parse the above feed. Let me know that you need more details.

pagination in Listview of android using Base adapter? -

I use the base adapters to fill the list view with a date from SEL Light. My actual need list shows only 10 rows in the list view, when I click next, need to bring a set of 10 data from the local database and see to see the current list. thanks thanks The easiest way is to send a subset of the entire data to the adapter (10 elements in your case). When the next button is pressed, you can send the adapter of the next 10 elements and then call NotifyDataSetChanged to update the list view.

VBA - Import namespaces? -

Is it possible to import namespace in VBA? I am writing word macros and I want to put all the functions inside modules or classes. But once I do this, I see that I can not easily reach the controls in the VBA form. I must first include the name of the form, then we will have to use the control within that one. I just can not go textbox1.caption I have to go Form1.TextBox1.Capttion Is there any way around this? You should not add your classes / modules so strictly. A worker module should not require the knowledge of the Form1 class, since then it can not be used separately in any other project. Instead, you probably want to return the function to logic in its helper class, and then return the result (if necessary). Completely useless, trivial example: public sub-setlabelite (labeled as VALABLE LBL, by-captions as string) lbl. Caption = caption closing sub MyHelpers.SetLabelText (label 1, "new label caption") In this way, you can use ...

How to delete a non-empty folder in a zip file using Ruby gem 'zip' or 'rubyzip'? -

I tried to remove a non-empty folder in a zip file. I am using Ruby 1.8.7 in Ubuntu 10.10. I tried the rubyzip gem and the zip gem 'zip / zipfilesystem' zip: ZipFile.open ('apkfile.apk ') {| Zafile | Zfile.dir.delete ('META-INF')} has reported the following error ERROR :: ANNOTT: Any such file or No directory Now I can only delete every entry in the directory and the directory will be removed after the last file in the directory to be removed. requires zip / zip file system 'Zip :: ZIPFile.Open (' apk file.apk '). Zafile | Zfile.file.delete ("META-INF / foo1.bar") zfile.file.delete ("META-INF / foo2.bar") zfile.file.delete ("META-INF / foo3.bar") end Is it possible to use the FileUtils.rm_rf method in the file code gem in the zip file? must be zip :: zip file.open ('foo .zip ') {| Zfile | Zfile.remove ('bar')}

java ee - glassfish-embedded-maven-plugin - how to deploy resources -

Quick and easy to let users deploy their Java EE6 application through glassfish-embedded-maven-plugin I am providing the method, so they do not need to install and configure standalone glassfish. However, I am having trouble with resource deployment. The app requires a javamail resource from the container, and a JAAS area is needed with an appropriate role-> user / group mapping. While stationing in a standalone glassfish, it is easily one sun-resources. Xml file and / or some are provided with asadmin commands. However, I'm having trouble figuring out how to embed it with glassfish. Is there a way to greet the Glassfish-Maven-plugin in my pom as part of the glassfish-embedded? Documentation is almost impossible for plugin or 2.1 version is badly referenced, and I am constantly growing. It seems that the Maven-embedded-fish fish-plugin is too limited for this use case . Instead, use the embedded Glassfish API, it has completely changed to 3.1, but most web shows...

c# - dynamically Setting picturebox imagelocation at run time? -

यहाँ मैं इस तरह का काल्पनिक स्थान सेट करना चाहता हूं: pic1.ImageLocation = "" ; Pic2.ImageLocation = ""; और इतने पर ... foreach (प्रतिक्रिया में छवि परिणाम परिणाम। छवि। परिणाम) {i ++; पिक्चरबॉक्स थैममेलबॉक्स = नया सिस्टम। विन्डोज.फॉर्म। पिक्चर बॉक्स (); ThumnailBox.Name = "pic" + i.ToString (); //कैसे करना है ?? // thumnailBox.ImageLocation = परिणाम। थंबनेल.यूआरएल; //listView1.Items.Add(thumnailBox.Name); } मुझे लगता है कि आप क्या करना चाहते हैं, आप प्रत्येक छवि को Listview? आपको सभी छवियों को संग्रहित करने के लिए एक कल्पनावादी नियंत्रण जोड़ने की आवश्यकता है, फिर आप संग्रहीत छवि में प्रत्येक सूची दृश्य वस्तु को लिंक करते हैं। // कल्पनाशील और सूची दृश्य नियंत्रण जोड़ें इमेजलिस्ट इंपीलिस्ट = नया इमेजलिस्ट (यह विजन); ListView lst = नया ListView (); Lst.LargeImageList = इम्प्लीस्ट; this.Controls.Add (lst); यह आपको आवश्यक नियंत्रण सेट करता है। फिर अपने लूप में छवि को कल्पनावादी में लोड करें, इसे एक कुंजी दें, और उस आइटम को आप सूची में...

android - ADB Crashing in Eclipse -

This question is related, although there is no answer to that thread, so it is not technically duplicate. I have running ADB 1.0.26, running on my Windows 7 x64 and Eclipse SDK 3.6.2 ADT 10.0.1 SDK tool R10, and I have all Android SDK versions installed . When I connect my phone to the computer in debug mode, and type adb devices in the command prompt, my phone shows it is a motivation 4g adb shell in the device and ls , so I'm assuming that the ADB / driver / phone part of the series is working properly. Now, if I connect my phone and go into eclipse, then I get: [2011-03-28 17:46:33 - Devices Monitor] ADB Connection Error: An existing connection was forcibly closed by remote host [2011-03-28 17:46:34 - Device Monitor] Connection attempt: 1 [2011-03-28 17:46:36 - Device Monitor] Connection attempt: 2 [...] [2011- 03-28 17:47:53 - Device Monitor] Connection attempt: 10 [2011-03-28 17:46:54 - Device Monitor] Connectors Trial of Action: 11 [2011-03-28 ...

javascript - Ajax and VbScript: fetching Post variable in test.asp -

Currently I'm trying to use Ajax for my site ....... Because of data Size is not limited to I need to use the post method to send data, but the problem is that I am unable to fetch post variables in test.asp here is the script I use I am function service (content) {var xmlhttp; If (window.XMLHttpRequest) {// code for IE7 +, Firefox, Chrome, Opera, Safari xmlhttp = New XMLHttpRequest (); } Else {// code for IE6, IE5 xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP"); } Xmlhttp.onreadystatechange = function () {if (xmlhttp.readyState == 4 & xmlhttp.status == 200} {msg = xmlhttp.responseText; Warning (MSG);}} Var para = encodeurIComponent ("content =" Xmlhttp.send (para)} and here is the test.asp code t = Request.form ("content") Response.write (t) Please help solve this problem by bringing the post method variable in test.asp if possible, in an APP classic, with the post method jquery agc You can share the code of those who will be...

how to create popup window with javascript in output link attribute in visualforce page in salesforce -

How to create a popup window with Javascript in the output link in the sales page in the sales page I know VisualForce is not just the epis tag, it's HTML + Apex namespace, so whatever you can use in an html Can use here One way to do this is to use regular and k & lt {someApexProperty!}; / A & gt; The way to do this with Apex tags & lt; Supreme: Command links value = "{! SomeApexProperty}" onclick = "window.open (...); Description is false;" / & Gt; Depending on your comment, you can use the following: Edit: & lt ; One style = "font-weight: bold" href = "javascript: window.open ('/ {! Row.id} / e? RetURL = / apex / {! $ CurrentPage.Name}'); & gt; Edit & Lt; / a & gt; & amp; nbsp; | & nbsp;

wpf - In XAML bind Text to x index of static collection with x being supplied by the y index of another collection? -

I have a steady collection of strings and display one of these strings with a certain index. That index is supplied at the time of running, and the second collection contains an integer value in the second index. I can share in the stable collection, but how do I bind the path of value in the second collection? That is, What do I use as a value for path logic in TextBlock binding? The code here is for use and it is not part of the code, it is compatible with the Visual Studio Designer, and if I get the binding rights, then it will be running on Wednesday without the running designer Will show in: & lt; Window x: Class = "Biding Collection Index. Manvindo" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/ 2006 / xaml "xmlns: local =" clr-namespace: binding collection index "title =" main window "height =" 350 "width =" 525 "& gt; ...

How to extract formatting information of word document using Apache POI? -

I am using Apache POI to remove formatting information from MS Word files I want to remove the information such as the paragraphs have bullet, background color, foreclosure, alignment etc. There are not enough documentation or tutorials available for this. I also do not include very useful information in Javadoc Where can I find tutorials / good documents which can be learned from Apache Poi API Can help me in ?? For HPPF (.doc), maybe the categories you want are: If you want that depends on the right property, it may be on paragraph or character properties. The best example I can think of reading a word document with HWPF and obtaining text, checking styles and formatting are the wordextractors from Apache vaccine: ( .docx is similar to XWPF)

finding multi column duplicates mysql -

How can I get a duplicate record for multi-column? Primary key in the table (auto increment) Easy id a_id b_id ---- ---- ------ 1 34 23 2 34 23 3 35 25 For example, I have the same a_id and b_id ... thanks t.id, t.a_id, t.b_id (a_id, b_id a_id by bbl, b_id count (*)> 1) x, TBT T, where x.a_id = t.a_id and x.b_id = t.b_id order t.a_id, t.b_id This query will show you all duplicates Tuplicate (a_id, b_id) On

java - org.apache.xerces.dom.DeferredDocumentImpl incompatible with org.dom4j.Document -

After text "itemprop =" text "> Im reading some RSS from a URL and facing some difficulties. Initially I had a direct implementation like this: SAXReader reader = new SAXReader (); Document Doctor = Reader Read (new url (s url)); However, if my response was very slow, I did not get permission to terminate this request. So I have changed it to: Public static org.dom4j.Document ReadXml (InputStream) throws SAXException, IOException, ParserConfigurationException {DocumentBuilderFactory DBF = DocumentBuilderFactory.newInstance (); Dbf.setValidating (wrong); Dbf.setIgnoringComments (incorrect); Dbf.setIgnoringElementContentWhitespace (true); Dbf.setNamespaceAware (true); DocumentBuilder DB = Faucet; Db = dbf.newDocumentBuilder (); Return (org.dom4j.Document) is db.parse (); } SAXReader Reader = new SAXReader (); Url myUrl = new URL (s url); URL Connection c = myUrl.openConnection (); C.setConnectTimeout (10000); C.setReadTimeout (10000); Org.dom4j.Document doc...

javascript - Create shortcut to console.log() in Chrome -

Because I'm lazy, I've created a log function that basically only Console.log : function log () {console.log.apply (console, logic); } Every time I call it, I see a log-in item in the Google Chrome Developer Tool, on the right side of which the item was logged. However, this line number is always the same, because the actual console.log is located in a specific location in the call code (i.e. where I declare the log function as above Am)). Whatever I tried is just: var log = console.log; But it always throws an error: Invalid Orientation . Strange, but I think this is not a possibility. How do I create a shortcut for console.log , showing line numbers with developer tools where logs actual console .log Where did the call go instead of being located? When I reported it, it was rejected but the answer was simple - shortcut like this Create: var log = console.log.bind (console); This line does not leave the number, when you do this log ...

JAVA NullpointerException FileInputStream(File file) -

I have a problem that I can not solve myself. I am a big man in Java I do not know the solution to this problem but I think that I know when this problem happens when I get this problem. So, I solved this problem in the stir. But I want another solution because there is another problem in my solution. I have to reduce the process time. string intDir = "C: \\ RNE_IN"; While (true) {file interface directory = new file (intDir); String [] arrayfile = interface directory List (new FBM file filter ()); (String f: arrayfile) {string filename = string.form ("% 1 $ s% 2 $ s% 3 $ s", interior, file separator, f); File file = new file (file name); FileInputStream Stream = Faucet; Println (file.canExecute ()); // true system.out.println (file.canRead ()); // true system.out.println (file.exists ()); // true system.out.println (file.isFile ()); // true system.out.println (file.length ()); // Make the full byte of the file / / I can control the NPE with this thread sle...

vba - Excel Macro : How can I get the timestamp in "yyyy-MM-dd hh:mm:ss" format? -

I am using DateTime.Now in my code macro to show the current timestamp . This timestamp shows in the format "dd-MM-yyyy hh: mm: ss". Instead, how do I get a timestamp in "yyyy-MM-dd hh: mm: ss"? Format? Try it with: format (now (), "yyyy-MM-dd hh : Mm: ss ")

Regarding Java String Constant Pool -

This is related to Java string content pool. In one of my programs, I am decrypting the password for the database and storing it in the string. I have heard that Java strings will be stored continuously in the pool and they will not be restarted VM restart or class loader, which is loaded string quatts. If this is the case then my password will be stored in the string pool. I am very concerned about this issue. Please suggest this, Regards, Sunny. itemprop = "text"> There are many different problems playing here. First, the term "continuous pool" And for numerical writing, class files for a very specific part of the class files or in the JVM is for data structures generated from this part of the class files. The password will not be stored until it is a part of class files. However, some string objects are actually stored and shared throughout the program via string infanture. Any string is automatically interned, as there is any string that you ...

tortoisesvn - Automatically add files to SVN inside a specific folder -

I use Tortoise SN to manage my SVN files All this works very well, but I have to manually add the SVN manually before I commit them. In 99% of cases that really wanted, but now I have a folder in which the logfile should be stored in SVN, but they are very dynamic to add all manually. So what do I need to do is to just compress the folder and all new files are automatically added and then committed. I have seen a solution here, but not with TortoiseSVN. In the TortoiseSVN commit dialog, select the "Show unblocked files" checkbox and then select "All Select / Uncheck "check Now all your inconvenient files have been added. This closest you can come in "Automatic" in TorsoiseSVN. Edit Wait a moment, in fact TortoiseSVN is in. You can add a "start committed hook" that runs svn add * in the desired folder.

android - Cursor adapter and sqlite example -

Hello, I am looking for a sample code in which the cursor adapter is used with the squid? Really Simple Example Here's a very simple but very effective example. Once you have the basics you can turn it off easily. There are two main parts to use with Cursor Adapter with SQLite: From the database select the appropriate cursor . Create a custom cursor adapter that view the data and pairs from Cursor data From you want to represent the data. 1 Create a proper cursor from the database. In your activity: SQLiteOpenHelper sqLiteOpenHelper = new SQLiteOpenHelper (reference, DATABASE_NAME, null, DATABASE_VERSION); SQLiteDatabase sqLiteDatabase = sqLiteOpenHelper.getReadableDatabase (); String query = "SELECT customers ORDER BY company_name ASC"; // not trailing ';' Cursor cursor = sqliteDatabase.rawQuery (query, empty); Client Kaiser Adapter Adapter = New Client Kaiser Adapter (This, R.Ligh Out.clans_writeover_URO, cursor, 0); This.s...

java me - How to sing j2me jar file with full chain of certs? In keystore only one exists -

My company has a singing certificate from Thawte for songs from Windows applications. I would have to sing my JMM jar file with this certificate. I used openssl to convert pkcs12 format using this guide: But I have a problem - I can not add full series of chess only one, intermediate and No crossroot So when I sign, only midlet-certificate-1-1 is the ultimate one midlet-certificate-1-2 and midlet-certificate-1-3 Is it possible to create a series in the story of something? Firstly you need another type of certificate - Sun Java certificate. I do not remember the signaling process at all but there are tutorials on this topic. Just try or read Google's "Mittal Signing Tutorial", for example, this one:

c# - how to disable default selection in dropdownlist in asp.net -

I want to disable default selection in the dropdown list in asp.net and also on the selection of particular data fields Displayed in the txtbox below. The dropdown below should be filled with system related data such as c: drive, d ... etc while dynamically running. You can then add "--select--" to the dropdown list by editing item first. And set the appenddatabounditems to true. In this case you will select the first place instead of the first drive by default ... OK then use this function and call this function on the databed event of the dropdown list. Duplicate Items (Dropdown List DDL) to remove Zero {for (ii = 0; i and call this function in the dropdownlist_databound () event.

c# - Background worker - report progress with string array -

I need to back multiple STRING values ​​in each background in each loop, so I used ReportProgress II parameter as string array Tried to use Example of code: Private zero background worker 1_DoWork (Object Sender, DoWorkEventArgs e) {string [] workerResult = new string [2]; (Int i = 0; i & lt; someNumber; i ++) {// Some heavy calculation workers [0] = [0] = "this string"; Worker [1] = "some other string"; Background Worker 1 Work progress (i, work result) // Also the workers who attempted [] and [2]}} Private Zero background worker 1 progress change (object sender, progress change event ARG E) {string [] results = (string [] ) E.UserState; MessageBox.Show (Results [0]); // line of error. MessageBox.Show (Results [1]); // line of error} It compiles, but at runtime, I try to reach the user's returned string, I get an error: "Not an instance of the object reference object It is set for me. It seems to me that there is something wrong when passin...

sql - Insert values in a table based on another table -

I need to write the stored procedure. I have a table with some data, Need to insert example: Table 1 name class mathematical physics English Alok V60 50 45 Bobby V78 87 86 Chandini VIII 56 56 56 Dolly VII 87 56 66 Based on this condition Enter the value in Table 2 if class = V (Table 2. Physics = Table 1 Select Table (Table 1. Physics) where classes like "Table 2. Maths = 0 and Table 2. English = 0) if Class = VI (Table 2. Maths = Select Yoga) (Table 1. Maths) Table 1 From class where class classes like table 2. Physical = 0 and table 2. English = 0) If class = 6 (table 2) English = Select from the table 1 amount (Table 1. English) where a "Sixth" table like class 2. Physical = 0 and table 2. Maths = 0)] Table 2 class Math Physics English V. 137 0 Sixth 56 0 7 6 6 6 0 / Please help me Select the table 2 class, insert (case WHE n square = 'V' then physics ELSE 0 END), SUM (case when class = 'VI' then Mathematics ELSE 0 END), SU...

javascript - Devise with rails 3 and remote => true -

I have a problem planning with an AJAX login, I : remote = & gt; I am using the true option and the jQuery version of JavaScript assistants (https://github.com/rails/jquery-ujs). When the user enters the correct information, my create.js.erb is translated into session view. That's right, 'because I can redirect my user to this file. But when there is an error, eg The user enters false information, only a flash message is in response to the error code 401 - unauthorized , no view or not to make. Js.erb or sth is sung other. But I want to display this message on this side so that users get some feedback, which is wrong. I played my custom controller with response_to: js , and the warden certification with the : recall method. But it does not work. Does anyone know some best practices to solve this problem? Or should I avoid using this helpful methods and use pure jQuery for Ajax calls? thx 3 "can be used. Just force the event in your form. jQuery (f...

scala - why use foldLeft instead of procedural version? -

Then it has been said that instead of procedural code: def extension ( Exchange: string, substitution: traversable [(string, string)]: string = {var result = XP (old, newer) & lt; You can write the following functional code: def extension (Expand: - Replacement) Results = result. Rale (old S, new) result} String, Replacement: Traversable [(String, String)]: String = {Replacement. Folded Lift (XP) {Case (Results, (Old, New))> & gt; the resulting. (Old S, New)}} I almost certainly will write the first version because the cedars familiar to any procedural or functional styles can easily read and understand, while only the codec is familiar, the functional style can easily read and understand the second version. is. But separating readability for time, is there any such thing that makes a better choice than the mistake procedural version? I thought it would be more efficient, but it has been found that in fact it is just the above procedural code, is it just a s...

oracle10g - How many records does Oracle 10g Express Edition allow? -

ओरेकल 10 जी एक्सप्रेस संस्करण कितने रिकॉर्ड की अनुमति देता है? यह 4 जीबी उपयोगकर्ता डेटा तक स्टोर करेगा। मेरा मानना ​​है कि रिकॉर्ड की संख्या पर कोई सीमा नहीं है। देखें

java - Is it generally considered OK to store a query string in a database? -

If I was taking a query string from the HTTP request requesting a web application, then it was stored directly in the MySQL database , Then use it later to make the original request url again, will it be considered okay? I'm thinking that there are "characters" on special characters or multi-byte characters on the query string, for which I may need to encode some data before storing or archiving data. > Thank you in advance. Edit : The case of my special use will be like the following: Although my main concern is that a particular character on the query string can be the cause of unexpected problems. The user submits a form. During processing, we determine that the user needs to confirm his email. We send an email to the user for confirmation and stored the original query string in the database Because we always want to meet any query string parameters that are on request. After verifying the user's email, we send them back to the original form U...

Sift implementation with OpenCV 2.2 -

Does anyone know the link to example SIFT implementation with OpenCV 2.2? Below is a minimum example: Below is a minimum example: # Include & lt; Opencv / cv.h & gt; #include & lt; Opencv / highgui.h & gt; Int main (int argc, const char * argv []) {const cv :: mat input = cv :: imread ("input.jpg", 0); // Load as CR: sewai: SiftFeatureDetector detector; Std :: vector & lt; CV :: KeyPoint & gt; key points; Detector.detect (input, keypoint); // Add results to the image and save. CV :: Mate Output; CV :: Drawpointpoint (input, keyboard, output); CV :: IMlight ("sift_result.jpg", output); Return 0; } Tested on OpenCV2

caching - Android open file I wrote to cache -

I am trying to read a file that I had already created in the application's cache directory Yes I used the file (Java.io.file) to create a file in the cache directory, I check to see if the file created is present in the file but the second class I need to open that file (a class that does not exist unless the file exists Of the call), I want to use openFileInput (string filename), but does not allow openFileInput file path! This is also not the default in the cache directory, what a puzzle! (To see all different exceptions, using the debugger will throw open file input, it either does not file or invalid arguments when the name of the path is inputted) Let me tell this file Need another way to get When I was reading and writing for storage, everything used to work, but I needed to use the cache. I want to use openFileInput (string filename), but openFileInput file path Does not give! Of course. This is also the default cache directory Not so. I would like...

Can a Entity Framework Trackable collection be bound to an ASP.Net Gridview? -

I have found a GridView on an asp.net page. I want to set gridview datasource in the trackable collection of unit framework objects. However, the code should look like this: this.gvMyGridView.DataSource = entity.MyDetailedItems; This.gvMyGridView.DataBind (); But it does not display any data. I am using tracking entities myself and MyDetailedItems is the navigation property of rows from another table. EF4 with If you want to use them, you should explicitly load navigation properties Will happen. Either: // Related units use the loading entity with var entity = context.Entities.Include ("MyDetailedItems"). Single (...); or // Load related entities for pre-loaded entry context. LoadProperty (unit, "MyDetailedItems");

php - best way to pass input through ajax -

As I want to send some sensitive information such as 'User ID' through AJAX, which is the most Well, right now I'm just linking to the html tag's ID and then sharing it and using it. Please suggest a better way. I hope that there should be one for it identification value (such as user_id ) Is not the best way to move them all at all. If you can, then I take the current user_id from one session , thus it is not possible to change a user "user_id" so that someone else has to adopt. However, if this option is not fit in your application, you can always hashish user_id on the server side, such as: md5 ($ user_id. "Randomsalthere "); Then when you check the request, see: $ _ POST ['secret_hash'] == MD5 ($ _ POST ['user_id '],' Randomaltere '); link:

mongodb - Rearchitecture ASP.NET app by replacing SQL Server with NoSQL -

There is an ASP.NET app with our SSP server; This is a photo & amp; Video sharing site photo and video details are stored in tables & amp; Files are in the file system. The database has 75 tables and 225 stored processes, the app will be ready for production deployment within next 6 months. Due to the concern of the long-term increase, we decided to switch to the NoCQL ( MongoDB ) database. Is it better to deploy the app with SQL Server backend and then migrate to the NoCQB? Or re-write / re-architecture and database, tables, procedures and data layer This How difficult would it be to become architectural / recursive MongoDB? Any device or BKM? Edit: Our app is Youtube + Flickr type site where users will share photos and videos with many comments, tags and ratings (photos \ Videos and comments). Is NOSQL to Move Better Database? The reason for moving forward: Cost + read speed of the query Please give me valuable advice with you. Thank you ver...

ruby on rails - multiple values for each dynamic field per record in sunspot /solr -

I am using dynamic_string in my product model which is in the index of the weight of the dynamic field created by the user. It works very well and shows me the following in my view that the following is shown to narrow the results to the user: color ---------- red green Blue color etc ... The problem is that some of them have 2 or more options for the product i.e. color = & gt; Blue, red When I try to add it to a hash in color, it only runs on the first ride, only give me one value for each field. Is there a way to have multiple values ​​per dynamic field per product? If so, please tell me how can this be achieved? Hope this makes sense. When Sun comes with Sol, looking at the solar, I see the following announcements: / P> & lt ;! *** *** This is used by Dynamicfield Sanspot! *** - & gt; & Lt; DynamicField name = "* _ ds" stored = "true" type = "date" multi-functional = "wrong" indexed = "true" /...

null - NullReferenceException in F# -

After When I move through the following code on the second line, the report is empty. . (TaggedResportReportUIVO option) = Report to go = Option.get (taggedResearchReport) if not (report.Equals, the third line is a NullReferenceException member generates this.setTaggedResearchReportList (Tap)) then // some stuff here? Why is it so, and what can I do to avoid it? ! Thanks Added later: Here's the call that is this.setTaggedResearchReportList : getMostRecentTaggedResearchReportForSecurityId (item .id) (New fight & lt; _ & gt; (this.setTaggedResearchReportList 0)) Here is the getMostRecentTaggedResearchReportForSecurityId method: getMostRecentTaggedResearchReportForSecurityId go (securityId: integer) (callbackUI: action Your TaggedResearchReportUIVO type explicitly F #, And does not allow null as a fair value. Therefore, the compiler will prevent you from using the literal null in the form of that type of value; However, some other code ...

java - Adding a Generic allows you to override a method with a different return type? -

I went to it today and the only thing I can think of is that it is a bug in the Java compiler, The code is compiled, but definitely seems to be incorrect (since the test method has a different signature in the child but the parent is overridden) and the class cast throws exception at runtime. Public Interface Test Interface & lt; T & gt; {Public listing & lt; String & gt; How to check (); // & lt; - List & lt; String & gt; } Applies the public class testclass test interface {@ Override Public List & lt; Integer & gt; TestMethod () {// & lt; - List & lt; Integer & gt; Overriding list & lt; String & gt; !! Return collection Singleton List (1); }} and using the above structure: Public Zero Test () {Test Interface & lt; Boolean & gt; Test = new test class (); & Lt; String & gt; Wire = test.testMethod (); For (string s: strings) {System.out.println (s); }} It's all right, but obviously, if you run it...

c - Using Python object exported from DLL in an exe -

I have a two-part event generator: pyglobalexe (to simulate events A stub for) : #pragma comment (lib, "pyglobalextension.lib") #include & lt; Python.h & gt; __declspec (dllimport) PyObject * PyInit_pyglobalextension; __declspec (dllimport) PyObject * event_queue; Int main () {int i; {PyObject_CallMethod (event_queue, "put", "O", PyLong_FromLong (i * 2)) for (i = 0; i & lt; 10; i ++); } Return 0; } pyglobalextension #include & lt; Python.h & gt; __declspec (dllexport) PyObject * event_queue = NULL; Fixed PyObject * set_queue (PyObject * self, PyObject * args) {PyObject * temp; If (PyArg_ParseTuple (args, "o", and temporary)) {return tap; } Py_XINCREF (temporary); Py_XDECREF (event_queue); Event_queue = temp; Py_INCREF (Py_None); Back Py_None; } Stable PyMethodDef PyGlobalExtensionMethods [] = {{"set_queue", set_queue, METH_VARARGS, "set a queue global"}, {NULL, NULL, 0, NULL}}; Static Stru...

c++ - typedef std::runtime_error MyError vs class MyError : public std::runtime_error -

I am currently implementing some custom exceptions to a project and for my exceptions to be typed or a new exception Are interested in prospective pros and cons of each category and if one is better? Professionals are easy to find their own class: You can call it hold Can be transmitted in the handler. If you decide not to apply your own class, then I still doubt that you need this typeface: What are you thinking? You can also use plain std :: runtime_error . In addition, you may be interested in articles about exception handling and applying your own exception class.

PHP: Taking Array (CSV) And Intelligently Returning Information -

Hey everyone I'm the first time poster, but I've browsed this site many times I have a coding issue I'm not sure how to solve it really. First of all I want to explain what I have to do, and what information I have, and I hope someone can defeat me in the right direction by nudge. I have a spreadsheet (CSV), the following information: Name of the zone, ZIP code, city name A zone should have several such cities, which fall under it, and each city has several zip codes that fall under it. For example: Zone H, 92603, Irwin Zone H, 9 00604, Irwin Zone J, 92625, Corona etc. OK, now that the way out, what I have to do with this information here. I need to be able to input city name and I want to get that city Along with all the zip codes coming under, the city will also have to return. For example, if I input Chatsworth, then I should give it to me x) and (12345, 12346, 12347) as zip code (just one example). I'm not sure that this is the best way to go abo...

java - Communicating between two web pages -

How can I communicate between two webpages from different domains on the same or different browsers? I just want to pass the data between the two pages. Scenarios are two fixed pages and they need to talk between each other without server or post requests. & lt; Form method = 'post' & gt; sending to second page: P> Reading: Ajax, Curl .

apache - php://input returning empty string -

The following code has just started returning the empty string. It works on other systems, so this is not a problem with code as well. I've really wiped out all the server side code, and it still did the same thing, I did not take any advantage to use file_gate_contents, only shooting in the dark. $ fileStream = fopen ('php: // input', 'rb'); $ FileData = ''; While ($ Buffer = Fred ($ filestream, 4096)) {$ fileData. = $ Buffer; } Server: Zend server 5.1.0 (Apache 2.2.3) Language: PHP 5.3 .5 Front End: Plupload (JavaScript Plugin) php: // input can not be opened / read when receiving a multipart / form-data POST, client-side what happened? a???? Wrikken on March 28 at 20:01 Thank you for your help!

oracle10g - oracle not a group by expression -

मेरे पास 3 कॉलम के साथ एक टेबल है। ऑर्डर श्रेणी एनएवी_PER_SHARE Number_OUTSTING_SHARES अब: SELECT ORDER_CATEGORY, SUM (OUTSTANDING_SHARES) ग्रुप द्वारा ORDER_CATEGORY, यह ठीक चलाता है लेकिन: SELECT ORDER_CATEGORY, NAV_PER_SHARE * SUM (OUTSTANDING_SHARES) ग्रुप द्वारा ORDER_CATEGORY , यह कहते हैं: अभिव्यक्ति द्वारा कोई समूह नहीं। मुझे क्या याद आ रहा है? आप समूह नहीं हैं क्योंकि NAV_PER_SHARE प्रति परिणाम दिया गया है क्या आपका मतलब SUM (NAV_PER_SHARE * OUTSTANDING_SHARES) ?

javascript - jquery - validation plugin -

I am creating a simple validation plugin, if the input returns false if it is incorrect, the problem is that this plugin only One time works on an input. I want to work with all inputs at the same time. code $ .fn.validate = function (options) {var defaults = {required: true, minerair: 0, MaxChar: 0}, o = $ Extension ({}, default, option); This.each (function () {var $ this = $ (this); var val = $ this.val (); if (O.quared == true & amp; val == '') {return false;} and If (ommoder & gt; 0 & amp; amp; amp; val.length & lt; o.minChar) {return false;} and if (o maxcar> gt; 0 & amp; val.length & gt; Okscar) {return false;} and {return true;}}); } ($ ('.name_inline_error').) (Validate '$' ('$ name') ()). call is required '); False to return; // Wrong return to stop Ajax form;} If (! $ ('$ Email'). Validate ()) {$ ('. Email_inline_error') Text ('Need Email'); False to return; // wrong return to...