Posts

Showing posts from April, 2012

.net - Catching all exceptions in windows service C# -

Is there any way I can catch all kinds of exceptions in windows services? It's as if I have a service that should keep me going forever and now if some connecting databases or third party servers die for a moment then I do not want to stop my service. I want that the exception to the timer Should be given and after some time when the servers are up, they should work, but with the exception of now, my window service is brought down. PS - I have read the Kharaaba Exception Handler so far, but I'm not sure if this service prevents crashes. I also try to capture completely to catch generic exceptions (event handler). No, it is not. You can use the event to generate debug information before your app crashes. But creating your own exception management should not be that difficult. All services have an entry point ( Service.OnStart ) where you open your own thread / timer. Wrap all the code in that thread / timer with an attempt / grip, it should catch all the exceptions...

php - Implementing a 'Email to a friend' functionality. How to pass variables to the next page without using form, session and cookies? -

I am trying to create an "email-to-friend" page using php. The purpose of this page is that users can share the pages they are viewing with their friends. When a user clicks on the 'share' link, it will redirect the user to a page that asks a user to input their email address and a recipient email address. The topic will be the title of the previous page and the email body will be included in the URL of the previous page as well as any user. I have got the whole concept here but I am stuck in the implementation phase P>> Post and GET method is not suitable for use because when a user clicks on the share link, then there is no form in it. It will be very difficult to use sessions and cookies because as per the requirement and modified cookie / session every time a user sees a page. Passing the variable in the URL will make the URL long and some undesirable. Is there any other way I can use to pass the page title and page URL on the next p...

css - Sidebar div is not filling 100% of the parent -

Image
I will try it and do the best that I can do it. First of all, this is a fake issue of my problem. There is a device under the name of DIV A and DIV B content. Here's the CSS: #contents {height: auto; Limit: 1px solid black; } #A {float: left; Padding-left: 10px; Padding-top: 10px; Width: 587px; } #b {boundary-left: 1px solid black; float right; Height: 100%; Width: 300px; } There is a page content generated in DIV A DIV B contains two children's divs that provide tools for the page. Both of these are identical, and only set the height of 150px each. The issue is that, as seen in the ridicule, #BDV does not fill 100% #contents so when derived content is consumed & gt; 300px, black line separated by right bar does not pull the entire vertical length of #contents. I & amp; Lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Strict // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&group; For the methodology. Yo...

php - Extract whatever is in brackets using regular expressions -

