Posts

Showing posts from June, 2011

symfony - Show labels for datetime form fields in Symfony2 -

I am using Symfony2.1 (beta). I can not find a way to display labels in the field as the datetime . There is no trace of property in label . How could it be ?! For example, you can show a field labeled "myDate": & lt; Div & gt; {{Form_label (form.mydate, 'Select a date: (This is a label sentence)')}} (Documentation) You can render your form:

numpy and scipy for preinstalled python 2.6.7 on mac OS Lion -

Is there a way to install Memory and Sippy with Mac OS Tiger on Dragon 2.6.7? I know that Lion's Python 2.7 is also but I need to stick with Python 2.6 because I am using a module that does not work on Python 2.7. "itemprop =" text "> /usr/bin/python2.7 after, and so on 2.6 and 2.5 For /usr/bin/easy_install-2.7 :> Lion comes with one for each of its dragon implementation. However, Sippy needs the Fortran compiler, and the lion does not come with one of them. It also shows that you should be Fortran compiler before installing a nonpip or can not be installed later. First, you need the Xcode command line tool. (Depending on your version of Xcode, Apple often changes the name of the package is the "Unix development tools", or "CLI Development Tulcan may" etc.).) can be installed them by own Xcode If you are using 4.3.x, app after installing Aksod store, launch it, preferences, go to Downloads, ingredients and click on the insta...

Use external variables inside loop/try/catch java -

We believe we are: last JLIist list = new jlit (buffer. Toyere ()); I want to declare a jellist like that, but I get a buffer variable with a SQL query, so, in a try loop Can any kind of effort be made to declare any kind of thing? Again, declare it earlier like loop or block i wrote.

Text Compression - What algorithm to use -

