Posts

Showing posts from September, 2012

binary search tree - Applications of BSTs in HPC -

Are there binary search trees used in HPC workloads? I know that using the quad-trees and fact-tree to represent 2D and 3D spaces in many HPC applications is done. For example, uses the Barnes-Hat algorithm oct-trees . The tractor-tree is used in the cfd application. But I was not able to find any workload using a parallel / concurrent version of the BST or BST Yes, they are similar to many other basic data structures. There are only special types of BST graphs, so they can be paralleled. The most complex part is balancing the tree when it changes too much (the unbalanced BST is still BST) and the number of processors is high, not all groups are equally good for graph functions, and this can improve. For example, parallel implementations of some BST and some BSTs in HSP libraries: - PtTRNFNDR - to find patterns in DNA sequences; Threading parity is shown , 2000 states that KD trees, which are multi-dimensional binary search trees, were useful for spa

android - Name of technique behind 3D effects like HTC one dimension plus -

HTC uses dual-camera to achieve an M8 3D dimension plus effect What is the name of this technique ? This is a demonstration: This image is for more information: There is no need to reverse engineer - dimension plus effect is only to implement 2D-plus effects (if you want a name) as described here: Use of this effect uses a depth map which is included in the photo to create a standard geometry, which is used by the SDK Gyo And access to the view that (alternatively you can touch navigation program).

ios - Customised NSLog generate error when I pass [ description] as parameter -

Image
मैंने अपना स्वयं का NSLog बनाने का अनुसरण किया है। iFob-Prefix.pch में: #import "log.h" #ifdef DEBUG_MODE #define NSLog (आर्ग्स, ...) _ लॉग (@ "प्रीफ़िक्स", __FILE__, __LINE__, __PRETTY_FUNCTION__, आर्ग्स); # एल्स # डीफ़ोन एनआईएसओॉग (आरजीएस, ...) में लॉग एच @ इंटरफेस लॉग: NSObject void _Log (NSString * prefix, const Char * फ़ाइल, int पंक्ति संख्या, const char * funcName, NSString * प्रारूप, ...); @end में लॉग। M #import "log.h" #import & lt; objc / runtime.h & gt; # परिभाषित PADDING_TABS 10 @ कार्यान्वयन लॉग अमान्य _ लॉग (NSString * prefix, const char * फ़ाइल, int lineNumber, const char * funcName, NSString * प्रारूप, ...) {va_list ap; Va_start (एपी, प्रारूप); format = [format stringByAppendingString: @ "\ n"]; NSString * msg = [[NSString alloc] initWithFormat: [NSString stringWithFormat: @ "% @", प्रारूप] तर्क: एपी]; Msg = formatJsonData (msg); va_end (एपी); fprintf (stderr, "\ n% s [% 30s:% 4d] -% s&q

angularjs - Adding extra elements conditionally with ng-repeat -

I am using bootstrap and want to create lines of content with each row of three rows, where each column Content will be represented in NG-Dual in an object It will look like this: & lt; Div class = "row" & gt; & Lt; Div class = "col-md-4" & gt; & Lt; div class = "panel panel-primary" & gt; & Lt; div class = "panel-title" & gt; & Lt; H3 class = "panel-title" & gt; Panel title & lt; / H3 & gt; & Lt; / Div & gt; & Lt; Div class = "panel-body" & gt; Panel content & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "col-md-4" & gt; & Lt; div class = "panel panel-primary" & gt; & Lt; div class = "panel-title" & gt; & Lt; H3 class = "panel-title" & gt; Panel title & lt; / H3 & gt; & Lt; / Div & gt; & Lt; Div class = "panel-

Azure SQL web server - virtual machine , server agent stops it self and so the jobs scheduled -

Windows Azure SQL Web Server - With the use of virtual machines I have small sized SQL Web servers - VM for multiple databases. I have seen that the server agent prevents it from itself, and therefore the scheduled work was not executed on time. Were. Any solutions / suggestions on this? As Pride has indicated that you can view the event logs, but you can use the SQL Server logs You can also observe more insights if it is something deep: -matt

android backbutton in fragment calling 2 times -

