Posts

Showing posts from February, 2013

How to Select from two tables in 1 query in Salesforce SOQL iOS -

How can I add these two requests to a single request in a salesable SOQL query: NSString * theRequest = [NSString stringWithFormat: @ "SELECT Name, opportunity from OpportunityIDOnline where OpportunityID = '% @'", [companyDic objectForKey: @ "id"]]; SFRestRequest * Request = [[SFRSPPI Shared Instance Request] Forenew: theRequest]; [[SFRSPPI Shared Instance] Send: Request Rep: Self]; OpportunityID = '% @' ", [companyDic objectForKey: @ "Id"]]; SFRestRequest * request2 = [[SFRSPPI Shared Instance Request] Forename: theRequest2]; [[SFRSPPI Shared Instance] Send: Request 2 Rep: Self]; Use this subquery: SELECT Name, Opportunity for Opportunity Opportunity Where Opportunities (Opportunity to choose from Opportunity Opportunities - Processors where opportunity = IV = '% @')

Realtime: Node.js, MongoDB and Redis? -

Okay, first of all I want to tell you that I am new to all the techniques mentioned in the headline. I want to create a new app, think about it as a real-time trading engine (for example stock). Therefore, there are two things that are really important: speed / performance: everyone Security: make similar trades together But only one can be successful. I thought about this kind of approach: If a user purchases 10 pesos of stock x for $ 100 If he wants, he keeps every order with radis (speed) and pushes it to all customers with socket.io. Ok, as soon as another user wants to sell 15 points for $ 100, the script should check whether there is an open purchase order. If so, it saves it as a successful transaction in Mongodybi (permanency) and closes the purchase orders of 10 pesos In this example, there are 5 rocks left The script displays that with such calculations: 15 (Selling for $ 100) is less than 10 (buy in 100 $) 5 remaining. Every time someone should do this,...

c# - Query Xml File for Records using Linq -

The following is my xml file. For every page and for each type of comm from a different comm, I have to mention the field . Please help with the use of Linq Example: If I want "type = customFields" defined for "page1", then get a separate project ID, employee ID, employee in the name of commo, etc. Have to do. & lt; Page & gt; & Lt; Page name = "Page 1" & gt; & Lt; Type type id = "custom field" & gt; & Lt; Field & gt; ProjectID & lt; / Field & gt; & Lt; Field & gt; EmployeeID & lt; / Field & gt; & Lt; Field & gt; EmployeeName & lt; / Field & gt; & Lt; Field & gt; HasExpiration & lt; / Field & gt; & Lt; Field & gt; EndDate & lt; / Field & gt; & Lt; / Type & gt; & Lt; Type type id = "directfield" & gt; & Lt; Field & gt; ProjectID & lt; / Field & gt; & Lt; Field & gt; EmployeeID & lt; ...

javascript - bluebird - promise chain return unexpected "true" value -

I am writing an app using ReactJs so I wrote 2 simple node.js-modules . For the first time brings an XML API and gives an array of objects, the second is a simple datastore, which should save the received dataset. Both modules use async use bluebird . Now I have the following scenario: var promise = requirement ('Bluebird'); Store.get () Tap (print) // # 1: []. Then (function (data) {if (data.length) {return promise.resolve (data); // # 6:? Is also true second run?} Else {return xmlApi.get (). Tap (print) / / # 2: [...] .then (store.insert) // - It returns an array with the inserted index.Tap (print) // # 3: [...] -then (store .write) // - It gives all the stored objects as an array.Tap (print) // # 4: True & lt; -? This is what I do not understand ... ?}}) Tap (print) // # 5: true Then (work (data) {// under normal circumstances, I will set the ReactJs state from the data array ...}). Hold (handleError) .done (); My problem is to understand why # 3 sort o...

c# - Set Height of a listbx fit to content -

