Posts

Showing posts from September, 2012

javascript - .forEach loop: use variable -

I am looping through a set of 16 IDs and assigning a eventListener to each I am doing I want to send a number to my php file (1 for first ID, 2 for others, etc, etc.), but it seems that i is more dynamic than I want. Each ID sends 17 . Get an internal element by klasses.forEach (function (klass) {var svgElement = svgDoc.getElementById (klass); // id svgElement .addEventListener ("mouseup", function () {$ $ ("#modLSpan"); .ax ((type: "POST", url: "buildService.php", data: {"service": i}}). (Function (msg) {alert (Layerre [i] ) .HTML (msg); $ ("# modmodal"). Modal ();})}}); i ++;}); How can I set each to a specific number? I have also tried: var lameArray = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, 16]; ... data: {"service": lameArray [i]} Code> I ? The problem is that i is a global variable, or a variable outside circle for , so when the mouseup event begins The element in the value i ...

- Where Developers Learn, Share, & Build Careers

I tried to sample this code by Microsoft, which would allow you to draw an XNA GS 4.0 view of a custom Windows form Allows access to control: . The code works great when drawing a triangle, but when I try to attract a generated trap, it just pulls the X into control. I debug the code and it looks like when I arrive: graphics.GraphicsDevice.DrawUserIndexedPrimitives & lt; VertexPositionColor & gt; (PrimitiveType.TrangleList, Vertices, 0, Vertices.Length, indicies, 0, indicies.Length / 3); This draw function never runs out. I have tested my code in the normal XNA game project and it works 100%. Does anyone have a clue that is going on? Thank you in advance. It seems that the problem was the XNA access profile, just changed it to hiDef and it worked Done! :)

objective c - Register Double-Click on Desktop (but not on Icons !) -

Here's a question: I should know that the user has clicked on the OS X desktop twice, but the icon is not . Now, I have thought about the following solutions, although I'm not sure what they can do: Using the status of the desktop icon Receive them), and the size of the desktop icon, we can theoretically examine once click on the desktop, if this icon is within one of the areas. Contra: Probably can not be true because some symbols can be transparent or can not lift the entire icon size. Perhaps there is a variable that tells us that an icon is clicked from the desktop? So we can check that the variable has been activated when the user has double clicked on the desk for the last time. I still have open for other (better) solutions, but they should be sandboxable for the Mac App Store. This is probably not suitable for the Mac App Store, for several reasons. First of all, how do you stop clicking outside of your window? There are some different mechanism...

php - Login not persisting across pages -