Text after "div class =" itemprop = "text"> In one of my apps, I think the key is to provide the exit dialog on pressing the back key. Code View View = inflater.inflate (R. Late Fragment_Layout1, blank); view.setFocusableInTouchMode (true); View.requestFocus (); View.setOnKeyListener (New OnKeyListener) {@Override Public Boolean onKey (see arg0, integer keycode, keyEvent ARG2) {Log.i ("tag", "keycode:" + keycode); if (keycode == KeyEvent.KEYCODE_BACK) {Log.i ("tag", "onKey back listener is working !!!"); // getFragmentManager () popBackStack (Zero, FragmentManager.POP_BACK_STACK_INCLUSIVE); return true;} else {return false;}}} ); LogCat: 04-22 November: 40: 53.291: me / tag (31,150): encoded: 4 04 -22 11: 40: 53.291: I / Tag (31150): OK back listener is working !!! 04-22 11: 40: 53.351: I / Tag (31150): Keycode: 4 04-22 11: 40: 53.351: I / Tag (31150): OK back listeners are working !!! The problem is th

clojure - How to apply a ring-middleware to specific group of routes? -

I have a ring middleware, which, with header value, does some checks on the map on the map. I have to hit the database to check. If a defroutes form a set of routes that start with an unusual URI pattern, I do not want to try to run a middleware for any random URL that already matches the pattern is. I want to run only for a fixed set of intermediate URIs, which I am just sueing under defroutes is because the middleware is used in a database, which I use for the same pattern I want to avoid 404 responses. itemprop = "text"> Here, any macro is a ring handler without magic, whose purpose is for the purpose of composibility and extensibility. Although it is in the initial alpha state, it already has precise docstrings in order to solve the issue that you have internal middleware is a feature called it (and its ) Only you can use it for that you need it and leave the rest in the compositor. Your czozer handler / app is called compojure demo demaller &qu

apache - htaccess remove .php extension from the following -

मेरे पास यह है: पुनर्लेखनकोण% {REQUEST_FILENAME}! -f पुनर्लेखन नियम ^ (। P> यह प्रश्न के नीचे आपकी टिप्पणी का उत्तर देने के लिए है: RewriteReRewriteRule ^ (। *) .php (। *) $ $ 1 $ 2 [क्यूएसए, एल, आर = 301] पुनर्लेखन कन्वर्ट% {REQUEST_FILENAME}! -f पुनर्लेखन नियम ^ (। *) $ ./index.php?path=$1 [एल, एनसी, क्यूएसए] < / कोड> हालांकि मैं वास्तव में इस में कोई बिंदु नहीं देखता हूं। उन यूआरएल में ".php" एक्सटेंशन कहां से आएगा? मेरा मतलब है कि प्रयोक्ता आपके सिस्टम को खुद पूछने के लिए यूआरएल नहीं लिखेंगे इसके बजाय वे एक लिंक पर क्लिक करते हैं और यह लिंक आपके द्वारा पहले भेजा गया होना चाहिए। इसलिए जाहिर है कि आपकी पहुंच उन लिंक को भेजने के लिए होनी चाहिए, जो उस फ़ाइल नाम एक्सटेंशन को पहली जगह में शामिल न करें!

php - Laravel REST API: Translating query string parameters into database search queries -

I used Laravel 4 & amp; Eloquent I have read some details about writing a good API, in which Phil & amp; Apigee's About complex complexity, it may be cumbersome to obtain parameters from the API negotiation query string, because the query number can vary in number & amp; types of. For example, to get a dog with a black color, request http://url.com/api/dogs?color=black And Dogs With Black & amp; Age will http://url.com/api/dogs?color=black&age=16 $ dogs = new dog; If (Input :: find ('color')) $ houses- & gt; Where ('color', '=', input :: find ('color')); If (Input :: find ('age')) $ houses- & gt; Where ('age', '=', input :: mill ('age')); // Keep adding more for each filter: - | $ Dogs = $ dogs- & gt; Go (); An alternate & amp; Even then, a better method was to use the DB column names as the ultimate names and an advance option was used to generate a query. Howeve

Alternative for HTTPRequest in php -

I am using the HttpRequest class in my php script, but when I upload this script to my hosting provider's server I'm having a fatal error while executing this: Fatal error: Class 'HTPRAEEST' did not get in ... On line 87 I believe the reason for this It is that my hosting provider's php.ini configuration includes an extension supporting HttpRequest When I contacted him, he said that we can not establish the following expansion on sharing hosting. So I want the option of httpRequest that I do it: $ url = http: // ip: 8080 / folder / suspendseubscriber? SubscriberId = $ 5 $ data_string = ""; $ Request = new HTTPRequest ($ url, HTTP_METH_POST); $ Request & gt; SetRawPostData ($ data_string); $ Request & gt; Send (); $ Response = $ request- & gt; GetResponseBody (); $ Response = json_decode ($ response, true); Return $ Reaction; Or how can I use this request in curl because it is not working for blanketstraking? You can use curl

ruby on rails - Remove flash message on refresh of page -

I am planning to log in and I have overwritten my design session controller and the user has the following information Showing the flash message when entering incorrect information using Code to display flash message. & lt;% flash.each do | Name, msg & Gt%; & Lt;% = content_tag: section, msg,: id = & gt; "Flash _ # {Name}" ,: Category = & gt; "Flash"%> & Lt;% end% & gt; And if the user enters wrong email and password, then it is working fine and showing "invalid email or password" message. Now even if I refresh the page, that flash message is still visible but I need to delete the flash message if the page is refreshed. Please help me You can use flash.discard after the display. Probably like: & lt;% flash.each do | Name, msg & Gt%; & Lt;% = content_tag: section, msg,: id = & gt; "Flash _ # {Name}" ,: Category = & gt; "Flash"% & gt; & Lt;% free.discard (nam

ruby on rails - Carrierwave gem is not working in Redmine v 2.x Plugin -

I single ???? Using carrier wave gem in a redmine plugin. But it is not working because it works in a simple rail app. For example, in my uploader category, there is a file_uploader.rb file in my uploaders directory that contains the following code. class FileUploader & lt; CarrierWave :: Uploader :: Base Storage: file def store_dir "boxelements / # {model.class.to_s.underscore} / # {model.id} / # {mounted_as}" and end Please take the uploaders into the main app directory of redmine.

python - create a download command with web.py -

I am new to the web.py, and I try to create a download command. I make it one: import ur urls = ('/', 'index', '/ download', 'download') category index: def GET (self): Return "Hello, world!" Class Download: DEF GET (Self): Path = 'http: \ Localhost: 8080 \ C: \ 11 \ 229077_6482396906_558_n.jpg' Web Ideaire ('Content Dishes', 'Attachment; Filename =' FNAEext '') Web.header ('Content-Type', 'Picture / JPEG') web.header ('Content-Transfer-Encoding', 'Binary') Return Open (path, 'RB'). Read () if __name__ == "__man__": app = web Application (URL, Globals ()) app. Rn () And I have two main problems: When I type Http: // localhost: 8080 / download , why do I give 500 internal server errors? I can choose which file I would like to download (just manually change the path logic) How can I give this function to external logic? 500 is the common error c

Does Selenium 2.5 work with Firefox 28? -

I've got lots of versions of Firefox and Selenium but the Firefox version and selenium version I'm using. I am using Firefox 28 and Selenium 2.5, but the error is due to being unable to connect to hosting. So would I like to know that this combination of firefox and selenium work? no Selenium v2.41, recently released, is the only one to support the original events for Firefox. At the time of supporting Selenium: v2.41.0 ======= 17 ( Immediate ESR release) 24 (current ESR release) 27> So your solution is either to upgrade Selenium or downgrade firefox.

amazon web services - Sync files between 2 or more s3 buckets -

I have a production S3 bucket, which has 80+ GB files, I need to sync this bucket with another bucket. I want to work as a backup bucket with limited access. I can not use the glacier to back up because the time taken for the AWS to restore images I would have to synchronize with another bucket, initially I was running a S3cmd sync in a large ec2 example to ensure that the buckets are sync-in but this is becoming an expensive operation and due to the absence of memory timeout Happening. Is there any way to sync many buckets using S3CMD and which is reliable Please tell me. Thanks We used it to synchronize data between buckets Its great and the transfer is free for a bucket in a geographical position.

ios - Objective c iphone - How to differentiate the production build with qa/debug testng build -

Image
My actual requirement I want to make some changes in some values, this value example Says: We have used the Parse.com frame and nervousness integration into our application to give us some parse / floor integration The keys need to be provided Example: "6Z8Antqqf4u5TZFbUtzePuoPnOjqgkFHsQXmVtGW" of the Client: @ "SydnoseSwowMDFAV 3QRpm2mvVblJsdYYkWHBL8hR"]; I want to use different keys for different types of builds to avoid affecting the original production creation. How can I differentiate build production (Clint Build / AppStore Build) ADHEC -text "itemprop =" text "> You can use preprocessor macros Navigate to your goal, and prepare the settings (make sure everyone selects Has been, and is not original): Example Usage: #ifdef DEBUG NSString * appKey = @ "DEBUG_KEY"; #Els NSSTING * APK = [Config Value Forex: @ "Apke"]; #endif

Get all Record types from NetSuite -

Is the subtitled record type used to access the suite in netset? Description: I need a list of all of the record type (objects) supported in the Netset account, I am trying to integrate netsite and other tools using Java. According to the WSDL file, there is no provision to get all the record types supported. I answered it and thought that I would update it here too ... I will ask this question & lt; Stagecore: Messages & gt; Stuck with getAll record type requirement. & Lt; / PlatformCore: message & gt; Understand that I should post a snippet of this request that should look like a proper soap envelope. As mentioned by other people, this call only supports some record types ... but once you identify the record type of desire, then the code below should help. & lt; Soaps: envelope xmlns: platformFaults = "vase: faults_2014_1.platform.webservices.netsuite.com" xmlns: platformMsgs = "vase: message_2014_1.platform.webservices.netsu

regex - Regular expression should match white space only if some test is entered -JS -

I currently have this regex / ^ [A-Za-z_] {3,20} $ /; The problem with this expression to validate the name in my website is that it matches three or more places! I did not enter any name and just confirmed it three times to enter the hit space! I just want to validate white spaces if I enter some text how to do this? / ^ [azza-jade] [azza-g_] {2 , $ 19 / $ / If you use it, space / undescores will be accepted only after one letter has already been entered.

magento - How to import attributes using Dataflow advanced profile -

I'm importing properties using advanced profile Dataflo and try its value. But I can not understand which model or function I should override. So anyone knows what file or method is using to save the properties ?? Take a look at Mage_Catalog_Model_Convert_Adapter_Product :: save () and Mage_Catalog_Model_Convert_Adapter_Product :: saveRow () methods you most likely Expand the class and add one of their functionality to one of them. In addition, to ensure that a complete product export to verify that you are trying to import the special (import) it does not already exist and have the wrong column header ( Attribute name).

java - Prevent Hibernate session from flushing/ storing invalid dirty entities -

I would like to know that Hibernate 4.3.4 (with Spring and Hibernate vader). In my code, I use the Hibernate Validator (for example, the implementation of a .validate () method manually), which says even before saving an entity. Valid () method gives a list of errors, if someone joins, otherwise the session is asked to update .update () is called to store the unit, after which there is a commitment of transaction. This works, but when the example is manipulated (the post / request parameters are set in unit) then the unit and related hibernate session are marked 'dirty' and unit next session Is accumulated with. (). In my case, I would like to have clear control over those institutions which can be stored and prevent any dirty unit from being stored, how do I get it? Edit: I know that I am going to clean an entity through a unit (or a merge) Removing it manually can be regulated, but this is not my goal. Rather than manually regulating the continuity, I would like

ios - Searching for lib: stream audio player with play list -

Is Libib to play audio from the web? The evaedia player should do this well: Check: (id) initWithContentsOfURL: (ns URL *) url fileTypeHint: (NSString *) utiString error: (NSError **) Out Error or (id) initWithContentsOfURL: (NSURL *) url error: (NSError **) Out Error

html - print button option is working in chrome not in firefox -

यहां कोड है। & lt; बटन & gt; & lt; एक शीर्षक = "प्रिंट करें स्क्रीन "alt =" प्रिंट स्क्रीन "onclick =" window.print (); " लक्ष्य = "_ रिक्त" शैली = "कर्सर: सूचक;" & gt; & lt; i वर्ग = "ब्लैक ग्लिफ़िकॉन ग्लाइफिकॉन-प्रिंट" & gt; & lt; / i & gt; & lt; / a & gt; & lt; / button & gt; प्रिंट बटन विकल्प क्रोम में काम कर रहा है लेकिन फ़ायरफ़ॉक्स में नहीं। कृपया मुझे इस पर काबू पाने के लिए सबसे अच्छा विकल्प के साथ मार्गदर्शन करें। धन्यवाद HTML बटन या एंकर के अंदर इंटरैक्टिव तत्वों को रखने से मना कर देता है। दोनों एंकर और बटन इंटरैक्टिव तत्व हैं। जब आप यह त्रुटि बनाते हैं, तो ब्राउज़र इसे अलग-अलग तरीकों से पुनर्प्राप्त करेगा। फ़ायरफ़ॉक्स आपकी त्रुटि को किसी तरह से ठीक नहीं कर रहा है जो आपको अपनी इच्छा का प्रभाव देगा। आप कहीं भी लिंक नहीं कर रहे हैं, इसलिए & lt; a & gt; तत्व और जावास्क्रिप्ट को ले जाएं जिसे आप & lt; बटन & gt; ।

html - Area under navbar in Bootstrap -

I fail to make proper use of a navbar. In my base I have this code piece in body section. (Or should navbar be in the head ?!) & lt; body & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "navbar navbar-inverse navbar-fixed-top" role = "navigation" & gt; & Lt; Div class = "navbar-header" & gt; & Lt; A class = "navbar-brand" href = "http: // ..." & gt; Company & lt; / A & gt; & Lt; / Div & gt; & Lt; div class = "navbar-collapse collapse" & gt; & Lt; Ul class = "nav navbar-nav navbar-right" & gt; & Lt; Li & gt; & Lt; A href = {{url_for ("strategy_index")}} & gt; Strategies & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; A href = {{url_for ("data_index")}} & gt; Data & lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; A href =

android - how to remove list item created using simple cursor adapter -

I want to get my phone contact list and send them an invitation message. I implemented the list by enhancing the simple cursor adapter for my needs. Now I want to delete a contact from the list (but not my phone) after pressing the button with a custom adapter. Please guide me correctly. I have done so far: Activity class: increases the NotUsing public category {ListView} ListContacts; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.not_using_kicka); Last ActionBeer Actionbars = Matching Actionbar (); ActionBar.setDisplayShowHomeEnabled (wrong); ActionBar.setDisplayShowTitleEnabled (wrong); ActionBar.setDisplayUseLogoEnabled (false); actionBar.hide (); ListContacts = (ListView) findViewById (R.id.not_using_list); Uri question Yuri = Contact contact. contact. CONTENT_URI; String sort order = contact communication Contact .DISPLAY_NAME + "COLLATE LOCALIZED ASC"; // Receive all contacts CursorLoader cu

laravel @layouts doesnt work -

I just installed my first Lavern app, I want to create a simple starter project using layout. I read a lot of tutorials, videos on Google / YouTube, I tried coding with "Copy and Paste" but the code copied to my project is not working. This project is officially the site of Laurel (with Musician). I created an overview of a layout folder - and I created a file named: main.blade.php - I have to use this file to think of a layout under As I have a folder home / home.blade.php - this is my content file. BaseController.php I protected $ layout = 'main'; // layout.main in HomeController.php protected $ layout = 'main'; // layout Main Public Function Show (Welcome) (See return: create ('hello');} main.blade.php : HTML code for header hello should be changed to html.bade.php from html code @ yald ('content') // content. .blog.fp : // Do not enter any place here @extend ('main') //@extend('layouts.mai

html - JavaScript event delegation - how to prevent parent's event from firing -

इस सवाल का पहले से ही एक उत्तर है: < / p> 2 जवाब मेरे पास एक Ul सूची में 3 li s इसके अंदर है। ये li s एक स्लाइडशो के प्रभाव को बनाने के लिए ul के मार्जिन को बदलने के लिए बटन हैं li बटन सभी ठीक काम कर रहे हैं लेकिन जब भी उल क्लिक किया जाता है, अर्थात, li से ul के अलावा कोई भी क्षेत्र, मुझे ul के लिए गलत मार्जिन मिल रहा है। क्या आप ul पर पर गोलीबारी से घटना को रोक सकते हैं का उपयोग करें: ईवेंट को अधिसूचित होने से किसी भी माता पिता के हैंडलर्स को रोकने से, घटना को डीओएम ट्री को बुदबुदाते से रोकता है। उदाहरण के लिए: $ ('ul')। पर ('क्लिक करें', 'ली', फ़ंक्शन (ईवेंट) {event.stopPropagation ()});

javascript - Define global variable inside a function -

Is it possible to define global variables within a function like a dragon? For example - In Python def testFunc (): global testVar testVar + = 1 < P> Is there a way to define testvar global in javascript function? Just ignore the keyword var . function testFunc () {testVar = 1; // `testVar` is now a global winch) Note: In the Python version of your code, you can not define a global Variables You are referring to the variable testVar defined in the global area. Quoted from Assigns a value for an undeclared variable, declares a global variable (it is now the property of the global object) < / blockquote>

c# - Working with arbitrary numbers -

I want to write a class that is simple command like DD (1000000000000, 10000000000) 20000000000 I have found a list of limitations for data types in C #: Data type Maximum positive value Int32 2,147,483,647 UInt32 4,294,967,295 But if my number, for example, 20,000,000,000,000,000,000,000,000,000,000,000 how do you Using System.Numerics.BigInteger Can? P>

javascript - angular.js $resource as a 'service' with dynamic root -

I have a JS library that I would like to supply to my customers, which is based on glass Defines services: Angular Modules ('Services', ['Ngrasource']). Factory ('user service', function ($ resource) {return work (whatsonUserId) {return $ resource ('/ rest / user /: action');}}. Factory ... < P> To use my library, my clients only do this: <<> app.controller ('Ctrl', Function (UserService) {... UserService (.) DoSomething () } When my clients use this library, then they use it in their own HTML which is clearly loaded from their URL. The root URL for my services for rabbits goes wrong. Clearly, the method of correcting it will be to supply a full URL for the resource: Returns $ resource ('www.my .server.url / rest / user /: action '); But I do not have just one' my.server.url '- I have something I have a staging environment I have a development environment, and I have production environments - som

angularjs - totally different dom structure based on different value in ng-repeat -

मेरे पास ऐसा एक जटिल मेनू है & lt; ul & gt; & Lt; li & gt; & Lt; p & gt; गृहमंत्र .... & lt; / p & gt; & LT; h3 & gt; हैलो & lt; / h3 & gt; & Lt; li & gt; & lt; li & gt; & lt; a href = "#" & gt; आइटम 1 & lt; / a & gt; & lt; / li & gt; & lt; li & gt; & lt; a href = "#" & gt; आइटम 2 & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; आइटम 3 & lt; / a & gt; & lt; / li & gt; & Lt; / ul & gt; इस सूची में एनजी-दोहराने कैसे लागू कर सकते हैं? कुछ ऐसा & lt; ul & gt; & Lt; li एनजी-दोहराने = "मेनू में आइटम" ... [अगर item.title == "घर"] & gt; & Lt; p & gt; गृहमंत्र .... & lt; / p & gt; & LT; h3 & gt; हैलो & lt; / h3 & gt; & Lt; / li & gt; & Lt; li [सभी अन्य खिताब के लिए elese] & gt; & Lt; a

sql server - Add an incremental number sequence in SQL INSERT SELECT Query -

Below I have a query to insert values ​​from one table to another table. Vrkflo_grafform-column (Kstmformaidi, column number, column title, column type, select the column list value, Ijhrekwaerd, columns wide, calculations) column number, column title, type columns, Colmlist value the Ijhrekwaerd, columns wide, calculated Vrkflokastformtemp column where Kstmformtaip IID = 66 and column number> 43 now CustomformID in WorkFlow_CustomformColumns For me mo Need to add Yon who move from 250 to 300 You can < / em> it in row_number () from insert : However, it is difficult for me to think of a situation where you really want it. Instead, yo will typically create the CustomerFormId and identity columns and assign the ID to specific numbers.

Wordpress PHP quiz - code to recall answer recalls all past submissions as well -

Excuse me, if the answer to this question is indiscriminately clear, do I just start learning php? Do not believe me 100% on what I am doing. Iâ € ™ ve made a quiz that the user fills on WordPress using the plugin FSQM Pro and when they submit it, it is redirected to a page that answers any questions in the quiz Will display some text with They offer whatever the answer to miss them, I've used this code: & lt; Php global $ wpdb, $ ipt_fsqm_info; $ Form_id = 9; $ Data_ids = $ wpdb- & gt; Get_col ($ wpdb-> Ready ("select ID FROM {$ ipt_fsqm_info ['data_table']} where form_id =% d", $ form_id)); Forex (as $ data_ids $ data_id) {$ data = new IPT_FSQM_Form_Elements_Data ($ data_id); Echo wpautop ($ data-> data-> pinfow [13] ['value']); }? & Gt; However, when I execute it, then it gives all the values ​​that the user has entered for that question with the most recent value given below. How do I get it only in the production of

php - embedded image in svg disappear on converting svg to png -

Image
I think that with some updates on Ubuntu, the embedded PGG image is being shown in the image converted to SVG, with the & lt; image / & gt; tag embedded PNG image). $ svg = json_decode ($ _ POST ['svgdata']); $ Svg = '& lt ;? Xml version = "1.1" encoding = "UTF-8" standalone = "no"? & Gt; ' $ Svg; $ Im = new Imagick (); $ Success = $ im- & gt; ReadImageBlob ($ svg); $ IM- & gt; SetImageFormat ("png24"); $ IM- & gt; writeImage ('png_img / var.png'); If I resonate $ svg then gives me a correct image While the saved image is . For reference: $ svg = '& lt;? Xml version = "1.0" encoding = "UTF-8" standalone = "no"? & Gt; & Lt; Svg xmlns: xlink = "http://www.w3.org/1999/xlink" style = "overflow: hidden; status: relative; -move-user-selection: text;" Xmlns = "http://www.w3.org/2000/svg" width = &qu

javascript - Hide div with close button jquery only with associated div -

This is what I am trying to do, stop notification times if X is clicked inside it. Here is my code: $ ('# closebutton'). ('Click', function (e) {$ ('# previewbox'). Remove ();}); How do I create it, it only closes the warning with which it is connected, though instead of removing all. I'm sure the code requires the word "this" but I do not understand. Use jquery to obtain the parent of each element in the current set of an element, alternate form Filtered by a selector from. Try it out: $ ('# close'). ('Click', function (e) {$ (this) .Parent ('. Alert'). Remove ();});

javascript - Flat mapping and projecting an array with Underscore -

How do I align the parental objects in an array that is a product of each parent and child object underscore with? Take the following values: var parent = [[ID: 1, name: 'John', children: [[ID: 1, name: 'Nancy'}, {ID: 2, Name: 'Bob'}}} {id: 2, name: 'jack'}, {id: 3, name: 'jen', children: [id: 1, name: 'chloe'}, {id: 2 , Name: 'Lisa'}]}] I need the following output: var aggregate = [{id: 1, name: (Id: 2: name: 'Bob'}}, {id: 2, name: (id: 1, name: 'nancy'}}, {id: 1, name: 'john', child: {ID: 2, name: 'jack', child: null}, {id: 1, name: 'jen', child: {ID: 1, name: 'chloe'}}, {id: 1, no : 'Jane', child: {ID: 2, name: 'LISA'}}] I'm guessing that I map and Chening needs to be used. You can map your child in an array of children and then adjust it to get a list of parents: Child var all = _ (parent). Chain () Map (function (parent) {// if t

Sorting items In NSDictionary -

I'm reading items from plist in dictionary, I have the button to set the title and value in the dictionary as a dictionary I'm using the keys. Now I have to sort the objects in the dictionary, I do not want to put the sorted item in the array, because I am using the dictionary to set the title and tag for the button. I checked the link, but most of them are putting the solved items in the array. How can I do this using the array and use the same dictionary instead? Here is the code snippet while (key = [keyEnumerator nextObject]) {UIButton * btnWith = [UIButton buttonWithType: UIButtonTypeRoundedRect]; btnWith.tag = [[topics objectForKey: key] integerValue]; [BTND SET SETITAL: State for Key: UICOnTrustStateAnimal]; BtnWith.titleLabel.font = [UIFont fontWithName: @ "Aller-Light" Size: 15]; [BTND Set Settleer: [UIColor blackcolor] forState: UIControlStateNormal]; BTN Wide Contour Horizontal Alignment = UCentral ContentHoriginal Alignment; [Btnw setbackground disp

ios7 - IOS 7 Unable to change background image of search bar -

I am unable to customize the search bar in my iOS 7. I was using the following code to change the search for Background IOS6 (UIView in the searchbar subviews * v) {if ([v isKindOfClass: NSClassFromString (@ "UISearchBarTextField")]) {v.superview.alpha = 0; UIView * containerview = [[UIView alloc] initWithFrame: Searchbar.fr;); [View Container Adviewview: V]; [Self.view addSubview: container view]; [[Edit UITextField PresentsNow: [UISearchBar class], zero] setTextColor: [UIColor whiteColor]]; [[UISearchBar Presence] Set Search Fielded Background Image: [UIImage imageNamed: @ "Search"] forState: UIControlStateNormal]; }} On the other hand if I customize search controller to delete the default cancel button in the search bar, it was working fine in iOS 6, but the custom search controller Do not search with iOS 7. It would be better if you use a text field instead and change the background image because this sub- Is a square and handles the same property.

vb.net - Update a partial view from another partial view in ASP.NET MVC without updating all the views -

Image
I have two partial views, for the left one, the menu, and the right one, the content. When I click "Link 1 "I want to switch the" content "field from partial view" PartialViewContent1 "to" PartialViewContent1 " In terms of code, I actually manage to do this. File index. Vbhtml & lt; body & gt; & Lt; Articles & gt; & Lt; Section & gt; & Lt; P & gt; @ Html.Action ("Menu", "Menu") & lt; / P & gt; & Lt; / Section & gt; & Lt; / Article & gt; & Lt; On one hand & gt; Episode "Menu3" @ Html.Action ("PartialViewContent3", "PartialViewContent3") Episode @ Html.Action ("PartialViewContent2" "Partial View Content 1", "Partial View Content 1") Select End & lt; / Aside & gt; File PartialViewMenu.vbhtml & lt; Ul & gt; & Lt; Li & gt; @html.exe link ("link 1",

Parallel programming in C with no threads or high-level libraries -

I'm playing with parallel programming in C; Therefore, whatever I am looking for, I look at the articles which are at the top of Threads or OpenMP , MPI , / Em> Windows or forks on * Nix; I get the following questions: Can a single process be forking on the same thread and without ? Are there other ways to write parallel code, but with the basic structure blocks available in C? Something that can be done manually by moving around the beats, purely in C built functions - not using a high level library which uses operating system features? In addition to this, the purpose of the question is to get a better understanding of how parallel programming works in a nearby metal world to re-convert micro-optimization or libraries. I have no interest. Update I am thinking of basically writing the callback function and when an event happened, they were called; But I'm not sure whether it will make it parallel or not. Is a single process parallel on a si

html - JQuery Slider Code doesn't work -

यहां फ़ाइल लिंक है: & lt;! DOCTYPE html public "- // डब्लू 3 सी / डीटीडी एक्सएचटीएमएल 1.0 ट्रांसक्रिप्शन // एन "" w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt ;; & lt; html xmlns = "w3.org/1999/xhtml" & gt ;; & Lt; शीर्ष & gt; & Lt; meta http-equiv = "सामग्री-प्रकार" सामग्री = "पाठ / html; वर्णसेट = आईएसओ -8859-1" / & gt; & Lt; title & gt; स्लाइडर & lt; / title & gt; & lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" src = "jquery-1.2.6.min.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; $ ("# स्लाइड शो & gt; div: gt (0)")। Hide (); SetInterval (function () {$ ('# slideshow & gt; div: first')। फेडऑट (1000) .next ()। फीडइन (1000) .end ()। ऐपेंडटो ('# स्लाइड शो');}, 3000); & Lt; / स्क्रिप्ट & gt; & LT; शैली & gt; #slideshow {मार्जिन: 50

c# - Nhibernate mapping by code, Could not determine type for property -

मेरे पास इकाई वस्तु उपयोगकर्ता और मान ऑब्जेक्ट प्रोफ़ाइल है। पब्लिक क्लास उपयोगकर्ता: इकाई & lt; Guid & gt; {... सार्वजनिक वर्चुअल प्रोफाइल प्रोफाइल {get; सेट; }} सार्वजनिक वर्ग प्रोफाइल {... सार्वजनिक वर्चुअल उपयोगकर्ता उपयोगकर्ता {get; सेट; }} मैं कोड द्वारा nhibernate मानचित्रण का उपयोग कर रहा हूं और मैं UserMap.cs में Component (c = & gt; c.philile, प्रोफाइलमैपिंग ()); प्रोफ़ाइल मैप.cs सार्वजनिक वर्ग प्रोफाइलमैप {सार्वजनिक स्थिर कार्रवाई & lt; IComponentMapper & lt; प्रोफ़ाइल & gt; & gt ; मैपिंग () {वापसी सी = & gt; {... सी। प्रॉपर्टी (पी = & gt; पीयूसर); }}} यूनिट मैपिंग परीक्षणों पर मुझे अंदरूनी अपवाद संदेश में त्रुटि मिल रही है "के लिए प्रकार निर्धारित नहीं कर सका: MyApp.Domain.Model उपयोगकर्ता, MyApp.Domain, संस्करण = 1.0.0.0, संस्कृति = तटस्थ, कॉल के लिए सार्वजनिककीटोकन = नल,: NHibernate.Mapping.Column (उपयोगकर्ता) "} ps जब मैं मैपिंग उपयोगकर्ता संपत्ति से प्रोफाइलमैप और प्रोफ़ाइल संपत्ति में

proxy - No connection could be made because the target machine actively refused it 127.0.0.1:8118 -

This is causing the error - "Unable to connect to remote server "Tow default proxy - 8118. I have not got the solution for it but it did not work for me is goggled code - process p = new process (); P.StartInfo = New ProcessStartInfo (@ "C: \ Users \ King \ Download \ Tow Browser \ Application \ tor.exe", "ControlPort 9151 CircuitBuildTimeout 10"); P.Start (); Thread.Sleep (5000); Regex regex = New Regex ("\\ d {1,3} \\. \\ d {1,3} \\. \\ d {1,3} \\. \\ d {1,3}", RegexOptions.Multiline); Do {HttpWebRequest Request = (HttpWebRequest) WebRequest.Create ("http://whatismyipaddress.com/"); Request.Headers.Add ("cache-control", "max-age = 0"); request. Proxy = new webprocess ("127.0.0.1:8118"); request. KeepAlive = false; (Using the word reader = new StreamReader (response.GetResponseStream (), Encoding.GetEncoding ("utf-8")) (HttpWebResponse response = (HttpWebResponse) request.GetResponse ())

actionscript 2 - Flash Animation Action Script 2.0 -

I'm experiencing problems with Flash animation, I am new to action scripting. on (rollover) { goto endplete (2); } Once with the mouse, start the animation and complete your loop and stop. And the mouse should be disabled on completing its loop (300 frames), if the mouse occurs then it should start from frame 2 again. A movie clip and movie clip is imported into a scene. I am using Action Script 2.0. Thank you in advance (rollover) {if ( _currentframe & lt; 1 & amp; amp; _currentframe & gt; 300) {gotoAndPlay (2); }} As long as the current frame is less than 1, which means that it is 0, and at the same time, if the current frame is greater than 300, then only give it to GotoAndPlay (2); . It is assuming that your final frame of animation is at 301 - if it is not, and is at 300, then the _currentframe & gt; 300 to _currentframe & gt; 29 9

tomcat - Primefaces fileUploadListener is not invoking with websphere 8.5 -

I am using PrimFace 4.0, JSF 2.2. FileUpload is working with Apache Tomcat 7.0, but fileUploadListener is not using with websphere 8.5. There is no exception in the log. The solution works fine with the Tomcat 7.0 component, part of an Omlet Registration Form. And I checked it without and without encrypt = "multipart / form-data" & lt; p: File auto = "true" file uploadlistener = "# {Patient registration report. upload file}" mode = "advanced" drag-dip-support = "wrong" update = "uploaded filename" size = " 100000 "filemanit =" 10 "permission type =" / (\. | \ /) (Gif | jpe? G | png) $ / "& gt; & Lt; / P: FileUpload & gt; Command button: & lt; p: commandButton id = "btnSave2" value = "save" process = "@ form" update = "@ form" action = "# {patient registration, banned submittee}" & gt; & Lt; / P: CommandBu

search and replace regex for JSON string -

I have a JSON string of some objects. I remove all keys, 'alpha' at any child level or on any child Replace every key with the condition that if 'A' starts with and ends with 'z'. For example: I have json string: "{" A ": {" b ": 4}," b "{" C ": {" d ":" e "," awefz ": {" l ":" c "}}}," c ": {" abcz ":" here "}}" "{" a ": {" b "4", "b": {"c" : "{" A:: {"d": "e"}}, "c": {}} " after implementing regex 2):" {"D": "E", "alpha": {"L": "c"}}, "c": {"alpha": " Here I am just looking for those reges. I only need JSONString and regex (to search) as input . I'm the key I do not want to loop through the recursive L. O. By the levels I just

java - Is there any possibilities to have native android code? -

The question is simple: What are the possibilities of native Android code on Neomad? Yes ? How to do this? I can have the Windows Phone Basic Code, the iOS original code, but how can the Android code be true? When I am compiling my code, then I only have .apk for Android! No country code explanation? Thank you / Strong>. Two ways for this: From the command line: Add Generate Project Option (-gp) With Eclipse: Your NeoMAD Launch Configuration In the Options tab, you must add "-gp" to the Additional command line field.

delphi - How to copy data from one class into another class -

How to copy data from one class to another using DELPHI using overlapping operator? My dummy app goes like this: type TClass_A = class a: string; End; TClass_B = Classroom (TClass_A) b: String; End; Implementation Process TForm1.Button1Click (Sender: TObject); Var a: TClass_A; B: T Class_ B; Start one: = TClass_A.Create; B: = TClass_B.create; B: = A; // & lt; & Lt; - What code should be here? Do I Overload: = Operator? End; Assignment operator can not be overloaded in Delphi. You will need to present a method to copy how this can be done. An example of this is TPersistent.Assign . The Virtual Assign method will be completely justified to get it from TPersistent and implementing the desired functionality.

Dynamic Jlist Java Swing Problems -

Image
Hello, I'm trying to project a jellist using the word-builder plugin. All the codes related to here are: JPNL panel_1 = new JPNL (); Panel_1.Setbound (26, 109, 629, 220); . Add MainFrame.getContentPane () (panel_1); Last Jellist List = New JLIS (); Panel_1.add (list); JScrollPane scrollPane = new JScrollPane (); panel_1.add (Scrollpane); BtnNewButton.addMouseListener (New MouseAdapter () {@Override Public Zero MouseClicked (MouseEvent arg0) {DefaultListModel & quot; String> MODEL1 = New DefaultListModel & quot; string & gt; (); model1.addElement ("hello"); model1.addElement ("hello"); Model1.addElement ("hello"); list.setModel (model1);}}); BTN New Button Setbound (364, 23, 89, 23); Add MainFrame.getContentPane () (btnNewButton) .; But when I click the button it appears < / p> Overall, I want to be located on the left side of the UI instead of the list center and how can I customize it, font, color, border etc. Thx in

R Count number of sign switches for adjacent vector elements -

Consider this vector: -3 4-5 -2 4-56 -1 -1 -18 -8 7 How many "signature switch" are present for the elements of the edge, to calculate what is a simple way in R (eg without loop) ? In this example we will have 7 switches: -3 to 4-5 to -2 -2 to 4 4 to -5 -5 to 6 6 to -1 - 8 to 7 Here is a function that does the trick: # Seeing a numerical array X, this gives the number of sign changes nignigns & lt; - function (x) {signal & lt; - sign (x) sum (sign [-1]! = Sign [-length (x)])} a & lt; - c (-3, 4, 5, -2, 4, -5, 6, -1, -1, -1, -8, 7) N signage (A)

extjs - Sencha touch Error: Uncaught Error The following classes are not declared even if their files have been loaded: 'Ext.data.model' -

"Unwanted error: The following classes have not been announced even though their file has been loaded: 'Ext.data.model For possible typos, check the source code of their respective files: 'touch / src / data / model.js' I am getting this error, I do not know why is arising My code is here because I have changed every stone but there is no answer yet. It seems that every TMIM I have I write six hours, it is found out that what is wrong with touching the touch App.js // Ext.Loader .setPath ({'Ext': 'touch / src', 'TutsPlus': 'app'}) // Ext.application ({//http://docs.sencha.com) /touch/2-1/#!/api/Ext.app.Application Name: 'TP', view: ['main'], model: ['head'], store: ['stasc'], launch: function () {// #apploading element element Ext .fly ('app loading indicator'). Delete (); // Open main view Ext.Viewport.add (Ext.create ('TP.view.Main ')))}}}); store at stask.js Ext.define

html - background image outlook reapetable -

Hello, I have a weird problem with background image in Outlook . I implemented a background image for the mail, it is working with some images, but the other (same format - jpg , same dimension) is displayed in small form and they can fill the whole cell Here are the codes to be repeated: gt; & Lt; V: rect xmlns: v = "blur: schemas-microsoft-com: vml" href = "& lt;% = url% & gt; Fill = "true" stroke = "wrong" style = "width: 648px; height: 324px;" & Gt; & Lt; V: fill type = "tile" src = "& lt;% = ImageUrl%>" Color = "# becbd0" / & gt; & Lt; V: text box inset = "0,0,0,0" & gt; & Lt; [Endif] - & gt; This is the asp.net code, then <% = ImageUrl%> is the proper image URL. UPDATE What was done for me v: Type = "tile" to type type = "frame" in the fill tag.

filenames - File name parsing issue with space c# -

I am trying to merge two wave files using sox.exe. When I am specifying a short cut, it is working, but when I am giving a big path in space then I am not getting any error, but no file is being generated. This device got a tip from but did not do the above work. Here I am giving some code that my code looks like -m C: \ Users \ tridip.BBAKOLKATA \ Documents \ Visual Studio 2010 \ Projects \ CSRAssistant \ CSRAssistant \ bin \ debug \ VoiceRecords \ C in.wav: \ Users \ tridip.BBAKOLKATA \ Documents \ visual Studio 2010 \ projects \ CSRAssistant \ CSRAssistant \ bin \ debug \ VoiceRecords \ capture.wav C: \ Users \ tridip.BBAKOLKATA \ documents \ visual Studio 2010 \ projects \ CSRAssistant \ CSRAssistant \ bin \ debug \ VoiceRecords \ _20140506020037.wav C: \ Users \ tridip.BBAKOLKATA \ documents \ visual Studio 2010 \ Priy Planes \ CSRAssistant \ CSRAssistant \ sox.exe and above path as -m "C"> Keep between all your paths ": \ Users \ tridip.BB

JavaScript change input type="text" to type="file" -

Then I have a code like this: Script type = "text / javascript" & gt; Function fund () {var input = document.getElementById ("id"); Var input2 = input.cloneNode (wrong); If (document.getElementById ("butid") value == 'upload') {input2.type = 'text'; Input.parentNode.replaceChild (input 2, input); Document.getElementById ("butid"). Value = 'URL'; } And {input2.type = 'file'; Input.parentNode.replaceChild (input 2, input); Document.getElementById ("butid") value = 'Upload'; }} & Lt; / Script & gt; & Lt; Input id = "id" type = "text" name = "id" value = "upload" / & gt; & Lt; Input type = "button" id = "butid" value = "upload" onclick = "fundx ()" /> This text field is to be converted in the file upload field and vice versa. What should I do to fix the current code is not working?

excel - How to merge a time formatted cell with other cells as (hh:mm:ss) instead of it being displayed as a decimal number? -

I was trying to merge the time format cell with other cells. The entire cell should look like this after the merger: Thursday 13 February 16:20:23 2014 But, what do I get : Thursday February 13 0.680821759259259 2014 This is a formula I have used to merge: = A1 And "" and B1 & amp; "" & Amp; C1 & amp; "& Amp; D1 and" "& Amp; E1 Can it merge in a way that gives me the date hh: mm: ss instead of the decimal number I got? Your result is text, so go ahead and turn on your value in the text before merge. If you get results , D1 will have to catch the time. Try: = A1 and "" and B1 and "" and "C1 and" & amp; Text (D1, "HH: mm: SS") & amp; "" & amp; E1 or = A1 & amp; "" And B1 and "" and "C1 and" "and text (D1," H: MM: SS AM / BM ") and" "and A1 / Html>

c# - StreamWritter UTF8 Encoding Error -

We are developing an Android, WP & IOS application using Xamarin's strategy to link file. We have written the WCF REST service for input / output as JSN format data. In the database class we have used ASCII format and it works fine, but we tried to change the UTF 8 format to support many languages. The error is happening as long as we are getting the error " Remote server encountered an error: (400) wrong request " HttpWebResponse in line Please find the sample. Please suggest a solution to the database function to send data to WCF REST service with UTF-8. Public async jobs & lt; String & gt; GetString & LT; T & gt; (T item, string ServiceAddress, string functionName, String [] parameter, object [] ParameterValues) where T: BusinessLayer.Contracts.IBusinessEntity, New () {string ParameterString = string.Empty; Try {var request = HttpWebRequest.Create (ServiceAddress); Request.ContentType = "App / Jason"; request. Method = "

c# - AutoComplete work fine in development server but not in production server -

I had an ASP.NET page in C # in the Autocomplete text box field (using AutoCompleteExtender) All data is displayed in a single row when it is correctly listed in my development server (in the multiple line dropdown list) but deployed on the production server. My development server is running Windows Server 2008 R2 Enterprise in my production server cloud running Windows Server 2008 R2 datacenter by using Windows Azure Any ideas what?

mongodb - How to do geo searches on two properties as opposed to an array of [ lng, lat ]? -

All examples and the implementation of geographic discovery in Mongo, which I am able to find, use an array property < {name: 'foo bar', locations: [[Name: 'Franks House', Geo: [-0.12, 34.51]}, {Name: 'Jennifer's House', Geo : [-0.09, 32.17]}]} and the resulting query: db.events.find ({'places.geo': { Sphere near $: [-0.12, 34.51], $ maxDistance: 0.02}}) This works fine, but the user is required to read or write The draft format is not good because it is not the document itself where go to lat and lng that's the room for passches in that array. I want to make the record more human friend: {name: 'foo bar', locations: [{Name: 'Friends House', Latitude: 34.51, LNG: -0.12}, {Name: 'jennifers house', lat: 32.17 , Lng: -0.09}]} What kind of demand query does this type of record look for? I am unable to find any examples about this, so I am thinking that this is also possible. It is not recomme

assembly - Hand-assembling an x86 call instruction -

Curiously, I decided to assemble some X86 code. I am still recovering, but I can not understand the proper encoding for the call directive. I think that this is basically the E8 xx Xx xx xx , where xx xx xx xx is the one that I want to jump in. The way I tried this encoding, it is (NASM): This is included and the link is ok, but the program crashes. I saw how the NSAM has given the instruction call_printf , and it generates a different xx xx xx xx than I do, I wonder if I was specifying the address wrong or something, but the code times 512 nop dd _printf times 512 nop a gazillion 90 s is around the same address I got from the gathered call , which means that I do not have the actual address of _printf which should be (Even: i call Was curious about other encoding, which starts with ) FF . What is the difference?) 0xE8 is used with relative address, then the following instructions are used in the A800 00 00 00: Some encodings starting with 0xF

url redirection - Detect if a page is a variation page (done using Visual Website Optimizer's (VWO) "Split URL test") -

How can we determine if a page is a redirected page (VwoO's Divided URL Test Variation Page) or not? Thank you! You can check the cookie defined by VWO. If this is a split url test, then you can check the cookie called _vis_opt_exp_teSTID_split which states that the page was redirected by VWO. The first time you are sending a variation URL, the cookie will be created.

json - Flatten Map with GSON -

मान लीजिए मेरे पास निम्न मानों का स्ट्रिंग, स्ट्रिंग & gt; है: v1: 2, v2: 5, v3: 0, v4: -9 ... कुंजी v1 - vn हैं, लेकिन मैं सही नहीं जानता संकलित समय के दौरान n का मान। मैं इन सभी कुंजी को एक JSON ऑब्जेक्ट में कैसे रखूं: "item": {"v1": 2 , "V2": 5, "v3": 0, "v4": -9} इसलिए मूल रूप से मैं उन्हें समतल करना चाहता हूं। कोई भी विचार? आप जेएसओएन का उत्पादन करना अमान्य है, क्योंकि प्रत्येक JSON स्ट्रिंग एक ऑब्जेक्ट है {} या एक सरणी के साथ ( [[/ />> से शुरू होता है)। तो सबसे करीबी बात आप तक पहुंच सकते हैं: {"item": {"v1": 2, "v2": 5, "v3": 0, "v4": -9}} यह कोड एन मान के साथ ऐसा करता है जहां N = 10 पैकेज stackoverflow.questions.q23492756; Import java.util। *; आयात करें com.google.gson.Gson; सार्वजनिक वर्ग Q23492756 {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {नक्शा & lt; स्ट्रिंग, ऑब्जेक्ट & gt; नक्शा = नया हैशमैप & lt; & gt; ()

c# - How to skip method in step-into(F11) -

In this example, the Extentions class extention method is and I am using it in class ABC and when the step-in In this situation, extention and call other method, every time I step into the MakeString () method, can we leave it? By using method attribute ? Or in other ways? You can use the attribute for this.

swt - Avoid duplication of toolbar item in eclipse -

I have created a toolbar object using Eclipse menu contributes and commands. Using Eclipse Command Core Expressions, I have enforced orders for two views ( activePARTID is viewA or viewB ). There is a provision to open viewA from viewB . Since I have commanded both ideas, when I try to open from ViewB to viewA , Toolbar object appears twice How to avoid showing in more than one toolbar in the toolbar. Anyhelp is appreciated. & lt; Extension point = "org.eclipse.ui.menus" & gt; & Lt; MenuContribution allPopups = "false" locationURI = "toolbar: org.eclipse.ui.main.toolbar? After = additional" & gt; & Lt; Toolbar ID = "& lt; xyz> .toolbar" & gt; & Lt; Command Command Id = "xyz.abc" icon = "icon / db.jpg" id = "ABC" label = "ABC" style = "push" tooltip = "ABC" & gt; & Lt; Appears when check enabled = "wrong" & gt;

recreate hiperlink, or create net hyperlink VBA excel -

address I have 2 sheets sheet (sheet 1) is 1 hyperlink to me in a file \ sii \ Picture \ as.jpg The hyperlink name is "LINK". I need to recreate this hyperlink without "Format" (Background color and none of them). I need to use this VBA. When I try, I get an error localization = sheets ("Sheet1"). Range ("A1") Hyperlinks (1) .Address Sheets ("Sheet2"). Hyperlink Add anchor: = Sheets ("Sheet2"). Room (2, 2), Address: = localization, Teksttodiple = "link" If I do something Sheets ( " Sheet 1 "). Choose Range (Sales (1,1)) Select SELECTION.Copy Sheets ("Sheet 2") Select Sheet ("Sheet2"). Paste I get good hyperlink but the hyperlink is made to the background and anything from the first sheet, and my screen blinking because Excel Sheet 1 and Sheet jumping between 2 This should work for you. You may have to fit within the amendments it is your current code Sub Main (

java - JPA2.1 - Calling a stored procedure which returns CLOB -

I am using JPA 2.1 with Hibernate as the Deployment Seller. I am trying to call a stored procedure that gives a CLOB. StoredProcedureQuery storedProcScripts = entityManager.createStoredProcedureQuery ("pkg_test.get_clob"); Archived ProcQuery Registry Certified Processor System (1, String Class, Parameter Mod.IN); Archived ProcQuery RegistryStreamProceaderPamator (2, String Class, ParameterMod.IN); Archived ProcQuery Registrystroder ProcessorPamator (3, oracle.sql.CLOB.class, ParameterMode.OUT); Archived ProcQuery .setParameter (1, "ABCD"); Stored ProcQuery .setParameter (2, "XYZ"); StoredProcQuery.execute (); // Here I get the following exception. * Done by: org.hibernate.exception.SQLGrammarException: Calling CallableStatement.getMore error. Org.hibernate.exception.internal.SQLStateConversionDelegate.convert at org.hibernate.exception.internal.StandardSQLxceptionConverter.convert (StandardSQLExceptionConverter Java: 49) org.hibernate.engine.jdbc.

android - Listview animated component open detail view -

When I click on the list-view, I want to show my list-view and details view like "Mashable" application below, Instead of viewing in detail and going back, scroll-and-pull-over details-view, list-view items again. Please install the application on Android device and check this component. You can see from Google I / O '13 that they have a transition between activities Examples show (what you want if you understand correctly):

jquery - process post data from ajax post with php -

I created a simple Ajax request with jquery ajax to post a string for the php script (php newbie) is. AJAX: $ Ajax ({url: "php / server.php", type: "post", data: imgname, contentType: false, processData: wrong, error: function (xhr, textStatus, thrownError) {console.log (thrownError);} , Full: function (jqXHR) {console.log ("yes", jqXHR)}}); PHP & lt ;? Php $ ajaxData = gettype ($ _ POST ['data']); Echo $ ajaxData; ? & Gt; Problem: I get a state 200 OK and in the request header, I can see that my string has been posted. But the information is empty; notice with notification: Undefined index: C: \ xampp \ htdocs \ webwiese \ dragdropUpload \ php \ fileserver.php in uploadfilename 2 If I echo out a simple string "per hand" then it works fine, but I posted ajax to my data How can I "catch" from? THX You can "hold" your data from the PHP page. You will then return the necessary h