I really do not understand regex, and it hurts my head. I blah blah blah (here i want to remove anything) ... and I do not have PHP preg_split , Or equivalent, using the command, how to remove it, does not really understand. How can I do this? And where is a good place to understand how it works? Something like this should do the trick, ( and ) What is the : $ str = "blah blah blah (here i want to take a little away)"; If (preg_match ('/ \ (([^ \)] +) \' / ', $ str, $ matches) {var_dump ($ matches [1]); } and you will get: string 'Here is the bit that I want to remove' (length = 35) Actually, the method I used to search for: An opening ( ; But as it does (special meaning, this To avoid: \ ( One or more characters that are not closing brackets: [^ \)] + It is being captured, so we can use it later: ([^ \)] +) And this is the first (and A termination ) $ matches [1] > As available; Even here, it i...

pipe - Bash piping output and input of a program -

I am running a Minecraft server on my Linux box in a separate screen session. I am not very fond of the screen and I want to pipeline the pipeline of output (like a pipe) to a file on the server and some input from one file on the server (so that I can input and output from remote program On the server, like a dragon script) I'm not feeling too much, would anyone tell me how to do this? Thanks, NikitaUtu. It is not clear if you need the screen at all. I do not know the microwave server, but generally for server software, you can run it from the cronat entry and redirect the output to the log file. Assume that your server kills at midnight on Sunday night (if we change this, then it is too short or too much to resume 1x per week or you have a temporary resume ), But for the basic idea of ​​what to do, here is a crontab entry that starts the server every Monday in a minute after every Monday. 01 00 * * 1 dtTm = '/ bin / date + \% y \% m %% \% H \% m \% s`; Export ...

php - Can't access global variable inside function -

यह (मेरे कोड का सरलीकृत संस्करण) काम नहीं करता है: & lt ;? Php $ sxml = नया SimpleXMLElement ('& lt; somexml / & gt;'); फ़ंक्शन फू () {$ child = $ sxml- & gt; जोड़ चाइल्ड ('बच्चे'); } Foo (); ? & Gt; क्यों? मैं $ sxml तक पहुँचना चाहता हूं क्योंकि मैं उस पर त्रुटियों को लॉग करना चाहता हूं यदि foo () विफल रहता है। डायरेक्टरी लिस्टिंग बनाने के लिए foo () कॉलों को पुनरावर्तित रूप से कॉल करता है, इसलिए मुझे पूरे $ sxml से गुजरने का डर है (जैसे foo ($ sxml) ) प्रदर्शन को नुकसान पहुंचा सकता है। क्या $ sxml को अंदर $ foo तक पहुंचने का एक तरीका है? (PHP 5.2.x +) संपादित करें: क्या होगा अगर कोड ऐसा दिखता है, वास्तव में? & lt;? Php बार () {$ sxml = नया SimpleXMLElement ('& lt; somexml / & gt;'); फ़ंक्शन फू () {$ child = $ sxml- & gt; जोड़ चाइल्ड ('बच्चे'); } Foo (); } बार (); ? & Gt; आपको इसे फ़ंक्शन पर देना होगा: & lt;? Php $ sxml = नया SimpleXMLElement ('& lt; somexml / ...

ruby - background/daemon process -

I have a script that is coded down as well, I want to run it as a background / daemon process But once I start the script, I close the terminal window, which ends the program. What do I need to do to run the program loop the pid = fork do .......... ................ ...... end Process.detach (pid) end all above The answers actually show how easy it is to: # Panning the process and staying in the existing directory process. Pneumatic (true) pipe pid = Process.fork do # Do Some Funky End Process Vitipid (PID) # Reduce CPU usage (0.1) end

Convert Shape object to Image object in Java -

How can I convert a shape object to a rectangle object? Repeat in an image object? In this way I can use a shape object for a mouse cursor replacement. a BufferedImage , as shown.

What's the benefits of FMOD on iOS platform than Apple's audio APIs? -

I have heard that FMOD is the most popular audio engine in desktop apps such as games. I've read the documentation, but I can not find any of these benefits compared to Apple's ADI audio unit. It has many powerful features, but it does not look useful on mobile devices just like iPhone because the processing power is very weak. Although this is probably due to my shallow knowledge and experience, what feature (or feature) can I count the advantages of FMOD compared to Apple's API? (Not only FMOD, but other sound systems if you know) Full disclosure: I am a programmer FMOD manufacturers are working in FireLight Technologies. First of all, I encourage you to try to get rid of FMOD, it is freely downloadable, there is a look through examples and documentation. Depending on the need of your application or game, you will have a great effect on the benefits received from using FMOD. With FMOD, you will have features like our Virtual Voice System which utilizes limite...

visual studio 2008 - C# - Alternative to Thread.Sleep? -

I am doing all this in Visual Studio 2008 in C #. I want to slow down the work of my algorithm so that the user can see his work, a periodic change appears on the GUI, so after each example I added "thread.sleep". The problem is that "thread. Sleep", when set at least one second, "Thread.sleep" (after some loops) simply freezes the entire GUI and it completes the program It just keeps on going. Not now, but it is always happy how fast it depends on the length of sleep. I have full proof that the whole program is not stable, it is working, here Until sleep is pausing the right length. But GUI few points At the point when the algorithm is finished, it shows the correct last position at that point. How to solve this issue? Alternate to stop algorithms at some point? First of all, do not wait for the user to work before they even think about when it will end It is useless. Please, do not just say. Secondly, you are sleeping "UI Thread...

reverse engineering - Possible to customize camera firmware? -

I have a firmware update for my camera, will it be theoretically possible delete it, Understand and customize it? Even if it has to be unencrypted, you know something about the layout of the file - there are not many chips that can execute the correct code from the reset vector. After that, not is an easy task to test the dysfunctioned binary back in a high level source code, of course there is definitely something to take back that you can easily understand and modify. .. Good luck!

dojox.charting - Appending Javascript Array Values to the DOJO div -

मेरे ऊपर दिखाए गए मानों का एक सरणी है। myarray2.push ("10 -FEB -11 "); myarray2.push ( "11-FEB-11"); myarray2.push ( "12-FEB-11"); myarray2.push ( "13-FEB-11"); myarray2.push ( "14-FEB-11"); मैं इन मानों को डिव एचआरएक्सएक्सिसस्लिडर के अंदर दिखाना चाहता हूं जैसा कि दिखाया गया है (वर्तमान में इसकी हार्डकोड, लेकिन यह संभव है) & lt; div id = "hrxxxslider "डोजोप्रकार =" डोजॉक्सी.फॉर्म। हॉरिज़ॉन्टल रेंजस्लिडर "& gt; & Lt; ol dojoType = "dijit.form.HorizontalRuleLabels" & gt; & Lt; li & gt; 10-Feb-11 & lt; / li & gt; & lt; li & gt; 11-FEB-11 & lt; / li & gt; & lt; li & gt; 12-FEB-11 & lt; / li & gt; & lt; li & gt; 13-FEB-11 & lt; / li & gt; & lt; li & gt; 14-FEB-11 & lt; / li & gt; & Lt; / ol & gt; & Lt; / div & gt; आप इसे पाश के लिए एक सरल जावास्क्रिप्ट के साथ पूरा कर सकते हैं: var...

Relation between REPL, interpreter and compiler -

From : REPL is commonly known as an interpreter Wrong name - There are REPLs in many programming languages ​​that use compilation (including bytecode compilation), such as common Lisp and Python. to Using interactive interpreter REPLs, an interpreter does not have to have one. For example, you can run python, for example , In a non-interactive mode (on a file) and it will not use a reading-eval-print loop. I was wondering if REPL [del] always exists [/ del] exists for an interpreter? Does Wikipedia say that REPL is also present for the compiler? If so, how is it? Thanks and connection! By interpreter, I mean execution execution immediately after compilation. I'm not sure that you are asking for the commonly used words or something else . In any case, read REPL one Eval print loop (see the first letter). If you have an interpreter who does not read or evaluate your program (i.e., "understand what you want to do and do it") or do not print the re...

c# - How to extend ListItem to be able to have childs inside BulletList -

Using asp.net c # I have a bullet list, and I would like to add list items that will be presented with the child. Thanks I'm not sure that BulletedList has a collection of ListItems. ListItems is generally used for form elements (thus selected, value, text properties) and can not be used for bulleted lists. There is no list for you to complete your goal, in which the child's lists are original. I would suggest using my classes to do this. Here's a quick mockup: Public stable square bullet list {public static string RenderList (list & bullet list ITM & gt; list) {var sb = new StringBuilder (); If (list! = Null & amp; amp; index calculation & gt; 0) {sb.Append (" "); Forex Currency (different items in the list) {sb.Append (item.Content); Sb.Append (BulletList.RenderList (item.Children)); } Sb.Append (" "); } Return sb.ToString (); }} Public class BulletListItem {public string content {get; Set; } Public listing & lt; B...

Help with Circular Linked List in Python -

I am trying to create a circular single link list. I want to be able to modify my code for a list of a single choice but I have some problems. I have a list for my linked list: class link (object): def __init__ (self, data, next = none): self.data = data Self.next = Next category linked object (object): def __init __ (self): self.first = none def __str __ (self): a = "[" current = itself.First is ON! = None: A + = str (current data) + ',' current = current.exe a = a [: - 2] + ']' df __iter __ return (self): current = self.first a = [ ] While on! = None: a + = [current.data] current = current.next return iter (a) def __len__ (self): current = self.first a = [] while present! = None: a + = [current.data] current = current.next (A) DIF entry first (auto, item): new link = link (item, auto itself) first include self.first = NewLink def ( Self, items): new link = link (item) current = self.first if present == none: self.first = NewLink returns while curren...

linux - Best Way To Receive Email Website -

I am developing a website - in the prototype phase, alpha soon. I provide an email address in each account that allows the user to make the goods - not the actual email account, just one end point to send things to the site. Many sites now offer this type of service. I think the first thing I saw was a photobocket, which send you the photo as an email attachment. My question is, what is the best way to implement such a service? My prototype, I have written a POP3 client which receives all the new delivery mail (currently a test from a Gmail account). My service processes every new mail and attachment, and immediately removes it from the email server. I can definitely outsource in an email service with POP3 and can be done with it. The problem is the cost that I need more services, I get much more services than I do, and they charge a charge per account. I hope to have many accounts and low traffic volume. So I'm leaning towards hosting an email receipt. I am open for Wi...

c++ - How to include boost::filesystem into a VS2010 project without adding a dependency on bjam? -

Accordingly, a visual studio 2010 project involves the intention of incorporating non-header-only parts of the boost into the correct libraries. To make bogam I do not know whether this is the only thing once and for all, where I just check in Lib files created by the elephant or whatever I want to make, my project will now only use Visual Studio Not only this but it will also be necessary. This project only targets 32-Bits, because it creates a plugin for a program that is only available in this configuration, and only requires it to be statically linked to multi-threaded CRT Support. (For the record, if I include the relevant .cpp files in the build, the compile phase is successful, but at the link level, I get a missing library error, which is apparently " Auto-link "feature. Maybe I should disable auto-link, if this is possible?) You do not do this at a time. You can download the downloader from the installation pro, that is, downsides You need to register t...

php - How to generate basic CLI error message for failed sqlite insert? -

I have been using PHP for some simple shell scripting to convert existing data to SQLite tables on my local machine I am However, even when I run the script on the command line, I still do not make a mistake whenever the INSERT function clearly fails (i.e. the record is not valid when it is through). Is there a clear solution? The code below is a simplified version of what I am using (which is more number of sublops, etc.) which make it difficult to track down what is not actually being included in the tables For example, if the person's name has a new line in it, then it is not included, but I have no error message to determine the problem. Besides, I initially forgot to use single quotation marks around the emp_name text field, and did not get the error even on the command line. $ db = new PDO ('sqlite: mydatabase.sqlite'); $ Db- & gt; Exec ("Creating table worker_data (emp_id INTEGER, emp_name text);"); $ Db- & gt; BeginTransaction (); Foreach ...

android - Fade in Fade out Animation on different ImageViews with in a table layout sequentially? -

I have a table layout with 3 rows and 3 columns. In total, there are 9 image views with the background set I have. All these image views are initially hidden but it is making invisible. I have a way of displaying a fade-in-fade-out animation when I call my animation function on an image view, it's working fine, though if I call from the loop for the episode, then all the images The scenes are animated together, I need to have it in sequence e.g. For (Int i = 0; I Zero initialization () {Fade on the given image view fades to work fine on an image} Note: I have declared an array of images, so I want Java No need to use Image views to dynamically access reflections. int [] imageViews = {R.id.imageView01, R.id.imageView02, R.id.imageView03, R.id.imageView04, R.id.imageView05, R.id.imageView06, R .id.ImageView07, R.id.ImageView08, R.id.ImageView09} I have tried Thread.Sleep (xxx) and even handler but still not able to achieve my purpose. In fact, if I send an image to imag...

javascript - Getting jQuery to work with if statement -

I am very new to jQuery, so I'm trying to work a small piece of code. First of all, (after watching some tutorials) I did something similar to what I wanted to do: & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("content"). Hide (); Main menu ();}); Slide ("slow"); $ (This). Children ("div.content"). Slide Down ("Slow");}); It worked fine but if I clicked on an opened option then "Hide" + "Show" did the animation. I tried to add a condition that menus wanted to do to me, but this does not work. Even now the hidden material does not work in the beginning. The code that does not work now is: & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("content"). Hide (); Main menu ();}); Click the function menu () {$ (". Options") (function () {if (($ (this). Child ("div.content") (...

Searching for elements in a python list -

Searching for elements in the python list and then accessing specific values ​​ My list = ('A', 3, ['x', 'y', 'z']), ('b', 2, ['m', 'n']]] variable = 'a' i = Indx For example, I want to see if the variable is present and the use of its elements is present, then see each one after one sublist element for example above In the example I would like to check that 'A' fun Get the and if so, 'X', 'Y' and access to personal Uplibb elements such as 'Z'. > It looks like you have not got a Python Dot yet. Perhaps you mean: mydict = {} mydict ['A'] = {'count': 3, 'letters': ['x', 'y', 'z']} Mydict ['B'] = {'Count': 2, 'Letters': ['m', 'n']} mydict is a dictionary Counting is a bit of a thing in storage, because you can only use len () if you need it, you can do it like this:

Creating a linked list in memory from a binary file of self referential objects C++ -

After reading from a file I am trying to populate a linked list. It's just hanging when I run it; I know that problem & amp; Any guidance associated with the assignment (I may be wrong) will be greatly appreciated. course course; // This one course to read from file * Filecourses = New Course (); // read this link listed list fstream ("Courses.dat", iOS :: in | iOS :: binary); If (Read!) COAT & lt; & Lt; "Error reading from file courses. \ N" & lt; & Lt; Endl; Else {read.read (reinterpret_cast & lt; four * & gt; (& amp; curriculum), sizeof (course)); FileCourse-> SetNextCourse (& amp; curriculum); // Problem maybe here? While (Read & Read.F.) {read.read (reinterpret_cast & lt; four * & gt; (& amp; curriculum), sizeof (Course)); FileCourse- & gt; SetNextCourse (& amp; curriculum); If (head == faucet) {head = fileCourse; } And (course * tmp = head; tmp = tmp-> matchext corse;) while (tmp->...

Handling data from Python socket recv -

I am using Python 2.7 socket to get data: data = Self.socket .recv (4096) How can I go about recovering unsigned less before data? The data looks like this: & gt; & Gt; & Gt; Print reprint (data) '\ x00 \ x053B2D4C24 \ x00 \ x00 \ x01 \ x00 ...' If you mean two bytes, just do this: data [: 2] If you know and a To slice the piece of data to the fixed pars, you can use the library.

mercurial - Cleanup unused old large files in version control -

For my current project, I am using Mercurial and hosting it on BitBasket. This was the first project I actually used for version control, so I started some mistakes. One of these is that I have stored all the (uncompressed) sound files which I use in the repository with my project code. As a result, still, Do not store files, it takes a lot of time by dragging the server for the first time (I think the repository saves everyone so much if I want to recover those files?) And this pro Should be more space than Ekt. This is not a big issue, but I am thinking that what will be a good way to fix it now. Also, will the "destructive" editing of the repository affect "compatibility" with other forks (i.e., pushing changes between forks will cause problems)? Thank you! If any further information is required, please ask in the comment related to: You can use and rebuild the order to remove repo and specific files while doing so, however, as you guessed corr...

python - override builtin "and" -

Primitive "and" can be overridden? For example, if I try to do something class foo (): def __ and __ (self, others): return "bar" it becomes output & gt; & Gt; Fu () and 4 4 & gt; & Gt; Fu () .__ and __ (4) 'bar' My intuition is that it has been created and can not be overridden and it is not override due to the absence of confusion should be done. I think the function should not be changed because it does not need to be done because it behaves like DIF and (self, others): If not (not bool (self)): Return yourself: __ and __ override bitvard operator & amp; , not the logic operator. To give your class Boolean logic management, define the __ Nazaroza __ method:

grails - Griffon Gsql - how to config datasource in Config.properties file? -

Griffon writes in the data source config DataSource.groovy of the gsql plugin, and if I want it to be in Config.properties how? I try, it does not work: Adding Config.properties to conf 2.config in config.properties: dataSource.driverClassName = com. ? Mysql.jdbc.Driver dataSource.url = JDBC: mysql: // local host / SMP useUnicode = true & amp; CharacterEncoding = UTF8 3.Remove this config from DataSource.groovy It seems that the GSXL plugin will be able to read the config from Datasaurus.groovy. ps: Is the GSXL plugin open source? delete the referee // read config. Properties http://markmail.org/thread/gslnhxseaicc5ksp#query:+page:1+mid:beunoxesbbmlmznp+state:results DEF Theater content = new properties () props.load (getClass (). ClassLoader.getResourceAsStream ("Config .properties ")) def config = new ConfigSlurper (). Parse (Sahara) data source {dbCreate = "skip" deposit = config.dataSource.pooled as Boolean // True to determine MySQ...

java - How to group rows in htmldatatable? -

How to group rows in htmldatatable? I am using JSF. A small example: Tronjham Tronsmount invoice Num Invoismount 1 50 1 10 1 50 2 15 1 50 3 30 2 10 1 6 2 If I "Invoisnm so I choose the grouping column as "table should look as follows: - (ie Inhoisan are groupings): Tronsanm Tronsmount invoice Neuve Invoismount 1 1 50 1 10 2 10 1 6 2 1 50 2 15 2 10 2 5 3 1 50 3 30 Transmutation Transmount Invoice News Invite Shri way, the group can be JSF code> H: Detatebl is not a built-in group or if you fit into one component libraries can find a component for your needs, such as, or. Or you have to sort the list and implement it in the backing bean the way you want it.

iphone - adding google search to UISearchBar in xcode -

I'm new to iPhone development. I want to add Google search to my application. How can I add Google Search to my UISApartment? Listen for events of key up, close Google's requests; API for search; Submit the results given as a UITableView for suggestions when the user taps on a suggestion, then load the query. Were you asking to do this, or code to do this? We are not a website for later

Autofac: Single-instance object with multi-tenant dependency -

Looking at two classes A and B, where B is dependent on one (constructor injection); B is registered as a single instrumentation in the container, and it has been made. A has been registered as an intent in a MultiTenantContainer, which is different on the tenant ID. Question 1: Will Resolve Identify that B should also be different on the tenant ID? Question 2: The same, but A has been registered as a lifetime - multi-tenant has been suppressed within the container and is dependent on B. Func & Lt; Owned & lt; A & gt; & Gt; Update: Finish! This was a case of "what I wanted actually ..." because of the lack of understanding of my initial words; Specifically, I needed frequencies that were shared / shared in all the proposals of the tenant's lifetime , which was not in existence. Got some guidance, presented a patch on issue # 318; it was pulled in the trunk on the changes in 752, and we are good to go! Now the above questions will b...

str_replace “|” using php -

मैं "|" को स्थान के स्थान पर सम्मिलित करना चाहता हूं "" str_replace का उपयोग करके, लेकिन जब मैं इसका उपयोग करता हूं str_replace ("" "," ", $ word); शब्दों के बीच सभी स्थान हटाए गए थे। कोई मदद? - कोड $ शब्द = विस्फोट ("", $ FromForm); $ Word_count - str_word_count ($ _ पोस्ट ['xxx']; के लिए ($ i = 0; $ i & lt; = $ word_count; $ i ++) {गूंज str_replace ("" "," ", $ word [$ i]); / / यह स्ट्रिंग के बिना ठीक echos की जगह}} मुझे लगता है कि आपको फ़ंक्शन गलत है अगर आप कुछ पाठ को | के साथ बदलने की कोशिश कर रहे हैं, तो आपको कुछ ऐसा करना होगा। str_replace ("", "|", $ शब्द ); UPDATE चूंकि आपने $ fromForm द्वारा "" विस्फोट किया है, इसलिए प्रतिस्थापित करने के लिए कुछ नहीं होगा बाद में str_replace द्वारा।

Is it possible to close a browser window using javascript? -

इस सवाल का पहले से ही एक उत्तर है: 17 उत्तर मुझे ब्राउजर बंद करने की आवश्यकता है जावा स्क्रिप्ट का उपयोग करके विंडो। मैंने खिड़की का उपयोग करने की कोशिश की है। लेकिन यह काम नहीं कर रहा है। मैंने भी किसी भी समान पदों के लिए स्टॉक्ड ओवरफ्लो चलाया है और चेक किया है। मैं निम्नलिखित लिंक के माध्यम से चला गया हूं, लेकिन व्यर्थ में है। मैं क्या करने की कोशिश कर रहा हूं एक पृष्ठ लोड कर रहा है और पृष्ठ लोड होने पर एक जावा स्क्रिप्ट विधि कॉल करता है जो विंडो करता है। बंद नीचे कोड है & lt;! DOCTYPE HTML PUBLIC "- // W3C // DTD एचटीएमएल 4.0 ट्रांसक्रिप्शन // एन" & gt; & LT; html & gt; & Lt; शीर्ष & gt; & LT; स्क्रिप्ट & gt; फ़ंक्शन बंद ब्रॉसर () {window.close (); } & Lt; / script & gt; & Lt; / head & gt; & Lt; बॉडी ऑनलोड = "क्लोज़ ब्रॉज़र ();" & gt; & Lt; / body & gt; & Lt; / html & gt; हालांकि IE8 में यह ठीक से काम कर रहा है। यह आग लोमड़ी में काम नहीं कर रहा है और यहां तक ​​...

c++ - Compiling and running a Qt program -

I am new to Qt , and am trying to compile and run this QT program Programming with QT : #include & lt; Qapplication.h & gt; # Include & lt; Qlabel.h & gt; Int main (int argc, char * argv []) {QApplication myapp (argc, argv); QLabel * mylabel = new QLabel ("hello", 0); Mylabel- & gt; (120,30); Myapp.setMainWidget (mylabel); Mylabel- & gt; Show (); Return myapp.exec (); } When I do this: C: \ Qt \ 2010.05 \ qt> gcc label.cc at Qt command prompt The following is available: label.cc:1:26: Error: qapplication.h: There is no such file or directory label. Ck20: Error: qlabel.h: Not File or Directory label.cc: 'int main (int, char **)' in function: label.cc :: error: did not declare 'QApplication' in this type of label I went. Rcc: Error: Expected ';' Prior to 'Myapp' label.cc:6: Error: This scope label was not declared 'QLabel' .cc: 6: Error: This scope label was not declared 'mylabel' .cc:...

iphone - arc4random Quiz Crash -

I am very new to all this. I have read through forums, but unable to find an answer. I have made a simple question with 20 questions (make a txt file) arc4random () trying to work on the code to choose the question on the random. It works, but crashes the app at different times. Can anyone give me some advice? Thank you. Here are some of my codes: Code: // Next question go to int i; Int j; NSInteger Row = 0; I = 20; I & gt; 1; {J = arc4random ()% i; Question number = J + 1; If (question number == 1) {line = question number - 1; } And {line = ((question number - 1) * 6); }} // Set the question string, and set the button to the NSSTING * selected = buttons [[questionnaire item at endxax: line]; NSString * activeQuestion = [[NSString alloc] initWithFormat: @ "% @", selected]; [Answer1 setTitle: [Quiz ObjectAntEndex: Line + 1] Stat: UCentolstadt Normal]; [Answer2 setTitle: [questionnaire ObjectAntindex: Line + 2] forState: UIContolstadtAnaryal]; [Answer3 setTitle: ...

qt - Dragging rectangle bigger than item itself using QGrahicsRectItem -

Image
I have a problem in QGrahicsRectItem in QGraphicsScene . What do I want to be able to move the item with the mouse? But the problem is that in my case, the dragging rectangle is bigger than the item. Here is the code I use: class test: public QGraphicsView {public: test (); Private: Virtual Zero resizeEvent (QResizeEvent * Event); QGraphicsScene * m_pScene; }; Test :: Test () {m_pScene = New QGraphicsScene (); SetScene (m_pScene); M_pScene-> Setcreator (0, 0, 100, 100); For (int i = 0; i SetFlag (QGraphicsItem :: ItemIsMovable); PItem-> Setbrush (QBrush (QColor (190, 100, 100))); PItem-> Set (QRectF (10 * i, 10, 5, 80.f)); PItem-> SetCursor (QT :: SizeAllCursor); M_pScene-> AddItem (pItem); } SetHorizontalScrollBarPolicy (Qt :: ScrollBarAlwaysOff); SetVerticalScrollBarPolicy (QT :: ScrollBarAlwaysOff); Resize (600, 200); FitInView (scene () -> sceneRect ()); Show (); } Zero Test :: resizeEvent (QResizeEvent * Event) {QGraphicsView :: resizeEvent (event); ...

android - Androidmarker not found -

Image
I'm following this tutorial to add an overlay to a Google map (http://developer.android .com / guide /tutorials/views/hello-mapview.html). Map Overlay = mapView.getOverlays (); Drawable = this.getResources (). GetDrawable (R.drawable.androidmarker); // There is no androidmarker.png in the rearranged folder itemizedoverlay = new HelloItemizedOverlay (drawable); Where can I find this icon (HDPI / LDPI and MDPI version)? Tutorials Cleary State: First, we need a picture That we will use for our map overlays. Here, we will use Android as our marker. Drag this image (or your own) into res / drawable / directory of this project workspace. So if you actually If you are searching for specific Android markers, use one of the tutorials. If you want, you can use any other marker.

javascript - How to Add text with superscript to a Button -

मेरे पास एक HTML बटन है जैसे & lt; इनपुट प्रकार = "बटन" आईडी = "बटन" onclick = "showSuper ()" मान = "मुझे क्लिक करें!" / & Gt; जावास्क्रिप्ट के अंदर, मेरे पास var showSuper = function () {var btn = document.getElementById ('बटन'); Var spanSuper = "& lt; sup & gt; 3 & lt; / sup & gt;"; Btn.value = "आपने मुझे क्लिक किया" + spanSuper; //btn.value = "आपने मुझे क्लिक किया" + & lt; sup & gt; एक & lt; / sup & gt ;; } उपर्युक्त कार्य के साथ बटन मान को के साथ बदल दिया जा रहा है आप ने मुझे क्लिक किया & lt; sup & gt; 3 & lt; / sup & gt; I ने टिप्पणी कथन के साथ भी प्रयास किया, जो भी सफल नहीं हुआ। बटन पर एक सुपरस्क्रिप्ट वाला पाठ कैसे जोड़ सकता है? आपको यह करने के लिए स्क्रिप्ट की आवश्यकता नहीं है। इसके बजाय इसका प्रयोग करें & lt; बटन का नाम = "बटन" आईडी = "बटन" onclick = "showSuper ()" & gt; मुझे क्लि...

Matrix Indexing Question in Matlab -

संभव डुप्लिकेट: मुझे matlab में कुछ परेशानी है और कृपया मुझे समझें कि हमारे पास यह मैट्रिक्स है X = 16 2 13 5 11 8 9 7 12 4 14 1 मैं यह समझना चाहता हूं कि यह कमांड इस मैट्रिक्स के तत्वों को कैसे हटाता है और परिणाम के रूप में क्या होगा एक्स (2: 2: 10) = [] धन्यवाद बहुत मैं इस आदेश का परिणाम भी जोड़ता है 16 9 2 7 13 12 1 लेकिन यह मेरे लिए स्पष्ट नहीं है जब आप केवल एक इंडेक्स (2: 2: 10) देते हैं, तो मैटलैब व्यवहार सभी प्रविष्टियों में सूचकांक के रूप में है प्रत्येक पंक्ति के अनुसार, फिर स्तंभ द्वारा। तो आप 2 (पंक्ति 2 कॉलम 1) प्रविष्टि, 4 (पंक्ति 4 कॉलम 1 प्रविष्टि), 6 (पंक्ति 2 कॉलम 2) प्रविष्टि, 8 वीं (पंक्ति 4, कॉलम 2) प्रविष्टि और फिर 10 वीं (पंक्ति 2 स्तंभ 3) तत्व। सुपर स्पष्ट होने के लिए, यदि आप एक्स (1: 5) कहते हैं, तो आपको [16, 5, 9, 4, 2] वापस मिलेगा।

xslt - Need to find the parent node id -

यह मेरा नमूना इनपुट है & lt; table id = "1" style = " चौड़ाई = 100% "& gt; & LT; टीआर & gt; & Lt; td id = "1" & gt; & Lt; तालिका आईडी = "2" शैली = "चौड़ाई = 50%" & gt; & LT; टीआर & gt; & Lt; td id = "2" & gt; & Lt; / टीडी & gt; & Lt; / टीआर & gt; & Lt; / तालिका & gt; & Lt; / टीडी & gt; & Lt; / टीआर & gt; & Lt; / तालिका & gt; मैं xslt1.0 का उपयोग कर रहा हूं। जब कभी टेम्प्लेट मैच 'td' मिलान होता है, तो मुझे इसी तालिका आईडी मान को खोजना होगा..उदाहरण के लिए, यदि आईडी = 1 के साथ td मिलान होता है, तो मैं तालिका (आईडी = 1) से शैली विशेषता मान लेना चाहता हूं और अगर आईडी = 2 के साथ td मिलान किया जाता है, तो मैं तालिका (आईडी = 2) से शैली विशेषता मान लेना चाहता हूं। मैंने अपने टेम्पलेट में पूर्वज :: तालिका / @ शैली लिखा है, लेकिन दोनों टीडी तालिका = 1 के साथ तालिका की शैली का संदर्भ दे रहे हैं। मैंने लिखा है पूर्वज :...

asp.net mvc 3 - read query stringfrom mvc url -

This is probably a stupid question but I came from an asp.net background, so reading a query string is very easy, Not sure how I should do with MVC. Let's say I have a URL that looks How do I code = 3a 9a ......... ..? ..? request .QueryString ["CODE"] This is :)

eclipse - Start tomcat 6 in debug mode? -

How to start the Toked 6 server in debug mode and use it with Eclipse Eyes for remote debugging. ? You can enable remote debugging by running the tomcat6w.exe application with the text "itemprop =" text "> tomcat6.exe and can add the following 2 java options to the list on the Java tab: -Xdebug -Xrunjdwp: transport = dt_socket, address = 8000, server = y, suspend = n according to this and it worked in my case (for windows Tomek 6.0.26)

php - MySQL throws error even though query syntax is correct -

It has been stumped. I almost have actually copied this query in the Query field in the Heads of SQL and run it successfully. I am getting this error There is an error in your SQL syntax; the closest '; Delete points (`name`,` commander`, `dslm`, 'ip', 'ip', 'on this question dots; Enter in dots (`name ',` sambandanr`, `dslm`,' ip ',' lat`,` lng`, `online`) value (" ... "," ... "," ... "," .. "," ... "," ... "," ... "), (" ... "," ... "," ... "," ... "," .. .. "," ... "," ... "), (" ... "," ... "," ... "," ... "," ... "," ... "," ... "), (" ... "," ... "," ... "," ... "," ... "," ... "," ... "), (" ... "," ... "," ... "," ...

php - Read metadata added by Apple Final Cut -

I'm editing some video in the final cut and I want to make it available on my website. I added some keywords in the video. Is there a way that I can read / use these keywords using php scripts? Is this metadata stored like ID 3 tag? How can a PHP script read them? Thank you. Your best bet is to find an API that Apple can handle the Final Cut file or its own Make yourself (hard, especially if the format is not open) Otherwise your best bet is to manually enter keywords on the website.

ruby on rails - How would you write files to s3 in parallel? i.e. not serialized one by one -

I have 10K files to write in S3 every hour, how can I do this in parallel? Use multiple threads or try an event mashin with an S3 driver. You need a throughput of approximately 3 files per second, which should not be difficult depending on the file size. To not reconnect between each file, be sure to use HTTP.

c# - Appending to a WaveStream -

I am trying to stream sound using Naudio. The thing I'm having trouble is that I can not write a wavestream. I tried to make a line of small wavestream, but I do not think it's the way to go. How can I stream an MP3 file or wave file over the network and start playing it even when it is not completely transferred? Take a look at BufferedWaveProvider , used it as an input You can also go to WaveOut and allow you to queue the buffer for playback, although you have to decode the MP3 file frame by frame using the MP3 frame class, because the MP3FileReader has the end position Is expected to change in

xml parsing in android from local file -

I purse the XML data several times successfully, though it does this for the first time in my Android. I usually try to use dom, but every time. An error occurs on the error method. I searched online and tried many times without success. I need to do something to get XML data from a local file in order to place logic in some functions. I have implemented the code in the main method of the CREAT method. This is what I am doing, but this time without any success: try {file xmlFile = new file ("C: \\ Users \\ gg90 \\ Desktop \\ testxml .xml "); Documentbilder factory dbfc = documentbilderfactor.Newinstance (); DocumentBuilder debugger = DBFTC NE DocumentBuilder (); Document doctor = debugger Parse (xmlfile); Doc.getDocumentElement () Normal () .; Hope you can help me thanks! There is no concept of Drive C: Android, so I think your file is invalid and parser Choke on it Android uses a Unix file system, so the path looks like /data/file.xml and so on. To parse X...

java - Renaming a Log4J log file during the program run -

We have recently switched from July (java.util.Logging) to Log4J because I added extra log files Wanted Different Logging Levels At the end of the execution of the program (optionally for all purposes and purposes) we have option in the program to attach a value and date / time stamp to the log file name. / P> Because JUL wanted to open and close the file needed to write the file, it was not locked and we can just use .renameTo () to change the file name. Now, using Log4J, that file is opened and locked, preventing us from rename the file (names). Before configuring logging, I can not determine the name of the file because the option for naming the property file is after some time of logging required (that is why we named it at the end of the program). Do you have any suggestions on how to get it? What logback and / or SFL 4J help or interrupt? I have worked around the problem by using the software parameter in the log4j property file, setting the property and then...

c++ - boost::Variant usage -

I am developing the GMI application through wxWidgets. It has 2 parts - GUI part and "Logic" portion. I want to be completely independent on the rigid part wxWidgets. But a component in the GUI is returning to the wxVariant and I need to use it in the logic part. Therefore, to promote the "convertible" type :: Variable The work of wxVariant works like this: wxVariant v ("37 "); Int i = v.GetInteger (); // i == 37 So I'm thinking like something string s = methodReturningWxVariant (). GetString (); Promotion: Version BV (S); // Code later eg BV.GetInt (); BV.GetBool (); Is it possible to use this promotion: version (or Promotion :: any)? Simple answer? No. You can not convert through strings, it is a loss of information and boost :: variant does not attempt to parse the strings automatically. I do not know wxVariant provides a clear conversion ??? In general, converting to boost :: variant without testing special cases ca...

android - problem in parsing xml file from network database -

In my app, I have inserted 3 edit box and an OK button when I click on the OK button, put it in ADTX The data has been transferred to the URL and I have been given a very long xml file in retire, In this way it goes. In this, when the OK button is clicked it opens a new activity, here I want to display the list of FirstName in the list name. How to do this, please help me ....... I just tried the example in the following link and it worked. http://www.anddev.org/parsing_xml_from_the_net_-_using_saxparser-t353.html

reporting services - Help with pulling data from different database servers in SSRS 2008 -

I am working with SSR2008 and I need some help on how I should face it. My requirement is that I need to make an SSR report, which results in the need to drag me from different databases into different servers to show results. There is a unique ID in Database 1 which I can use on query with more information on database2 . I'm not sure that the sub-report will have to do the trick. I do not have a linked server and is there any way i can pull information from different database servers and join them? Thank you. Your easiest way would be to use it to pull data from another location and Allows to be in the form of a table.

asp.net - Getting SQLDataSource Update Parameter from Gridview -

I am trying to get a parameter from my gridview to update but it is an ID column that I Do not want to display If I display the data in the boundfield then it works fine, but if I set the visibility to false, then the parameter update will not be sent to the stored process. Does not appear in the form of a hidden column that I can put in the gridview. I have tried to set the parameters through the code behind, but I do not know how the code I can access the following data does not work (this parameter does not set anything GVFacilityDisciplineBillingRate.RowUpdating GridViewRow = GrvFacilityDisciplineBillingRate.Rows (E.RowIndex) sqlDisciplineBillingRate.UpdateParameters ("Convenient_ID") Protects sub-grvFacilityDisciplineBillingRate_RowUpdating (ByVal Sender as ByVal E, GridViewUpdateEventArgs as Object) "). DefaultValue = CInt (row.DataItem (" Facility_ID ")) sqlDisciplin EBillingRate.UpdateParameters ("Discipline_ID"). DefaultValue = CInt ...

osx - Bash Programming - Creating a Custom Terminal Command - Mac -

I tried to create custom commands for my terminal I'm running Mac OS X Edition 10.6.6. Here are the steps: opened the terminal typed "ls -a "And saw" .bash_profile "file typed" vi .bash_profile "and saw that the file was empty The following was added at the top of the file: Vi session saved by typing: "test {} {echo hi}" Then, I came back to the terminal and " Test ", although nothing happened (i.e., I did not see" hi "). So, what am I doing wrong? Thanks! Try to re-evaluate the file by typing source .bash_profile

php - Overcoming Cross-Domain issues -

In order to overcome cross domain issues in an attempt to obtain data client-side from other web servers of infringement, Are the ways Of the same basic policy?

datacontext - Entity framework data context not in sync with database? -

Then, this is the situation - Enter an item in the database I call AddtoObject () And then call SaveChanges (). Then, I call an archived procedure to update the currently recorded record. Then, I call the changes () again. / Li> When I query that the database has the correct update value, but there are no update values ​​in the entity framework context. The first time it never receives updated values. Does anyone have to face a similar problem? What am I doing wrong here? The problem is that EF does not know what your stored procedure is, how can it be? That work is done on SQL Server, so after the execution of your stored procedure, you will need to ask EF to issue the call and update the (and other related) frequency: context. Refresh (RefreshMode.StoreWins, myObject); With the values ​​from the database, the StoreWins framework for overwriting values ​​in the instance tells.

delphi - check if webbrowser is blank -

How do I check if the web browser is empty? For example, when you start your app, and you have a webbrown that has not been navigated to anything its only empty If you did not load anything in the twibbrowser, then this is empty. You have written the code so you already know that you have loaded something, because you said navigating. And there is a whole event that you can use, and hook up to that event which sets the "something" flag to the right when you navigate, you can set a navigational in-progress flag, whose Meaning, soon, something will be loaded. Update: Both Damon_X and Remy agree that the finished set is the best solution, they have not posted it as a reply, so I am updating it. The unused state is probably the best.

Are VHDL character substitutions ever used in real life? -

वीएचडीएल निम्न प्रतिस्थापन की अनुमति देता है, संभाव्यतः क्योंकि कुछ कंप्यूटर लंबवत बार (या पाइप प्रतीक) (|) या हैश (या पाउंड साइन / संख्या चिन्ह) (#): केस ए | बी को case A! B के रूप में लिखा जा सकता है 16 # fff # को 16: fff: के रूप में लिखा जा सकता है आजकल कोई भी कंप्यूटर ऊर्ध्वाधर बार और हैश प्रतीक का समर्थन करता है, इसलिए मैं कोई भी इन प्रतिस्थापन का उपयोग नहीं करता है ... किसी ने किसी के विस्मयादिबोधक चिह्न के लिए समर्थन का अनुरोध किया है। मेरा प्रश्न: क्या यह एक अकेला मामला है या क्या अन्य लोग ऊर्ध्वाधर बार के विकल्प के रूप में विस्मयादिबोधक चिह्न का उपयोग कर रहे हैं? कोई भी बृहदान्त्र का उपयोग कर रहा है? डेटा बिंदु 1: मुझे नहीं:) और मैंने जहाँ तक मुझे किसी भी कोड में याद किया है, मैंने इसे कभी नहीं देखा है - और न ही मैंने इसे किसी भी बिंदु पर सिखाया था (वास्तव में, यह पहला है जो मैं उन प्रतिस्थापनों के बारे में जानता था)। मुझे एशेंडेन के डिजाइनर की गाइड वीएचडीएल में एक त्वरित नज़र आया था, और ! विकल्प का भी उल्लेख नहीं किया गया है जब । मामले स्टे...

javascript - Button onclick to click() jquery -

I currently have a button to respond to onclick (), but I want to work with jquery. $ ('# nupp1'). Click (function () {raiseButtonAction (realplayer, gameState);}); raisebuttonaction is in another .js This piece of code is not working, is anything wrong with me? Edit1: $ (document) .ready (function () {$ ('# nupp1') click (function () {raiseButtonAction (realplayer, gamestate);}}}}; & Lt; top & gt; & lt; script /> & lt; / head & gt; body & gt; & lt; a id = "nupp1" & gt; & lt; / a & gt; The code will not work. The JQuery element will not be able to detect that element must be present in the function. & lt; an id = "nupp1" & gt; & lt; / a & gt; & lt; script / & gt; will work Since a is being provided before the script. When you load the DOM node, you can also use it to execute your function. or you can use. jQuery API Specify a function to execute...

insertion sort on a singly linked list -

Am I correct in thinking that it is not possible to sort the inclusion on a single listed list? My argument: Assuming that the entry type means by definition, as we go to the right place in the outer loop, we go to the left in the internal loop and As a result, an SLL can not include such algorithm as we change the values ​​(to correct) and put our current value when done with internal loop. correct? Well, I had a sound like a Captain, but the answer depends on whether you 'All iterations are preserved as well as guided in the same way as the elements are connected and still implement the proper sorting algorithm according to your definition. I really do not want to mess around around your definition of sorting the entry, so I'm scared that you really have to think yourself. At least for a while. This is homework anyway ...;) OK, this is the page that I found before the page is closed. You can iterate on an SLL in the opposite direction, but it will take the n * ...

required - Require HTML5 to use a website -

Theoretically, can you find out that the browser supports HTML5 and the visitor is IE9 / Firefox / Chrome / Safari Indicates to upgrade to Opera / Opera if it does not support some features such as CSS3 or Audio / Video tags? I am developing a hobby music site mostly in the walled gardens and want to stop those people from preventing / logging from countless browsers. Mass appeal is not a requirement because the site is for a niche and maximizes the use of JavaScript and HTML 5 I think you want to use the modern IRS Javascript API to detect the HTML5 feature.

objective c - When do you need a new class in Xcode -

I'm just learning Objective-C and Xcode I like interface building, but as far as coding goes, I'm a little I'm losing. Actually, I am trying to understand when I want a new class. I am reading a book that really covers "how", but "why not". I am creating an application and I have a very complete interface. In other words, I have a lot of NSObjects, but unfortunately, these objects do not know how to communicate with each other or with the built-in program. Here's fantasy. I have several text fields that will eventually convey my input to the tables within my interface and external PDF templates. My basic understanding of obj and the xcode is that to transmit the contents of the text field to a PDF file or table, I want to specify the content of the text field as a variable Will need to create a new class, and that variable somewhere (pdf or table). However, if I have a button which will ultimately be responsible for sending data from ...

java - Spring + JQuery dynamic binding -

I'm new to Spring and I'm still learning. Now my problem is dynamic list binding. I want a text box, a list and add buttons. What is the scenario? The user shows the text box (with auto completion) and click the Add button. After adding initiation action, the list becomes populated without issuing the request to the server. The user adds some more items to the list, and then submits the form to the server. What is the problem? I do not know how to bind the list or the server to pass the dynamic data. At this time I'm able to get the JSON response with the list of autocomplete from the controller. Is Spring suitable for this task? What is the right way to implement it? Here's what I think you're trying to get. First of all: I am thinking that this issue is not in the autocomplete list, but what to do with the list in the MVC side. Assume that your order object contains an asset "employee name," which list & lt; String & gt; d...

security - Using an automatically generated URL as a kind of a password -

Say I want to be able to fill the visitors of my site for a long time. It is not necessary to use this site to fill it, but if they want to send me a story, then they have to fill it. Therefore, some of them wish to do this, will not do anything, this form is quite big, so the visitor can leave it later to come back and fill it semi to fill it. To create the process as much as possible for the visitor, I want to click on the "Create a Story" link, which redirects the visitor to automatically generated URLs, like www.mysurveys.com / 7Bs3h4vSWEe . Here the visitor works with his form and click 'save' when he wants to save it so that he can return later to complete it. The form data is kept in the database with its generated ID when the visitor thinks that the form is filled properly and is done, then he clicks on 'Send for review' and then leaves me the form. The question is: only credentials for the user? I think any snippet can be easily used to fill th...

c - xml xsd processing library for freebsd -

I need to process xml and xsd docs in a 'C' program that writes on freeBSD. Is there any library available (some XML should be like DOM) so that I do not need to read it as text and do all the stupid work? For example: I want to work, like adding a special node and all at a specified location in XML node tree. You should probably see that it has a DOM interface and you have to do other things at the node manipulation level . I am not sure of your question if you need XSD verification or not an incomplete but I have not used it so I can not comment on it.

javascript - Change table columns order -

I need to dynamically change the order in the column / html / js, you can tell me how ? If you only need to move a column without any fancy drag-drop animation, thank you all! & lt; Script type = "text / javascript" & gt; $ (Function () {jQuery} ($ ("table tr"), function () {$ (this). Children (": eq (1)"). (After $ (This) children (": eq (0) "));});}); & Lt; / Script & gt; Essentially the concept works by changing the numbers It seems that it is not really possible to write it as a liner is. The selector also includes the TD, even with the row selector, it seems to stop every TD on a different index. A jQuery grid plugin should do the trick otherwise otherwise I have no experience with such plugins.

jquery - Why isn't my View updating properly? -

मैं ASP.NET MVC और jQuery में काफी नया हूँ। मेरे पास एक jQuery UI datepicker है जो उपयोगकर्ता को एक तिथि चुनने की अनुमति देता है। चयन पर, मेरे पास मेरे सूचकांक नियंत्रक कार्रवाई में दिनांक पैरामीटर भेजने के लिए कोड है, जिसके बाद दृश्य को अपडेट कराना होगा। हालांकि, पृष्ठ अपडेट नहीं हो रहा है अंत में, मैं केवल तालिका को अपडेट करना चाहता हूं, जो डेटा को बाकी पृष्ठ पर नहीं है और नहीं। यह करने का सबसे अच्छा तरीका क्या है? यहां मेरा jQuery फ़ंक्शन है: $ (फ़ंक्शन () {$ ("# तारीख पिक्चर")। तिथिपिकर ({ऑन चयन: फ़ंक्शन (तिथि चयनित) {$ .post ('& lt;% = Url.Action ("इंडेक्स")% & gt;', {date: date selected}, handleUseccess);}}); }); नियंत्रक इस तरह से कुछ है: सार्वजनिक actionResult अनुक्रमणिका (स्ट्रिंग दिनांक) {// ... डेटा = GetData (); वापसी देखें (डेटा); } इससे पहले कि मैं OnSelect विधि का उपयोग करता हूं, मैं इसे सबमिट करने के लिए बस एक बटन का उपयोग कर रहा था। बटन दबाते समय यह ठीक काम किया, डेटा वापस किया जाएगा और दृश्य अपडेट होगा। लेकिन जब ...

c# - DataContext Inheritance in Silverlight -

I have a Silverlight application. There is a UserControl in this application. This is a type of visual model in UserControl Datacentext will see the parents specified. Apart from this, two users of this UserControl are User Control Elements. Each of these user control elements has a visual model of one type that we would call the soft modules sold to ChildDirectNext. When a user clicks a button in the YouTube content elements, then I want to affect it to another child UserControl I have to do this work. My problem is that my parents have such property that I want to bind into the user control control elements of each of my children. How do I bind myself to an asset in my parent vi model? I always thought that the propagated datacontest through a tree. But it seems that I'm wrong. Is it possible that what I am doing? Thanks! Create a hierarchy from the visual model. In every child's visual model there are references to parents. Public square childview model 1: .....

javascript - Proper for/in variable declaration -

Reasonable to declare the loop-specific variable in What is the syntax? / in loop? The first two work both (and do not raise any flag in Google Claus compiler), but only the third person crosses the JC of Crockford, a type of tree. I am reluctant to use it, mostly because it is not compact. JSLint complains that either val is a bad variable (when I use var ), or the declaration should be transferred. What are the drawbacks for the first or the second option? What should I use? (Example assumes that str is a declared string and vals is a declared object) 1 no announcement: For (Val in Wall) {if (vals.hasOwnProperty (val)) {str + = val; }} for different announcements: (var val in vals) {if (vals.hasOwnProperty (val)) { Str = val; }} Out of 3 Loop Wars announcements: var val; For (Val in Wall) {if (vals.hasOwnProperty (val)) {str + = val; }} Feel free to ignore JSLint. It's more guideline than anything 2 and 3 are functionally similar, eit...