Hello I have created a login system for my website dubleeble.com and for some reason when you login You keep on logging in on one page but when you go to another page you log out of it! How do I fix it? This is the code I used to: & lt ;? Php session_start (); $ Username = $ _POST ['user']; $ Password = $ _POST ['pass']; If ($ username and amp; $ password) {$ connect = mysql_connect ("host", "user", "pass") or die ("can not connect!"); Mysql_select_db ("db"); $ Query = mysql_query ("Choose user WHERE user name = '$ user name' '); $ Numrows = mysql_num_rows ($ query); if ($ numrows! = 0) {while ($ row = mysql_fetch_assoc ($ query)) {$ Dbusername = $ line ['username']; $ dbpassword = $ line ['password'];} if ($ user name == $ dbusername & amp; $ password == $ dbpassword) {$ _SESSION ['user Name '] = $ user name; header (' location: '$ _SERVER [' HTTP_REF...

objective c - captureOutput:didOutputSampleBuffer:fromConnection: image buffer size is always 360x480 even on iPad -

I am using captureOutput: didOutputSampleBuffer: from connection: delegate AVCaptureVideoDataOutput . While testing on the iPad, the image buffer size is always 360x480 which looks really awkward, I think it will be the size of the iPad screen. Capture Optical: (AVCaptureOutput *) Capture output output sample buffer: (CMSampleBufferRef) connection to sampleBuffer: (AVCaptureConnection *) connection {@autoreleasepool {CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer (sampleBuffer); / * Image Buffer Lock * / CVPixelBufferLockBaseAddress (imageBuffer, 0); / * Get information about image * / uint8_t * baseAddress = (uint8_t *) CVPixelBufferGetBaseAddress (imageBuffer); Size_t byte paro = cvpx bufferget bitsprar (image buffer); Size_t width = CVPixelBufferGetWidth (imageBuffer); Size_t height = cvpxbuffergatehit (image buffer); Create a CGImageRef from / * CVImageBufferRef * / CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB (); CGContextRef newContext = CGBitmapCo...

java - How to get the type of a field in an annotation processor? -

I am trying to write an annotation so that it can detect whether the object is irreversible on runtime or not. To do this, I check that the object's class is final and then if all of its properties are final and then, I want to check the same thing for each field type if it is not a primitive type . A piece of code here: for (element sublement: element.get integrated allele ()) {if (sublement.gatekind () .isField ()) {IsFinal = false; (Modifier modifier: subElement.getModifiers ()) {if (modifier.equals (Modifier.FINAL)) {isFinal = true; break; }} If (IsFinal) {processingEnv.getMessager (). PrintMessage (Diagnosis. Kind.ERROR, "Field" + element + "is not immutable because it is not the last"); } Else {// I want to restart my method}}} How can I get my way to start with my area type again? What type of area can I retrieve, which is here? Edit: I need a category which is declared in the class, which requires the final category to avoid any type of var...

- Where Developers Learn, Share, & Build Careers

Image
How can I see a location on a disk consumed by dynamic web apps? I want to know the sum of the images of CSS files, script files and images of dynamic web apps. This is an online website, so I do not have access to the root folder size, and there are files in the folder that are not actually sent to the client, because the use of AJAX content The request is sent by. In Chrome, you can find the "Developer Tools" window (Wrench and GT Tools> Developer Tools, or Ctrl + Shift +

- Where Developers Learn, Share, & Build Careers

I did not work the following in my Visual Controller: I am using the storyboard. [Super Viewedload]; UIImage * backImage = [UIImage imageNamed: @ "Back Page"]; UIBarButtonItem * backButton = [[UIBarButtonItem alloc] initWithImage: backImage Style: (UIBarButtonItemStyleBordered Target: zero operation: zero]; BackButton.title = @ "Test"; [Self. NavigationEystem SetbackBarbootNitim: Backbutton]; Please help thank you. Try [[UIBarButtonItem Appearance] setBackButtonBackgroundImage: [UIImage ImageNamed: @ "someimage.png"] forState: UIControlStateNormal bar Metrics: UIBarMetricsDefault]

Updating my Firefox extension - autoupdates not working -

My Firefox extension is not hosted on the official extension site. It is hosted on a secure (https) server which I Have not read, do I need to sign my add-on, right? The problem is that it is not working. I install my plugin, and click on 'Check for updates' but it says that no updates have been found. I set the update in the manifest and from initial.rev332 to initial.rev333 in the install manifest. Can someone put some light on my situation? Thanks a lot :) My Instant Manifest ... & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; RDF xmlns = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns: em = "http://www.mozilla.org/2004/em-rdf#" & Gt; & Lt; About the details = "palaise: Mozilla: install-manifest" & gt; & Lt; To them: ID & gt; Jid0-BsYlcooDmgR331LCKZwABfD4yQk @ jetpack & lt; / Them: ID & gt; & Lt; Them: version & gt; Initial.rev333 & lt; / Them: ...

Regex passes in Rubular but not in Python -

Image
आयात आयात urllib.request file_txt = urllib.request.urlopen ("ftp: //ftp.sec। Gov / edgar / data / 1408597 / 0000930413-12-003922.txt ") pattern_item4 = re.compile (" (आइटम \\ n * * s * 4। *) आइटम \\ n * \ s * 5 ") प्रिंट ( Re.search (pattern_item4, bytes.decode (f))) # वापसी कोई नहीं यह regex क्या rubular में चाहता है, लेकिन जाहिर है यह पायथन में क्या अपेक्षित नहीं करता है। कोई मुझे इस के साथ abit मदद कर सकता है Regex का इरादा मूलतः item4 और item5 के बीच सामान निकालना है धन्यवाद आपको पुनः डॉटल ध्वज की ज़रूरत है अन्यथा । एक नई लाइन से मेल नहीं खाती ईओएल पर आइटम से मिलान करने के लिए आप re.MULTILINE ध्वज के साथ $ का उपयोग कर सकते हैं: pattern = recompile (r "(आइटम $ \ S * 4। *) आइटम $ \ s * 5 ", re.S | re.M)

How to remap keyboard keys to avoid RSI in VIM -

Image
I hope that this does not clearly come in the form of a conversation attempt. I use a very good deal (5-10 hours a day) and I saw that my left wrist is the first to start pain. Standard keyboard layout (see image below) is almost guaranteed to give you arthritis. Currently, I from to Ctrl Ctrl f or Shift 2 helps ( @ ) with common commands like / kbd>, but still have to fold my wrist to bring them to the particles. To avoid this twist on the left wrist (i.e. use the tab key)? It just seems strange that for a specially designed text editor for the programmer, this can be a huge use of their keys, I have considered matching the old keyboard layout (see image below), but I do not know it I want to have basic problems like my current remapping. Note: I Itsk am not just a typist who suffer from the pain of the wrist. In my experience, just go to Caps to Ctrl Mapping (if you want caps and want to swap two) and instead of using ...

php - mysql real escape string - is this normal? -

When I use mysqli- gt; Use real_escape_string and add string value to db such as "which is", this string adds in any way without amending the quote when I check DB, the value inside it is "which is" When I read mysqli-> I do not use real_escape_string and connect a string with a quote like "which is", so it is not found anywhere in the database. Is not it normal, is it? Yes, it is. It is difficult to answer the question more broadly than anyone else. real_escape_string () only rescues data is therefore used safely in a query, it can be modified in any way When you do not leave it, there is a syntax error in the query, so it fails - and the data is not included. While using the safest way to avoid your data.

jQuery Autocomplete: How to display tag count? -

With Aotocomplete, I want to display the name (count) as a suggestion when an item is selected, Only the name is printed in the input box. My data format is such as: [{"name": "test", "count": "5"}, {"name": "javascript", "displaying the name without counting The code which can be printed with multi-select items: jQuery .gir (function ($) {function split (val) {return valplit (/, \ s * /};} Function actuator list (return) {return split (term). Pop ();} $ ("# ctags-input") .bind ("keydown", function (event) {if (event.keyCode == = $ .ui.keyCode.TAB & amp; $ (this). Data ("AutoComplete"). Menuuactive) {Event.preventDefault ();}}}. Autocomplete ({source: fu} Nction (req, add) {var ctags_action = 'ctags_autosuggest'; $ .getJSON (CTags.url + '? Callback =? And action =' + ctags_action, req, function (data) {var suggestion = []; $ .eich (Data, Function (i, Wall) {suggesti...

.htaccess - Use a different RewriteRule depending on whether or not QueryStrings are used? -

On my blog (which I am in the process of redesigning content in a more efficient way), I have From http://new.kn3rdmeister.com/blog.php to handle a simple redirection RewriteRule setup for http://new.kn3rdmeister.com/category/blog/ (And also works backwards too) In .htaccess: RewriteEngine On RewriteRule ^ blog / .php $ / category / blog / [R = 301, L] rewriteille ^ category / blog /? $ Blog.php [L] ... That only bankya works now what I have to do, rewrite /blog.php ? Pagenum = x to / category / blog / page / x / in .htaccess: ... RewityCand% {THE_REQUEST} ^ (get | post | top) \ blog \ .php \? Pagenum = ([0-9] *) \ HTTP / RewriteRule ^ blog \ .php $ / category / blog / page /% 2 / [R = 301, L] rewritable ^ category / blog / page / ([0- 9 ] +) / $ Blog.php [l] The first rule I can do is to finish the job, but this query does not have to be springs, Instead, like ... /blog.php?pagenum=2 is equivalent to the example Add a question mark at...

- Where Developers Learn, Share, & Build Careers

I am using the method found when dragging git: I now use the GIT bridge '- Drag only the existing branch by default: Although this answer does not work when git is configured to rebase by default. Is there any way to regulate the githa and only to pull the current branch? branch.autosetuprebase = always , then it will also add: div class = "post-text" itemprop = "text"> rebase = true you have to do git branch --set-upstream master origin / master After, you can configure the Ribbes attribute of your branch: git config branch.master.rebase false

objective c - Change NavigationBar Text from Different ViewController -

I have been a similar question posted before this one, but now clearly a more my codes The question is more information. I currently have a UITextField and a ViewController (SignUpViewController) with a UIButton I have a Uainevigeshnbar which is a view controller (Profailwukantrolr) I want to be able to type a username in TextField in SignUpViewController, UIButton in Tap, then the NavBar text in the profileview controller is set to the text in the TextField of the SignUpViewController. The problem is that, I can not use the UITPlayfield profile ViewController. I currently have an NSString in the title "AdvilGate" in my title and I am trying to use it as a solution. If my question is completely difficult to understand because it is thrown to you, below is my code, stack overflow: SignUpViewController: - (IBAction) submitButton {ProfileViewController * profileVC = [[Profile View Control Alloc] initWithNibName: Zero Bundle: Zero]; [Self-present ViewController: animated...

https - How to debug Django app that runs on top of TLS/SSL? -

What is the best way to debug a dynamic app running on TGL / SSL? Background: I have a Django web app that uses the X.509 client side certificate for authentication. While running under Apache, my app can only access HTTPS. Clients that join the app provide a client-side certificate that accepts Apache and then adds an app to an enabled variable. The app parses the certificate and provides access-controlled content. So far, I have been debugging the app under regular HTTP as well as "./manage.py runerver". I've simulated an HTTPS connection using Custom View Handler Middleware, which is in Debug Mode. See Handler adds information to the request, similar to information that will be parsed with the actual client side certificate run under HTTPS. This would be very easy for me to debug, if I can debug the actual client side certificates that provide clients when connecting via HTTPS. We use nginx in front of the DNS client certificate check NGINX SSM termina...

- Where Developers Learn, Share, & Build Careers

I will soon need to create a widget that some of our customers can embed on their website. The embed code for my widget will be something like this for future proof: & lt; Script type = "text / javascript" src = "path / to / remote / file.js" & gt; & Lt; / Script & gt; & Lt; Div id = "my_widget" & gt; & Lt; / Div & gt; What are the strengths and weaknesses of iframes versus JSONP? Is there any general SEO issues with IRMs? First, iframes and jsonp are not mutually exclusive: one means rendering one, the second is a communication. It means. Your choice is between the inclusion of the document (which is creating a widget in the host DOM) or in-ifrim (which is a new, different DOM for the widget). The advantage of an iframe is the sandbox: there is no conflict between your widget and the host's javascript and CSS. This means that you can safely: You want to use / define any javascript library Simple H...

- Where Developers Learn, Share, & Build Careers

I just wrote my first closure function based on very limited knowledge of language. For example, I'm not sure I should use lists or vectors, for example, I would like some feedback regarding the use and usage of the types. id = subject-id [subject-id] (sql / with-connection system / getenv "DATABASE_URL") (SQL / with-query-result result [" Selection entry_id entries where subject_ind =? "Subject-id] ([res ([] in the results)] (map (FN [line] ( (deftest test-actor) For-subject-id (= ([[123] "321"] (Actor-ID-for-subject-id "123")))) If it makes a difference (And I think this happens) about my attributes of the returned data This involves the creation of the union in particular and the intersection of other sets returned by the same function. If the initial vector is empty, it is slightly more concise to use 'vec' instead of 'in'. It can express the intent more clearly, though the case of preference is high. (...

javascript - Disable scroll bar in header but not in content for a web page -

Image
I have a simple web page with headers and content, it may seem & Lt; Div id = "Wrap" & gt; & Lt; Div id = "header" & gt; & Lt; / Div & gt; & Lt; Div id = "content" & gt; & Lt; / Div & gt; & Lt; / Div & gt; By default, it has a scroll bar to its right, but I want to disable / freeze the scroll bar in the header, but keep it in content, is it possible by javascript Is Jquery or CSS? thanks ago after You can get it by setting the content at a certain height and by setting the overflow-y: scroll . P> Example:

javascript - How to reuse a CSS class, of a webpage, in a created div? -

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;

c# - How to disable a particular compiler warning for a particular file -

background I am working on a small coding project that is being sold to other companies is . I need to create some documents for this, so I decided to use the rendcast after taking a long time to download and install, I was working in the end, and seen in any public law or class There was no comment in it, in which it was written that the comment was unavailable. I then helped in the speed of my comment to install Ghostdoc. It triggered compiler warnings to get XML comments missing, which was great because now I had a list of everything I needed to comment on. The problem One of my code files is an automatically generated file, which contains 3000 compiler warnings. I should be able to leave that file from creating "missing XML comment" compiler warnings. I know these things from the post: I know that I can stop the compiler warning for the project, but there are other files in this project which should be compiler warning. I know that I can use the #pragma al...

Hibernate recursive initialization -

I write a function in hibernate so that the whole object graph loads to recurs all properties of the recursively object. I have two complex scenarios where I need to use it 1) Category and sub-class like the entire object itself ... @Entity Public Category Category {@ Column (fable = false, length = 50) @noteNote @ size (max = 50, message = "{50}") string name was preserved; @ManyToOne (targetEntity = Category, Fetch = FetchType.LAZY, Optional = True) Private Category parentCategory; } 2) Complex object graph that has many objects to initialize before use The problem is that I can not use curious induction because I want this whole object graph only in select cases, and I want to normalize the code, so there is no need to write the HQL query for the object. I have written a partial code for this, throws the public empty recurring Initialisy (object obj) exception (if (Hibernate.isInitialized (obj)) Hibernate. Property entry (obj); property descriptor [prope...

python - Better optimization technique using if/else or dictionary -

Which is better customization? A series of if / else statement that gives 'string' the appropriate function for it (around 40-50 if / other statement) key-value pair A dictionary to maintain A key function in the form of the string, the value as the function object, and the search for the function object and returning. What is the best way to function the function that actually uses the above method, millions or billions times, so it needs to be done wisely? For example dict ['str1'] = func1 dict ['str2'] = func2 and so on .. def main_func (str): return dict [ [Str1]: return func1 elif 'str2': return func2 or def main_func (str) Pre> Which would be better ..? If we have 50-60 such strings, and this process needs to be billions of times. Function Object inside the function within the dictionary, in the function itself: - def func1 (): if dict.has_key ('str1 '): Dict [' str1 '] = func1 - do something - ...

paypal - How to query an order using Google Checkout API? -

Google Checkout में, एक चेकआउट-खरीदारी-कार्ट अनुरोध को पोस्ट करने के बाद, Google एक सूचना भेज देगा जिसमें कई बार एक सीरियल-नंबर होता है मैं आदेश को चार्ज या क्वेरी करने के लिए इस सीरियल-नंबर का उपयोग कर सकता हूं। अगर मुझे यह अधिसूचना याद आती है, तो क्या कोई अन्य एडीआई क्वेरी के लिए क्वेरी या चार्ज कर सकता है? क्या googld-order-number कोड> एपीआई कॉलबैक यूआरएल ? चूंकि मुझे लगता है कि कभी-कभी यह संभव है कि हमारा सर्वर Google से आने वाली सूचनाओं को संसाधित करने में विफल हो सकता है। पीएस भुगतान शुरू होने पर पेपैल एक टोकन उत्पन्न करेगा। मैं उस संगत टोकन के साथ एक आदेश पूछता हूं और चार्ज कर सकता हूं। प्रत्येक सीरियल-नंबर एक विशिष्ट प्रकार की सूचना को दर्शाता है फिर डेटा प्राप्त करने को सीरियल-नंबर का प्रतिनिधित्व करता है। यदि आप सीरियल-नंबर को संग्रहीत करते हैं तो आपको भेजा गया "पुनः चलाएं" नोटिफिकेशन कर सकते हैं (और उसके बाद एक अधिसूचना इतिहास अनुरोध करें)। आप इस एपीआई के लिए सीरियल-नंबर का उपयोग नहीं करते हैं आप ऑर्डर नंबर ( googl...

iphone - viewController automatically plays for set time then switches to next viewContrllofer -

Hi, I want the viewcontroller to appear for a set time, then dissolve a new view controller. Perhaps the use of nstimer The easiest way: [self performSelector : @selector (toNewViewController :) with object: after zero: time insecond]; That's it. You only have to type the controller to see the controller transition to see the controller transition in method.

c++ - Unity3d Android plugin issues -

When I try to access my shared library from the Unity Android player, I'm having a DllNotFoundException I can see Assets- & gt; Plugins-> Android files placed in the folders on which the article told me. I ran the adb logcat and saw the log and here is a piece of error: e / (532): inv_get_mag_rate e / (532): inv_get_mag_rate d / dalvikvm (27320): try to load unable to find lib /data/data/com.pheenixstudios.tankraigearena/lib/libwinsocklib.so 0x419ccfd0 e / Integration (27320): winsocklib D / dalvikvm (27320): try to load lib /data/data/com.pheenixstudios Has been doing. tankraigearena / lib / libwinsocklib.so 0x419ccfd0 E / Integration (27320): winsocklib unable to find D / dalvikvm (27320): load lib /data/data/com.pheenixstudios.tankraigearena/lib/libwinsocklib.so 0x419ccfd0 E / Integration trying to (27320): unable to find the e winsocklib / (532): inv_get_mag_rate e / (532): Inv_get_mag_rate e / (532): Inv_get_mag_rate e / (532): Inv_get_mag_rate e / (532): Inv_get...

Buckminster is throwing component not found and org.eclipse.core.runtime.CoreException Exception in Eclipse -

I am trying to create Eclipse product with BackMinster. But when I start the operation and select create.product I do This is showing me the ingredient "The name of the plugin" was not found in Bakmanister and the organization. Eclipse.core.runtime.CoreException. How to solve these issues. No trolling, but you should switch to Tycho, the base basis of the CBI () Here are some resources: Regards

sqlite - SQL conditionally select different aggergates -

Assuming I have a table T , which has one attribute, A , an integer I return SQL query MAX (T) + 1 if T is a 5 and maximum (t) + 2 If not it? select MAX (A) + case when (choose from one (in 5)) Then some T as 1 ELSE 2 END with max_plus_

c++ - Extend boost::dynamic_bitset to add some functionality -

मैं कुछ कार्यक्षमता के साथ boost :: dynamic_bitset वर्ग को बढ़ाने की कोशिश करता हूं, जैसे कि गिनती एक और ऑपरेशन के बाद बिट्स, आदि। इसके अलावा मुझे निजी सदस्यों (एम_एनयूएम_बिट, आदि) तक पहुंच की आवश्यकता है क्योंकि मैं सेट () पद्धति को "ओवरराइड" करने में सक्षम होना चाहता हूं ताकि बीटसेट की क्षमता को सुनिश्चित किया जा सके फिर से आकार () एफटीपी, यदि सेट के बिट के pos अधिक है तो वर्तमान बिट्स क्षमता यदि मैं मूल सेट () fct का उपयोग करता हूं तो उस मामले में एक तर्क त्रुटि के कारण (क्योंकि set () विधि ऐसी स्थिति में आकार नहीं है) मुझे टेम्पलेट्स के साथ बहुत अनुभव नहीं है, मैं कुछ हफ्तों के बाद भी सी ++ में वापस आ रहा हूं, यह थोड़ा गड़बड़ है, शायद कोई मेरी मदद कर सकता है मैंने ऐसा करना शुरू कर दिया: टेम्पलेट & lt; typename ब्लॉक, typename आबंटक & gt; कक्षा विस्तारित बिटसेट: सार्वजनिक बढ़ावा :: डायनामिक_बिसेकेट & lt; ब्लॉक, आबंटक & gt; {टाइप-टोफ़ बढ़ावा :: डायनामिक_बिसेकेट & lt; ब्लॉक, आबंटक & gt; सुपर; सार्वजनिक: शून्य सेट (std :: size_t po...

css - Django: Hiding necessary forms on template page -

I have a DJ ango application that takes the latitude / lawn from the user's coordinates through HTML 5 geographical location and these are jQuery Keeps in the form field. . Then these markers are placed on a map using these coordinates. It works all too well. Problem: I want to hide these forms so they are invisible to the user, but they still need to be "on the page" so they can get the information. Therefore, these Django forms will not be acceptable except by leaving the file out. I tried a method that hidden the form field but left the form label. I would like to hide the whole line from the user and remove the location where the form field exists, while still in the background to get this information. Is this possible? Any help or insight appreciated. For your ID, enter your form in an ID and CSS set Display: None Alternatively, use a normal class instead of a different ID.

- Where Developers Learn, Share, & Build Careers

I am trying to display and display a tree map to use D3 with a JSO file . Very easy, just trying to get D3 trying to enjoy. However, I put both my tree.js together and after running the script, I get a blank page. The console says that can not load the XMLHttpRequest file: ///Users/aczre/Desktop/d3TestApp/shreleases.json cross original requests are only supported for HTTP not come into consideration Writing Error: 6081 d3_layout_hierarchyChildren d3.v2.js: 6081 recurse d3.v2.js: 5990 hierarchy d3.v2.js: 6033 tree d3.v2.js: 6384 'children' of property null d3.v2.js can not be read Object.nodes d3.v2.js: 6074 (anonymous function) tree.js: 17 d3.json d3.v2.js: 514 ready d3.v2.js: 504 d3.xhr.req.onreadystatechange d3.v2.js : 497 d3.xhr d3.v2.js: 500 d3.text d3.v2.js: 510 d3.json d3.v2.js: 513 (anonymous function) tree.js: 16 Uncaught error: NETWORK_ERR: XMLHttpRequest exception 101 d3. V2.js: 500 d3.xhr d3.v2.js: 500 d3.text d3.v2.js: 510 d3.json d3.v2.js: 513 (anonymous f...

- Where Developers Learn, Share, & Build Careers

I want to add a progress bar while loading my module in my Flex application. In this way I have created a module loader. But I do not know how to use it in my application to load the module. Could anyone help me with this. My codes are as follows: My main application has a view-stack with 2 modules, which is as follows. Note that Module 1 is a login form and when I right click on the entry form, I need to load module 1. & lt; Mx: seestacks id = "main stack" width = "100%" height = "100%" & gt; & Lt; Mx: HBox id = "Mod1Loader" width = "100%" height = "100%" label = "mode 1 loader" horizontal alliance = "center" vertical align = "medium" & gt; & Lt; Mx: moduleloader url = "mod1.swf" id = "module1" /> & Lt; / Mx: hbox & gt; & Lt; Mx: HBox id = "Mod2Loader" width = "100%" height = "100%" label = "mode 2 lo...

time - In JavaScript how to get second of current day? -

Then the question is described in the title. I need to get the current second of the day using javascript. You add bits: var dt = new date (); Var seconds = dt.getSeconds () + (60 * dt.getMinutes ()) + (60 * 60 * dt.getHours ()); or if you prefer var dt = new date (); Var seconds = dt.getSeconds () + (60 * (dt.getMinutes (+ + 60 * dt.getHours ())));

- Where Developers Learn, Share, & Build Careers

Which of the two definitions is correct? Static typed - Type matching is checked at compile time (and can therefore only be applied to compiled languages) Dynamically typed - Type Match is checked at run time, or not at all. (This term can be applied for compiled or interpreted language) Staticly typed - assigned to type variable So that I will say 'x type int' . Dynamically typed - types are assigned to values ​​(if at all), then I would say Which is correct, or is not quite right? Which is correct, or is not quite right? The first pair of definitions is close, but not quite right. Static typed - compile time of type matching (and therefore can only be applied to compiled languages) It is difficult, I think that if any language was used, but the type of investigation was done before the execution began, then it will still be typed steadily. OCaml REPL, an example of this, leaves almost technically compiled (and type-check) source cod...

sdk - Google App engine(Python) "No module named webob" -

Recently I updated my GAE SDK version to 1.6.4 , while my server , Throw it "a module called webbown" & amp; Exiting note: Using python2.5 Is there an external patches or stuff to solve this problem? If anyone has to face this problem and solve it, please guide me, how it happened You may need to specify it in your app.yaml See document here

Android Localization tool -

I have text resources in Android, some have already been translated, while others are unavailable. Is there a tool that can import Value XML file besides the Value XML file for Italian and checks whether it is missing and helps in incorporating unavailable translations? I tried Omgati, this program imports Android resources and also writes in it. However, it did not show translated content already. Virtal Translator does not support XML files as input. I have to make a simple tool outside Eclipse, so that I can help others translate things. I've been considered the easiest and easy to use for Android string translation. It supports Android XML string import and I believe that you can import your individual files in a single translation and it will fill your unavailable definitions. Export will provide you an XML with all your definitions together, and it also has automatic translations or you can invite translators / friends to work with you by putting your email int...

bash - Directory of a file from path -

I have a string of file paths in my shell script. The path of the directory I want to remove the file part For example, if the path is: path = "/ var / www / index.html" me / var / Post-text "itemprop =" text "> Try: ~ $ Path = "/ var / www / index.html" ~ $ dir = $ {path% / *} ~ $ $ echo $ dir / var / www

Android, How to send HTML email and force Android to send it through G-Mail not other applications? -

Image
I want to send an email through my application. I need to send HTML based email through G-Mail. I have got the following solutions, each of which is professional and cons. 1) Use of intent (Intent.ACTION_SEND) This is a very easy way and I can see my body in HTML format, but the problem is that when I click the "Send Email" button , So many applications such as Facebook and Google+ pop ups that are useless and should not be shown to me in that list. This is his code: string html = "& lt;! DOCTYPE html> body & gt; 2) Use of intent (Intent.ACTION_SENDTO). This way the filter shows useless applications and only shows the mail client but it does not display my email in the Gmail client in the HTML client. When I send an email, some clients show body in HTML format while others do not recognize HTML and my link behaves like plain text. This code is as follows: string html = " body> gt; & lt; a href = \" http: / /www.w3schools...

How to get list of git tags, which contain a specific file? -

Is there any way to get a list of git tags that have a specific file? Just pipe for the xpace and check for each tag: Git tag | Xargs -i {} bash -c 'git ls-tree -r {} | Grep yourfile & gt; / Dev / null & amp; Amp; Echo {} '

- Where Developers Learn, Share, & Build Careers

In many places there is no check for zero after the malloc or memalign in the small kernel boot loader. For example: in zero to Flash_init (empty) flash_code = memalign (32, 1024); Char * target_cmdline (char * org_cmdline) {cmdline = (four *) Molk (MAX_CMDLINE_LEN); Memset (CMDline, 0, MAX_CMDLINE_LEN); } Is it supposed to return the malloc zero when booting? shunty, you should probably do some code background research :) Referring to the fact that Google / Qcom by the author of LK, and that part (aboot) is not created using some of the legacy Android bootloader dump, I still have files that look very similar but not published They can do it for the public domain The reason they are not checking for zero is because the legacy bootloader was implemented as a very basic form in the heap, there was no free, no fragmentation, just allocated, pay address and forget that is the reason The pile was not used for a very long time, so there was no problem there, but in the ...

- Where Developers Learn, Share, & Build Careers

I am looking for a framework to use in a C ++ distributed number crunching application. Setup looks like this: A master node that breaks the problem domain into small independent tasks. Work has been built in different capacities of worker nodes (such as CPU type / GPU-enabled). Work nodes are dynamically added to the calculation grid, because they are available, it can also be that a worker node dies, without saying goodbye. To complete this setup I am searching for a fast C / C + + framework. In short, my main requirements are: Worker / Work Dynamically add / remove nodes Target Network: 1G - 10G Ethernet (corporate network, good performance is not required on the internet) Optional: Encrypted and certified communication What you definitely want to do with you MPI-2 added dynamic process management features and I Most of the deficit that is currently widely used to be Lagukrnon made the offer in. One advantage of using C ++ + MPI is that combining scienti...

Convert two dimensional array to List in java? -

I have a mxn two-dimensional array of an object Foo . So I have foo [] [] foosArray . In Java, the list & lt; Foo & gt; What is the best way to change it? this [[array [0] -alems], [array] [2] 1] ames] ...] public & lt; T & gt; & Lt; T & gt; Dodiertolist (T []]]]] {list & lt; T & gt; List = New Arrestist & lt; T & gt; (); (T [] array: dodayarere) {list.addAll (Arrays.asList (array)); } Return list; }

- Where Developers Learn, Share, & Build Careers

We use Team Foundation Server I was wondering if it is possible to store knowledge in any form in TFS . For example, if someone fixes a bug, it would be good to document the solution and it will also be available for others / search (other team projects). The solution can actually be applied in other contexts. We also use SharePoint, so the integration of both of these is possible. For a workgroup for localized information (say, a screenshot for a bug, etc.) that There is a way to distribute data directly in the workplace. Consider the SharePoint in the life-time data that is beyond the working knowledge (knowledge base accessories, ongoing documentation, etc.). So for your example, if there was some data to get rid of the defect that was localized and there was no real long term value, then you would leave it in the workplace for historical reasons - but if for this If there is long-term value, then consider sharing it back into Sharepoint (Wiki or any other document), an...

- Where Developers Learn, Share, & Build Careers

To define an entity framework - the serializable class (EF code first) gives us the public virtual properties of data holders Need to be used in the form, which will later be used as a column in DB, it prevents the developer from initializing the instances of a unit from a producer, I want my institutions not to be Data "methods of getting the bucket", but also behavior, such as manipulation of data within the constructor Institeshn and object to the new object. I think I can have ways, but what should I do to overcome the controller limit? Should I present the wrapper class, which will institute a property property-property and use it instead? You can have the methods "as you want", as well as the properties of the Will not be mapped in DB or properties containing NotMappedAttribute , which will not be mapped ... Note: Only navigation properties (references and archives) should be virtual to load lazy. Not antique I think this is a NHnibernate require...

notifications - App registration ID not generating in GCM Android -

I have tried some forum pages and searched the stackoverflow for the same thing, but I could not find the solution. I used the code below to generate registration ID for GCM notification. But I get an empty string as a registration ID: GCMRGISTARS; CheckDivis (this); GCMRegistrar.checkManifest (this); if (gcmrgistarar.ICr registered (it)) {log d. ("Information", GCMRGistAir.Jet Registration Registration (this)); } regId = GCMRegistrar.getRegistrationId (this); Logs. V ("log", "register id oslo:" + regId); If (regId.equals ("")) {// This project ID GCMRAgstarber Replace it with the registrar (this, "718437041388"); Log D. ("Information", GCMRGistAir.Jet Registration Registration (this)); } Other {log d. ("Information", "pre-registered" + regId); } Please help me with this, tell me that I have anything wrong. Thanks in advance, Nirvana. must not have a registration ID after GCMRegistra...

Python matplotlib library install in max os x -

I am trying to install the matplotlib library for Python. The establishment was okay, but when I imported Yellowbank (such as Import Yellowab P) in Pythab, I got the following error. file "/ library / frames / python framework / version / 2.7 / lib / python2.7 / site-packages / matplotlib / mathtext.py", line 61, & lt ; Module & gt; dlopen (/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so, 2): As _png ImportError did not import matplotlib._png symbol referred to _png_set_longjmp_fn expected /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so: flat name /Library/Frameworks/Python.framework/Versions/2.7/lib/python2 Location. 7 / site-packages / matplotlib / _png.so Google searches indicate that the link error (which does not appear for "_png_set_longjmp_fn") 32/64 Bit Compiling Issue for PGG Library I tried to re-install matplotlib based on the README.osx...

Test if element exists jquery -

I am trying to see if any of these is present in uls. I tested it. Length but I'm not sure I'm doing this right. This is alerts, even if there is no one with the selected sub-domain class. if ($ ('ul.expul & gt; li.select-sub-domain'). Length & lt; 0) {var sub_doma = "set is not" ; Warning ("no"); } And {warnings ("yes"); Var all_domain = $ ('li.select-sub-domain'). Attr ('id'); Var sub_domainSplit = sub_domain.split ('-'); Var all_dom = all_domain split [1]; } & Lt; Ul class = "one expo" & gt; & Lt; Li class = 'select' id = eng-88> 1 & lt; / Li & gt; & Lt; Li class = 'Select' id = IN-89 & gt; 2 & lt; / Li & gt; & Lt; Li class = 'Select' id = eng-90 & gt; 3 & lt; / Li & gt; & Lt; Li class = 'Select' id = ins-91 & gt; 4 & lt; / Li & gt; & Lt; Li class = 'select' id = eng-92 ...

objective c - Control doesn't come back to application after uploading photo to Instagram -

मैंने अपने आवेदन के साथ क्या किया है: कार्यान्वित मैं Instagram एकीकरण के लिए आवेदन में कोड है कि मैं सफलतापूर्वक Instagram खोलने और Instagram सर्वर पर एक छवि अपलोड। इसके अलावा मैं अपलोड की गई तस्वीर को दिखाता हूं। समस्या इन-ऐप छवि शेयरों को Instagram एकीकरण के माध्यम से (जो है फेसबुक एकीकरण के समान है), नियंत्रण मेरे आवेदन पर वापस नहीं आ रहा है क्या Instagram के माध्यम से एक तस्वीर साझा करने के बाद क्या मेरे आवेदन पर नियंत्रण वापस करना संभव है? सामान्य तौर पर, किसी निश्चित बिंदु पर आपका कोई अन्य ऐप खोलने का कोई ठोस तरीका नहीं है। आप जितनी अच्छी उम्मीद कर सकते हैं, उतनी ही आप उम्मीद कर सकते हैं कि आपके ऐप के साथ पंजीकृत कस्टम स्कीमा का उपयोग करने वाले यूआरएल को खोलने के प्रयास में ऐप को समझना चाहिए। मैं पर स्किम्ड, और एक यूआरएल आधारित कॉलबैक के साथ एकमात्र तंत्र प्रमाणीकरण प्रतीत होता है (पोस्ट एथ पर एक छवि नहीं गुजर रहा है) आप एपीआई को और अधिक देख सकते हैं, यह देखने के लिए कि क्या आप हाथ से पूरी तरह से बच सकते हैं, लेकिन मुझे वास्तव में उपयोगकर्ता की ओर से ए...

- Where Developers Learn, Share, & Build Careers

Based on matplotlib, how can I change the brown background of 3 axis grid planes? I would like to set it grid lines in white form with the default brown color I found but I could not apply it for example. Thank you. Using the same example. You can set the panel color by using the set_pane_color method as described here. You can set color by using RGBA Tuple: # scatter3d_demo.py # ... # Background color of the panel YZ ax.w_xaxis.set_pane_color ((1.0, 1.0, 1.0, 1.0)) plt.show ()

r - Error: order.by requires an appropriate time-based object PerformanceAnalytics -

'I'm new to R and more than ts objects I use dataframe (DF) to display analytics on vector Try I have the following data frames: row.names Date PnL 1 22 1992-01-02 -1.751133e-02 2 23 1992-01-03 -1.586737 E-02 3 24 1992-01-06 -2.898982-02 I tried: tests = SharpeRatio.nualized (df [, "pnl "], RF = 0, scale = 252) TestS = Sharperateo.Unulized (as.ts (df [," PnL "]), RF = 0, scale = 252) Returns the error in the object, and: Error in the checkdata (R, method = "extents"): Data can not be converted to a time series. If you are trying to pass through a name in a column from a data object, then you should use 'data [rows, columns, drop = falls]'. Rownames should have a standard date format, such as '1985-03-15' dput (df [, "PnL") = 0.00994504296273811, 0.00156467225423175, 0.00976137048829638, etc. Dputdf [, "Date") = 8036, 8037, 8040, 8041, etc. The Package Help says that the function works o...

iphone - How to crop image according to the shape created on touch -

Image
I want to crop the image when touching the screen and creating the user a special size. For example, when the user touches a figure (green color) and draws the image below, then the image inside the shape will be cut and displayed as a new UIImage. : I know that How to conceal an image and also know how to cut an image in rectangular shapes but do not know about it. Can anyone help? Try to do something like this, this is not the right question, but for a little change this algorithm Should work for you! This does not give the exact code for any platform, but mathematical geometry and general looping algorithm how to accomplish such a task. Within iOS you will need to create new image creation (and actually pixel transcript) using core graphics. Things you'll do to see. Screen resolution for actual image resolution If image resolution is different, when you calculate the calculation of crop area, the crop zone can increase or shrink when the actual backing i...

- Where Developers Learn, Share, & Build Careers

MySqlCommand स्थिति = नया MySqlCommand ("request_status से name_ru का चयन करें जहां id = '50'", conn); MySqlDataReader dr_status = status.ExecuteReader (); dr_status.Read (); MySqlCommand सीएमडी = नया MySqlCommand (क्वेरी, conn); dt.Load (cmd.ExecuteReader ()); MySqlDataReader dr = cmd.ExecuteReader (); त्रुटि: MySqlDataReader पहले बंद होना चाहिए कृपया, सहायता ... आपको एक ही समय में केवल एक रीडर का उपयोग करना होगा। आप तीन का उपयोग कर रहे हैं सभी पाठकों को एक प्रयोग-ब्लॉक में लपेटें ताकि वे सभी मामलों में निपटा सकें। ExecuteReader जो आपके एसक्यूएल को निष्पादित करता है। आपके नमूना कोड में आप एक ही एसक्यूएल तीन बार निष्पादित करते हैं जो आपके इरादे से नहीं हो सकता है।

vb.net - TreeView parent and leaf nodes of their root node -

Text after "div class =" itemprop = "text"> I have a hierarchy Season 1 with a field 1 Field 1 field with a tree view 2 crop show data in gridview with 1 crop 2 Farm 2 field 1 field 2 crop 1 crop 2 and a GridView displays data against treeview node selected value.I use SQLDataSource following code and query dim cmd as OleDbCommand = new OleDbCommand () TreeView1.SelectedNode.Depth = 0 then select the SqlDataSource1.SelectCommand = ( "V_FARMS * where SSN_id = '' if & amp ; TreeView1.Selected Node. Price & amp; " '") elseif TreeView1.SelectedNode.Depth = 1 then SqlDataSource1.SelectCommand = ( "Choose V_FARMS * where FRM_id =' '& amp; TreeView1.SelectedNode.Value & amp;"' ") elseif TreeView1.SelectedNode.Depth = 2 then SqlDataSource1.SelectCommand = ( "Choose V_FARMS where FLD_id = '" & amp; & Tree View 1. selected node. value and amp; "'") Elesef T...

osx - Keyboard mapping for chorded keyboard -

I want to create a new key package on Macaux, so I can create advanced multi-key commands. To convert the keyboard into a cursed keyboard, I want to create a keymap, c-like languages ​​have been optimized for writing code. What I am thinking, is it possible to make a normal keyboard, or is it possible to make a layer in the OS, to keep the keyboard input at a lower level and implement the change there. If not, then anyone can know where I can find the source code for the driver for a normal HID - keyboard, that I can use as a base for such a keyboard driver ? I think this is where you want to start: I really I am interested in trying the same thing, I really dislike most loquacious keyboards and want to project / w / o.

capybara - Is there a way to check which cucumber scenario called a certain step? -

I have two scenarios in two different feature files, but both scenarios test the search functions, but my pages On different parts of In scenarios, I see something like this: Scenarios Outline: Search items from Quick Search, considering that the following items. ID | Title | | 1 | Item 1 | 2 | Item 2 | When I & lt; Criteria & gt; In this search then I'll be able to & lt; Results & gt; And let me & lt; Excluded & gt; Example: | Criteria | Results | Excluded. | 1 | 1 | 2 | | 2 | 2 | 1 | And: Scenario outline: Using a filter Given that I have the following things: | Id | Name | | 1 | Thing 1 | 2 | Talk 2 When I & lt; Filter & gt; & Lt; Benchmarking & gt; Filled with this I'll get this & lt; Results & gt; And let me see this & lt; Exclusions & gt; Examples should not be obtained: | Filter | Criteria | Results | Exclusion | | Name | Talk 1,2 | | | | ID | 1 | 1 | 2 | As you can tell in another scenario, I have c...