Posts

Showing posts from April, 2014

cocoa touch - iPhone photo exposure compensation -

Is there an API on which to control the exposure of the photo before it actually An iPhone? There is no "official" way to control which you can directly control exposure compensation. But you can get different exposure images by selecting different exposure points. There is an API to set the metering point You can control the compensation directly without using the document API. For more information about undocumented APIs:

parsing - Stanford Parser: how to extract dependencies? -

My job may be to find a query in a sentence (maybe noun + verb ), Then remove the object. Example: "Coding is sometimes difficult task." My query will be: "coding is" . You get the typed dependencies: nsubj (task-6, coding -1) police (task-6, two-two) advmod (task-6 , Sometimes -3) My program should remove the NSUbase Dependency, identify "coding" as as a query and "work" To save it It may seem easy, but by now, I have not found any method to remove the dependence of a specific type, and I want to end my work. A really need it. Any You can get dependency by the following code: tree tree = sentence.seat (tree annotation.class); // Obtain Dependency Tree TreeBangLanguageTLP = New PennTreebankLanguagePack (); Grammatical structure Edit GSF = TLP. GrammaticalStructureFactory (); Grammatical Structure GS = GSF Negmatic structure (tree); Collections & lt; TypedDependency & gt; Td = gs.typedDependenciesCollaps...

javascript - Facebook like box load event jquery -

मेरे पास ऐसा कोड है। $ (document) .ready (function () {Var उच्चतम = गणित.मैक्स ($ ('# मुख्य')। बच्चों ()। ऊँचाई (), $ ('# मुख्य')। बच्चों ()। ऊँचाई ()); $ ('# मुख्य')। ()। हाइट (सर्वोच्च कोल);}); लेकिन जब यह मेरे पास कुछ कॉलम में बॉक्स जैसा है तो यह काम नहीं करता है। ऐसा लगता है कि फेसबुक की तरह बॉक्स बुलाए जाने से पहले इसे बुलाया जाता है। इस समस्या को ठीक कैसे करें? असल में मुझे फेसबुक लोड के बाद इस प्रक्रिया को कॉल करना होगा बॉक्स और अनुशंसाएं ब्लॉक (दोनों) की तरह। / P> मुझे लगता है कि आप फिक्स-ऊँचाई कंटेनर में बस-बटन डाल सकते हैं। उदाहरण के लिए: & lt; div शैली = "ऊंचाई: 62px;" & gt; & Lt; fb: जैसे-बॉक्स href = "http://www.facebook.com/platform" width = "292" show_faces = "false" स्ट्रीम = "गलत" हैडर = "गलत" & gt; & lt; / fb: जैसे -Box & gt; & Lt; / div & gt; तब आप उस बारे में चिंतित नहीं होंगे कि यह कितनी ऊँचाई होगी। एक और संभावित समाधान ...

android - How can you tell which item is clicked on ListView? -