I have to set a list box that shows data from the database column. Each time the length of the different data will be in the list-box. Therefore, according to this, I have to change its height to content. How is it and asp: listbox id = "listbox1" runat = "server" backcolor = "white" height = "14000px" width = "1312px" & gt; & Lt; / Asp: listbox & gt; While (Dr. Reid ()) {string poem = dr [0] Toasting (); Byte [] newFileData = encoding. ASCII.GetBytes (poem); String fileString = System.Text.Encoding.UTF8.GetString (newFileData); String [] poem_details = fileString.Split (new string [] {"", "\ n"}, StringSplitOptions.None); Foreign currency (scores / different lines in the description) {ListBox1.Items.Add (line); }} try it - listbox rows = Listbox.Items.count or You can also set the following size - $ (document) ) ADR ('Size', $ ('# & lt;% = this.ListBox1.ClientID% ...

javascript - select text of element using xpath with selenium -

मेरे पास इस तरह की संरचना है: & lt; div class = "content" & gt ; & Lt; h3 class = "faq" & gt; जुसी और एलटी; / एच 3 & gt; लॉक थैंग 4005 & lt; br & gt; 6/78 विलियम स्ट्रीट & lt; br & gt; सिडनी एनएसडब्ल्यू 2000 & lt; br & gt; ग्राहक सेवा: & lt; a href = "टेलि: 1300886534" & gt; 1300886534 & lt; / a & gt; & lt; br & gt; या & lt; br & gt; help@joocey.com.au< br & gt; & Lt; br & gt; & Lt; div वर्ग = "ग्रीनबार" & gt; & Lt; a href = "/ स्टोर" & gt; सभी स्टोर देखें & lt; i वर्ग = "आइकन-शेवरॉन-सही आइकन-सफेद पुल-दायें" & gt; & Lt; / मैं & lt; / a & gt; & Lt; / div & gt; & Lt; -! Greenbar - & gt; & Lt; -! Main_footer - & gt; & Lt; / div & gt; div [@ class = "content"] में प्रत्येक पाठ रेखा का चयन कैसे करें ? उदाहरण के लिए, मैं "Joocey", "लॉक थैग...

caching - nopCommerce not running modified controller method -

I am currently creating a webshop based on nopCommerce, but I need unique products per customer. To achieve this, I did edit the catalog controller to filter products according to my own database tables. The code that I used for this works perfectly when running nopCommerce from Visual Studio 2013. The right products are displayed to each customer and no products are logged in when no one is displayed I deploy nopCommerce on my local machine and then upload files on our (IIS7) webserver Make a copy, after which it works as expected (without restarting the server). After restarting the webserver the problem starts, the web server restarts, every customer will always see every product. For debugging purposes, I used to see an ActionFilterAttribute, then the function is still called (it gets called) and I added a log message to the run of the function The first line of the edit function to check and it has been found that the function has not run. I suspect that the applicat...

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

Image
I have some Jason which I then parsed the Jerry object. I want to filter Jerere so that he has only two properties, title and bodytext. But whatever I try I can only select a value using LINQ [HttpGet] Public JsonResult AjaxGetNewsItems () {string json = JsonConvert.SerializeObject (news.GetNewsItems (), Formatting: formatting.Indented); Var v = Jairo Purse (jason); // arrow item = // v.Where (// X =>.! // X ["title"] ToString () = string.Empty & amp; //X ["BodyText"] ToString ()! = String.Empty) // Select (x = & gt; x ["title"]) // .toList (); Var title = (string) v [0] ["title"]; Var titleBodytext = v selectively v [0] ["title"] ["bodytext"]; Foreach (item in titleBodytext) {} // Title: Biodtext = // v [0] ["title"] ["BodyText"] by c // // Group c // new selection from c in gram // {}; // JArray a = JArray.FromObject (news.GetNewsItems ()); // string titlebodietext = (string) news item [...

rest - Is this an ideal way of testing code that inserts data to a table? -

I am working on implementing a REST API using Symfony2. I'm trying to follow a Test Driven Development (TDD) approach I am quite new to both Symfony2 and TDD. I have written this exam: public function test.post () {// i) Client = permanent request: createClient (); $ Request = $ client- & gt; Request ('POST', '/ api / outlets', array (), array (), array ('CONTENT_TYPE' => 'application / json'), '{"name": "test outlet"}') ; // ii) Test the reaction- $ - gt; AssertJsonResponse ($ client-> getResponse (), 201, incorrect); } This administrator checks for action: public function postAction (request $ request) {$ entity = new outlet (); $ Form = $ this- & gt; CreateForm (new outlet type), $ unit, array ("method" = & gt; $ request-> getMethod ()); $ This- & gt; Remove ExtraFields ($ request, $ form); $ Form & gt; HandleRequest ($ request); If ($ form-> isValid ()) {$ em = $...

jsf - How to add to the object of SelectManyCheckbox selected values? -

I have an object of SelectManyCheckbox for this object, I set the value available in the next value: SelectManyCheckbox checkbox = New SelectManyCheckbox (); & Lt; Double & gt; Selected = new ArrayList & lt; Double & gt; (); // This will be used to set selected values ​​list & lt; SelectItem & gt; Items = new Arsuachi & amp; Lt; SelectItem & gt; (); // It will be used as the values ​​available for some object (av: listOfObjects) {SelectItem items = New SelectItem (av.getNumericValue (), av.getValue ()); Items.add (item); If (av.getDefault ()) {selected.add (av.getNumericValue ()); }} UISelectItems uiItems = new UISelectItems (); UiItems.setValue (item); . Checkbox.getChildren () (uiItems) add; Checkbox.Set selected value (new double [selected size ()]); But this setting of the selected values ​​does not work. Maybe someone knows that is the source of the problem? Your double [] is empty, try changing the list of arrays like this: / P> ...

architecture - Use different ID's ranges for dev and prod databases -

I am working together on a web service with a large number of integration tasks. We connect our services to tens of other services, each of which has its own reserves. Of course, we have some different environments for God, stage and production purposes. Each integrated service has at least two environments: Dev and Prod. I firmly consider two approaches to isolating the environment: First, two different DB for another dev and (stage + prod) circuit In this approach, there is a sequence of only one ID per domain object in this approach and there will be no conflict in third party services. Pros: Simplicity Cons: Dangerous Access DB from the Forum The second is to use reserved categories for the primary key of the three different DB and used items for integration (such as user PK, no order, etc.) In this case, we restrict entry to unstable phase env from DB stage only and prevent any conflicts from reserved categories. But the idea of ​​using reserved categories or ID see...

c# - FontFamily not being applied on DataGrid Cell -

I have sfDataGrid on a WinRT project, which displays the contents of the Excel file; I have xaml: & lt; Page. Resources & gt; & Lt; Normal: Customstyle selector x: key = "stylicilator" /> & Lt; /Page.Resources> ... & lt; SyncFusion: SFDataGrid Grid. Allow rays = "1" x: name = "datagrid" width = "auto" visibility = "collapsed" margin = "10,0,10,10" Resizing columns = "True" Autoconnect column = "true" Allow garrisoning Column = "true" allow setting = "wrong" columnizer = "star" Rohite = "65" line style = "{static resource line style}" ShowRowHeader = "True" CellStyleSelector = "{StaticResource styleselector}" /> and the cellstyle selector uses it public category custom style selector: style selector {personal style cell style {get; Set; } Private Static Inte Cell Control; Protected Override S...

php - PHPExcel multiple foreach loops -

I want to display all the rows from a table with the column names mentioned above, the problem is that the problem is that Removes the first row from the results given below the column name, it seems that the column row is somehow counted as a line in the loop, which displays the results, but I can not understand it. If I remove the column name code shown below all results are shown. // Column names advance ($ title $ headline) {$ objPHPExcel- & gt; GetActiveSheet () - & gt; Set cell value $ Col ++; } All the code shown below. $ query = "SELECT * FROM`" $ _SESSION ['sess_table'] "Order by ID ASC"; If ($ result = $ mysqli- & gt; queries ($ query)) {$ objPHPExcel = new PHPExcel (); $ ObjPHPExcel- & gt; GetActiveSheet () - & gt; SetTitle ($ excelTitle); $ Headingsrow = $ result-> Fetch_assoc (); $ Headings = array_keys ($ headingsrow); // column name $ line number = 1; $ Col = 'A'; Forex Currency ($ heading $ title)...

android - How to call a 'method' defined in another activity on click of a widget button? -

I know how to initiate an activity when clicking on the widget button while using the pending intent, but I I want to launch a specific way of that activity. If you have to call any method in any other activity, then you are following the wrong design. Are there. You should not put all your code in activities alone Why this is a bad option - Because you have to call a method on this to the wanted. And how do you achieve an objective of activity? Unless you are storing an activity object in another (this is a very messy thing). Another problem in this approach is that your second activity has already been destroyed, so if you are relying on some UI elements of any other activity, you will not get any help. To stabilize the activities, very big bugs will open for you. What is the option available? There are several options available for inter-activity mode call, but I rely on Sington. They are such classes that can have only one object that will be accessed steadily, so...

mysql - show multiple result of count -

I am trying to show the count of idParent in the child table where is the original table IDPorte of is equal to idContent of the original table. SQL Request: Select Count (idpent) from content_copy_f idContent where content_copy_f.idParent (select idContent from content) But it does not display every count of each idParent in each line, with its result it shows a single line. Try this query: - SELECT COUNT (idParent) , IdContent from content_copy_f where content_copy_f.idparent IN (Select content from content) content by IDContent; Hope this will help you.

Can I use huge database MS Sql 2012 in Android application easily? -

We are using SQL 2012 with Windows software. Now we need a mobile application to access this data, this can be a very large amount of data, can we easily use SQL Server on Android applications. First of all, you need to decide what the data will be like? Is it being accessed through the web or staying on the phone locally? If it is being accessed through the web, then you will need to put this data on the web server and create an API to use the ASP. Can use Net Web API or even use simple PHP with that (I'm not sure how good PHP works with SQL Server databases). Mobile API will call the API to get data. If this device is to remain in, then you really should use simulatias because it is very light and has good native support in both Android and iOS. / P>

bash - Variable from conditional statement -

I have some scripts that I am taking ownership of that shell of that use, get a statement inside a conditional statement Are there. Something like this: if [-z $ (/ -type f -perm-002 find)]; Then "any world could not be readable" echo Where else as found in place of I found world written perms instead of want to display Are there. I can: $ echo ($ / / -type f -perm-002 Find) is allowed in the world or set the variable for $ (search / type-type f -perm-002) . But it was thinking that there was a better way to do this. Is there another way to retrieve the contents of the search statement as a variable? You take the output and store it in a variable if it is not empty then you can print its content can do. In this way you only need to run the command once. find RESULT = $ (/ -type f -perm-002) if [-z "$ RESULT"] then "no world is found to be writable" and echo "$ RESULT The world has permissions "fi

python - Load a different view when logged in -

If I'm trying to learn Python + web2py, then I have to load the index page a different view, depending on whether you 're logged in or not according to my understanding of MVC it ​​will be on the controller. Now I've seen the authentication of web2py, but can not really detect it. And whether it is in the controlling side or better elsewhere? You can specify a different view in the controller: Diff index (): if auth user: response.view = 'default / index_logged_in.html' ... return word (...) if changes from one view to another , You can also use it to include a single view and simply to show special content based on user status: {{auth.user:}} & lt ; Div & gt; Welcome, {{= auth.user.first_name}}} & lt; / Div & gt; {{Pass}}

git - Gitlab 7.3.2 Permission Denied (publickey) -

I have just installed a new install on Githelb 7.3.2 on the private server. Then I created a new project, a new user who is a valid SSP key. When I try to clone the test project, the permission is thrown by the permission (publisher). In the previous version I had to check the settings of the / home / git folder, but there was something like that but now this folder is not present. Any ideas from how can I solve it please? ssh -vT git@git.xxx.xx Opanssac_6k6kl, OpenSSL 1.0.1f Jnvri 6 2014 debug1: configuration data read / Home /xxx/.ssh/config debug1: configuration data / Etc / ssh Read / Ssh_config debug1: / etc / ssh / ssh_config Line 19: * Applying options for debug1: Connect to git.xxx.xx [xx.xx.xx.xx] port 22. Debug 1: Installation of Connection. Debug1: Identity file /home/xxx/.ssh/id_rsa Type 1 debug1: Identity file /home/xxx/.ssh/id_rsa-cert Type-1 debug1: Identity file /home/xxx/.ssh/id_dsa Type-1 debug1 : Identity file /home/xxx/.ssh/id_dsa-cert Type-1 debug1: Iden...

firefox - Detect errors on web page with Firebug -

Image
What is the best way to check our web applications for errors like "duplicate attributes"? My development team uses Firefox and Firebug for web development, we have seen some errors in codebase, usually attributes like duplicate: We do not see any errors in the Firebug console, nor can firebug view any errors to report errors. We've found that Firefox is aware of these errors. By clicking on "View Page Source", Firefox provides second class in red and has a tooltip of "duplicate attributes". Although we have to hunt codes in search of any errors written in red. Surely there is a better way than manually viewing code? What equipment should we use? Thank you, Firefox automatically HTML corrects errors such as duplicate attributes, that is, it ignores the second feature, it does not appear as an error for it. Firebug, Firefox displays error messages exposed through its API, it does not generate an error message for the incorrect H...

javascript - JWPlayer Change configuration dynamically without reloading video (skin, captions, stretching) -

I want to take a Greasemonkey script to change the configuration of the JWPlayer instance dynamically without reloading the video. For example, to switch player themes, or to load closed captions etc. I can do it with var cfg = jwplayer () config; Cfg.stretching = "Uniform"; JWPlayer () Setup (cfg). But it only copies the current configuration into one variable, one property changes, then sets a new player, and starts loading. I'm not sure this is possible. The problem I have is that setting up a player with a new config works a ridiculously slow. It does not load, demand takes a lot of time and sometimes there are two charged captions too.

Click and Unclick X boxes in VBA excel formula -

I am creating a survey that I want to be straightforward for the end user. I have created a document that operates on a lecture scale, where things do not agree to agree on a 6 digit scale (no answer field). I have questions and options that run on 3 to 152 lines in C in each cell: At present, I have the buyer that can buy X in the box by clicking on a cell, which is a sign of his choice. I also have the option of clicking on an option in the row, and if they choose the second option, then it removes the first x and puts the X in the new cell that they clicked. What I want here right now, if they keep X in any cell, then click on the same X, my code goes and takes X and change it again with the same X gives. I would not like to change anything in place of X by clicking it, so that it can turn on and off with one click I want to keep it so that if they select the second cell in the same row then the X disappears in the original cell Goes and X pops up in a clicked cell, although I...

zend framework2 - receiving post variables from an external source in zendframework 2 -

I am working on a zendframework 2 project and want to get the post variable from external source. The source from which the price will come is a payment site (i.e. world pay and paypal). That is, the payment has been made by affirming the return value of the payment. On the external site, I have just given the URL of the web page that wants to return information to me: http://example-site.com/payments/ Payment-made Then I did the following in the action function on the Controller page; Public function payments MadeAction () {$ contents = file_get_contents ('php: // input'); // read request content $ data = explosion ('& amp;', $ content); If ($ content) {foreach ($ data as & amp; $ entry) {$ entry = explode ('=', $ entry); $ Entry [1] = urldecode ($ entry [1]); } Unset ($ entry); } Print_r ($ data); } Nothing happens, though. I mean, I have tested it but the values ​​are not being received when I went to the external source to find ou...

mod rewrite - Removing special characters from query string in .htaccess -

I have come across similar questions, such as, and got similar instructions. I have determined that I RewriteRule ^ (. *) & Lt; (*. *) $ / $ 1 $ 2 [L, R = 301] with the rows of RewriteRule ^ (. *) & Gt; (. *) $ / $ 1 $ 2 [L, R = 301] This http://domain.com/<> , but it does not not http://domain.com?a=<> ^ {. *) & Lt; (. *) $ Rewrite ^ (. *) $ / $ 1?% 1% 2 [L, R = 301] rewrite% {QUERY_STRING} ^ (. *) & Gt; (. *) $ RewriteRule ^ (. *) $ / $ 1?% 1% 2 [L, R = 301] It did not change anything. I have also tried to escape & lt; Also> in Reggae (i.e. ^ (. *) \ & Lt; (. *) $ ). The end result is that I am trying to achieve http://domain.com/<whatever> Go to http://domain.com/whatever in , and http://domain.com/a=<whatever&gt -text"> & lt; is encoded % 3C and & gt; If the browser is encoded as % 3E , then your rules are as follows: rewrite %% {QUERY_STRING} ^ (. *? )...

coldfusion - Error being thrown while using DecimalFormat() -

I am using the following code, but I am facing a problem where it is showing me values ​​ $ 1,099.00 as the value, I am using the code here: #LSCurrencyFormat (the decimal number (unitPrice), 'local' , '# Session.changelocale #') Price can not be changed to a value of 1,099.00: # with the above code , I have the following Get the error. I tried out DecimalFormat (wrapping), but this just gives me a different error. Try #LSCurrencyFormat (LSParseNumber (unitprice), ' Local ',' # session.changelocale # ') # or it is only for removing a comma. #LSCurrencyFormat (replace (entity, ",", "", "all"), 'local', '# session.currencylocale #') # If that does not work, you can use it to remove all non-numeric ("[^ 0-9 \. \ - \ +]", "", "ALL"), 'local Edit ',' Edit 'is right about the decimal format, and it is probably about being the source o...

php - Prestashop overloading backoffice navigation nav.tpl -

मैं नेविगेशन टेम्पलेट फ़ाइल ओवरराइड करना चाहता हूं: / admin / themes / template / nav .tpl मैंने कोड डाल दिया /my_module_dir/override/controller/admin/template/nav.tpl कोड: {विस्तारित फ़ाइल = "nav.tpl"} & lt; h1 & gt; टेस्ट & lt; / h1 & gt; मैं कैश साफ़ करता हूं और पुनरारंभ मॉड्यूल परन्तु कोड नहीं दिखा रहा है। किसी भी मदद? आप केवल नियंत्रक टेम्पलेट और अंततः एक सहायक टेम्पलेट्स ओवर कर सकते हैं। Nav.tpl ओवरराइड कार्यक्षमता का उपयोग किए बिना सिर्फ header.tpl में शामिल है।

android - How can I make a call from external class that extend Activity? -

Hi guys, I'm trying to call a class that increases the activity but gives me a "NullPointerException" error On the other hand if I try to call the same method (which is placed at the end of the main activity) with the main activity java, then it works properly. Why? How can I fix it? I call this method: public zero prova2 () {try {string url2 = "tel: 33334444"; Intention = Intention = Intent (Int. Action_CALL, Uri. Url2); StartActivity; } Hold (exception e) {e.printStackTrace (); }} And this is the call from an external class that increases the application: icosito.setOnClickListener (New OnClickListener) {@Override public void onClick (See V) {main activity prova = new main activity (); prova.prova2 ();}}); Since the method is in MainActivity.java, call will be visible from MainActivity, prova2 (); Thank you very much.

wamp - wampserver green icon but unable to connect in php -

I've been using wamp 2.2 on Windows 7 for 3 months. Suddenly, it stopped working, I tried to install again. I do not have Skype, there is no IIS or no server, I have also tried to change port 80 in http.config file. I am using Mozilla, this error shows: unable to connect XMPP is not working too. Help me, please

ios - Linker error Unrar4iOS framework -

I've been down to have added Unrar4iOS Framework and linker error. How to fix this? Duplicate Symbols __Z12 CallbackProgram: In / Users / Dimitrivensco / Library / Developer / Xcode / Derivative Data / Unreal Reader- cpvucqqjfnkeppcasgjdrwasaryu / build / Intermediates / UnrealReader.build / Debug-iphonesimulator / UnrealReader .build / objects General / i386 / Anarariaisoaksko / users / Dimitryvijhenco / desktop / Anrial reader / Unr 4 Aioskfremvrk / Unr 4 iOS (Unr 4 Iosko) duplicate symbol _OBJC_IVAR _ $ _ Anarar 4 iOS. In the headline: / user / dimitriavensen / desktop / incomplete reader / uniar 4 iOS .framework / unrar4iOS (Unrar4iOS.o) duplicate symbol _OBJC_IVAR _ $ _ Unrar4iOS._rar Fill in: / Users / Dimitrivesen / Library / Developer / Exod / Derivative Data / Unreal Reader-cpvucqqjfnkeppcasgjdrwasaryu / build / Intermediates / UnrealReader.build / Debug-iphonesimulator / UnrealReader.build / Objects-Clean / i386 / Unrar4iOS.o / Users / dmitryvlasenko / Desktop / Un...

xml - Using Powershell to Delete Node -

& lt;? Xml संस्करण = "1.0" एन्कोडिंग = "UTF-8"? & Gt; & Lt; लोग xmlns = "टेस्टडेटा" & gt; & Lt; व्यक्ति आईडी = "टेस्टडेटा" स्थिति = "टेस्टडेटा" & gt; & LT; नाम & gt; & LT; FirstName & gt; TestData & lt; / प्रथम नाम & gt; & LT; अंतिम नाम & gt; TestData & lt; / अंतिम नाम & gt; & Lt; / नाम & gt; & LT; आयाम & gt; & Lt; आयाम आईडी = "टेस्टडेटा" नाम = "टेस्टडेटा" आयाम = "टेस्टडेटा" / & gt; & Lt; आयाम आईडी = "टेस्टडेटा" नाम = "टेस्टडेटा" आयाम = "टेस्टडेटा" / & gt; & Lt; आयाम आईडी = "टेस्टडेटा" नाम = "टेस्टडेटा" आयाम = "टेस्टडेटा" / & gt; & Lt; आयाम आईडी = "टेस्टडेटा" नाम = "टेस्टडेटा" आयाम = "टेस्टडेटा" / & gt; & Lt; / आयाम & gt; & LT; EmploymentInformation & gt; & LT; DateHired & gt; Tes...

haskell - How to use persistent in a monad stack? -

I'm enjoying learning Haskell and I think I'm making some good progress here with the help of people and #hoschelles. My studies are still mostly on this point where I look at examples and try to apply the techniques that apply to them and apply to my code. Currently, I have monade piles for various applications and I'm looking to incorporate the functionality of consistent structure in my application. Here's my monade stack: newtype app a = app {unApp :: StateT AppState (SqlPersistT (ResourceT (LoggingT IO))} deriving (functional, Function, Monad, MonadIO, MonadState AppState) AppState There is only one record data type in this example, there is also a single value. My main function looks like this: main = runApp "./test.sqlite" (AppState 69) runmigrate Where runApp should open all monuments: runup :: text - & gt; Upstate - & gt; App A - & gt; IO RunAppleTrSource with runAppTs = runStdoutLoggingT RunResourceT RunSqlConn flip...

Remove part of text from all columns in an excel file -

I have an excel file that contains a column that displays the web source URL, the data looks like this .... http://carter.mydomain.com/page1 http://expert.mydomain.com/page4 http://10629.mydomain.com/sample http: //genius.mydomain .com / form-1 etc What do I need to do before and everything else has been removed (http: //) and everything else (.) In the previous examples, I want to be left with the following data in the columns Carter Expert 10629 Talent Thank you in advance for any help with this You can use a combination of such formulas. It is believed that A1 is the first line with Carter in it. = MID (A1, FIND ("//", A1) + 2, FIND (".", A1, FIND ("//", A1)) - FIND ( "//", A1) -2)

c# - Why is DateTime.TryParse making my number into a Date? -

विस्तार विधि सार्वजनिक स्थिर वर्ग DBNullExt {सार्वजनिक स्थिर स्ट्रिंग DBNToString (यह ऑब्जेक्ट मान) {If (value == System.DBNull.Value) वापसी नल; Else {string val = value.ToString (); दिनांक समय परीक्षण; यदि (डेटटाइम.TryParse (वैल, आउट टेस्ट)) वापसी परीक्षा। ToShortDateString (); अन्य वापसी वैल; }}} का उपयोग करते हुए का उपयोग कर (SqlDataReader rdr = cmd.ExecuteReader ()) {if (rdr.HasRows) {while (rdr। पढ़ें ()) {dtf.Date1 = rdr ["date1"]। डीबीएनटीओस्ट्रिंग (); Dtf.Date2 = rdr ["date2"]। डीबीएनटीओस्ट्रिंग (); Dtf.Cash = rdr ["नकद"]। डीबीएनटीओस्ट्रिंग (); }}} यह मान जो आरडीआर ["नकद"] से आता है। डीबीएनटीओस्ट्रिंग () 3685.02 है लेकिन यह डेटा को 3685/2/1 में परिवर्तित करता रहता है यह ऐसा नहीं करना चाहिए था कि और मुझे यकीन नहीं है कि यह ऐसा क्यों कर रहा है। सार्वजनिक स्थैतिक स्ट्रिंग डीबीएनटीओस्ट्रिंग (यह ऑब्जेक्ट मान) {if (value) ( == प्रणाली.डिबिल। वैल्यू) वापसी नल; Else {string val = value.ToString (); दिनांक समय परीक्षण; स्ट्...

How to solve connection reset error while reading/writing from socket in c++ -

My client and server are sending buffer messages to each other Client side: (Connect (sockfd, (struct sockaddr *) and serv_addr, Sizeof (serv_addr)) {perror ("add error"); Return (1); } Printf ("Getting buffer 1 from server side"); Bzero (buffer1,256); Int i = 0; While (i & lt; 5) {n = reading (Sakfide, buffer 1, size (buffer 1)); If (n & lt; 0) printf ("error socket% d in lane% d", n, sizeof (buffer 1)); N = write (sokfad, buff 2, size (buff 2)); If (n & lt; 0) printf ("Writing error in sort% d lan% d,", n, size (buff2)); Printf ("\ n Buffer 2 from the customer's side (Terminal type will not be)"); I ++; } Server side: printf ("Sending server (domestic type) \ n"); While {(n = write (Newsockfdi, Buff 1, Size (Buff1)) gt; 0} {printf ("The query sent by the server% d:% hhx% hhx% hhX \ n", Count, Buff 1 [Counting] [0], Buff 1 [Calculation] [1], Buff 1 [Calculation] [2]); N = Read (Newsoffe...

sql server - SqlPackage Quiet Output SSDT -

I automate the creation of a database on a CI server is a script that, though, so the output of SqlPackage.exe Is the noise According to, there is a / up: it is true to prevent flag, however, setting this flag does not seem to matter. Does anyone know of a way to make this work Here's the command I'm running: C: / Program Files (x86) / Microsoft SQL Server / 110 / DAC / bin / SqlPackage.exe "/ up: true action: publish /SourceFile:<snip>.dacpac /Profile:<snip>.publish.xml / TargetConnectionString: & lt; erosion & gt; sqlpackage setting that does not unfortunately ,. it cmd.exe and passing It is possible to launch another console using the form of an argument The sqlpackage calls? In any event, I recommend that you do not enter a connect bug be noted about the flag. Worms connect (SSDT sqlpackage.exe category "Developer Tools Can be filed for use in, bids, etc.) "

ruby on rails - Why does signing in with Mechanize on website redirect to the home page? -

I'm trying to add automaticaly to a website using mechanize. I have searched the Internet, but I am not getting any solution to my problem, that is the reason why, after running form.submit , on the home page Come back What logs do I try to connect to? My code: mechanize = mechanize.new do agent | Agent.user_agent_alias = "Linux Mozilla" and page = mechanizejet ("http://website.org/") form = mechanism.page.form: first form. Content form Username = "MylanGin" form. Password = "Mypassword" form.submit Website snippet code: & lt; Div id = "signincontainer" & gt; & Lt; Form method = "POST" verb = "http://website.org/" name = "FL" id = "signin" & gt; & Lt; Input name = "op" value = "login" type = "hidden" & gt; & Lt; Input name = "redirect" value = "" type = "hidden" & gt; & Lt; Span ...

C# get and set, shorthand and access control -

कक्षा कार्यक्रम {class विज्ञापन {सार्वजनिक स्ट्रिंग _name} {निजी प्राप्त; सेट; }} सार्वजनिक स्थिर शून्य मुख्य () {विज्ञापन विज्ञापन = नया विज्ञापन (); कंसोल.प्रकाशलाइन (ad._name = "नाम"); }} कोड आउटपुट: "नाम", लेकिन _name फ़ील्ड प्राप्त निजी है मुझे कोई त्रुटि क्यों नहीं मिली? मुझे त्रुटि क्यों नहीं मिली? क्योंकि आप असाइनमेंट का परिणाम लिख रहे हैं कोड स्ट्रिंग परिणाम = ad._name = "नाम" ad._name = "name" के परिणाम को परिणाम में संचयित करेगा चर, जो "नाम" है तो देखें: एक साधारण असाइनमेंट अभिव्यक्ति का परिणाम मान है बाएं ऑपरेंड को सौंपा परिणामस्वरूप बाएं प्रचालन के समान प्रकार हैं और हमेशा एक मान के रूप में वर्गीकृत किया जाता है।

shell - What is terminal key code for Ctrl+Backspace -

I'm trying to find the Ctrl + backspace terminal keycode Let me remove the whole words in the shell. Although it has been explained that how to get those codes for arrows , home , del and Such a key with the cue or od command: Or direct The code here (^ _ does not work for me) I can not find the way to get the Ctrl + back space code. Any clues? Thank you. The cursor- and the home / end (edit-keypad) key is different from the backspace key. They always send some sort of escape sequence backspace key, it sends a single control character, which makes it control sequence , instead of escape sequence Control / Backspace (like in any case where a control-modifier has been applied to the control character) is a feature that provided by a terminal Is done, but its normal Does not have (a standard meaning is too short). RCVVT (during the decade of 1990) gave this combination as ASCII BS ( ^ H or 8) and DEL ( ? , or 127). Includes Xterm (1...

binary - Trying to read a ieee file created by wgrid with fortran. I get weird entries -

I am trying to read a binary ieee file created by wgrib. I have a bunch of GRIB files from the ECMWF Center, and I am converting them into binary IEEE. I am trying to read it with Fortune, but there is no way that I am able to get great value for the right values ​​(number of grid lines (NLON) and column (NLAT). Using the line to create an IEEE file: 'wgrib C: \ gribs \ IGD01211200012112001 -d 6 -ieee -big_endian IGD01211200012112001.bin And these are the fortran commands open (12, file = 'IGD01211200012112001.bin', form = 'binary', position) I have also tried open (12, file ========================================================== But nothing changed by using any correction open (12, file = 'IGD01211200012112001.bin', form = 'unformatted' , Position = 'old') but if well left on the memories and right of values. Some cushion uses I also tried to play with the options - little_endian or - Both big_endian Nothing changes a...

angularjs - ui-router states that have different views -

There are several pages in my app, and each one has their own view States: Post to log in posts. Post in urban cities. Post I put "Post Post" and "Cities Post" to be the sons of posts and cities because I want to be able to click back and go to the reference page. The "post" page is exactly the same: posts.post, cities.post But when I inherit this post the pictures of cities or posts, and I Because it has its own unique view Did you name your states instead of dot contion Have tried another method to give? There are several ways of nesting states: - Use a nested state tree to build a UI-router.thet shelter. Courtesy of @marklagendijk - Using the original property with the original name in the form of a string, for example: Parent: 'Contact' - Using Basic Assets with Parent Objects Example Parent (s): Contact (where 'Contact' is a state object)

Avoid copy method in Python -

Image
मैंने __future__ आयात डिवीजन आयात से डी कास्टेलजौ अल्गोरिदम लागू करने के लिए अजगर में एक फ़ंक्शन लिखी थी एनपी आयात कॉपी डीईपी डीकास्टेलजाऊ (पी, टी) के रूप में अंडाकार: श्रेणी में एन (एन -1) के लिए एन = लेन (पी): श्रेणी आर (एन -1 के) के लिए: पी [आर] = (1-टी ) * पी [आर] + टी * पी [आर + 1] रिटर्न पी [0] और निम्नलिखित डेटा के साथ फ़ंक्शन को कॉल किया जाता है पी = Np.array ([[1., 1।], [2., 3]], [3., 2।]], Dtype = float) एम = 1000 जी में सीमा (एम): टी = डीकास्टेलजाऊ ( जो कि के लगभग सभी मूल्यों के लिए हजारों (गलत) परिणाम [3,2] का नेतृत्व करते हैं, टी = जी / (एम -1) मैंने कोड को डीईएफ़ डीकास्टेलजाऊ (पी, टी) में बदल दिया है: एन = लेन (पी) क्यू = प्रतिलिपि .पीपी (पी) के लिए श्रेणी में (एन -1): आर के लिए श्रेणी (एन -1-कश्मीर): क्यू [आर] = (1-टी) * क्यू [आर] + टी * क्यू [आर + 1] वापसी क्यू [0] ऐसा मैंने इसे बदलने से पहले सरणी P की प्रतिलिपि बनाई है, और अब डेटा सही है। मुझे वाकई समझ में नहीं आता है कि यह अब क्यों काम करता है और मैं सोच रहा था कि प्रतिलिपि विधि के बिना कोई...

Android OnClick not working on android 4.3 -

I have a piece inside the main activity. There is an image view in the piece. My purpose is to split the image view into 3 different buttons.So, I have a linear layout which establishes image overlaps and it is included in 3 clickable ideas with equal severity. In the piece I OnClickListener applies, as this - The spread of the dispersion in the public square FragmentHome menu is OnClickListener {see the view; Reference activity_context; See buttons_search_1; See button_search_2; See buttons_search_3; ... other stuff lots of public FragmentHomeMenu () {} @Override public view onCreateView (LayoutInflater inflater, ViewGroup container, bundle savedInstanceState) {view = inflater.inflate (R.layout.fragment_home_menu, container, false); Activity_context = getActivity () GetApplicationContext (); Button_search_1 = See (see). FindViewById (R.id.button_search_1); Button_search_1.setOnClickListener (this); Button_search_2 = (see) view.findViewById (R.id.button_search_2); Button_searc...

jquery - Let user upload an xml file and parse it (without PHP)? -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मैं सीएसएस में काफी जानकार हूं (3) और एचटीएमएल (5), लेकिन मेरी वर्तमान परियोजना मुझे चीजों को आगे ले जाने की अनुमति देती है। हालांकि, यह मेरे लिए पूरी तरह से अज्ञात इलाके है मेरे प्रोजेक्ट में मेरे पास टेक्सारेआ है जिसमें उपयोगकर्ता कुछ एक्सएमएल जमा कर सकते हैं, जिसके बाद मैं jQuery के $ parseXML विधि से पार्स करता हूं। हालांकि, मैं एक XML फ़ाइल अपलोड करने की क्षमता जोड़ना चाहता हूं। मुझे लगता है कि अपलोड बटन ऐसा दिखेगा: & lt; form name = "upload-form "एक्शन =" ??? " विधि = "???" & gt; & Lt; इनपुट प्रकार = "फ़ाइल" नाम = "अपलोड-फ़ील्ड" & gt; & Lt; / प्रपत्र & gt; हालांकि, मुझे नहीं पता कि कार्रवाई और पद्धति किस तरह दिखनी चाहिए। क्योंकि मैं एक ही पृष्ठ पर रह रहा हूं और कुछ भी शानदार नहीं माना जाता है, मैं अनुमान लगा रहा हूं कि एक्शन-विशेषता को छोड़ दिया जा सकता है? विधि-विशेषता प्राप्त हो सकती है , बजाय पोस्ट ? (1) और फिर क्या? मुझे नहीं पता ...

ios - Set info Plist Bool Programmatically -

Can I change infoPlist bool for supports iTunes file sharing Programmatically Some of the lines: [[NSBundle mainBundle] objectForInfoDictionaryKey: @ "Application_supports_iTunes_file_sharing"] = No]]; This is not possible for the same reason. If you need a temporary data element for your app, then this NSUserDefaults All special flags need to be set up in the info.plst (say, debug vs release), but it should be compiled into your bundle.

python - Writing out to a gives no new file, but no error either -

लक्ष्य: argparse में एक तर्क ले लो, परीक्षण अगर यह तर्क सही है यदि सत्य है, तो उस तर्क के बाद निर्दिष्ट नाम के साथ फाइल लिखें उदाहरण: कमांड लाइन में: $ python printfile.py --out_arg fileOutput.txt ... एक फाइल ऑउटपुट। Txt उसी निर्देशिका में होगा जैसा कि printfile.py कोड: def parse_arguments (): options = parse_arguments () #output arguments parser.add_argument ("- out_arg", एक्शन = 'स्टोर', डिफ़ॉल्ट = फॉल्ट, dest = 'out_arg' Def = "" आउटपुट फाइल "" ") def प्रिंटआउटआउट (सीक्यूआईडी, सीईसी, कॉम): #" ए "एपेंड का उपयोग किया जाता है क्योंकि यह लूप जनरेटर के लिए आउटपुट है अगर options.out_arg outputfh = open (options.out_33 , "A") outputfh.write ("@ {} \ n {} \ n {} \ n +"। प्रारूप (सीकआईडी, सीईसी, कॉम)) अन्य: sys.stderr.write ("ERR: sys.stdin बिना है अनुक्रम डेटा ") फिर भी, जब मैं डीपी मुख्य () से प्रिंट_आउटपुट को कॉल करता हूं - नहीं दिखाया- ब्याज की मेरी ट्यूपल (सीईसीआईडी, सी...

powershell - Unregister-Event not removing orphaned event subscriptions -

I am using this to subscribe to events off to a particular computer: register -WMIEvent -ComputerName MyServer1 -query "select Win32_ComputerShutdownEvent *" -SourceIdentifier "ShutdownWatcher" action {write-host "MyServer1 has stopped"} it seems Works and I get off the text when the computer is off. The problem is that there is a one-time event and that I subscribed event subscription nothing has been removed to try to use the following to remove. unregistered event -SourceIdentifier "ShutdownWatcher" event subscription orphaned and can no longer be removed it. It is orphaned and completely useless as it does not fire when another shutdown. is done. I want to remove the membership once it has been removed Does anyone know how to remove orphan event subscription? One way to stop is Powe's Rshell session but I do not want to actually do that. subscription with you should be able to clear all out: Go-Event Subscriber...

javascript - Tablesorter Pager Options Set Default Rows To 5 -

I'm trying to get the table to display 5 results for each page instead of 10. I saw the same question here but the solution was not working for me & lt; Script & gt; $ (Document) .ready (function () {// Defined Pager option var pagerOptions = {// target pager markup - see HTML block below the container: $ (". Pager"), size: 5, // output String {{page}, {totalPages}, {startRow}, {endRow} and {totalRows} output: '{startrow} - {endRow} / {filteredRows} (default)' {pages} / {TotalPages} '; {TotalRows}), // If true, then the table will be the same height regardless of how many records are displayed. Space is set on the basis of the space, up to the height for reimbursement by table table row; The default is fixed incorrectly: True, // Remove rows from the table to speed up like a large table. // Set it to false, hides only non-visible rows, if you plan to add / remove rows with pagers then it is necessary. RemoveRows: go to false, // page selector - ...

jpa - Speed up Hibernate EntityManager initialization -

I'm using a hibernate jpa provider It seems that it takes a lot of time (more than 3 seconds) Is there any way to speed it up, just loading the entity annotated classes and creating different types of trees and query trees? In fact this unit tests a downer, even if it happens once. I've already stopped schema verification and updates thanks.

ruby - Savon not generating correct SOAPActions -

Savannah shows that there is an operation, : get_lead , which will translate to getLead when loaded in the SOI, then the correct operation sample is given in the request: paramsGetLead . What is happening here and why not: Parama_Get_Lead is seen as an operation? Or there is a way to manually define SOAPAction and prevent the production of savon You should use the following configuration options client = Savon.client (: get_lead,: convert_request_keys_to = & gt ;: camelcase #: lower_camelcase ,: upcase, : None ...) You can explicitly specify the operation client.call (: get_lead, soap_action: "some_namespace / getLead" , ...)

python - Why is this list not 'saving' after I execute the function? -

So I'm only coding for a few weeks and today, I was messing around writing an algorithm in Python The list that fills the empty list. I have written this: def wth (a, b): list = [] i = 0 j = b while len (list) & lt; A: list.insert (i, j) i = I + 1J = J + 1 return list This works, for example: print list [] Why is it so? Many thanks in advance. If you want to use the result of a function, you must assign it to Instead of this code, you can simply use for a variable like new_list = wth (a, b) b)

c# - Create query with custom entity name in CRM 2011 -

After We are trying to query a collection of custom entities in CRM 2011, using createquery: var c queryActivatedProducts = svcContext.CreateQuery include ( "Mur_activatedproducts") where ((string) c [ "mur_activatedproduct"]) ( "the facility") new selection {account = c.Attributes ["Mur_activatedproduct"],}; Foreign currency (different types of query-serrated products) {Debug.WriteLine ("+ c.accountname"); } The above code is a modification of examples taken directly from Microsoft: We receive the following exception: An exception to the system input While attempting to change the value '% feature%', the format expansion was thrown 'Mutuavirtualized Products' Mayr_ktivetprodkt 'required type of attribute values: System.Guid exception raised: Guid 4 dashes (XXXXXXXXXXXX-XXXXXXXX-XXXXXXXXXXXX) should be 32 points with Why It is asking for here GUID.? If we follow the example of Microsoft, then it appea...

shell - ffmpeg not working after update to Mavericks -

After updating Mavericks 10.9.5 recently, my installation of ffmpeg is extinguishing Error: dyld: Library has not been loaded: /usr/local/lib/libx264.142.dylib Referenced: / usr / local / bin / ffmpeg Reason: Image not found Trace / BPT Trap: 5 Any ideas? I am not very special with manual compilation and I have installed ffmpeg through homebrew. I tried to uninstall it and try: install brew ffmpeg - head brow installed ffmpeg - build-to-source but this is a .configure error ==> .configure --prefix = / usr / local / cellar / ffmpeg / 2.4.2 - enable-shareable-aligned --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded- Tables - enabled - avresample If you think that the configured fault is made, make sure you are using the latest version from the git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg at irc.freenode.net. Include the log file "config.log" created by the configuration...

c++ - Box2D body with OpenGL texture origin offset in GLFW -

I think this is common knowledge for all those people who use Box2D and OpenGL that the origin of Box2D bodies In the center of the body and the open glyph texture, it is in the bottom left corner. I am using Box2D to create a body and to attach a OpenGL texture with the function, glTranslatef (Player_Body-> GetPosition (.x), Player_Body-> GetPosition (.), 0.0f) However, since GetPosition () returns the original, so my texture is attached to its lower left corner in the center of the body. How do I change the origin of OpenGL texture to the center of texture? I do not think this is nothing but a screen conversion from the world. So far, at least not because I'm not performing any physics, just display a stable body. Currently, the ratio is meters: pixels -> 1: 1 (I know this is bad behavior, but this is just a temporary test). My program uses GLFW as a windowing system. I used GLUT earlier, it appeared correctly, but I had a monitor device problem with GLUT...

node.js - Adding fields to model which derived from Mongoose schema -

I have a Monois schema that looks like this: ManifestSchema = new schema ({Entries: [{order_id: string, line_item: {}, // & lt; - resolved on run time address: {}, // And somewhere I have a code in: Q.ninvoke (Manifests.findById (req.params.id), 'exec'). Then (function (manifest) {// ... many things like addresses and item information entry resolving, entry.line_item = item; entry .address = order.delivery.address;}) The problem I have encountered is that without defining the address and line_item in the schema, when I resolved them on time, they will not come back to the user because they were not in the schema ... so I added them ... by which I have another unwanted behavior R is: when I saved back to the object, both out and saved with Lain_itm Menist object, which is something I would like to save. What field is not saving for the schema at the time, but still, on the way back? I was trying to use 'virtual' in Mongos, but what do they actuall...

jquery - Trigger file upload via Javascript only -

I want to write a browser add-on that automatically uploads the file to the page. So it will be done in pure javascript. It is that I have / know: input # some id The file name and location in the computer I am trying to "hardcode" in "codecode" Code> inputElement.click () As inputElement The input querySelector . Use initMouseEvent but I got the error Uncustom Type error: Properties 'dispatchEvent' can not be read So my questions are: How to trigger the click input of the file upload element? Improved: How to Process Upload Completely? Pass the file name + location to basically upload (like the user clicks the OK to open the file from the dialog) UPDATE 1: / Strong> I was reading this probably a file uploaded from the file system is not possible. How about these options: We can get a file from the URL (HTTC) The file is just image and Javascript is in Memory (Base64) Any of the a...