I have to insert some text data from the form [70,165,531,0 | 70,166,562 | "Hi", 167,578. 70,171,593 71,179,593 | 73,188,609. "One", 1,3. The data contains a few thousand letters (around 10000 - 50000). I have read on various compression algorithms, but can not decide which key will be used here. The important thing here is: the compressed string should contain only alphanumeric characters (or some special characters like + - / & amp;% @ $ ..) I mean That most algorithms provide ambiguous ascii characters correct as compressed data? It should be avoided Can anyone guide me how to move forward here? In the PS, number , ' and | Characters mainly character other characters are very rare. Actually your requirement is to automatically set the output character for printable characters You will end up using 25% of your compression profit, as you use about 6 out of 8 bits. But if you really want, you can always produce base 64 or more...

grails: marking field transient when domain class is a persistence annotated POJO -

I have been annotated Pozo for a domain class and all works great, but I can know how To create an example of transient areas I have seen and field for passengers in the correct class. Can it be done in the controller instead? Thank you. I had to comment on the fields only: @Transgen string someString; // Letters, Sets, etc. Skip for breach

random - Shuffling an linked list Java -

I have a hard time using a pseudo-code for tampered algorithm and change it into a working Java code has given. I am attempting to manipulate a linked list as a whole, the method takes the indicator of the head of the linked list and gives a list pointing at the top of the same list. I want to use a getLength and getItem method that I have created. Public Static ListElement shuffle (ListElement head) {head = head.getLength (); ListElement head2 = Faucet; While (head == empty) {int random = (int) Math.random () * n; For (int i = 0; i & lt; random; i ++) {head = head.getNext (); }} Return head; } Pseudo code: A list of lengths L. A new list R is empty, while L is not empty A random K such that 0 & Lt; = K & lt; Remove the element element of L = (length L) and repeat it with e I just rewrite the code a bit so that it can follow the phonetic code. ListElement head2 = null; Int length = head.getLength (); While (head! = Zero) {int k = (int) Math.random () *...

c# - NameSpace Manager or XsltContent to parse aspx page -

How can I use the namespace manager or XSLT content to parse the aspx page? I am using HtmlAgilityPack I am trying to parse the aspx page to get the button and label control ID. When I try to select a node with the asp: button element, I get the following error Here is the error message: Namespace Manager or XsltContext is required This query contains a prefix, variable, or user-defined function. HtmlAgilityPack.HtmlDocument htmldoc = new HtmlAgilityPack.HtmlDocument (); String filePath = @ "C: \ webform4.aspx"; Htmldoc.load (filepath); Foreach (html.doc.DocumentNode.SelectNodes ("// div") in HtmlNode div) {Response.Write (div.Id); HtmlNode ASP ("asp: button") in foreach (div.SelectNodes) {Response.Write (asp.Id); }} My aspx page looks like: & lt;% @page language = "c #" autoevolutionwireup = "true" codebahind = "Webform 4 Aspx.cs" Inheritance = "WebApplication 1.WebForm4"%> & Lt ;...

html - More Rows and More Columns jQuery -

I want a "Add Rows" and "Add Columns" button to the system object. My HTML is: & lt; Table range = "2" id = "the_table" & gt; & Lt; TR & gt; & Lt; Td> & Lt; Input name = "value_1 []" /> & Lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; & Lt; A href = "#" rel = "add_row"> Add line & lt; / A & gt; & Lt; A href = "#" rel = "add_column"> Add column & lt; / A & gt; My jQuery: $ (document) .ready (function () {var table_id = "#the_table"; jQuery.fn.renderTable = function () {Var rowCount = $ (table_id + 'tr'). Length; var colCount = 0; $ (table_id + 'tr: nth-child (1) td') each (function () {if ($ (this) .attr ('colspan')) {colCount + = + $ (this) .attr ('colspan')}} {colCount ++;}}); if ($ (this [0]). Attr ("rel" ("Name"); id = id.replace (/ value_...

Find a string in a text file and add text at the beginning to that line in php -

मेरे पास एक पाठ फ़ाइल है: जॉन ग्राहक ए - माइकल ग्राहक बी जो जो ग्राहक Jacky CustomerC टेक्स्ट की शुरुआत में और केवल 'ग्राहक ए' के ​​लिए 'सक्रिय' स्ट्रिंग कैसे जोड़ें, ताकि आउटपुट हो जाएगा सक्रिय जॉन ग्राहक माइकल ग्राहक बी सक्रिय जो ग्राहक - जैकी ग्राहक सी - धन्यवाद यहां कुछ सुझाव हैं .. फ़ॉपेन को फ़ाइल को एक सरणी पंक्ति में पंक्ति से पढ़ने के लिए उपयोग करें (http://www.php.net/manual/ En / function.fopen.php) उस सरणी के लिए एक foreach लूप चलाएं और स्ट्रिंग के अंत में 'ए' की घटना की जांच करें। (उपयोगी फ़ंक्शन: स्ट्रेलन, स्ट्रॉप्स) यदि 'ए' पाई जाती है तो उस स्ट्रिंग की शुरुआत में 'सक्रिय' जोड़ें। ($ X = 'सक्रिय'। $ X;) फाइल को अपडेट करने के लिए fputs और और fclose का उपयोग करें। (Http://php.net/manual/en/function .fputs.php) यदि आपके पास किसी भी चरण में कोई तकनीकी समस्या है तो ओपन है :)

ruby on rails - Locking an attribute after it has a certain value -

I have a model, where it is given a certain position, then the situation can never be changed again By trying to check on the model by first_sev, what is the situation and increase the exception if it is set to fixed position The problem is - def raise_if_exported if self Is .exported? Taking exception, "Can not change the exported invoice status" End End which works fine but when I initially set the position of export by doing the following - invoice.states = "exported" invoice. Save An exception has been lifted because the situation has not already been exported to the model, DB (me ) Is that feature set to "export" When it is no way to prevent it from changing? You can use a validator for your requirement Class invoice & lt; ActiveRecord :: Base validates_each: the situation is | Record, atri, value. If (atr ==: status and status_keyword and status_vas == "exported") record. Errors.ed (exported: status, "yo...

image - PHP/MYSQL - User Photos Prev/Next link -

My project has a user account, which has photos of each user that they have uploaded Like to show a next and previous picture for each user, so when I go to the Friends list of pictures, I can navigate to the next uploaded users (obviously). I will be fine with these pictures next with the next / previous picture. How would you write that kind of query for one / next photo? My table structure is similar, it is not so. If user does not have it then 'userphotos' (`photo_id` int (11) does not auto_interpret,` photo_ownerid` int (11) no, zero, `photo_right` integer (11 ) No tap, `photo_name` (100) no tap,` photo_ caption '(100) tap, `photo_imagegeta` is not long tap, album_id_t (11) faucet, primary (` photo_id`)) Engine = mysome default charset = latin1 AUTO_INCREMENT = 89; Will I use something like this to choose from the pre image SELECT field1, from where Tablename WHERE id & lt; $ Currentid ORDER ID DESC limit 1 Next image SELECT field1 to tab...

Using GitHub Pages, is it possible to specify the root web directory when not using Jekyll? -

I am using another static site generator and I want to be able to check in source files ( In Markdown)) as well as the generated site in its username.github.com repo. So, much like Jakeel, but I'm not using Jakeel to have my structure: --source 1.md 2.md --target index.html 1.html 2.html - css App.css index.html (GitHub page wants root here) GitHub pages are serving index.html and hope that the rest of the site will be on the route. I should be served site / index.html. This will allow me to create a source / 3.MD, generate it locally, and press source / 3.MD and target / 3.html I can only do one thing to do this There are two branches in Markdown and the source of that branch and commit to the master before creating the generated goal html. Keep markdown in root (instead of 'source') and HTML in the same root directory generated , Jakeel adopts the preventive structure and hopes that it does not interfere with any genuine genre-style site thin...

jquery - Get this form's attributes on a form submit even handler function -

I want to be able to get a form attributes ( url attribute), and submit it Save as a variable but I'm having problems getting value from the comments box too. Here's my form in HTML: & lt; Form class = "comment_form" action = "" Url = "comments / 12/3 / sequence" method = "post" & gt; & Lt; Textarea name = "commentField" & gt; Write your comment here ... & lt; / Textarea & gt; & Lt; P align = "center" & gt; & Lt; Input type = "submit" class = "form-button" value = "submit comment" /> & Lt; Input type = "button" class = "form-button" value = "cancel" /> & Lt; / P & gt; & Lt; / Form & gt; This is my current JavaScript: $ ('. Comment_form'). Submit (function () (warning ("work!"); / / "Work!" Var urlAttr = $ (this) .attr ("url"); // wants to get th...

- Where Developers Learn, Share, & Build Careers

I want to reuse some CSS class of a web page into a new div element that I have added . I am using Greasemonkey to redesign the page. How can I add bar1 to style myDiv ? Original Div: & lt; Div id = "bar1" class = "bar1" & gt; New div: var myDiv = document.createElement ('div'); myDiv.className = 'bar1'; or myDiv.className = document.getElementById ('Bar 1'). ClassName;

ruby - Running guard and growl on windows -

How can I run a guard on windows I have tried to install the bundler as if They say but do not know now How can I inform the goons? I had some problems with it, I stopped searching the gem named Ruby_Gnutty. Add Mani 'Rabbi_gntp' In your junk file and then Notification: GNTTP Add Guardfile. It should work for you and show the information of your guard. However, my next problem is to know how to run it fast, please tell me if you have suggestions on that topic! :)

- Where Developers Learn, Share, & Build Careers

I would like to allow the user to logout and redirect it directly to the login page. In the Django User Authenication page (https://docs.djangoproject.com/en/dev/topics/auth/), logout_then_login (request [, login_url]) logs out the user , Then the URL of the redirect URL on the login page: A default URL was not provided. Optional argument: login_url: Redirect the url of the login page to the default settings .LOGIN_URL if not supplied Then the problem is that I click on the page, instead of going to the login page, the page This page has reloaded. My code is below: @login_required def Main (requested): "" "Main view" "path = reverse ('home', kwargs = {' Userpk ': request.user.pk}) HttpResponseRirectirect (path) @login_required def home (request, userpk): "" Home page view "" If int (userpk)! = Request.user.pk: Return Return HttpResponseForbidden (Request, 'lex / main.html', dictionary = {'user':...

- Where Developers Learn, Share, & Build Careers

मेरे पास एकाधिक डोमेन वाले साइट हैं, जैसे sub1.mydomain.org , sub2 .mydomain.org । । वर्तमान में मेरे पास यह एचटीएक्सस कोड है जो इन सभी सबडोमेन को index.php पर रीडायरेक्ट करता है और सबडोमेन नाम को एक चर के रूप में देता है: विकल्प + अनुवर्ती लिंक पुनर्लेखन इंजन पर पुनर्लेखन नियम ^ (। *) $ Http://mydomain.org/index.php?subdomain=$1 [क्यूएसए, एल] सब कुछ ठीक काम करता है, सिवाय इसके कि यूआरएल एड्रेस को mydomain.org/index.php?subdomain= (उप तक पहुंचा) पर बदल रहा है। मैं उपडोमेन का नाम प्रदर्शित होने देना चाहता हूं। मैं यह कैसे कर सकता हूं? मेरी साझा मेजबान साइट के रूप में संरचित है / username / public_html / addon-domain/index.php / username / public_html / addon-domain उपरोक्त htaccess फ़ाइल में है / उप डोमेन / उपयोगकर्ता नाम / public_html / addon-domain / उपडोमेन / उप-1 / उपयोगकर्ता नाम / public_html / addon-domain / उपडोमेन / सब 2 ... उपरोक्त htaccess फ़ाइल उपडोमेन निर्देशिका। संपादित करें: ----- समस्या हल की गई लेकिन नई स्थिति में आने पर ------- मेरे HTAC...

groovy - how to restart a grails web application -

How can I restart a grails application instead of turning it off by ctrl z and turning it on again When I do it in this way Error server failed to start for port 8080: address already in use CTRL - Z does not close an application , Sends it to suspend ... those still in suspended processes There are connections to resources (ports, files, etc.), so that you can not stop another instance on the same port at the same port. To bring it back, you can use Fg in the same shell (or, if you want it, you can use bg ) To turn it off, you need CTRL - C (or you can kill it because Nicodes says in the comment)

What is the flaw in this C++ code? -

(I'm starting for C ++. But I'm familiar with some other programs, especially with Java. ) Can anyone help me find fault in this C ++ code? string & amp; GetFullName (string name, bull male) {string fullName = name; If (male) {full name = string (â ???? sree â ????) + full name; Return full name; }} There are at least three issues: First of all, you are returning to the context of the local variable. Second, there is no return when male is false . I mean, what would happen if if block was not executed? What will be your function? There is no return statement for this matter. Third, is not literally a word of "Mr. a word" string "Mr." Note the difference is a string literal . It can be fixed: string getFullName (string name, bull male) {if (male) {return string ( "Mr.") + name;} and {return "Ms." + name; // no need to type 'string' (MS))}} local variables There is no need for or ...

Create Order to Spree ecommerce using iOS app -

In my app, I want to order a product by the iPhone app in e-commerce Holi. I easily get the name of the products and their information, but when creating an order for the products, it returns an error in the HTML page: & lt; H1 & gt; Spree :: Api :: V1 :: Order Controller # and create & lt; / H1> & Lt; Pre & gt; Can not change symbol in integer & lt; / Pre & gt; I post I am sending request: NSString * str = [NSString stringWithFormat: @ "http: // localhost: 3000 / api / order" ]; NSURL * urlForBuy = [NSURL URL with strings: [unstar Stringbaaedingprsent Skepasuping Encoding Anstif 8 string encoding]]; ASIFormDataRequest * Request = [ASIFormDataRequest requestWithURL: urlForBuy]; NSString * idVariant = [NSString stringWithFormat: @ "command [line_items] [% d] [variant_id]", 0]; NSString * qnty = [NSString stringWithFormat: @ "order [line_items] [% d] [volume]", 0]; NSString * idVariantValue = @ "" 123456 ...

java - IDEA don't support scala? -

Image
विचार: 11.1.2 बिल्ड: # आईयू: 117.418 मैकबुक संकलित करें: javac: æ ?? æ ???? ç ???? æ ?? å¿ ?? मैं ¼ ?? / यूज़र / शिजिंकुई / वर्कर्स स्पेस / स्कलास्ट / एसआरसी / मेन / जावा / टेस्ट.scala मुझे लगता है कि स्केल कंपाइलर हमेशा काम करते हैं। धन्यवाद। स्क्रीनशॉट: हो सकता है कि आपको स्काला प्लगइन को स्थापित करने की आवश्यकता हो? IntelliJ में स्कला के लिए ट्यूटोरियल: IntelliJ में स्कला के लिए सामान्य दस्तावेज: आपका प्रोजेक्ट: ट्यूटोरियल: यह क्यों काम नहीं करता ?: आप ट्यूटोरियल के बाद नहीं

iphone - Make uibutton pulsate. -

I'm trying to create a UIButton that has an image in it, gradually changing the alpha level and gradually blur Seeing Loading ... Currently I am doing this but it does nothing .... - (zero) loopdaleop {while ( MyCount & lt; 1000) {[UIView Animated Width: 3.0 Delay: 0.0F Option: UIViewAnimationCurveEaseOut Animation: ^ {iconButton.alpha = 0.0; } Closing: ^ (BOOL Finish) {if (Ended) {NSLog (@ "Animated"); }}]; [UIView Animation: 3.0 Delay: 0.0f Option: UIViewAnimationCurveEaseOut Animation: ^ {iconButton.alpha = 1.0; } Closing: ^ (BOOL Finish) {if (Ended) {NSLog (@ "Animated"); }}]; MyCount ++; }} This method is called by the ViewedLoad method, I know very crude, but my best effort, if you know it How can I achieve it? It will be highly appreciated. viewDidLoad in your button layer: CABasicAnimation * pulseAnimation = [CABasicAnimation Animation WithKeyPath: @ "transform.scale"]; PulseAnimation.duration = .5; Pulse animation. ...

- Where Developers Learn, Share, & Build Careers

I am new to jQuery Mobile & amp; Phonegap I'm trying to build an app that can run on multiple platforms. Actually, I have an HTML file that contains some DIVs (used as separate pages). From the Home screen, I have a button to link to another page: & lt; A href = "#getCategories" onclick = 'GetCategories (0);' Data-transition = "pop" data-roll = "button" & gt; Get Categories & lt; / A & gt; GetCategories (classid) Ajax request to return results based on the variable class. I have shown "#getcategories" "screen and all information properly without any problems. I have approximately 6 categories and each has a different category, from 1 to 6. I also get Get class classes in each category to get my sub-categories, but this is not work. Please note that the web service returns from In the DIV who use to fill all the information, I I set the ID for it (of course it does not work). If I use the ...

oracle11g - database for enterprise level using oracle - normalization and duplication -

I am developing an enterprise application with an Oracle backend. I am now preparing the main part of the DB architecture and I am having some questions on IM. The first and foremost thing is that, most of my tables need to preserve the old data. For example Consider a table with the field contract number, contract name, person of contract, contract email my Have a record like 12, xxx, yyy, xxx@zzz.ccc and anything else 12, xxx, zzz, xxx @ zzz. Ccc At any time, I need to display new records, whereas the old record is a copy. So I thought that putting a duplicate record of old data and updating has changed the field and there is a flag to keep track of active records, like something like "active" . The downside is that it makes redundancy in the table and looks like a bad design but any other model looks unnecessarily complex and it looks cleaner for me except for anyone with duplicate records I do not even see the performance issues. So please tell m...

xml - how do you send a SOAP request? -

I'm new in SOAP and xml. I've read many tutorials but nothing is clear. How do I send a SOAP request, confused? The way I tried to do this is to save my SOAP request (as seen below): testRequest.xml. POST / Mobile Cash Payment. Command HTTP 1.1 Host: 192.168.1.80 Content-Type: Application / Soap + xml; Charset = utf-8 Content-Length: Length & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Soap 12: Envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns: Soap = "http : //www.w3.org/2003/05/soap-envelope "& gt; & Lt; Soap12: Body & gt; & Lt; Payout xmlns = "http://www.mycel.com/" & gt; & Lt; Username & gt; String & lt; / User Name & gt; & Lt; Password & gt; String & lt; / Password & gt; & Lt; ReferenceID & gt; String & lt; / ReferenceID & gt; & Lt; SourceM...

- Where Developers Learn, Share, & Build Careers

Can datetime fields compare with mySQL and return time difference with the current date? I really do not know where to start from, if someone has any ideas, then tell me in the right direction. Here's what I've tried before. SELECT * FROM `order` where 'datetime adoid' - now () Basically what I am trying to get is to get the order that is saved in the database for more than 8 hours. Thanks! If you want your query to have an opportunity to use an index in the Timetable column, You should not manipulate the column, but only on the other side: 'order' from 'SELECT' where date was added & lt; Now () - Interval 8 hours;

cordova - Looking for jQuery mobile image slideshow compatible with PhoneGap -

I'm looking for a jQuery mobile image slide show that is compatible with PhoneGrap. I checked this one :, but it does not seem to be an active community around it, for example the issues I registered never got the answer. I had a look at this: but it uses an external XML file, and I do not want to write an XML file for each slide show that I want to show. Now, what is a proven image slideshow for jQuery which is compatible with the phone? You can go for which the best people have used it successfully with jQuery mobile. You can also try

jquery - How to get name and get value from select box? -

मेरे पास एक नमूना कोड है: & lt; नाम चुनें = "code_id" id = "code_id" & gt; & Lt; विकल्प मान = "1" & gt; कोड 1 & lt; / विकल्प & gt; & Lt; विकल्प मान = "2" & gt; कोड 2 & lt; / विकल्प & gt; & Lt; / चयन & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; JQuery (दस्तावेज़) .ready (function () {var code_id = this.code_id.value; // मूल्य मान code_name = this ... // कोड नाम चेतावनी (code_name) प्राप्त करें;}); & Lt; / स्क्रिप्ट & gt; कोड का नाम कैसे प्राप्त करें (कोड 1, कोड 2) अपना प्रश्न स्पष्ट करें यदि आपके द्वारा चुने गए विकल्प का टेक्स्ट तो आप चाहते हैं: $ ("# code_id विकल्प: चयनित ") पाठ ();।

run psexec as admin mode win2008 with UAC mode 4 (powershell maybe?) -

I am trying to run the following commands in CMD with the administrator command: Psexec - u mindmen \ micor-p mypass net time / set / domain:% USERDOMAIN% / y I'm getting: 'Pure error code 2 gets out' This is only working when I change the UAC level to 3 (instead of 4) How can I solve this problem? How can I sync the server clock? Thank you You can access your account with a script language of your choice Will need to be picked up. All processes run with user rights on the host 7 / Vista / Win 2008 unless you extend them to the administrator. A script will be required to lift the rights. You can use the following WMI short sample code with the correct "Impersonal Evolution = Cloning" syntax, where "cloning" with "code" is replaced if you sign your code Set to cebv2 objWMIService = GetObject ("winmgmts:" & amp; _ "{Impersonation LIVE = impersonate}! //: set to remote host strComputer "& Amp; ...

c# - Regex to parse out IP next to a set value -

I am trying to parse an IP address from a html code beside a value. HTML code looks like this: Example X_Value_B: 192.12.21.31 So I want to be able to check that what IP is given next to X_Value_B: How do I parse it? This is what I have done so far: Match Me = Reggae Mate (_respstr1, @ "\ b (\ d {1,3}.) {3} \ d {1,3} \ b", RegexOptions.IgnoreCase); However this does not specifically take the IP near X_Value_B: Use this one: var match = Regex.Match (Input String, @ "X_Value_B: \s * (? & Lt; IP & gt; \ + + \. D +. \ D +. \ D +) "); If match (success.) String strIp = match. Group ["ip"]. Values;

c# - How to create SSRS report in ASP.NET locally? -

I am using ASP.NET/C # . For the first time I am doing reporting in asp.NET . I . As far as I am understood that it requires a separate report server , it will be created to work for it. We do not want to create a separate reporting server . Can someone create SSRS report locally without making me a separate server? Any suggestions are welcome. The Visual Studio 2005 Report Designer supports locally executed reports, which has an RDLC extension. MSDN: See also

cocoa - Is NSSizeFromCGSize nothing more than a cast operation? -

स्रोत इस प्रकार है: NS_INLINE NSSize NSSizeFromCGSize (CGSize cgsize) {union _ {NSSize ns; CGSize cg;}; वापसी ((संघ _ *) और cgsize) - & gt; एनएस; } मेरे लिए यह सिर्फ एक अतिरक्त कलाकार की तरह लग रहा है (मूल रूप से इरादा से भिन्न मेमोरी का एक हिस्सा पढ़ना)। क्या कोई कारण है कि इस वाक्यविन्यास की आवश्यकता है? मैं केवल इसलिए पूछता हूं क्योंकि मैंने इससे पहले कभी नहीं देखा है। हां, यह प्रभावी ढंग से एक कलाकार है सी में, और इसलिए उद्देश्य- सी, आप एक संरचना प्रकार को दूसरे में नहीं डाल सकते - जो सामान्य रूप से अच्छी बात है! हालांकि आप किसी सूचक को किसी भी चीज़ को कुछ और करने के लिए डाल सकते हैं - जो सामान्य रूप से खतरनाक है ... तो अगर, और केवल तभी, आप वास्तव में जानते हैं कि दो संरचना समान हैं, आप मूल्य से कास्ट कर सकते हैं वेरिएबल ( & amp; cgsize ) के पते को लेकर एक संरचना प्रकार के एक वैरिएबल को अन्य संरचना प्रकार के मान के लिए, परिणामी संकेतक का कास्टिंग ( (union _ *) ) दर्ज करें, और फिर प्रकार डास्ट वैल्यू प्राप्त करने के लिए पॉइंटर ( - & gt; एनएस ) को dere...

java - Eclipse Juno - why no warning on unused annotated private field? -

This works fine in the previous version of eclipse In errors / warnings, I " Unused private sector "- & gt; Warning . But this does not seem to work. For example: Public class main {@Resource Private int a; // I did not get any warning} This is intentional - see this topic on a Also see open bugs -

asp.net - Why do I get an XML response from a jsonp request? -

Image
I use the jQuery.ajax function to make a GET request for the following asp.net webservice:

php - Symfony 2 case-insensitive routing -

I am currently developing an application using Symfony 2 and would like my routes to be case insensitive. I have included an example path. It only matches / some_ournal / I think that wants to match any variation on that pattern like / Some_url /, / SOME_URL / etc ... some_route: Pattern: / some_url / defaults: {_controller: bundle: controller: verb} Does anyone know how I can get it? Try this: Some_route: pattern: / {some_url } / Default: {_controller: Bundle: Controller: Action} Requirements: some_url: (? I: some_url) But as already mentioned in the comments, this is a bad practice

- Where Developers Learn, Share, & Build Careers

I am trying to call a static Java method from my XSLT stylesheet: & lt; ? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xsl: stylesheet version = "2.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" xmlns: digest = "java: org.apache.commons.codec.digest.DigestUtils" & gt; ; & Lt; Xsl: output method = "xml" encoding = "UTF-8" indent = "yes" /> & Lt; Xsl: template match = "user" & gt; & Lt; Users & gt; & Lt; Firstname & gt; & Lt; Xsl: Select value = "value [@ type = 'first name'] [/ 1]" /> & Lt; / Firstname & gt; & Lt; Lastname & gt; & Lt; Xsl: Select value = "value [@ type = 'name'] [1]" /> & lt; / Lastname & gt; & Lt; Password & gt; & Lt; Xsl: variable name = "password" = "string (value [@ type = 'password'] [1])" /> ...

vba - Error when quitting Excel and Logging Off -

I need some help with Excel VBA (on Windows 7 2010). What am I trying to do, close the Excel and then shutting down the PC? Code is I: declared function ExitWindowsEx & amp; Global Const EWX_LOGOFF = 0 Global Constitutes EWX_FORCE = 4 .... Main Code Here .... Application.DisplayAlerts = False Application.Quit = ExitWindows (as opposed to liveValvReserved, byVal dwReserved as Lib by "Vivor32 "(ByVal uFlags Long) I can not leave the following error: Microsoft Excel Even though it still logs out, which I want, this is not a big issue. I would like to go out properly I have placed EWX_FORCE because I do not want to be prompted by Windows any suggestions? After missing doEvents after Application.Quit It is possible? Include this so that you get the error, enough time is required to close Excel. BTW This works for me. In addition to this, if a workbook / workbook has been opened, it is a good idea to touch the data / without saving / stopping it. Public d...

- Where Developers Learn, Share, & Build Careers

I use SimpleAudioEngine to play sound in my cocos2D application I am If I have to tap on a button and shoot a bullet, then the sound of the sound is going to continue shooting pills. When I continually tap the button to shoot, the game footage shocks this when I am integrating sounds This is the code that I tap on the button: - (zero) rocket buttontap: (id) sender {[simple audio engine shared engine] playfact: @ "rocket_ford.WOW"]; NSLog (@ "pencil rocket"); If (int_pencilRocketTagCount> gt = 220) {int_pencilRocketTagCount = 215; } [Self Performance Selector: @Sillector (Shoot Pencil Rocket)]; } Please suggest me a path ... thanks in advance .. Before the game starts, do this: [[SimpleAdOonIngin Shared Eggine] Preload Effect: @ "Rocketfire.wave"]; This effect loads into memory if the problem does not fix it then the problem may be somewhere else. For example, many sound effects play at once if the rocket fire sound is several sec...

python - How to count the number of values associated with a key -

Looking at the following dictionary, I want to know which key is the highest value if I have a long term dictionary And I want to know which key is programmatically the most important value (without visual inspection), how would I do it? The only way I can think of is as follows: dick = {'attacks': [' kick ',' patch ',' slap ',' elbow '],' rescue : ['Kik', 'patch', 'slap', 'elbow']: ['block', 'parry', 'dodge']} dike = 'defense' : '' '' '' '' '' '' Key for IT for IT in IT]: num + = 1 key_values_list.list (for key, num)), in key_values_list v: print k, v The following code will count the examples of labeled label attacks: gt; & Gt; Maximum for Kashmir ((Kashmir, Lan (V)), in dic.items (), v = lambda x: x [1]) ('attacks', 4) & gt; & Gt; & Gt;

web services - Netbeans build configurations -

Is it possible to create multiple build configurations / profiles in NetBusiness, what can you do in Visual Studio? I am trying to provide different configurations based on what I am creating for debugging or deployment. The main object that I really want should be able to use the reference web service references, when deployment and production service reference to the web while deploying. Is there any way to do this or does anyone have any such tips or tricks about the way they go about doing the same thing? You can of course have if you have a Java project (and as long as it is with Netbeans It will not work for a free-form project), here are the steps: 1.) Right-click on the project -> Properties 2.) On the "run" properties to navigate. 3.) Where it says "configuration" and there is a drop-down box, the button "New" and "Delete" to the right side. It is possible to use these, make different references, so that you can run y...

- Where Developers Learn, Share, & Build Careers

I am testing a long-running .NET application that interacts with an unmanaged DLL and stores memory I am using ProcessExplorer to monitor usage. / P> Private bytes do not increase and it lasts around 21-25 MB, but I get a huge increase in peak private bytes ~ 242 MB What does the peak private byte indicate ? Does the application require memory at some time during processing for your needs or do I have to face a memory leak? I should also mention that the virtual size is about 160 MB

- Where Developers Learn, Share, & Build Careers

$ नोड = सरणी ($ url1, $ url2, $ url3); $ Node_count = गणना ($ नोड); $ Curl_arr = array (); $ Master = curl_multi_init (); के लिए ($ i = 0; $ i & lt; $ node_count; $ i ++) {$ url = $ नोड्स [$ i]; $ Curl_arr [$ i] = कर्ल_इनिट ($ यूआरएल); Curl_setopt ($ curl_arr [$ i], CURLOPT_RETURNTRANSFER, सत्य); Curl_multi_add_handle ($ मास्टर, $ curl_arr [$ i]); } कर {curl_multi_exec ($ मास्टर, $ रनिंग); } जबकि ($ रनिंग & gt; 0); के लिए ($ i = 0; $ i & lt; $ node_count; $ i ++) {$ परिणाम [] = curl_multi_getcontent ($ curl_arr [$ i]); } Print_r ($ परिणाम); क्या यह हिस्सा वास्तव में समानांतर है? के लिए ($ i = 0; $ i & lt; $ node_count; $ i ++) {$ परिणाम [] = curl_multi_getcontent ($ curl_arr [$ i]); # अब मैं सभी यूआरएल के साथ एक काम फिर से करना चाहता हूं। $ Var = 1; # यह तब तक बढ़ेगी जब तक स्थिति संतुष्ट नहीं हो जाती #in टास्क मुझे कहती है कि मैं सभी url को $ url1% 20something $ var # समानांतरों के साथ अन्य यूआरएल के साथ भी $ url2% 20something $ var, $ url3% 20something $ var # कहत...

how to access ul elements created by jquery -

मेरे पास कुछ jquery तर्क है, नीचे कोड है $ (document) .ready (Function () {$ ('& lt; ul class = "className" & gt; & lt; \ / ul & gt;')। InsertBefore ('। DivClassName'); $ .ईईच (जेएसएआरआरए, फंक्शन (कुंजी, मान) {$ ( '& Lt; li & gt; इनपुट वर्ग = "dynamicFilterInput" प्रकार = "चेकबॉक्स" चेक = "चेक किया गया" मान = "' + key + 'id =" filterID' + key + '"/ & gt; & lt; लेबल = "FilterID '+ key +'" & gt; '+ value +' & lt; \ / label & gt; & lt; \ / li & gt; ')। अनुलग्नक (' ul.afilters ');});}); कोड के ऊपर गतिशील और lt; ul> gt; & lt; li & gt; & lt; / li & gt; ... & lt; / ul & gt; और उसके बाद मेरे पास एजेक्स कॉल और पूरी तरह से मुझे उस ul सूची को अपडेट करने की आवश्यकता है, मेरे पास ul जैसा नीचे दिया गया है $ ('। ULclassName इनपुट')। क्लिक करें (फ़ंक्शन () {चेतावनी (...

json - Android - Post content null -

I am getting a user-connected contact and I am posting it on DB. When I post, sometimes the content is futile and sometimes it does not happen. Why? Uploads this code by using contact and phone contact post, I also send ID, token. When I upload to DB, content gives me nonsense. Sometimes I'm getting the content: is empty and sometimes it's right ... Public Zero Upload (JasonObject Job, Int ID, Reference C) {ArrayList & lt; NameValuePair & gt; Nvp = new arreelist & lt; Nominal Payer & gt; (); Dbipload upload = new dbipload (); Database db = new database (c); Datosarisigistro dr = new datosrologist (c); Nvp.add (new binarynamewallpayer ("content", new string (.) ValueOf (job)); Nvp.add (new binary namewallpear ("token", Dr. Hash_Final (dr.token_secret (Dr. Mail), "mail"), jobcast.Tosting ())); Nvp.add (new binarynamewallpayer ("id", id + "")); JSONObject json2 = upload Uploadata (NVP, "URL"); Try...

iphone - Copy contents of directory to an NSArray -

I have a number of images in jpg format in the folder named Wallpapers ; I have read the contents of the directory Trying to try and store them in an array using the following code: NSFileManager * manager = [NSFileManager defaultManager]; NSArray * fileList = [Manager ContentoffEditAct Path: @ "/ Wallpaper" Error: NULL]; but it is not working. I am unable to bring them in the array Can anyone tell me what is wrong with it? You must specify the full path to the directory. I agree that your folder is in the wallpaper document directory. NSFileManager * fileManager = [NSFileManager defaultManager]; NSString * documentsPath = [NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, Yes) objectAtIndex: 0]; NSString * extractDirPath = [document path stringbapping string: @ "/ wallpaper"]; NSArray * extractsList = [DirectoryAct path for file manager content: extractDirPath error: zero];

Rails - HABTM association, checking exists? of any object in array -

I want to see the existence of any HAABT connection in an array and if someone is present then want to return the truth. Currently, the only way I can do this is to: result = wrong [1,2,3,4]. I If user.parents.exists? (I) Results = End of True Break End I tried to pass in an array like this, but I get an exception Result = Right if user.parents.exists? ([1,2,3,4]) Include the undefined method for NoMethodError: 1? `: Fixnum Is there a better way to do this? [1,2,3,4] Injection (wrong) {| Res, i | Res || = User.parents.exists? (I)} Too much the same logic, using Syntax Inject just more ruby-ish code. Update: Not tested it but it can also work: user.parents .exists? (: Id => [1,2,3,4])

java - DFS Maze Generator -

I am currently working on a maze program that uses the first search in depth. I have the following code, but I do not know what I'm doing wrong. I am trying to say in the middle of X which walls are but I have written it on them, and putting the path ahead of each other Any help will be very good. Below is the output. . . ##### . . #. . . . . . . . . #. ### . #. #. . . #. . . #### ## . . . #. . . ## ## #. ##### . . #### . . . #Jav.util.Random; Import ####################################### Import Java.util.Random; Public class depthfish search (private stack stack; public DepthFirstSearch () {} public four [] [] DFS (integer shape, four [] [] maze) {random myRand = new random (stack); new stack; Int x = myRand.nextInt (size); while (x% 2 == 0) x = myRand.nextInt (size); int y = myRand.nextInt (size); while (y% 2 == 0) y = myRand .nextInt (size); maze [x] [y] = ''; integer = (size * size) / 4; int visited = 1; ink random [] = new int [4]; integer; while Visited & l...

ruby on rails - Solr Search Stripping Phone Number in Database before Comparison -

I have a list of restaurants, which I want to match with the restaurant in my database using the phone number. The problem is that numbers are formatted separately (i.e. (123) 123-1234 or 123 123-123 or other combination). My current solar search looks like this: search = restaurant / Search (Phone, SanspotHelper, sanitize_term (pr.phone) .gsub (/ \ s + /, "")) with page: 1, per page: 15 end SunspotHelper.sanitize_term (pr.phone) .gsub (/ \ s + /, "") will strip down my search query just numbers However, the values ​​in my database now include other non-numeric characters And thus, search.hits returns a blank array because I can not find any results. What thank you enter your phone number field Configure for It also enables you to index phone data in various formats and make them searchable. You will not need to make any changes to the database

javascript - What's the difference between deferred scripts and scripts placed at the end of the page body? -

HTML 5 can be locked in HTMLMax, introduced the defer attribute for scripts is not ready before you mess with someone may be using defer script that does not need to be loaded before the DOM (aka Dom). For a long time, Web developers have been advised that all scripts do not need to be loaded before the dot, instead of in the page head and body at the end tag defer what is the difference between use and long practice advice? What is the latter option? I appreciate any answers. Thank you. Both async and defer script start downloading immediately without parsing the parser and both , so this behavior is not the same in all browsers. Therefore, performance will be better if the script is still at the end, because later it will be downloaded. Edit 2017: Browser support is better now, so you can probably get away with async / Difr script in the head. It is still a safe option to possibly put them on the bottom; New browsers will still download them fast, even i...

c - Union with __m256 and array of two __m128 -

क्या मुझे इस तरह से एक संघ हो सकता है union eight_floats_t {__m256a; __ एम 128 बी [2]; }; आठ_floats_t आठ_फ्लोट; 256 बिट रजिस्टर के दो 128 बिट भागों तक त्वरित पहुँच प्राप्त करने के लिए? संपादित करें: मैं इस दृष्टिकोण के प्रदर्शन के प्रभाव को समझने के लिए कह रहा था। / P> आप निश्चित रूप से ऐसा कर सकते हैं सी और सी ++ भाषाओं आपको यह करने की अनुमति देते हैं। और यह सबसे अधिक संभावना होगी जो आप इसे करना चाहते हैं। हालांकि, यह तथ्य कि आप AVX का उपयोग कर रहे हैं इसका मतलब है कि आप प्रदर्शन के बारे में ध्यान रखते हैं। तो यह जानना उपयोगी हो सकता है कि यह सबसे सामान्य (प्रदर्शन) जाल में से एक है जो एसएसई प्रोग्रामर में पड़ता है (और कई नोटिस नहीं करते हैं) समस्या 1: वर्तमान कंपलर्स ऐसे मेमोरी स्थान का उपयोग कर एक संघ को लागू करते हैं। इसलिए यह पहली समस्या है, हर बार जब आप एक अलग क्षेत्र से संघ का उपयोग करते हैं, तो यह डेटा को स्मृति में बांटता है और इसे वापस पढ़ता है यह एक धीमा-डाउन है। यह है कि एमएसवीसी 2, 2010 (ऑप्टिमाइज़ेशन के साथ) के लिए जेनरेट करता है: आठ_फ्लोएट...

- Where Developers Learn, Share, & Build Careers

Image
मुझे यह त्रुटि मिल रही है: विवरण संसाधन पथ स्थान प्रकार आवश्यक पुस्तकालय के लिए पुरालेख: प्रोजेक्ट 'होम' में 'src / Program.java' पढ़ा नहीं जा सकता है या मान्य पिन फ़ाइल नहीं है होम बिल्ड पथ बिल्ड पथ समस्या इस त्रुटि का क्या कारण है और मैं इसे कैसे ठीक कर सकता हूं? कृपया नीचे दिए गए नेविगेशन का पालन करें: राइट क्लिक (प्रोजेक्ट) - & gt; जावा बिल्ड पथ - & gt; पुस्तकालयों आगे में लाल क्रॉस चिह्न के साथ सभी प्रविष्टियों को ठीक करें। आप विज़ार्ड के दाईं ओर हटाएं और जोड़ें बटन का उपयोग कर उन्हें भी हटा सकते हैं और उन्हें ताज़ा कर सकते हैं।

- Where Developers Learn, Share, & Build Careers

How do I gray in / out swing pocket? What method can I use? Also, how can I create it in Netbeans by default? button.Set enabled (false); The above should fix a button properly. I'm sure you have this document bookmarks or will be downloaded and read a bit about it Edit My impression is that you are using a GUI constructor in Netbeans, I would recommend reading on swing and learning the language instead of IDE (There may be times when you have Netbeans Compared to using a different IDE The Hta and how GUIs, it does not have a clue)

- Where Developers Learn, Share, & Build Careers

I'm listening to a click event. When triggered, I need to force a different event (for another element), but it keeps on triggering both at the first event. My code: $ (". Element1"). ("Click", function () {console.log ("trigger element 2" on ("click", function () {console.log ("trigger element 1"); $ (".element2"). );})}); A separate copy of the event handler for .element2 every The bar will be clicked on .element1 . If you want to stop it, remember in a variable that you have already made the handler. var e2bound = false; $ ("Element1") ("Click", function () {console.log ("trigger element 1"); if (! E2bound) {$ (". Element2"). ("Click", function () {Console.log ("Trigger element 2");}) e2bound = true;}}); An alternative solution will be to shut down the first driver when it runs: $ (". Element1"). ("Click", function...

Wrong default fields values in java.util.calendar -

मैं java.util.Calendar वर्ग का एक उदाहरण बना रहा हूँ: कैलेंडर सही अब = कैलेंडर.जस्ट इन्स्टेंस (); getInstance () हो जाता है एक कैलेंडर डिफ़ॉल्ट समय क्षेत्र और लोकेल का उपयोग करके ... इसकी 20:22 1.11.2012 पोलैंड में अभी, लेकिन जब मैं rightNow क्षेत्र को प्रिंट करता हूँ, तो परिणाम गलत है: System.out.print (rightNow.get (कैलेंडर। MONTH)); परिणाम: 10. System.out.print (rightNow.get (कैलेंडर। DAY_OF_MONTH)); परिणाम: 1. System.out.print (rightNow.get (calendar.DATE)); परिणाम: 1. मुझे लगता है कि दिसंबर में YEAR क्षेत्र भी गलत होगा। क्या कोई मेरे लिए यह समझा सकता है? महीने 0 से शुरू होता है जब आप कैलेंडर 1 का उपयोग नहीं करते के अनुसार प्राप्त करने के लिए क्षेत्र का महीना और सेट का महीना दर्शाता है यह एक कैलेंडर-विशिष्ट मान है ग्रेगोरीयन और जूलियन कैलेंडर में वर्ष का पहला महीना जनवरी है जो 0 है; अंतिम एक वर्ष में महीनों की संख्या पर निर्भर करता है।

- Where Developers Learn, Share, & Build Careers

I'm developing an Android app for the first time and I wanted to create a session for login and logout. I noticed that most people have suggested using shared references but how can I check whether the user is logged out or not? If the user is not on my app and clicks, the sign in page will not appear! Users can go to the main page immediately. When user login successfully sets the setLogin function and sets it as correct as boolean and When the user comes back, check if the user isLogin () if this is true, then redirect the user to the main page with intent. Public Boolean isLogin () {return pref.getBoolean ("Login", Incorrect); } Public Zero Satgulin (Boolean X) {SharedPreferences.Editor Editor = pref.edit (); Editor. Input boolean ("login", x); Editor.commit (); }

- Where Developers Learn, Share, & Build Careers

I am using the new Windows Phone 8 map control but have run into a problem: I want to get the location map of the map In other words of the boundary, the latitude and longitude period. With Bing Maps control, you can: LocationRect bounds = map.Bounds; ... However, this new control does not find any relevant fields. Can anyone help or do I need to reverse engineer the different zoom levels and work it on the basis of the center point, zoom level, and pixel height / width? You can use viewport convert methods, such as: GeoCoordinate topLeft = yourMapInstance.ConvertViewportPointToGeoCoordinate (new point (0, 0)); GeoCordinate border right = yourMapInstance.ConvertViewportPointToGeoCoordinate (new point (mapSize.Width, mapSize.Height)); Return Locations Cutte Boundingrectengel (new [] (top lift, bottom right)); Perhaps you can use renderSize directly in the mapControl example, but to make sure about the correct dimensions on the runtime, I will suggest listening for th...

jQuery Mobile Popup and ListView, and Knockout.js Data Binding Inside the Popup div - Not Working -

I Mobile is working on Microsoft, which is using jQuery Mobile and Knockout. JS. I have a complex complex scenario, which is bound to jQuery Mobileâ € ™ s popup and knockout data in the list view and pop out design, and I can not work it. I have a nested list of the alarms shown below. For each day, it creates a list-split row, then within each day, there is a line of each alarm. & lt; Ul id = "alarmslist" data-bind = "foreach: days" data-roll = "list view" & gt; & Lt; Li data-role = "list-split" & gt; & Lt; Span data-bind = "text: date" & gt; & Lt; / Span & gt; & Lt; / Li & gt; & Lt ;! - Aggressive: Alarm 1 - & gt; & Lt; Li & gt; & Lt; A href = "# popupbasic" data-rel = "popup" & gt; & Lt; Span data-bind = "text: alarm name" & gt; & Lt; / Span & gt; & Lt; / A & gt; & Lt; Section id = "popupBasic" ...

Is there any way to assign Array String to method java.lang.String.endwith(String suffix) -

I need an array list with the suffix of a file like string [ ] FileType = {"PDF", "MP3", "JPG"} File Source FileTok -Type = New File ("C: \\ User \\ RS \\ Desktop \\ test.pdf"); Using the method below .... This method is full of errors to deal with such a situation Public Stable Boolean File Type (file source filetokcap, string [] fileType) {for (string filetype: fileType) return source fileTok type.gateName (). EndsWith ("." + FiletypeS); } You're almost done Try this code: Public Static Boolean file type acceptance (file source, string [] fileTypes) {for (string file type: file type) if (source.getAbsolutePath (.) EndsWith ("." + Filetype)) true back; return false; }

- Where Developers Learn, Share, & Build Careers

I'm considering using less for CSS development with server (or development) side processing, but I Can not decide whether I should keep Season files in version control. There are lots of solutions with hooks, but it adds software dependency on the server. A hook can be added locally, so on the stage and in the production areas, the same file will be found. Therefore, the question is: Should the CSS files be included in version control or not? Please keep in mind that some frameworks require a CSS file for a particular reason (for example, WordPress themes require a styled .css file so that they should be recognized). Cheers! EDIT: When I say 'considering using less', I mean that it becomes a requirement. After the option is reduced, new developers will not have the option of vanilla CSS. You have a very high answer to your question. It depends on how it is positioned on your website. If the server is just going to pull directly from the GIT repository: 1)...

javascript - How to re-append draggable element to droppable after empty -

I have a draggable / droppable script, where draggable is dropped, then the element in that device is droppable Once dropped, a clear button will show to remove the contents in the below given part $ (e.target) .append (ui.draggable.html () + ' '); // $ (this) or (e.target) $ ("# add_friend"). Show (). FadeOut (12000); $ (E.target) .droppable ("deleted"); $ (E.target) .append ("& lt; input type = 'button' name = 'sub' value = 'clear' / & gt;"). Click (function () {$ (this) .empty ();}); The problem I am facing is that HTML is removed from the droppable divan, I can not drag again and can not be added again. . I want to be able to drag and drop elements after removing the content. I would appreciate to understand how to fix this problem and understand why this is so. You want to delete the droppable but to disable it, you should do something like this: $ (e.target) .append (ui.draggable.html () + ...

c# - Call Class Method from other Class not working -

I'm trying to call the methods of the class "Form 1" of another class here is my code namespace WindowsFormsApplication1 {public partial class} form 1: form {public form 1 () {InitializeComponent (); } Private void WebBrowser1_DocumentCompleted (object sender, WebBrowserDocumentCompletedEventArgs e) {MessageBox.Show ( "load"); order. Objectforming = new script interface (); } Private void webBrowser2_DocumentCompleted (object sender, WebBrowserDocumentCompletedEventArgs e) {} private void button1_Click_1 (object sender, EventArgs e) {}} [System.Runtime.InteropServices.ComVisibleAttribute (true)] public class ScriptInterface {public void callme (string currid) { MessageBox.Show (currid); // The following security error throws Form1.webBrowser2.Navigate ("http://www.mywebpage.com/client/index.php?id=" + currid); }}} INFO: I have 2 webforcers. I am holding events from web browser 1 to update WebBrowser2. My problem is that I can not call webbrow...

best way for next/previous buttons for entries in yii -

I would like to know what is the best way to create next / previous buttons for entry into the database. Suppose we have images There is a table and the id and path of each image is. If the current image has an id equal to "9" then how can I get the next and previous ID? I already found a solution for this right but it seems the latest option. If we have more than 10000 entries (images) in our database, then this server will be submerged first, it selects all the entries and then it tries to copy all the results in an array. After this, the array is searched for the current ID. It is very slow. I was thinking about the limit set on the query, but after that how do I get the next and previous pictures? Another (better, I think) solution will have to obtain the ID of the current photo and it will be reduced / increased unless another image is found with the new ID. I think it is faster than the given function in the link. In addition to setting prev_id and next_id i...

asp.net mvc 3 - MVC 3 Ajax returning partial view of area -

Image
I am trying to return a partial view through Ajax. My code likes below and it works fine when partial visualization is not in one area [http post] Public Action Search Search peopleAgex (String Search Paraj) {// Some Return Returns Partualview ("logproofs", search results); } Partial view is provided when I open the page for the first time. The problem occurs when I press the Search button which makes an AJAX call in the action meth. If this administration is in the area then I get a classic view not found error. Partial view 'logarusselt' was not found or no visual engine supported places searched. Searched at the following places: ~ / views / logs / logartsult.aspx ~ / views / logs / logscult.xx ~ / views / shared / logartsalt.aspx / view / share / logaransult Cassax / /view / log / cshtml ~ / views / log / logResults.vbhtml ~ / views / shared / logResults.cshtml ~ / views / shared / logResults.vbhtml Why is not the current area visible? Do I have a ...

graphics - Cannot compile a basic SDL tutorial with C++ and visual studio 2010 express - SDL.h not found -

फ़ाइल SDL.h सी में है: /user/desktop/sdl-version/include/SDL.h (जहां एसडीएल .h फाइल है एक नया फ़ोल्डर नहीं है) और मैंने सी: / उपयोगकर्ता / डेस्कटॉप / एसडीएल-संस्करण / शामिल करने के लिए अपने प्रॉपर्टी पेजों को स्थापित किया है। हालांकि, जब मैं इसे संकलित करता हूं SDL.h पाया नहीं जा सकता क्या समस्या है? गुण पृष्ठ की स्क्रीन कैप: शामिल निर्देशिका पथ के आसपास उद्धरण अंक निकालें।

- Where Developers Learn, Share, & Build Careers

"Code complete 2" has been said in a customer class, the list's interface should be hidden, if not used But in WPF data binding in the Datgrid or Listbox, usually the source of the items = use the customer, if the customer is received from the list, then list Interfaces can not be hidden ... Are these two conflicts? How to solve it Thanks Who has said that there are no list interfaces like IEnumerable when you Setting itemssource = customers is used, they are used by your listbox, datagrid class to iterate through the items of your archive.