I have a bunch of items on my list view, but I do not know how the listener applied to a particular item Go. Even if I try to use the statement and still do not work I tried this code: list.setOnItemClickListener (New OnItemClickListener () {public void onItemClick adapter view But this code applies to all items. Please help me with this, I really appreciate it very much. thank you in advanced! simply put setListAdapter (New ArrayAdapter (this, android.R.layout.simple_list_item_1, string [] To display as a list)); Then you can know which item has been clicked .....

xamarin.ios - Monotouch and Xcode 4 - How to Open XIB in Xcode 3 -

I have just installed Xcode 4 and found that I can not edit XIBs yet from Monochoch. How do I get Monochouch to open my XIBs with the old interface builder? When I right click I get "Open with" but the old UI builder is not an option. You have to install Xcode3 anywhere, I personally / Xcode3 .

Are new open-source plugins for Eclipse available for MyEclipse out-of-the-box? -

I could not find clear information about this: if a new eclipse plugin develops, then it is supported by MyEclipse ? Or should I wait until Genuitec is releasing a new version of MyEclipse, which can also support this new plugin? I want to understand that adding my existing plug-ins to myEclipse couple, so that I'm not open for the development of the new plugin like I would have been using regular eclipse. My dilemma is with MyEclipse Blue 8.6, Eclipse 3.6 and finally 7.5 RAID. I'm only considering MyEclipse Blue because I want to embed WebSpace 7.0. Otherwise I would definitely go with regular eclipse. It is similar that I believe 7.5 Red will behave like a regular eclipse (3.4 though) in relation to the new Eclipse Plugins (i.e. they will be available directly). I hope this is clear. Thanks in any case, Daniel MyEclipse is a custom delivery of ELPS, such as RAD. A third party's eclipse plugin can not work with distribution based on the description of the pl...

php - How to search whole solr index? -

I import the data from the database directly into the SLOR index. Now I want to search using it. Now I want to find it: $ offset = 0; $ Range = 10; $ Queries = array ('details: server'); $ Response = $ solr- & gt; Search ($ query, $ offset, $ range); For now I can only search when specifying fields, e.g. Details . Is there a way to find all the areas at one time? If you leave the details: , will it be all the fields Does not find indexed? Otherwise, you can always add several fields in a query like this: Description: Server or Field 2: Server or Field 3: Server Edit: Regarding the default field to search, specify a "dummy" field that will be populated with multiple values: & lt; Field Name = "Text" type = "text" indexed = "true" stored = "false" multidimensional = "true" /> Then there are copyfielded entries for all fields that will be searched : & copy; CopyField source =...

ViM: how to put string from input dialog in a list -

VIM: Do anyone know how to insert the string from the input dialog in the list? P: string "3,5,12,15" list item [1] = 3 list item [ 2] = 5 list item [3] = 12 etc. And how do I know how many list items are there? to : h E714 : Let L = len (list) "Number of items in the list: list = split (" ABC ")" list item in string " In your case, / P> two string = "3,5,7,19" given list = partition (string, ",") echo (list)

windows - How can I do GUI programming in C? -

Image
I want to do graphics programming in C. I searched a lot about the compiler which provides a rich set of functions to do GUI programming in C, but I could not find anything. Actually I want to draw the button and then accept the user's choice and take the appropriate action. It would be useful if you can suggest a compiler or a library that I can add to my compiler. I'm working on the Windows operating system. Currently, I am using the Turbo C compiler which does not support direct methods for creating buttons. Any help would be appreciated. To do this nothing is is guaranteed to compiler with all compilers They compile such code that they are given. You are looking for a GUI library, which you want to be able to write a code against using any compiler. Of course, it is being said, the first order of your business should be for the sake of Turbo C. That compiler is about 20 years old and continues to use it, it is not doing any favor to you. You can not write ...

php - Accessing json array by string? (Converting string to var. name) -

I am posting with lang_id var jquery for get lang.php for get lang array (json). But I can not access success data I'm trying; var r = $ (this) .attr ('rel'); Var v = data.r; But I can not reach because "r" is the string :( I try; data window [r] // etc. ... but the result my "get_lang.php"; $ Lang_id = (int) ( $ (_POST ['lang_id']); if ($ lang_id == 1) {$ lang ['simple'] = 'aaa'; $ lang ['array'] = 'bbb';} ($ lang_id == 2 ) {$ Lang ['simple'] = 'ccc'; $ lang ['array'] = 'ddd';} print json_encode ($ lang); My JS ; $. Post ("get_lang.php", {"lang_id": 2}, function (data) {$ ('. Lang'). ) {Var r = $ (this) .attr ('rel'); var v = data.r; $ (this) .text (v);});}, "json"); Thanks for the pain. Try Dot notation defines R as the string and not the variable.

ruby - Is validation possible in Mongo DB on a batch insert? -

I am using a batch insert on a table where there is an array of batch hashes: @state = State.new @ state.collection.insert batch Is I bypassing Activerecord by doing this like this? When I try to verify a record, nothing happens. validates_format_of: population, with = with> / \ D + / I am trying to also callback for data formatting. before_validation: gener_population nothing happens. My guess is yes in the Grails driver when you use the archive, so it happens. When you do this except for the normal GORM. It seems like there will be one thing in the train. A work will be repeated around the batch and a valid function present in the train will be present. In grails you want: new state (this). Valid (); This possibility in Ruby is something like the batch state New (this). Valid} So the question is, if someone is not valid then what should you do?

sql - Doing a SQLite MATCH using only negated terms -

मैंने हाल ही में पाया है कि यह SQLite में असंभव है: SELECT * से फल WHERE फल MATCH '-pleple' फिर भी यह संभव है: SELECT * से फल WHERE फल MATCH 'pear -apple' मैंने इसे उसी परिणाम के साथ FTS3 और FTS4 का उपयोग करने की कोशिश की मैच में कम से कम एक गैर-नकार शब्द की आवश्यकता क्यों है? और मैं इस सीमा के आसपास कैसे काम करूं? मुझे उन सभी फ़लों को वापस करने की ज़रूरत है जो "सेब" से मेल नहीं खाते हैं ... ये है। किसी भी विचार? ऐसा कुछ काम करेगा: SELECT * फल से जहां फल नहीं है। नहीं (फल का चयन करें जहां फल से फल 'सेब')

Load XML file into PHP from a link -

I have a list of links to XML files on a site on my site: file 1 xml File2.xml File3.xml etc ... And to display parsed XML in the formatting of my choice I have a separate partition. Parsing PHP I want to load the contents of the file into a PHP file to parse by clicking the link of the personal file. Is there any way to do this? You can use $ _GET to load each file individually. mysite.com/index.php?file=file1.xml Then use any kind of parser where the file you will parse is the one that is in the variable .

php - How to get ID3 tag info from Dropbox files? -

Using the PHP API is an easy and effective way to gather ID3 tag information from music files in my Dropbox folder ? I am able to loop through files and drag information using GetFile API method and id3_get_tag php function, but it is very slow because you increase the number of music files Is the ID file an effective way to capture music files from a large directory? > You can view the library, which you must do after using pure PHP. If this ID is more than 3_get_tag, I know now.

ruby on rails - named scope syntax -

मेरे पास निम्न मॉडल ऑब्जेक्ट है: Issue.owner = [array] मैं एक गुंजाइश बनाने की कोशिश कर रहा हूं, जहां एक विशिष्ट पूर्णांक के लिए दायरे को खोजता है, जैसे कि: गुंजाइश: टैग_इन_स्यू, जहां ("issues.owner.include? (1 ) ", सच है) मैं गलत कहां गया? आप इस तरह से विधि जोड़ सकते हैं: वर्ग अंक & lt; एआर :: बेस डीएफ़ टैग_इन_आईसेयू? (एन) मालिक.अंडे? (एन) एंड एंड @ मुद्दा। टैगेड_आईएन_आईसीयूई (1) # = & gt; सच @ मुद्दा। Tugged_in_issue (2) # = & gt; गलत UPD जहां तक ​​आपको गुंजाइश की आवश्यकता है, मेरा दृष्टिकोण आपको कुछ नहीं चाहिए तो आप इसे इस तरह से कर सकते हैं (रूबी रास्ता) वर्ग अंक & lt; एआर :: बेस डीएफ़ self.tagged_in_issue (n) all.select {| a | A.owner.include? (N)} अंत अंत Issue.tagged_in_issue (1) # = & gt; मुद्दों के सरणी यदि आप इसे एसक्यूएल के माध्यम से करना चाहते हैं, तो आपको यह बताना चाहिए कि स्वामी विशेषता क्या है और यह किस स्थान पर संग्रहीत है

objective c - Can I change the position of the Google logo in an MKMapView? -

Image
I'm creating an app that has MKMapView. I have a translucent UIToolbar at the top of the MKMapView. The problem is that the Google logo Below it is what is the Google logo one way to show up (in the Y direction, not Z) instead of UIToolbar? Yes, you can do it and even get approval from apples. Check out here: and here:

javascript - drop down list validation -

I have three drop down lists in my form so that day can be selected. And their respective available time if someone chooses the day of the morning and the morning of the day, then the drop down list should be disabled in the morning slot at two o'clock in the morning. The HTML code is: Day 1: & lt; Select ID = "Day 1" Title = "- Select Day -" name = "wd1" id = "wd1" tabindex = "14" & gt; & Lt; Option selected & gt; -select- & lt; / Options & gt; & Lt; Option value = "1" & gt; Sunday & lt; / Options & gt; & Lt; Option value = "2" & gt; Monday & lt; / Options & gt; & Lt; Option value = "3" & gt; Tuesday & lt; / Options & gt; & Lt; Option value = "4" & gt; Wednesday & lt; / Options & gt; & Lt; Option value = "5" & gt; Thursday & lt; / Options & gt; & Lt; Option value = ...

Linux per program firewall similar to windows and mac counterparts -

Is it possible to create a GUI firewall that acts as a Windows and Mac counterpart? Per program basis Popup Notification Window When want to send \ recv data to specific program network If not, why? Does such a Linux kernel not allow the existence of such programs? If so, why is not such a program? This is a programming question, not a user. To answer your third point there are programs that give zuber popup, it is a leopard flower Is called:

erlang - lists:append with list comprehensions -

How do I define lists: list work with an understanding of the list? I want something 1> Attached ([[1, 2, 3], [A, B], [4, 5, 6]]). [1,2,3, A, B, 4,5,6] Remember that you can use the elements in the generator after a generator in the same list! 1> Lists = [[1, 2, 3], [A, B], [4, 5, 6]]. [[1,2,3], [A, B], [4,5,6] 2 & gt; [N || || L & LT; - List, N & LT; - L]. [1,2,3, A, B, 4,5,6]

What is the shortest way to convert string characters into an array of characters in Perl? -

If I have "abcd" string, then what is the shortest way to convert to @rq qw (abcd) ? my @arr = split //, "abcd"; My @arr = "abcd" = ~ /./sg; My @arr = Unpack '(A) *', 'ABCD';

String to list in Python -

Hi, I am very new to programming and I'm trying to split a string: ['QH', 'QD', 'Jesse', '' QH QDJC, KDJ '' KD ',' js'] I have tried to divide but it did not seem to work. How would I go about doing this? Thanks & gt; & Gt; & Gt; 'QH QD jc kd js' split () ['qh', 'qd', 'jc', 'kd', 'js'] : Return a list of words in the string using the sep as the delimiter string. If maxsplit is given, the maximum maximum split is partitioned (thus, the list will have a maximum of maxsplit + 1 element). If maxsplit is not specified, there is no limit on the number of partitions (all possible partitions are created). If given sep , the constant delimiters are not grouped together and are considered to be delimited empty strings (for example, ' 1, 2'split (',') return ['1', '', 2 '] ). Argument can have multiple ch...

c++ - XCode 4 only displaying cout statements with endl -

I have a very strange one with direct statement, for example, if I write, then cout & lt; & Lt; "This Works" & lt; & Lt; Endl; Cout & lt; & Lt; "This is not"; Cout & lt; & Lt; Memory size limit & lt; & Lt; "Block of available memory." & Lt; & Lt; Endl; I see all three output statements in my debugger console. However, if I change the order, cout & lt; & Lt; Memory size limit & lt; & Lt; "Block of available memory." & Lt; & Lt; Endl; Cout & lt; & Lt; "This Works" & lt; & Lt; Endl; Cout & lt; & Lt; "This is not"; I only look at the first two cutouts. Even strangers, if I change the code, cout & lt; & Lt; Memory size limit & lt; & Lt; "Block of available memory." & Lt; & Lt; Endl; Cout & lt; & Lt; "This Works" & lt; & Lt; Endl; Cout & lt; & Lt; ...

python - Update Two Related Files On Disk In a "Secure" Way? -

I have two binary files that are related to one another (i.e., when a file's update is updated The second file is recorded to match the match should also be updated). Both files are binary files stored on disk. UpdateFirstFile () - The first file has been updated ... .. The update will appear something like this: UpdateFirstFile () - The first file has been updated ... .. UpdateSecondFile () - The second file has been updated ... What methods should I use to ensure that both files are updated or from files Have not got any updates? Both files are flat files (size 20 [MB] each). I know that a database would have solved this problem, however I'm using one due to overhead reasons (more than 20 [MB] in each table needs to be stored, and I'm less on space And 1000s of such files .. ..). Any thoughts? Any kind of rollback journal should be implemented with the general viewpoint. For example, you can use a different file to record the current content ...

html - When hover change text issue -

I am trying to create it so that when you hover your mouse over the "box", however, the checkmark / errormark And after that follow or unfollow a line breaks. Why? HTML: & lt; A class = "FPP" href = "demo.html" & gt; & Lt; Span class = "addfri2" & gt; & Lt; Span class = "fr1" & gt; & Lt; Font color = "# 33FF00" & gt; & Amp; # X2713; & Lt; / Font & gt; Following & lt; / Span & gt; & Lt; Span class = "fr2" & gt; & Lt; Font color = "# FF 20000" & gt; & Amp; # X2717 & lt; / Font & gt; Unfollow & lt; / Span & gt; & Lt; / Span & gt; & Lt; / A & gt; CSS: .addfriend2 {boundary-radius: 15px; Background: # 517eca; Padding: 8px; Margin-left: 30px; Text align: center; Font-size: 14px; } A.afp {text-decoration: none; Color: # 000000; } A.afp: Visited {text-decoration: none; Color: # 000000; } A.afp: Act...

xcode4 - How do you sort the source tree in project navigator in Xcode 4? -

In Xcode 3, it was relatively easy to sort the source tree by name (see answer for more details). However, I have not figured out how to sort files and groups in Xcode 4 without dragging them manually. There is no way for Project Navigator in addition to drag and drop, possibly because it will be very easy to wipe out your careful organization.

r - Plot correlation matrix into a graph -

Image
I have a matrix with some correlation values. I now want to plot in that graphic which is more like this or Looks less: Library (Latis) # Horizontal and vertical axis information please take- c (div class = "post-text" itemprop = "text"> "214", "215", "216", "224", "211", "212", "213", "223", "226", "225") & lt; - Paste ("DM1- ", Hor, sep =" ") # counterfeit co Relation matrix narokol & lt; (I 1: nrowcol) for core [i] - length (var) core & lt; - matrix (runif (nrowcol * nrowcol, min = 0.4), nrow = nrowcol, ncol = nrowcol (Color, "blue", "yellow"), space = "RGB"), levelplates (core, main = "dimnames = list (hor, ver)), I] = 1 # plot rgb. Stage 12-14 array correlation matrix ") Xlab =" ", ylab =" ", col.regions = rgb.palette (120), cut = 100, at = seq (0,1,0.01)) ...

java - background thread in Swing -

I'm getting hurt, the simple use of the swing worker I've added some simple code to doInBackground (), but it does not execute Done, I did not get an exception. When I use a debugger, it should work. )) Maybe somebody did something like this, or tell me how to cache this mistake, or ... Sorry, the code is complex. Tell me if you need some more or comment if I "installer" I remove setFPS (fpsCalculatorGhost.getFPS ()); " - String, everything will be fine. java.awt.EventQueue.invokeLater (new runnab () {public zero run (new key window). Set isob (true);}}); Public manwindows () {initComponents (); } Private Zero initComponents () {InterfaceUpdateWorker interfaceUpdate = new InterfaceUpdateWorker (New Interface InfoInstallerImpl ()); InterfaceUpdate.setCamera (gleventListenerImpl.getCameraGhost ()); InterfaceUpdate.setfPSCalculatorGhost (gleventListenerImpl.getFPSCalculatorGhost ()); InterfaceUpdate.execute (); } @ Override Protected Voice Doinebackground () ...

c - Scaning Multiple inputs from one line using scanf -

I am trying to scan in a string and trying to store it in a straight one. I am not sure whether I am storing it wrong or I am printing it wrongly. I'm sure that since using the scanf for for loops I have not ever done that I do not like to overwrite stuff to mention C . So I was not sure how to contact this approach. It is something I keep together, but when I print it, I get a junk number. I probably wanted to use pointers but my professor would not let us use it. That is why I am having trouble. Edit #include & lt; Stdio.h & gt; #include & lt; String.h & gt; # Include & lt; Stdlib.h & gt; # Defined Maximum 3 # Defined MAXTRIP Stretch 6 {Float Cost; Float time; }; Straight trip {char Dest_letter} Int stop_num; Straight stop leg [max]; }; Int main (zero) {int trip_num, index, i; Architectural travel trip [MaxTrip]; Printf ("Enter the number of visits:"); Scanf ("% d", and trip_num); Printf ("Please enter the destinat...

Bash script exiting prematurely when calling another script inside it -

itemprop = "text"> I type a bash script that tells another party script: #! / Bin / Bash Echo "Hi" ./script-two.sh "Hello!" The problem I have is that this ever "Hello!" I think the reason for this is ./script-two.sh (which I have not written) is changing any way out or shell. I have included this script at the end of this post. Is there a way I can gurentee that my execution will continue after implementing script-two.sh? I have seen in using the net command, but I do not consider it completely useable. Thanks, How to The script of the content here- Two.sh #! / Bin / sh # This file is a part of the DITA Open Toolkit Project hosted on #SourceFor.org. # See the accompany license.txt file for the applicable license. # (C) Copyright IBM Corp. 2006 All Rights Reserved. Export DITA_HOME = cwd if "[$ {DITA_HOME: +1}"! = "1"]; Then the echo "DITA_HOME environment variable is empty or not set"; Qu...

Should I make a social networking site purely Silverlight or use ASP.NET MVC? -

I know that Silverlight needs to download plug-ins, and some enterprises do not allow it on their computer and It is not supported on mobile devices, iPad, etc. Let's say that there are not important problems for me. Besides, what might be the idea for me by creating a Silverlight on my social networking site, creating some Silverlight \ ASP.NET MVC Hybrid or just pure ASP.NET MVC? Also, would any significant performance hit be due to high user traffic to the site implemented in ASP.NET vs MVC vs. Pure Silverlight? I know that there are a lot of posts on this site that are serializing the serials with ASP.NET MVC, but I did not find anything that would give me a definitive answer to this question. Thank you very much earlier. Unless I like Silverlight as a technology, if you do a social networking site So I think that you need a goal to make the most listeners possible. By selecting Silverlight, you are restricting your users to Windows and Macode users, who do not hav...

c++ - Getting error: no match for operator <<, when using operator ++ concurrently -

I am trying to overload several operators for a class assignment and give them the & lt; & Lt; And ++ operators work together. Below I am a sample of the code I am settling. I know if you have any ideas. Normal template decaring template (square t) square vector {public: class VectIter {friend class vector; Private: Vector & lt; T & gt; * V; // Type T indicates a vector object of index index; // represents the subscript number of the // array of vector public: vector (vector & lt; t & gt; & amp; x); T operator ++ (); T operator ++ (int); T operator - (); T operator - (int); T operator * (); Dost Ostream & amp; Operator & lt; & Lt; (Ostream & ou, const, vectIter & rhs) {outside & lt; & Lt; (* Rhs) & lt; & Lt; Endl; Return; }}; Vector (int sz); ~ Vector (); T & amp; Operator [] (int i); Zero ascending_sort (); Private: T * array; // t indicates the first element of an array of integer shapes; Zero swap (T & ...

GData, OAuth and iPhone - Maintaining security when dealing with Access Tokens -

I want to get an OAuth access token client-side (iPhone) and send my token back to my server Request gdata from user; Actually I have a question, is it safe? Can someone smell a connection and use it tokens and make it worthless? Google allows you to authenticate 'unregistered' applications in the form of 'anonymous' as a consumer key and in 'HMAC-SHA1' signature. Mode, which I am doing, then I am passing an acquired access token server-side to manipulate my data. It works which is great, but I have security concerns about the solution. Thanks for your comments! Is your server safe? Are you issuing a request using https? Apart from this, what question is being registered to get the real consumer key / secrets? An access token for the consumption key / secret is only good, which generates it. If you are registered, it will add another level of security (that your Consumer Key / Incognito will be known to you only), but I always suggest that communica...

javascript - How to determine if tooltip is cut off from the top of a page -

I have a tooltip that opens with javascript on mouseover. How can I determine from the following values ​​that this tooltip is cutting from the top edge of the screen (in this case it is): Top margin: 72.5 Internal height: 607 offsettop: 75 Offset Hight: 26 And here are values ​​from a tooltip that is not cut, and fits perfectly in the window: Top margin: 53.5 Internal height: 607 offsettop: 20 9 Offset Hight: 222 I have to find out that the tip cut off And then want to apply the change in margins to push it down to fit on the screen. if (left + width> viewport wide || top + height> view port heading) { // viewport off}

vb.net - DataGridView.CurrentCellDirtyStateChanged throws InvalidProgramException when calling a method -

I have DataGridView that is bound to a DataTable I was using AutoGenerateColumns = true but I changed it to false Given so that I can manage the columns automatically and then I started receiving an InvalidProgramException in the Event Handler for DataGridView.CurrentCellDirtyStateChanged. When this event handler is another method called callfilter (), it throws an exception. This method does not enter when I move through the code, the exception occurs when the method is called. CheckFilter () is a private subsystem with no parameters. The exception message "Common Language Runtime Detected an Unrecognized Program" is that I am using vb.net on Visual Studio 2008 on .NET 2.0 and Windows 7. It has been found that the exception method did not come by calling, but for each loop of the method I have not specified the type of loop variable for loops of each loop ending through a collection of Datarovs, so I created the loop variable a Data Grid Roller and then the exceptio...

Does gwt has any shuttle component -

I'm looking for a shuttle component for my living app that has two adjacent boxes and you can choose from left to right Shut down the entries on the right box. If I understand correctly, then you want list-box A and B, and one button. When the click is done, then adds the selected element of A to B. The API GWT has not created this in the widget, but you should be able to easily build one by using what I have said: two list-boxes and one button :) If you are looking for some searcher, you want to see widgets, and especially.

mysql - i just loading the text file into table ...... then i got error like this -

त्रुटि एसक्यूएल क्वेरी: LOAD DATA LOCAL INFILE '/ home / माइस् SQL ने कहा: दस्तावेज़ीकरण 2 - फाइल '/ होम / शर्म' / शॉर्टकट / डेस्कटॉप / न्यूटस्टेस 'द्वारा निर्धारित समयबद्ध क्षेत्रों में', 'द्वारा निर्धारित समयबद्धता', \ n ' /Desktop/New.txt 'नहीं मिला (त्रुटि कोड: 2) यह जांचें कि फ़ाइल मौजूद है और आप और amp; Mysql सर्वर उपयोगकर्ता को इसे पढ़ने की अनुमति है।

awk - Using sed selectively -

My dump file looks something like this ... - - Current Database: `Batch` - Create Database / *! 32312 if not present / batch / /! 40100 Default Character Set UTF8 Collet UTF 8_bin * /; Use `batch`; - - Table structure for table `bet_job_xcquity` - if empty table 'bat_job_excurity'; SET @saved_cs_client = @@ character_set_client; SET character_set_client = utf8; Make the table 'BAT_JOB_XCUTIONIAN' (`JOB_EXECUTION_ID`) (20) Faucet,` variant 'highness (20) default faucet, I want to change the name of the DB in the table and " Use "statement pd_Batch. sed 's / batch / pd_Batch /' test.sql The above description will be required, but I will not use any" batch Do not want to change the word. It should only change the word found on the line starting with CREATE DATABASE or USE. Update: The sub-product of this question is more than one DB in the test.sql file, so the following words are PD _ Batch cash country state currency st...

yui3 - How to deep link YUI 3 Tabview? -

I am using YUI3 and want to link deeper to my tabs. I used TabViv + History from UVI How do I change the value for the URL parameter Change the / # tab-2 / # tab-description Thanks in advance. You can use it: There is a sethoot method in it that can work for you under the hood, it only makes changes to you. Ideally, you have the hash change event (http://developer.yahoo) to detect and display changes. .com / yui / 3 / api / HistoryBase.html, History: Changes) There are some types of structures in history to listen to you app code)

java - Intercepting queries to a database -

So I'm trying to stop calls made in a database. I now have a Java program that listens for the information (calls made through various programs). I am trying to expand it to analyze queries made by one of these programs in the database, which uses Hibernate ORM I am looking at the hibernate interceptor and it Looks very interesting. How can I integrate the interceptor in my program? I'm not sure how I can use it to join other programs to listen to the call. Or would the listener be a better choice? Thank you, Harry Interceptor in your program to integrate , You must follow these steps: Create a class that extends the EmptyInterceptor of Hibernate. Set it to the configuration, such as configuration cfg = new configuration () ; Cfg.setInterceptor (new your interceptor ());

javascript - Can I create a method in an object? -

I saw this code before, but I do not know what it means: Var person1 = {toLocaleString: function () {return "Nikolaos"; }, ToString: function () {return "Nicholas"; }} Var person2 = {toLocaleString: function () {return "balm"; }, ToString: function () {return "Greg"; }} Var people = [person1, person2]; Warning (people.toString ()); Warning (people.toLocaleString ()); Does one object with toLocaleString and toString method ?? Or ... ?? This code is doing three things: To create an object instance Use the Anonymous Function Expression to create an object instance to bind the properties of the properties on the object literal syntax objects. (Functions are first-class objects in javascript, so you can keep their references, send references around). Specifically, it is overriding the two standard tasks that all JavaScript Objects Object prototype Let's break it down a bit. 1) Object Article Notation: var obj = ...

java - Grails and consume SOAP webservice -

itemprop = "text"> I was thinking enough Grails for people to use a Web service in Grails projects, So the system's client side? Any recommendations? I am using people Groovis, Spring-WS, etc. What's a good and easy to use? Grails CXF plugin is used here. Needs: classloader workaround - DynamicClientFactoryit change an existing classloader; And to hand over the WS invitation code In addition to that, the consumer code is very thin Edit :. Sorry, there is more, and I am not sure that I am not breaking and the NDA is still: # 1: DEF arrayOfLong = objectFactory.createArrayOfLong (XXX, ID) result = client.invoke (methodName, as an arrayOfLong object []) # 2:. def DCF = DynamicClientFactory.newInstance () def classloader = Thread.currentThread () getContextClassLoader () // can create a WS client // and def customer = dcf.createClient (WSDL_URL, classloader ) Client.conduit.target.address.setValue (endpointUrl) Assign the ...

What version of Android should I develop for? -

Just started to develop Android, this idea is to create an app available in the AdWords market. I would like to be able to use bulit in "Graphical Layout" (WYSIWYG) to create UI. Now I have two questions: I can see that almost all users Currently using Android version 2.2 or earlier. What I think, the 3.0 version has a lot of improvements, especially when UI creates, but when will the 3.0 version be available on a large scale? Should I develop for 2.X users or should I go with 3.0? Do you recommend using "graphical layout" to create a UI or what should I do manually using XML-files? I have read that "graphical layout" was not working well in the first version, but better for 3.0? current data 2.2 on Microsoft, 2.1% on 2%, 2.3% At 1%, 1.6% to 1.6%, 5% is at 1.5%. > With 2.1+, you can reach 88% of the market. 3.0 is for sure about the future, but is only available for tablets - especially for all its development mobile phones will be left fo...

perl - How do I access array elements stored in a hash? -

I am working on a script and am trying to get some value from an array stored in a hash. After searching on Google, searching for questions on SO (and there are some similar titles, but those who have remained unresolved or the problems are slightly different compared to me), and everything to check out and try After making a reasonable effort, I have come to ask for your help. I have a hash, $ action , and an array, $ action-> {'Event'} is . Here is the output for print dumper ($ Action-> {'events'}); : $ VAR1 = [{'mute' = & gt; 'Something', 'Role' = & gt; 'Something', 'Event' = & gt; 'Some', 'channel' = & gt; 'Something', 'Talking' = & gt; 'Some', 'Username' = & gt; 'Somnmar', 'CallerIdname' = & gt; 'Somnmar', 'Conference' = & gt; 'Somnmar', 'Marked Ususer' = & gt; 'Some', ...

Printing an HTML form using jQuery -

I have an HTML form, and I have to print (hardcopy) the specific area. The problem is that I am unable to get Text1 and Text2 values ​​on it. Since I need to fill the HTML value with some value, so print it must be printed as hardcopy. My code & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("# print"). Click (function () {alert ($ ('# click'). Html ()); // it only shows form element; Should also be a type of typing element. How? Window.print ();});}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Form ID = "click" & gt; Text 1: & lt; Input id = "l" type = "text" / & gt; Text 2: & lt; Input id = "m" type = "text" /> & Lt; Input id = "print" type = "button" value = "print-me" /> & Lt; / Form & gt; & Lt; / Body & gt; & Lt; / Html & gt...

asp.net mvc 3 - MVC3 - Coding a custom HTML Helper which output works with unobtrusive Javascript -

मैं एक कस्टम HTML हेल्पर विस्तार का उपयोग करते हुए एक फ़ाइल अपलोड इनपुट नियंत्रण में विवादास्पद जावास्क्रिप्ट जोड़ने का प्रयास कर रहा हूं। हालांकि, मैंने ऐसे विभिन्न ब्लॉगों की जांच की है जो नियंत्रण बनाने के लिए विभिन्न तरीकों का उपयोग करते हैं, जैसे कि टैब-बिल्डर, लेकिन मुझे पता नहीं था कि कैसे अबाधित डेटा टैग जोड़े गए हैं। ब्रैड विल्सन के इस ब्लॉग पोस्ट को देखें, वह अविश्वसनीय रूपरेखा द्वारा उपयोग किए जाने वाले विभिन्न विशेषताओं का वर्णन करता है।

c++ - memory leak xerces use -

A leak me in my application and I have come to reduce your code in the following and repetition per 12kb leaks Happening . I do not know if this is a problem with my code or there is a problem with the Xerox library. But seeing private bytes in Perfon, I can not only see development and any shrinkage, so it is clearly leaking. Can someone please do the following codes may suggest incorrectly that he incredible rate like this (? X & lt; 1000000; x ++) {DataSerializer * ds = new DataSerializer ( );: (single threaded test app) for (int x = 0; x & lt; 1000000; x ++) ds- & gt; Test (request); Ds- & gt; Released document (); Ds- & gt; Destroy_xml_lib (); Deleting DS; } Zero Datacirlizer :: Exams (std :: String and Request) {impl = initialize_impl (); } DOMImplementation * DataSerializer :: initialize_impl () {try (boost :: mutex :: scoped_lock init_lock (impl_mtx); XMLPlatformUtils :: Start (); return DOMImplementationRegistry :: getDOMImplementation (XConv ( ...

javascript - jQuery fadein/out -

I have a div with several images, I only need to display 6 at a time. Then I should fade in the next six in the list and fade in the next 6. I wrapped it in the setInterval function. Is it possible? So far, I've found: var hiddenElements = $ ('. Logo div.logo: gt (5)'); HiddenElements.hide (); Set interval (function () {// â ?? |}, 2000); "Logo" is the class of div s which needs to be faded. They have all CSS background images (hence there is no img tag.) This is a very straightforward approach, just for fun. But you should customize your html. Wrap every 6 images in a container and then toggle them - it will be more clean and nature solution. Sketch: & lt; Div class = 'hidden' & gt; 1 & lt; / Div & gt; & Lt; Div class = 'hidden' & gt; 2 & lt; / Div & gt; & Lt; Div class = 'hidden' & gt; 3 & lt; / Div & gt; & Lt; Div class = 'hidden' & gt; 4 ...

Listing custom menu in wordpress in two stages -

I need a custom menu list in WordPress in two steps. To list the custom menu but I would like to do something like this: & lt; List of first part of 'My menu' & gt; Something else, some & lt; Div & gt; Display etc ... & lt; 'My menu' & gt; So my questions are: How do I get the right number of links in my menu? Is there any way from the beginning to a certain point list, and then the rest? What exactly do you need to use, because this array of menu items From that point it gives only normal PHP which you want. But, starting from the beginning, are you sure that you want a menu, maybe a better option is to create two menus? The menu is just an array of menu items, many of them you can create for different purposes.

architecture - Most controversial post, IoC, Ninject, just getting stuff to work -

Where do I start? Runs in a design pattern during learning for the program, architectural options etc. For me, I understand conceptual D, IOC and why they are needed / good Modularity, low coupling high concentration - getting me is. For example, I'm building a small test website with the help of MVP pattern, where there is no solid view of the presenter, but it uses the interface which applies the interface. It is also a reference to a service level (which sits between the presenter and BLL), again, there is nothing concrete, using an interface for it. All good stuff (manual) IOC is pushing concrete objects upwards, on the point that objects need to be injected, elsewhere. In other words, the dependency is still there, it is just above the IOC container and enter the disappointment. I know that they are there, I know what is used for them. I opted to use the ninja. cold. So, I see I have a bunch of files in my downloads: Lisa.text Ninish file Ninject.pdb ...

c# - Crystal Report Page Number -

I want to get the current page view of the crystal report, how is this possible. I am developing desktop applications. I used Crystal ReportPorter 1.GetCurrentPageNumber (); The user of this page is currently viewing,

django - Access STATIC_URL from within a custom inclusion template tag -

I created a custom that accepts a update model object Template Tags: @ register.includetag ('update_line.html') def update_line (update): return {'update ': Update} update_line.html : & lt; Tr & gt; & Lt; Td class = "update" & gt; {{Update}} & lt; / TD & gt; & Lt; Td square = "acc" & gt; & Lt; Img id = "update - {{update.pk}}" class = "ack-img" src = "{{STATIC_URL}} img / acknowledge.png" alt = "accept" /> & Lt; / Td> & Lt; / TR & gt; The problem is that {{STATIC_URL}} my included template is not available in the template, even if I use the django.core I am doing Context_processors.static reference processor is therefore available for all my 'normal' templates so that {{STATIC_URL}} is not being processed through an inclusion templates tag. Can get it? Just after posting the question, just find out: ...

Timer using PHP -

I want to execute a PHP function in every 5mins. A basic clock should do the trick but how? Example: I want to show some 5mins screen (webpage) using PHP and AJAX or just PHP alone. Javascript setTimeout ('yourAjaxFunction ()') "post-text" itemprop = "text"> P> Use Javascript or Meta Timer in your case, 3000);

regex - Need help with Regular expression -

My log file entries are logged in with a start and end marker. Like WY_LOG_TYPE_ERROR & Lt; ** This is the first error - blah - blah - blah ** ** & gt; & Gt; WY_LOG_TYPE_ERROR & lt; & Lt; ** This is another error - blah - blah - blah ** ** & gt; & Gt; WY_LOG_TYPE_ERROR & lt; & Lt; ** This is the third error - blah - blah - blah --- **> & gt; There are 3 above entries in the log file at any given time. I just need a regular expression to match the final entry. Currently I'm using Reg-exp below: WY_LOG_TYPE_ERROR \ s * & lt; & Lt; \ * * * ((| | | \ N) *) * * * * gt; & Gt; $ Now everything in $ 1 is between the entry and closing marker's start marker before the last entry. What do I need to do is the contents of the last entry between the start and end marker. I am not concerned with other entries. Can anyone modify this reggae app according to my needs? Edit: I am using perl reg-ex EDIT: I need to...

flex - align image to bottom when it doesn't fill the space allocated for -

I have an image that is & lt; Mx: Image & gt; does not enter the tag because it is not an exact dimension (it is too small) and I have estimate maintenance set to true: & lt; Mx: image & gt; The tag has a fixed width and height (it is 100% of the tile size - it is in an item renderer). I & lt; Mx: Image & gt; Tags box es to get more control. verticalAlign = "bottom" P>

PHP sent emails have =0A=0A instead of new lines -

For some time now some of my users have encountered problem I = 0 A = 0a I send them via PHP I am Mail-behavior works well through email client, but PHP generated emails always appear with some users (a minority). Googling finds a good result, all search results seem to be associated with some approach - and it seems that all approaches users will suffer from this problem is unacceptable. Does anyone know the correct way to deal with it properly and avoid these new line encoding issues? EDIT: FYI I am using Zend's Mailer class. Thanks Edit 2: Changing the encoding type did not work. I have encoded the headers in base 64, and the body has got distorted material up to 64. Then I tried with the base 64 header and did the base 64_deckode ($ body) on the body, and it was okay on the user's "CNR server, but not in the inbox" which means it too. When I tried to mb_convert_encoding base64, I got an encoded string instead of body, so there was no benefit. What el...

jquery mobile - Cannot use click action in jquerymobile -

I tried Tried to add click function to the object, but it seems that it's okay (Function () {window.alert ('test');});). }); I also used Ajax loading> $ (document) .bind ("mobileinit", also disabled with function () {ajaxEnabled: false;}); But with the same result. Where can the problem be? Thanks for any advice. .ready () does not work in jquery mobile document and does not use . Difficult. Click (). There are other events such as PageBern Cut, check for a list of page crackets events. $ (document) .live ('pageshow', function () {$ ("# vibrateBtn"). Live ('click', function () {Window.alert ('test' );});});

php - private class Error Undefined property -

Good morning everyone, I have one class, which enters the second category first. The Private $ mine is close to the Segunata class, and returns the error undefined property: session: $ my line, if ($ this-> my ) I would be very grateful for help. sample code, class session {public function run_session () {..run .. data :: runs ($ line); }} Class data {private $ my = "../../my/"; Public Function Run ($ line) {If ($ this-> My line) {.... Playing ...}}} You should use this way class data {personal $ my = "../../my/"; Public Function Run ($ line) {If ($ this-> My line) {// Here you are using $ $, then the function must call the class data object ... Play ... }}} Class session {public function run_session () {..run .. $ data = new data (); // To create the object of the class data, so that you run the function $ data-> Call ($ line) call; }}

Setting vector as a list component in R -

I want to create a list which has 1 element called 'A' in which there is a vector of doubles. l does the trick though, what if I want to do it dynamically? l does not work! How can I assign enough memory when creating a list? Thanks then you do & gt; L & lt; -list () & gt; L [['A']] & lt; -1: 10 & gt; L $ a [1] 1 2 3 4 5 6 7 8 9 10 With lists that work well, [...] you are given a list with the selected elements Where [[...]] gives you the selected element help page remove Edit: Or, as Tim said, l $ a & Lt; - 1:10 does the advantage of [[...]] & gt; L & lt; - List () & gt; Aname & lt; - 'a' & gt; L [[Anam]] & lt; - 1:10 & gt; L $ a [1] 1 2 3 4 5 6 7 8 9 10

c# - GridView Conditional Button Visibility -

I have this wordplate for a gridview column that is pulling data from the SQL database. My question is how do I how will the Czech to see what my field is the value of ActivityFile (which means that the file is in dB) and then Linkbtn been done to show the point at which I file (before work) Generate code to download & lt; Item Theme & gt; & Lt; Asp: LinkButton id = "DownloadFileBtn" runat = "server" visible = "false" & gt; Download file & lt; / Asp: LinkButton & gt; & Lt; Br / & gt; & Lt; A href = "& lt;% # Eval (" ActivityLink ")%>" & Gt; ATP: Label ID = "Label4" runat = "server" text = '& lt;% # Bind ( "Gtividhilink")% & gt; '& Gt; & Lt; / ASP: Labels & gt; & Lt; / A & gt; & Lt; / ItemTemplate & gt; You'll need to use GridView RowDataBound protected void Gridwu L_rodetabaund (object sender, Gr...

crystal report group by -

Is there any way to print Group Ann of M (Page N of M) in Crystal Reports? Thanks Yes create a new thread and GroupNumber Use the function. This is in the print state section. Div>

latex - how to extract TODOS from java source files -

Hi I need a similar program to create a todo list from Java source files (remove all // removed comments in other words) Did you complete "grep -R" with post-messaging with awk or perl? Believe it?

java swing display search result in a popup under JTextField "like facebook search" -

I am trying to simulate the same search result preview in Java, but in Java, I think that JTextField: User input goes here JList: JList containing JPanels (result) JList to hold a popup or some container The problem is, I could not manage to display a popup correctly under JetTepfiled, I swingjax Wt: full, try editable combo box, Glajhliliston ... but what results I'm not good Can someone help me? While specifying the point of popup, the pre-calculation (hardcode) or lower left corner of the text field Dynamically count the location of Use that space for your popup or reduce that value as well as some pixels as your space.

javascript - jquery treeview expand given node -

IM Building UL List Dynamically on serverside code I am using the plugin: Thanks a lot for help It seems that they are open by default, but if you have set class = "close" to li & gt; tag, it will collapse. & lt; Li class = "off" & gt;

c# - Wpf adding dynamic bitmap to an image -

I'm having trouble adding an image that I just created, but at some place like "C: ..." Is not stored " So I was wondering if there was no way to add that image to WPF, without it it should be saved .... What I want Here's an example. bitmap bit; LoadBitmap (bit); Image = bit; I have found a solution in the blog of Tamir Khasan: Use Public static bitmapsource convertbitmap (system drawings. Bitmap source) {Return to system. Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap (source.GetHbitmap), IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions ()); } You can bitmap bit; LoadBitmap (bit); Image. Source = convertbitmap (bit);

odp.net - Need some inputs on Oracle instant client -

Currently I'm using ODP.Net.Is Oracle Instant Client Some sites to change this or addon 64-bit and 32-bit talked about using it for both machines. My conclusion: Oracle Database is not intended to replace the instant client (ODIC) ODP. Net or addon for net app; ODP.Net is the client component of Oracle used to connect to an Oracle database. Oracle Instant Client is a method of setting up Oracle Client components (such as ODP.NET and OO4Os) on PC and is an option of complete client installation. Before Oracle 11G, ODP.Net was not included in the Oracle instant client so we can not use the Oracle instant client with those applications that use ODP Net. In Oracle 11G we can do. Other explanations: ODP. Net includes two DLLs: Oracle Data Aves and Oraps Oracle.DataAccess is managed del, which calls in OROops, which is unmanaged DLL which calls OCI calls in Oracle Client. The instant client has 3 or 4 DLLs, which are a small footprint Oracle Client enables the communic...

python - call list of function using list comprehension -

Can I call a list of functions and use the list comprehension? Return func2 (return): return 2 def func3 (): return 3 FL = [func1, func2, func3] FL [0] () FL [1] (F) [2] () I know that I can for fl: f () But can I down? for fl (f)) An additional question for those people, if my list is in the function class, for example class F: def __init __ (self): self.a, self.b, self.c = 0,0,0 def func1 (self): self.a + = 1 def func2 (Self): self.b + = 1 def func3 (self): self.c + = 1 fl = [func1, func2, func3] fobj = F () f in fobj.fl: F () Does this work? Of course you can do FABBIJIN :), though for the class method, , Then an object must be given as argument: fobj = f () f fj .fl: f (fobj) The object should be given as a callable argument because when you see the definition of metho, d def funcX (self): the method has an argument " self " is

WebBrowser control mouse events under Windows Phone 7 -

On Windows Phone 7, webbrowser control mouse events (eg.) Never fire? I have set breakpoints and they never hit when the user contacts with the controls, then what is the way to find out? I am trying to do this, when the user is reading on a specific view, it is not locked. However, the main part of that scene is WebBrowser control. There is no mouse in the phone! It uses touch / tap events and so this (mouse related) event does not make sense on the phone. If you have to do this, try using the manipulation event instead.

jquery - Remove background from radio button on unCheck -

Code and Demo: I try to add a radio button in a green background Checkbox at / has been checked status The checkbox works properly, but when a different radio button is checked, its background color is not removed. What am I missing here? I know how to solve it ua bella giving a minute:) This works perrfectly: $ (document) .ready (function () {$ ('input'). Change (function () {if ($ (children (' Input: No (checked) '); if (children, length = gt;) {$ (children) .each (function () {$ (this) .Parent (). RemoveClass (' greenBG ');} )} $ (This) .Parent (.) AddClass ('greenBG');}});});

ruby on rails - How to Set the Content Type in a ActionController::TestCase request -

I was trying to get it in my TestCase like this: request. Env ['CONTENT_TYPE'] = 'Get App / JS': Index,: application_name = & gt; However, it fails with: ActionView :: missing template: missing template alarm_events / index {handlers = & gt; ; [: Builder ,: Hammal ,: ARB ,: RJS, RAMML] :: Local = & gt; [: N,: n] Regardless of this I have in my controller: response_to: html ,: json def index @ alarm_events ============== ================================================== ============== How do I fork out the desired request on testcase? This works fine when I request alarm_events.json in the browser. thanks format in the parameter for the action controller test Had to specify: get: index, {format: json}