Posts

Showing posts from June, 2011

vb.net - Is it possible to override the creation of a new object and return an existing object? -

So a quick non-working example of what I'm trying to do: Public class repclass repclass as public share in the form of public N. as new public (new as integer) If there is no representative then then 'me existing thing like me = delegate' or return representative 'N = N rep = I end if end sub end class is it possible And is it? I think what you are looking for is the singleton design pattern which ensures that only the class There is an example. See . Here is a converted example in VB: Public Class Singleton Private Shared m_instance Singleton Private Sub New () and Sub-Public Shared Readline Property Instances () Get Singleton as Android If M_Vance is Nothing Then m_instance = new singleton () and return m_instance end end and protection and class

java - PreUpdate Hooks in play framework, how to get the old value of the request? -

I am trying to use EBEAN preupdate hooks, I have established a test class like this Expands Public Class Message Controller Beneficial Adapter {@ Override Public Boolean HarisijsterFor (Class & Lt;? & Gt; CLS) {if (cls.equals (Message.class)) {return true; } return false; } @ Override Public Boolean Postcode (Object Been, Sets contained in the set & lt; String & gt;) @} Override Public Boolean Pre-Updates (Bean's Supporter Request & lt ;? & gt; Request) {Logger.info ("Update Record! "); // message bean = request.getBean (); Message newModel = (message) request.getBean (); Message old model = (message) request.getOldValues ​​(); // System.out.println ("... command controller & gt; insert:" + newModel.title); System.out.println ("... order controller & gt; place:" + old model .tatal); Back true; } The problem is that, newModel.title and oldModel.title returs the same values. What am I missing?

wpf - Accept (Shift + Return) But Not (Return) -

I have a RichTextBox in a WPF application in which I do not want to accept Shift + Return but I do not back it in my XML How can i When I accept , return = "true" it blocks all actions (as I Name will be expected) So is there any way to handle conditional withdrawal in XAML?

c# - Published my MVC 5 site used to be webforms 4.5 -

I had almost on ASP.Net 4.5 Webforms at DiscountASP.Net last April. I changed my website to MVC 5. I originally wrote it from scratch when I click on a link, it redirects me to a webpage which tells [the original director] and lists some directories from my previous project (4.5 webforms) . I tried to reproduce this project and publish it and I still have problems I'm not sure what is wrong. Can anyone try to click on links to two practice areas on this website: www.attorneybeaulac.com and see what might be the cause of this problem? I do not have any index / practiceism working pages / practitioners / Phalalal Be sure to present the server properly for MVC 5. Make sure that the .NET 4.5 is the framework that you are making with VS 2013 (and is necessary for the latest) Check that you have registered the registry Enspnet has registered. NET 4.5 Make sure Make sure that you have configured the site as a .NET 4 site. Make sure that your web / clear deplo...

ios - get "user_id" along with the AccessToken from Django-Tastypie Server -

My server is a Django-Tastypie REST server that is accessed by an IOS customer I want to implement OAuth2 for authentication I am I am currently using this: And on the client side, I'm using AFNETWorking 2.0 AFHTTPRequestOperationManager to handle requests and feedback. I'm following the tutorial (which I have updated to work with 2.0) Now, after the tutorial, everything works well, I'm getting "access_token" for a user, For which I can pass an HTTPRequest with values ​​in my code with CLIENT_ID, CLIENT_SECRET, username and password. is: {"access_token": "your-access-token>", "scope": "read", "expires_in": 8639 9, "refresh_token": "Your now tutorial works great, but it is shown next to that the author also receives the " user_id " field with the response to the above areas and then It stores "access_token" and "user_id" in the iOS customer, and then to r...

ipc - linux - 1-to-many communication between processes -

I am trying to find a way to communicate one-to-many communications between processes in Linux. I found linux named pipe , but many readers of those people (I do not work with other answers so that once a reader finds some data, others do not get it) Will; Someone can make it clear - I see mixed answers on SO - whether it is possible or not In addition, my understanding, socket , a server for many customers I can connect to, but in my case, I would like to send data for a process (many processes need- edit : how to use shared memory How can Named Pipe W Like a pipe in the stove, I have an input and an output, so you can not use the same (name) pipes to send information to more than one other process But there is nothing against the idea of ​​using a pipe for each other's process and filling all pipes, it will work while using designated pipes, (anonymous) pipes and sockets. But in all cases This means that all this keeps track of the receiver and separately ...

php - Restler 3 nested resources? -

In the restorer, is it possible to use nested resources? For example, with the rest, I would call normal / api / account / 123 to get that particular account, now I want to get customers related to that account. Therefore, I want to call / api / account / 123 / client / 456 for example to get specific clients for specific code. You can use manual routing to define such routes. See the following example Use Lucast / Resteller \ RestException; Class accounts {** ** Get specific customers for the given account * * @ Ultimate Int $ id account id * @ param int $ client_id * * @ thru rest exception 404 * * @ reton client * * @ resin GET account / {Id} ('id', '=') (Where '(' account_id ',' = ', $ id) - & gt; ($ id = $ client_id) {$ id = $ client_id} / / client / { Client_id} * / public function getClient, $ Client_id) - & gt; First orphan (); If (empty ($ r) throwing RestException (404, 'Client account is not associated with'...

html - Height in percentage does not apply -

I want to understand that why my case, Height: x% does not apply. Div / section with percent always gets height: 0 My code: http://codepen.io/anon/pen/aHhmD to apply the height in percent of an element, should apply to the height of its ancestors. In your section Only one minute-height is applied instead give it a height: html, body {padding: 0; Margin: 0; Height: 100%}. Partial {condition: relative; Display area; Minimum width: 100%; Height: 100%; Background color: # 008000; }. U. Status: Relative; Display area; Background color: navy; Minimum width: 100%; Minimum height: 50%; } .do {status: relative; Display area; Background color: orange; Minimum width: 100%; Minimum height: 50%; }

strange Python version-dependent behavior with writing sorted output using heapq.merge -

Some GSUTL users have reported a failure while running GSUTL rsync, which I have apparently tracked to a Python 2.7. .8-specific problem: we have the source and destination directory of synchronization in binary mode ('W + B') Write the sorted lists, and then read these lists back in Binary Mode ('RB') too. It works fine under Python 2.6.x and Python 2.7.3, but output under Python 2.7.8 ends in a pervert-looking binary format, which reads when it is being read back. If I switch the output to solve the problem instead of using the 'w +' mode, (a) I think I want to write in binary mode because these files are unicode And (b) I want to understand why this is a Python version-dependent problem. Someone may even have reason to do so. FYI, I tried to reproduce this problem with a short program, which just writes one file in binary mode and read it back in binary mode, but the problem with this program Repro is not i am wondering what is pak There may be some...

variables - change random button text C# -

I'm trying to change my text to a random button based on the random number. I have tried the following code: if (button (random int 1 to 9)). Lesson! = "X") {MessageBox.Show ("test work"); } How can I do this, but any input will be greatly appreciated. You create a list of an array or button , and each button Add, and select a randomly, or name each button ButtonX , where X is the number then you can use it to select a button named after it. Example: random random = new random (); Button (as) Lesson! = "X") (MessageBox.Show ("Test worked");} Make sure you create a random example outside of a method, if If it is called many times, the result will not change.

Rails query with a conditional includes not returning objects -

I have follow-up organizations: is an order / many items have my key I want to find all the items for a given order, and just get the keys that are true of the 'experiment' attribute. If this feature is not correct, do not give me the keys back, but I still want the item. I have tried to: @order = order (3) @ etams = @order.teamon (): (where 'keys.immed', right). Reference ('keys') But this win will not return any results, and I would like to return these items to it, even if the keys with the attributes of using true keys Not be there What am I missing? try it @ order = order.find (3) @items = @ order.items.joins (: key). Where (keys: {is used: true}) context:

java - MongoDB driver and cluster -

I'm going to a dull cluster with 3 replica sets, 3 configurable servers and 1 mangas example from a single manga example . In return, there are three Mongol instances in each replica set. When I am adding a document to the archive, then I am looking for higher availability. What should I join with my Java program? Should I connect to Monogos or Mongoode from a replica set? Can you please tell me? Thanks in the garbage environment, your application should always be linked to the mangas instance. Treats your application's perspective as another MongoDB example from the Mongos example. Even if you have a non-pushing database or a collection that stays on the same shard, then it is recommended that you use monos for all tasks (even if Only those actions have no effect on the cut data). You can read more information on the man page.

javascript - err: TypeError: Cannot call method 'replace' of undefined -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं भेजने की कोशिश कर रहा हूँ एक POST अनुरोध के माध्यम से इस प्रकार: क्लाइंट साइड angular.module ('app') नियंत्रक ('contactCtrl', फ़ंक्शन ($ दायरा, $ http) {$ Scope.envoyer = फ़ंक्शन (एनएम, संगठन, कुरियर, टेलीफोन, संदेश) {$ http.post ('/ संपर्क', {नामनिर्देशन: संगठन, संगठन: संगठन, कुप्रिएल: कुरियर, टेलीफोन: टेलीफोन, संदेश: संदेश} )। तब (फ़ंक्शन (त्रुटि, प्रतिक्रिया) {console.log ('भेजा गया!'); अगर (response.data.success) {console.log ('भेजा गया!');}})}}}}); सर्वर साइड एप पोस्ट ('/ संपर्क', फ़ंक्शन (रिक, रेस, अगला) {var topic = req.query.nom; Var nom = 'नोम पूर्ण:' + req.query.nom + '& lt; br / & gt;' var 'संगठन =' संगठन: '+ req.query.organisation +' & lt; br / & gt; 'var curriel = 'कोरियेल:' + रेक। क्वायरील + '& lt; br / & gt;' var टेलिफोन = 'टेलिफोन:' + req.query.telephone + '& lt...

node.js - Default Express app with Compass gives ENOENT -

उबंटू 14.04 नोड 0.10.25 एक्सप्रेस 4.2.0 सुडो एपीटी-जाओ स्थापित करें nodejs GET / 200 12ms - 206 बी इवेंट्स। जेएस: 72 फीट एर; // अनियंत्रित 'त्रुटि' घटना ^ त्रुटि: त्रुटि अन्वेषण पर spawn ENOENT (child_process.js: 988: 11) प्रोसेस पर। चाइल्डप्रक्रिया._handle.onexit (child_process.js: 779: 34) एनपीएम ERR! अजीब त्रुटि 8 npm वार्न यह विफलता विरासत बाइनरी "नोड" npm के उपयोग के कारण हो सकती है चेतावनी आगे स्पष्टीकरण के लिए, कृपया /usr/share/doc/nodejs/README.Debian npm ERR को पढ़ें! पैकेज डॉक्स प्रति $ gem update - सिस्टम सिस्टम $ gem install कम्पास

asp.net mvc - Visual Studio 2012 can't resolve namespace even though DLL reference seems fine -

I have tried to create an MVC 5 project by building MVC 4 project in a studio 2012 and installing MVC 5 through NJet. I can fix this. I have another DLL, Sitkor. Attempt to add context to MVCDLL, which I can see, was made against MVC 5.1.0. The DLL reference is added correctly, and it seems that there is no .NET framework conflict (which is where I have seen this problem in the past). I have a user statement using my code: - Sitecore.Mvc.Presentation; IntelliSense raises it up okay ... even allowing me to complete the 'presentation'. However, when I create it, I get the following error: - Type or name space name 'Sitkor' could not be found (Do you remember the usage director or assembly reference? Visual Studio 2012 - What's the problem? Update 4 MVC 4 web application (initially) MVC 5.1.0 newsletter package Sitcom 7.2 - Update 2 (from where Sitecore.Mvc.DLL ) On my machine .NET 4.5.2 installed. I am using a different version of S...

java - Cannot create subscription using Braintree Payment Nonce -

I am using a Braintree payment non to create recurring subscription requests. The code below is that I have to make a subscription. I am using a payment non-receipt from the customer but the membership request fails with a message "Invalid payment method is invalid." Any help / indicators will be highly appreciated. membership request request = new subscription request () PaymentMethodNonce (customer.getPaymentNonce ()) .planId (customer.getPlan (.) GetBraintreePlanId ()); Results & lt; Membership & gt; Result = Gateway () Membership (). Create (request); I work in braintree if you have more questions, then I I suggest you Unfortunately "payment is invalid without validation" the verification error is currently inappropriate; It should be fixed soon. This error means that no one was found, because it is not existing, is locked, is already being used, not indicated for weighted card, etc. In your example, the customer.getPaymentNonce (...

Akonadi (KDE) crash: repair InnoDB data when MySQL can't start -

I run a small MySQL installation as part of my Akonadi (under KDE) installation. At some point some of my InnoDB data has recently become corrupted, I'm not sure, but it may be related to recent updates to some KDE packages. Right now I'm trying to get a set of recovery tools to compile (). Until then, I would try SO for some advice. Unfortunately, MySQL will not run because of corruption, with the help of most of the help running online. Output of mysqld : Specifically, we have 140727 9: 22: 22] [note] Inodb: Log sequence number 13418196 And IBIDTA files do not match log sequence number 53487166 in 13418196 ib_logfiles! 140727 9: 22: 22 [Note] Inodb: The database was not normally closed! 140727 9: 00:22 [Note] InODB: Start the Crash Recovery. 140727 9: 22.22 [Note] Inodb: Reading table space information from IBD files ... 140727 9: 00:22 [Note] Inodb: Restoring Potentially Half-Written Data Pages 140727 9:22:22 [Note] Inodb: Repetition buffer ... 140727 9: 00:23 [e...

Doxygen can't seem to see my .d files -

I am trying to use Doxygen to create documents for a project in D. However, it does not take only my README.md file and any of my source files, even if they are in the same directory Doxygen should I do to notice my D files?

Error in an Outlook addin 2010 -

I have developed an Outlook Edin where a ribbon will be loaded when opening the ' appointment ' window . While running the application, the ribbon works fine but if I open a mail item, it prompts the following error message. 'Error occurred while calling callback ribbon_gatedvvb' I can disable the error message, but I want to know that the error message is disabled How to get rid of this error completely? "post-text" itemprop = "text"> Ensure that your callback methods are present in the correct assembly and accept the correct parameters. In your case the callback method should look like the following. Public Bowl Ribbon_GetDeviWeb (IRBB Control) {// Your code is here. }

c# - checkboxlist items as checked by default in codebehind asp.net -

I have the checkbox list in my page and I have 7 items. I 7 would like to set items as checks in their Page_load codebihind. My page: & lt; Asp: checkbox list id = "weekly condition" runat = "server" & gt; & Lt; Asp: ListItem value = "1" & gt; Sat & lt; / Asp: ListItem & gt; & Lt; Asp: ListItem value = "2" & gt; Sun & lt; / Asp: ListItem & gt; & Lt; Asp: ListItem value = "3" & gt; Mon & lt; / Asp: ListItem & gt; & Lt; Asp: ListItem value = "4" & gt; Mars & lt; / Asp: ListItem & gt; & Lt; Asp: ListItem value = "5" & gt; Mercury & lt; / Asp: ListItem & gt; & Lt; Asp: ListItem value = "6" & gt; Guru & lt; / Asp: ListItem & gt; & Lt; Asp: ListItem value = "7" & gt; Venus & lt; / Asp: ListItem & gt; & Lt; / ASP: CheckBoxList & gt; If you want to see some of ...

c - error: ‘struct tty_driver’ has no member named ‘ioctl’ -

I received a similar post but the solution could not be found, so thought that my question would be posted. I am working with a device driver, I know, the task below is compiled successfully with 2.6 kernel headers and is now trying to compile it with "3.2.0-4-686-pae" (Debian) . I get an error message, Error: The name of 'struct tty_driver' is not a member of the 'ioctl' error: 'vc_tty' is the name of 'struct vc_data' I have checked "tty_driver" in tty_driver.h (which is included in tty.h) and found that int (* Ioctl) (struct tty_struct * tty, struct file * file, unsigned complete CMD, unsigned long arg); is defined but it is not sure why I got this error. Also, I did not find 'console_struct.h' included in 'vc_data'. Anybody will tell me to work with "3.2.0-4-686-PA" to see if updates need to be done? #include & lt; Linux / tty j & gt; #include & lt; Linux / console_struct.h ...

email - send mail using php using xampp -

I can not send mail, can anyone help with it? I tried to surf but I have not got any answer yet. I'm using an application called XAMPP, is this the reason for this? Are all php functionalities in XMPP? This is a mailform & lt ;? Php $ to = "ratisharabidze@gmail.com"; $ Theme = "test mail"; $ Message = "Hello! This is a simple email message."; $ From = "ratisharabidze@yahoo.com"; $ Headers = "to: $ sec"; Mail ($ to $, $ theme, $ message, $ header); Resonant "mail sent."; ? & Gt; This is a form.html & lt; Html & gt; & Lt; Body & gt; & Lt ;? Php Function SpamCak ($ ​​field) {// Eregi ()) matches a case insensitive regular expression (ifiage ("copy:", $ field) || erogee ("cc:", $ field)) {return true ; } And {return false; }} // If "email" is filled, send email (isset ($ _ request ['email']) {// check that email address is invalid $ mailcheck = sp...

android - onBackpressed DialogFragment -

I have 3 custom dialogs (DialogFragment) not all are canceled because it is necessary that users do not close them can do. The first dialogue is second, and the third third begins. Now I want to come back to the previous dialogue, if I am using backclick. At this time I have two options, but both are not working really well: I start a new one from a dialogue, but never dismissed. -> Then there is always the background of the previous dialogue in the background of the next dialogue I reject, if I start the next dialog, but then he will not do the last Return to the dialog, but close the dialog. What can I do to start a new dialogue, so, the first view is not visible, but if I click back, then the dialog will appear? Thanks a lot for help :)) If you go to the third place you can shut the other so you can not see it in the third part. Later if you need to go back to the second dialogue, you can start it again before closing the third, in the same way you start ...

java - @Schedule annotation and timeout in EJB bean -

If I have a @ched task that runs every 5 seconds and sometimes 5 Takes longer than seconds? EJB container knows how to deal with such a scenario or do I need to take care of myself? Thank you. P.S. My EJB bean is annotated by @startup and @gigletton, and I run it on Websphere 8.0 I think that's good because you have annotated Bean with @Sigletton . As long as you do not explicitly mark the methods with @synchronous , EJB beans are synchronized so if a cron execution (one thread) is in progress then the other cron run (the second thread) First must wait to finish.

javascript - Extract JSON data and embed in HTML -

I am trying to use an API which outputs results as JSON. The output of JSON is as follows: "status": "OK", "registry": {"id": 110 915, "name": "John", "listed": 1359114500 } From that output, I want to remove the name and print it with php / html How to do this? I tried content like iframe , but that does not work. Print the name that you need to do $ json = json_decode (@file_get_contents ('file.json')); Counterfeit $ json- & gt; Registry-> Name; But be careful, your JSON code should be {"status": "OK", "registry": {"id": 110 9 15, "Name": "John", "Listed": 1359114500}} You can enter your code inside { and }

android: textView can't setText time from TimePicker -

I have a button and textView when I clicked the button, the time picker will appear. But, when I set one hour and minute and it is shown in the TextView, then unfortunately closes my code: protected dialogue OnCreateDialog (int id) {switch (id) {case: TIME_DIALOG_ID: new time picture dialog is back (this, time picture listener, hour, minute, true); } Return tap; } Private TimePickerDialog.OnTimeSetListener timePickerListener = to see new TimePickerDialog.OnTimeSetListener () {public void onTimeSet (timepicker, integer selectedHour, integer selectedMinute) {h = selectedHour; Minute = selectedMinute; // Here is the error ================= What's wrong? TvDisplayTime.setText (new stringbilder). Append (pad (hour)) append (":"). Append (pad (min))); }}; // =============================== Private static string pad (int c) {if (c> = 10 ) Return String.valueOf (c); And return "0" + String.valueOf (c); }} Why do I try to set Hours and Minutes from TimePic...

go - Golang: UnmarshalXMLAttr in encoding/xml -

I'm trying to disassociate some XMR, where I want to parse the attributes in a particular way. I have tried to use it, but I can not work it. Using the following code, I only get one output '{castle}' package main import ("encoding / XML" "FMT" String ") Show type string {title string} xml:" title, entry "`} function (S * Show) UnmarshalXMLAttr (attr xml.Attr) error {fmt.Printf ("attribute '% s' parsing value'% s '', Attr.Name.Local, attr.Value) s.Title = Wired ToUpper (attr.Value) return zero} func main () {b: = [] byte (` Any thoughts? attribute unmarshaler should be a type of title , Not the show. Here is a definite version: First of all, we create a "wrong type" that wraps the string and applies the interface type Title string We now define the title field as our type This will call our attribute for this attribute Show Type Structure {Title Title: `Xml:" Title, Atr ...

sql - MYSQL Brands list order by product count but -

मेरे पास दो टेबल हैं इस तरह; उत्पाद तालिका आईडी | ब्रांड | Bla bla bla प्राथमिकता तालिका आईडी | ब्रांड मैं उत्पाद तालिका से चयन तालिका को सूचीबद्ध कर रहा हूं; इस तरह से उत्पाद की संख्या के अनुसार; ब्रा के रूप में चयन करें ब्रांड, (SELECT परिणाम है: एक ब्रांड (65 उत्पादों) बी ब्रांड (43 उत्पाद) सी ब्रांड (23 उत्पादों) डी ब्रांड (17 उत्पादों) यह एक आदर्श काम कर लाइन है लेकिन मैं कुछ ब्रांडों को प्राथमिकता देना चाहता हूं। एक्स ब्रांड (4 उत्पादों) डी ब्रांड (17 उत्पादों) बी ब्रांड (43 उत्पाद) सी ब्रांड (23 उत्पाद) मैंने इस लाइन का इस्तेमाल किया। लेकिन यह काम नहीं कर रहा है। ब्रा के रूप में चयन करें ब्रांड, (उत्पाद से चुनें संख्या (आईडी) जहां से ब्रांड = ब्रा) सीएनटी, (प्राथमिकता से चुनें ब्रांड) प्राथमिकताएं ORDER पूर्व एएससी, सीएनटी डीईएससी द्वारा सच रेखा क्या है? धन्यवाद ... --- पूर्ण --- जवाब है: चयन पी ब्रांट को ब्रा के रूप में, गिनती (पीआईडी) से उत्पादों के रूप में सीएनटी बीआरआईपी द्वारा बीआरएआर ब्रा द्वारा बीआर (प्राथमि...

python do not follow redirect -

I'm trying to get data from the I tried: r = requests.get ( "https://mobile.bet365.com/sport/default.aspx", allow_redirects = False) print Arktekst but I always get to bypass the redirect? Any help would be greatly appreciated. Thank you You should send language approved your request header: Header = {"Accept-language": "N-US, N; Q = 0.5"} R = Requests. ( "Https://mobile.bet365.com/sport/default.aspx", headers = headers) print Arktekst

jquery - Bootstrap multi select grouping dynamicaly using array -

Is there a way to dynamically add a multichannel using this framework var data = [[label:" ACNP ", value:" ACNP "}, {label:" test ", value:" test "}]; $ ("# Multiselect") Multiselect ("data provider", data); Yes, now you can add a group with dataprovider See the documentation on . You can type in: var data = [{title: ' The first group, children: [[label: 'cheese', value: 'paneer'}, {label: 'tomates', value: 'tomatoes'}]}, {title: 'second group', children: [[label : 'Mozzarella', Value: 'Mozierla'}, {label: 'mushroom', value: 'mushroom'}]}]; $ ('Multiselect'). Multiselect ('datapriver', data); & lt; Select class = "multiselect" multi = "multiple" & gt; & Lt; / Select & gt;

asp.net - ImageButton in asp doesn't fire on onclick event -

पर्यावरण: VS2012, jquery और VB कोड पीछे यह एक सरल छवि है बटन में & lt; Td & gt; & lt; asp: imageButton onClick = "बनाम द्वारा उत्पन्न फ़ंक्शन" .. & gt; जब क्लाइंट इस पर कोई इवेंट नहीं चला जाता है पर क्लिक किया जाता है। यह कोड काम करता है जब मैं एक साधारण एचटीएमएल पृष्ठ का उपयोग करता हूं लेकिन जब मेरे पास कोई मास्टर पेज है तो काम नहीं कर रहा है? & lt; तालिका id = "tableImg" class = "tableImage" & gt; & LT; टीआर & gt; & LT; टीडी & gt; & Lt; एएसपी: इमेजबटन आईडी = "पेजर लेफ्ट" CssClass = "दिपपेगर लेफ्ट" इमेजरयूआरएल = "~ / मेडियास / कॉन्फ़िग / स्लाइडरमॉवल लाइफ।" ऑनक्लिक = "पेजर लेफ्टक्लिक" रनैट = "सर्वर" / & gt; & Lt; / टीडी & gt; & Lt; td वर्ग = 'tdImage' & gt; & Lt; एएसपी: इमेज आईडी = "आईएमजी 1" क्लाइंटआईडीएमोड = "स्टेटिक" सीएसएस क्लास = "आईएमजीइन्टो गैलरी" इमेजयूआरएल = "/" वैकल्पि...

Performance difference between NOT Exists and LEFT JOIN IN SQL Server -

Image
I can have the following questions to check the existing records in the target table. * Choose from table 1 where the column is not 1 (Select column 2 from Table 2) Select from Table 1 * Join table 2, where Table 1 Column 1 = Table 2. Column 2 Where Table 2 ID column is zero I want to know which query has a better performance. Go to not present generally. This is in not in , if columns are tapable on both sides (and you have the desired words that you probably want) left Join ... The tap sometimes combines with the latter filter to preserve the matching rows and can be very less efficient. An example showing this is below no scheme and the plan to be excluded for being included in more than 1 million rows in the filter How to blow in. does not exist External participant ... NULL no create table table 1 (IDCOLM INT identity primary key, column 1 ENTNLL, filler CHAR (8000) zero, unique (column 1, IDC column)); Table Table 2 (IDCOLM INT Identit...

c# - Set focus to an mdi container after showing an mdi child -

I am trying to create a form of MDI container, and when I press a button on the numpad (1-9 ), A small form (which will be the MDI child of the form) will appear in the relative location for the position of the numbered (5 is in the middle, 9 is the top right), and then I want to concentrate on my MD Program to return to the container so that you can press the button again. I have such a major event in my MDI container: Private Zero MdiClient_KeyPress (Object Sender, KeyPressEventArgs e) {int num; If (E.Kerk> = '1' & amp; A.K.Kerk & lt; = '9') {num = E. Keker - '0'; PhysicalChild PC = New PhysicalChild (); Pc.MDIParent = this; Pc.Show (); Pc.Location = new point (number% 3 * width / 2 - 50 * number, number / 3 * height / 2 - 50 * digits); Pc Size = new size (50, 50); Focus (); }} The problem is that the MDI does not return the focus to the container, even if I do not click the mouse on the container area, I have to close the MDI child for ...

winapi - C++ UUID to stl string -

Trying to convert to a string without promoting a UUID. I have the following, but string does not work to assign wszUuid to guid. Does anybody know how I can do this so that I can return a stale string? string server :: GetNewGUID () {UUID UUID; :: zoramori (& amp; uuid, sizeof (UUID)); // Create UUID or load with string by UIIIDFramString () function :: UUIDCrite (and UUID); // If you want to convert uuid into a string, use the UuidToString () function WCHAR * wszUuid = NULL; :: UUITTostring (and uuid, (RPC_WSTR *) and wszUuid); If (wszUuid! = NULL) {: RPC stringfree (RPCCRTR) and YSSUUID); WszUuid = NULL; } String guide; Guid = wszUuid; // Error: No operator "=" matches these operant types type: std :: string = WCHAR * Return Gid; } Use wstring instead of string. Wstring guid; Guid = wszUuid;

node.js - how can I get data from database in mysql in node js without using direct queries? -

I have found out how to use the query with all the example SQL statements, such as: 'connection.query ("select * My_table ", ...) ', but I want to do it without the SQL statement, but with the store process I found something about' DB-MyScall 'which provides this option but I have to install it Not a success. I do not want to use the SQL statement in my code. I want to select, update, etc. the procedures stored in mysqldatabase (like C #). How can I do this? Checkout is a node-compatible orm that allows you to easily interface with SQL Using SQL Statement

google app engine - Developer's console does not show AppEngine under Compute menu -

I created a new app engine project a few days ago, using the original App Angle Console. When I see this new Google Developer Console, the "COMPUTE" menu option only shows "compute engine" as an option, as the other old application option, "App Engine" and "Compute Engine "Both show. How do I fix this? I had the same problem with you needing to create a new project through the console. developers.google.com Not through epigine.in. If you create a project using ephenyninected, the app engine menu will not be visible.

parse error on input 'let' Haskell -

I want to store each letter with a string in the list that I've read from the file. That's why I'm repeating the list of strings. To get a string at a time, "st" and i = "0" are called and I am calling this function from my main, but I am getting a parse error and I can not get it. can you understand this ?? get 'st i = do if i & lt; (Length st) then print (st !! i) j = 0 let j = i let i = get j +1 'st i else print ("hi") First, let's add indentation. Haskell depends on indentation or curly braces & amp; Semi-colon: get 'st i = do if i & lt; (Length st) then print (st !! i) j = 0 let's get j = i let i = j + 1 get 'st i print' ("hi") Also gives an error Temp.hs: 4: 5: Parsing error on input error ' Because you have your then For the chain actions in the block, the do block must be started This is a common error for new people for Haskell then section is a sing...

Java Integrated Application about Loops and Arrays -

सवाल निम्न के जैसा है: निम के गेम में, दो खिलाड़ी वैकल्पिक रूप से एक ढेर से पत्थर लेते हैं। प्रत्येक चाल में, एक खिलाड़ी चुनता है कि कितने पत्थर लेने होंगे। खिलाड़ी को कम से कम एक लेना चाहिए, लेकिन संगमरमर के आधे हिस्से में होना चाहिए फिर दूसरा खिलाड़ी एक मोड़ लेता है आखिरी संगमरमर को खोने वाला पैलेयर खो देता है एक प्रोग्राम लिखें जिसमें दो खिलाड़ी एक दूसरे के खिलाफ खेलते हैं यह कार्यक्रम पहले खिलाड़ियों को पत्थर के ढेर के प्रारंभिक आकार (सीमा: 10 ~ 100 सहित) को इनपुट करने के लिए प्रेरित करता है। फिर, दो खिलाड़ियों को लेने के लिए पत्थर की संख्या इनपुट करने के लिए बदल जाता है। कार्यक्रम प्रत्येक मोड़ के बाद छोड़ दिया पत्थरों की संख्या को प्रिंट करना चाहिए खेल बंद हो जाता है जब एक संगमरमर को ढेर में छोड़ दिया जाता है। जीतने वाला संदेश मुद्रित होना चाहिए यह दर्शाता है कि खेल समाप्त होने के बाद विजेता कौन है आप मान सकते हैं कि खिलाड़ियों को हमेशा एक संख्या सही श्रेणी में इनपुट करता है। कार्यक्रम खत्म करने के बाद, आप वास्तव में अपने पड़ोसी के साथ इस खेल को खेल सकते थे। नमून...

python - Django REST framework: nested relationship: non_field_errors -

In a Django-REST-framework project I tried to use a nested relationship and browsable API "non_field_errors "Found" : ALBUM_NAME = models.CharField (MAX_LENGTH = 100) artist = models.CharField (MAX_LENGTH = 100) class track from the imported model class album (models.Model) > serializers.py: from myapp.models import album from rest_framework import serializers, track square TrackSeriali track zer (serializers.ModelSerializer): class meta model = track regions = ('command', 'title ') Class AlbumSerializer (serializers.ModelSerializer): tracks = TrackSerializer (many = true) square meta model = album areas = (The 'track input field' has been red marked with error / error message: error (but ../ album): non_field_errors Click on the Option button to reveal the real & true data structure. Their appropriate propertie Browse the browsable browser to see the raw data input With nest tracks posting some valid raw data ...

android Studio debubbing -

I'm learning content design with developers. Android Com but I did the exact same way that card_view should be done. I only received this error: "found in the package for a resource identifier attribute 'cardCornerRadius' 'com.google.example.test_app'" This is my code I Used to be. ` & lt; Android.support.v7.widget.CardView xmlns: card_view = "http://schemas.android.com/apk/res-auto" Android: id = "@ + id / card_view" Android: layout_width = "200dp" Android: Layout_height = "200dp" Android: layout_gravity = "center" Android: background = "# FFF" card_view: cardCornerRadius = "4dp" & gt; & Lt; Android: layout_height = "wrap_content" android: text = "@ string / next" Android: background = "#FFF" Android: height = "5: TextView Android: id =" @ + id / my_textview "Android: layout_width =" wrap_content " DP "...

How to get the default row in WPF datagrid as like in WINFORM datagridview -

I am a newbie to WPF. I am trying to replicate the functionality created in Winform datagridview in WPF datagrid. When I created the data grid view with the required column and ran the application, then he provided a default blank row, I started editing the default row on the runtime and added more rows in the DataGrud view. But when I sampled in WPF, I could not find the default blank line. For this reason I am not able to add content to each column. I need an empty datagrid, which I will use it on the runtime to get the input from the user. Please help me on this...! Please Dhana Please see your XML below & lt; Window x: Class = "WpfApplication1.MainWindow" xmlns = "http: // Schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/ Xaml "xmlns: col =" clr- namespace: system. Compilation; assembly = mscorlib "title =" main window "height =" 450 "width =" 850 ...

mongoose - Reference a nested schema in moongose -

I have an album schema in which the song has a sub-plan albums album album name : Song: [{Name, URL}] I have another archive that has the schematic of the playlist. In this schema, each document has to catch an array of songs. playlist scheme playlist name: song: [] How do I go about referencing songs from playlists, so that I use the poplit on the playlist Can i do Is there any way to do this without breaking the song in its collection? I have tried to find SO and mungdo docs, but there is not a way to do so by now. Note: This question was marked as a duplicate. this ! The question which is related to the moderator, is asking how to present the references in one collection to another collection. This question is about referencing a sub-document in a collection from the second collection. There are two very different things. You can not have a reference to sub-documents, there is no way around it So you can not use the population You will need a query on the alb...

jQuery drawing gridlines on element -

I am using a great drag 'n drop and resize plugin for jQuery I would like to add some gridlines around any element (top, bottom, left and right) that I will pull or resize with this plugin. Does anyone have any plugin or some code that will help me do this? Perhaps the best way to do this is to modify the plugin according to your needs, depending on the function call Adding the plugin .jqHandle You can modify the CSS instead of having a red box, it may just be the limit This is a JS bin to show you: The HTML has been modified So that the handle is now container, and CSS has been modified. The function calls the same.

javascript - Importing full SVG with PDFKit -

Does anyone know if it is possible to import a full SVG into a PDF document? I can see from the docs that there is full SVG support, and there are ways to draw paths, but I can not see a method to import full SVG documents. path features covering the parser), so implementing it will be a case of traversing your SVG document tree from the root change and feature States (in the case of inherited values) and SVG graphics primitive (including path s) are drawing. Of course, some things like symbol definitions and filters will be more complicated to apply, but for basic geometry & amp; Styling should not take more than a few hours to implement the facilities provided by PDBKit.

javascript - Async calls and updating variables -

निम्नलिखित जावास्क्रिप्ट स्निपेट पर विचार करें - var x; asyncFunction (); syncFunction (); फ़ंक्शन सिंक फंक्शन () {console.log (x); } समारोह asyncFunction () {// किसी भी async कॉल या एक एजेक्स कॉल // setTimeout (function () {// x = 5; //}, 1000); } x चर का मान अनिर्धारित है, क्योंकि async फ़ंक्शन निष्पादित करने के लिए कुछ समय लेता है। यह मानते हुए कि मेरे पास वादा / स्थगित, पब-उप का उपयोग करने की स्वतंत्रता नहीं है, और मुझे ऊपर दिए स्निपेट में एसिंक और सिंक कॉल के निष्पादन के क्रम को नहीं बदलना चाहिए, मैं एक्स के सही मूल्य को कैसे प्राप्त कर सकता हूं ठीक से लॉग इन? यह एक साक्षात्कार प्रश्न था जो मुझसे हाल ही में पूछा गया। एसिंक फ़ंक्शन के बाद चलाने के लिए कुछ भी होना चाहिए जब इसे किया जाता है तो async फ़ंक्शन से बुलाया जाता है - एक कॉलबैक। var x; asyncFunction (syncFunction); // कॉलबैक फ़ंक्शन सिंक फंक्शन के रूप में फ़ंक्शन पास करें () {console.log (x); } समारोह asyncFunction (callback) {// अपने उदाहरण setTimeout का उपयोग (समारोह () {x = 5; कॉलबैक ();}, 1000); }

python - Integrating SimpleWebSocketServer with django and apache -

I use Apache with django and mod_wsgi. I'm trying this module: Actually I'm trying to integrate the websocket with my Denggo app, so I can share variables and can query DB with both servers. This is my code using my library: myserver.py : I use the thread then it does not block the rest of the code. If I run this code alone, and creates a web site in the browser: javascript : var sockets; Function currentset () {socket = new web site ("ws: // localhost: 8001"); Socket.onopen = function (evt) {test.inner html = "connected \ n";}; Socket.onclose = function (evt) {test.innerHTML + = "Disconnected \ n"}; Socket.onmessage = function (evt) {warning (evt.data);}; Socket.error = function (evt) {warning ("error");}; } StartSocket (); Everything is working well The problem is how to integrate it into my DNS code. So I put the __ init __.py file in my project file myserver.py . I have created a setting WEB_SOCKET, for whic...

GO: javascript and html MIME error -

I am trying to load JavaScript in my GO app, but I got an error: The resource has been interpreted as a script but the mime type has been transferred with text / html: "http: // localhost: 4747 / twttr.js" localhost /: 6 unwanted syntax error: unexpected token & lt ; Package main import ("net / http" "html / template") func main () {http.HandleFunc ("/" /> , handler) http.ListenAndServe (": 4747", zero)} function controller (W., R, "twttr.js") return} t, _: = template. Parasfoil ("home.html", "edit.html") t. Exquisite (w, map [string] string {"title": "my headline", "body": "hi it's my body"}}} In my html, Is: gt; title & gt; Twitter & lt; / title & Gt; & lt; script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" & gt; & lt; / script & gt; & lt; script Type = "text / jav...

xcode - Objective-C UIImageView Collision -

I have to find out the confrontation between 2 UIImageviews. The problem is that I do not want to use the CGRectIntersectsRect (Image.frame, Image2.frame) because the images are not any rectangles. If I use it then because of the rectangular frame of the image There is a collision, where there is no collision. thanks for your cooperation! Peace

What Does CTRL+Space Do in Vim? -

I have been looking for some time, but I can not find any documents on this key-order. Just playing around, it seems that CTRL + space contains the text that was written in the previous insert mode session. However, is anything more subtle going on? What does this key-order actually do in vanilla vim? & lt; Sea-Space & gt; does not do anything in any way by default. : Verbose Map & lt; C-space & gt; Try looking at to see if it has been mapped to do so. Edit I've forgotten anyway: When you & lt; C-Space & gt; , the terminal sends an ambiguous signal to Vim, which it calls & lt; Nul & gt; / Code>. Because & lt; Nul & gt; Typically & lt; C - @ & gt; , acts as a vim, as if you were actually pressed & lt; C - @ & gt; and attempts to insert the previously entered text. Note that this problem is not present in GVim / MacVim.

C : Printing a pointer to an array seems to print a junk value also -

I am writing a program to push and populate elements in a stack. My code is below, #include & lt; Stdio.h & gt; #define MAX_STACK10 street_ar {int content [MAX_STACK]; Int top; }; Typewrift staff stack_are stack; Zero display_stack (stack * head) {int i; Printf ("% d -", (head-> content [i]) for {i = 0; i & lt; MAX_STACK; i ++) {if (i & lt; = head- )); Other printf ("N -"); } Printf ("\ n"); } Zero push (stack * head, int value) {if (head-> gt; top == - 1 & amp; amp; MAX_STACK! = 0) {head-> content [0] = value; Head & gt; Top = 0; } And if (((head-> top) +1) == MAX_STACK) printf ("stack full \ n"); Other major- gt; Content [++ head-> Top] = value; } Zero fill_stack (stack * head, int size, char ** content) {int i, value; For (i = 0; i Top! = - 1) {--head-> Top; Return head-> content [top-> top + 1]; } And printf ("no more elements left in the \ n stack \ n"); } Zero removal_stack (...

math - CGPoint Scalar Multiplication Swift -

I am creating a platformer game in Spritekit and was going to implement an update function for my organizations so that Although they can move forward in accordance with gravity and their velocity, I need to increase the amount of velocity in proportion to the delta time to prevent the frame rate, so that my institutions go forward, so I was going to import GLkit so that I Could not use scalar functions. Although not fast compatible, is there any other way of implementing the scalar to multiply scalar CAG points or perform velocity velocity for delta time? PS: Can anyone explain how the scalar is multiplied and how does it work? There is currently no built-in method in which math with CGPoint s There are many third-party libraries who do this, which are mostly built in pre- GLKit days as you mention, the best way to do this is now by GLKit With hope, when it supports swift soon Scalar Multiplication is super easy You only need to multiply each component of CGPoint ...

Multiplication of tables in Python -

i = 1 def प्रिंटम (एन): जबकि i & lt; = 6: प्रिंट n * i, '\ T ', i = i + 1 प्रिंट जबकि i & lt; = 6: printM (i) i = i + 1 परिणाम एक त्रुटि है जो i असाइनमेंट से पहले! कोई सुराग क्या गलत है? आपको चर स्थानीयकरण को ध्यान में रखना होगा आम तौर पर कार्य / विधियों में वैश्विक वार्स का उपयोग न करना बेहतर होता है def printM (n): i = 0 जबकि i & lt आपके कोड के लिए उदाहरण: ; = 6: प्रिंट n * i, '\ t', i + = 1 प्रिंट i = 0 जबकि i & lt; = 6: प्रिंटएम (i) i = i + 1 आउटपुट : 0 0 0 0 0 0 0 0 1 2 3 4 5 6 0 2 4 6 8 10 12 0 3 6 9 12 15 18 0 4 8 12 16 20 24 0 5 10 15 20 25 30 0 6 12 18 24 30 36

Cast User object in ASP.NET Identity 2.0 -

I want to get a custom ApplicationUser example in the controller. Can I get from the user object inside the controller? How should I do this? I tried to do it but it did not work: ApplicationUser u = (ApplicationUser) user; ApplicationUser u2 = (ApplicationUser) User.Identity; My custom identifier model happens in this way: public class ApplicationUser: IdentityUser & lt; Long, ApplicationUserLogin, ApplicationUserRole, ApplicationUserClaim & gt; {Receive public virtual user information user information; Set; } Public async works & lt; Identity of the claim & gt; GenerateUserIdentityAsync (ApplicationUserManager manager) {// NOTE: Authentication type should match one // defined in cookieaccountation. the option. AuthenticationType var userIdentity = Wait Manager. CreateIdentityAsync (this, DefaultAuthenticationTypes.ApplicationCookie); // Include custom user claims here. Users return the identity; }} Public Class ApplicationRole: Identity Reel & l...

angularjs - JSONP 404 error angular -

मैंने एक वेब सेवा लिखा है - [WebGet (UriTemplate = "/", बॉडीस्टाइल = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)] [ऑपरेशनकॉन्ट्रक्ट] स्ट्रिंग GetShift (); मैंने भी जावास्क्रिप्ट के साथ एक वेब ऐप लिखा है - var प्रतिक्रिया = $ http.jsonp ("http: // localhost: 53035 / JuleSService.svc / "); Response.success (फ़ंक्शन (डेटा) {चेतावनी ("सफलता");}); प्रतिक्रिया। आतंक (फ़ंक्शन (डेटा, स्थिति) {चेतावनी (डेटा + "\ r \ n" + स्थिति);}); लेकिन यह हमेशा 404 कोड के साथ त्रुटि में जाता है

java - how to make a page with a lot of images? (android, eclipse) -

I want to create a layout that contains a lot of image buttons but when it has more than 7 images, And the stops are working, so I wanted to know how to create a layout with a lot of image buttons. I already tried to increase the 8 SBS version but nothing changed My wild guess is that your app is exiting memory (outoffempted my error is thrown) Just insert your app did not provide enough RAM to show several images at once Gaya. I would recommend saving your images again before showing them on the screen, e.g. Do not forget that your app is likely to be ANR if you decode multiple pictures on the main thread, then I recommend that you do this by loading downsmalling them for Android's BitMap Factory. Implement an asynchronous strategy to load images. To do this, use loaders or async Tasks. Good luck!

matlab - Concatenate sub-cell items of a cell array avoiding for loop -

मेरे पास एक सेल मैट्रिक्स सी है a = {{'a'} {' Aa ',' aaa ',' aaa '}} b = {{' b '} {' बीबी ',' बीबीबी ',' बीबीबीबी '}} सी {1} = ए; सी {2} = बी; C = {1x2 सेल} {1x2 सेल} मैं सी के उप-कोशिकाओं को जोड़ना चाहते हैं और उन्हें सेल मैट्रिक्स डी में संग्रहीत करना चाहते हैं। अधिक विशेष रूप से, मुझे d {i} = [c {i} {1} c {i} {2}} चाहिए क्या हम ऐसा कर सकते हैं बिना मैटलब फ़ंक्शन जैसे पाश के निर्माण के लाभ के लिए सेलफ़न ? धन्यवाद।

objective c - Handling various types of Bitmaps in iOS -

is a very good article that I have found out how we can deal with bitmap buffer and UIImages. This article is related to RGBA32 / RGBA8 bitmap images. Bitmap images are created with a width of 4 * buffer * width * height *. That is, every pixel information will contain 4 bytes of data, respectively, to store red, green, blue and alpha, every 1 byte. On creating the bitmap image, bitmap information has been given 'KCGImageLifePhilMultPlayList'. CGColorSpaceCreateDeviceRGB () is used to return BitMap buffer UIImage. By changing bitmap information, we can also deal with RGBA 24 images. I need to deal with the RGBA 5551 bitmap images. I get red, green and blue colors of 5 beats that represent flexible colors and 1 bit to store the alpha value. If we are creating such a bitmap, then how can we allocate buffer to four * bitmap? Is it possible to convert it into UIImage data type? Any help would be appreciated. Here is BITS_PER_COMPONENT 5 and BITS_PER_COMPONENT 16. With this...

javascript - Arguments in callback function -

I have a small library, here is a function I use is the piece of HashManager . Prototype.on = function (hash, callback) {if (hash [0] == '#') {hash = hash substr (1); } If (thus ... video [hash]! == 'object') {this.observers [hash] = []; } this. Posters [hash] Pushback (callback); Return to this.Bossers [hash] [this Porschors [hash] Length-1]; }; Here is my arrival at ajaxURLS = {'# o_kompanii!': '/apages/about.html', '#product!': '/apages/production.html', '# gde_kupit!': '/apages/gde_kupit.html', '# hozyaike_na_zametku!': '/apages/hozyaike_na_zametku.html', '#News!': '/ Apages / News .html ',' # Contacts ':' /apages/contacts.html ',' # kurochka_po_zernyshku ':'! /apages/kurochka_po_zernyshku.html '}; And here's my loop var hm = new window. HashManager (); $. Each (ajaxURLS, function (hash, uri) {HM.on (hash, function (uri, hash) {conso...

c++ - Making one of the threads to wait for least possible (almost zero) time -

A list is working on two types of threads (exclusive use of STL containers to be listed as threads after). Adder thread: The item is being added to the list by several sources. / P> Processor thread: A thread > Problem: When the processor wants access to the thread list, it should be quick access (even if the other addendum thread is already waiting to reach the list , The processor thread should be given top priority). Ideally I'm not expecting almost any wait. Will thread priority be helped to solve it? Is there an algorithmic solution (alternative ways can be etc.)? (The way the solution can be specific even for the Windows operating system, if this solves the problem) I had not yet opened in the thread, but what about using two mutes for it? A adder_queue mutex and a mute x access . In the Adder Code std :: lock_guard & lt; Std :: mutex & gt; Queue_lock (adder_queue); Std :: lock_guard & lt; Std :: mutex & gt; Ac...

excel - Counting Checkboxes on a page of a multipage userforms -

I am trying to measure the number of check boxes that are checked on a specific page of the user. I'm using VBA with Excel 2010 This is my code:. Public CT AutoCount () dimmed the CTL control till J. CharacterBuilder.MultiPage1 for each CTL as .ages (2) .Controls' error was here typeof CTL msforms.CheckBox then CharacterBuilder.Controls (ctl.name) .Value = True, then j = j + 1 end if end is the next CharacterBuilder.Remaining.Caption = j, then CharacterBuilder.Skills Unload 'are not sure what it does End Sub I get a run-time error 459 object or does not support the set of classroom events. itemprop = "text"> After this with a special MultiPage control That is, unlike most things VBA, their index is 0-based. Therefore, the second page will be Pages (1) and not Pages (2) , since page (0) The first / default page is that you change your error line to the following: CharacterBuilder.MultiPage1.Pages (1) for each CTL (1) .Controls Y...

java - 405 Method Not Allowed with Spring -

मेरे पास एक HTTP समापन बिंदु के लिए निम्नलिखित परीक्षण है: सार्वजनिक स्थिर अंतिम स्ट्रिंग DATA_PARAMETER = "जानकारी"; सार्वजनिक स्थिर अंतिम स्ट्रिंग ID_PARAMETER = "id"; सार्वजनिक स्थिर अंतिम स्ट्रिंग VIDEO_SVC_PATH = "/ वीडियो"; सार्वजनिक स्थिर अंतिम स्ट्रिंग VIDEO_DATA_PATH = VIDEO_SVC_PATH + "/ {आईडी} / डेटा"; @ मल्टीपार्ट @ पीओएसटी (वीडियोडीएटीए_PATH) पब्लिक वीडस्टैटस सेट विडियोडेटा (@ पथ (आईडी_PARAMETER) लंबा आईडी, @ भाग (DATA_PARAMETER) टाइप कियाफ़ाइल वीडियोडेटा); @Test सार्वजनिक शून्य परीक्षणऐडविडियोडेटा () अपवाद को फेंकता है {वीडियो प्राप्त किया गया है = वीडियोसवीसीएडविडियो (वीडियो); वीडियोस्टैटस की स्थिति = वीडियोएसवीसीसेट वीडियोडेटा (प्राप्त.गेटआईडी), नया टाइपफ़ाइल (प्राप्त.गेट कॉन्टेंट टाइप (testVideoData)); जोर देना (वीडियोस्टेट .READY, status.getState ()); प्रतिक्रिया प्रतिक्रिया = videoSvc.getData (प्राप्त.गेटआईडी ()); जोर देना (200, प्रतिक्रिया .getStatus ()); InputStream वीडियोडेटा = प्रतिक्रिया .getBody ()। में (); बाइट []...

ios - Why does my simulator still show node count and FPS? [SpriteKit] -

I have published my game in the App Store. Before I do this, I wanted to count the node and stop the FPS and did not want to show those two things. I have gamensen.m and a headline sine.I am i view.showsFPS = NO; and view.showsNodeCount = NO; Tried to do in my GameScene.m and it works fine. I tried my TitleScene.m self.view.showsNodeCount = NO; and self.view.showsFPS = NO; , but it still shows NodeCount and FPS here is my code for the title code: #import "TitleScene.h" #import "GameScene.h" @implementation TitleScene - (id) initWithSize: (CGSize) size {if (self = [super initWithSize: size]) {/ * your view setup here / / self.view.showsNodeCount = no; Self.view.showsFPS = No; Scalcons * Yellow Labeltecture = [Skeleton Texture with Image Named: @ "Yellowlabel." Scalections * BlueLabelTactacts = [Skeleton Texture with Image Named: @ "BlueLabel Page"] Scalcons * Green Layllecture = [Skeleton Texture with Image Named: @ "Greenla...

python - check if .one() is empty sqlAlchemy -

I am running queries based on other IDs for queries. The problem I have is that sometimes the query will not get results. Instead of having the whole program crash, how can I see if there will be no result? This is my query: sub_report_id = DBSession.query (TSubReport.ixSubReport) .filters (and_ (TSubReport.ixSection == SectionID [0], TSubReport. ixReport == Riportaidi [0]). a () when code gets executed and no results were found, I get Noarsltfound exception NoResultFound: No row found for one There is just one way to leave, is there any outcome? SO Found solution on ) If no results, no one will return. sub_report_id = DBSession.query (TSubReport.ixSubReport) .filter (and_ (TSubReport.ixSection == SectionID [0], TSubReport.ixReport == ReportID [0]).) First () view the documentation

ios - Dismissing View controllers and then presenting them -

I have an application that has 3 view controllers. First presents each other and the second one presents the third one then I have a button that I want to take back to the first view controller. This button works, however, I try to present another view controller from the first time and again to another view controller again. The second view controller works fine, but the 3D visual controller does not work. I get an error: WARNING: Attempting to present on whose view windows are not in the hierarchy! The first view controller is the main menu of the game, the second view controller is where the game is and the third view controller is the last result screen. Is there a better way to do this from my way? Is anyone's solution? thank you in advanced. You must use a navigation controller. Now what you are doing is pushing ideas into an unlimited loop.

php - Get Taxonomy Permalink with ACF object ID -

Well, I do have, I would resound to Prmank a custom taxonomy collection page on the WP. I can get the object ID but I can not find any way to get that ID taxemanie permank. This is an example of my code: & lt ;? Php get_field ('services_1', $ id); // This is 22 which gives Id classification / I tried to save it to a variable: $ term = get_field ( 'services_1', $ id); Echo get_term_link ($ word, 'type-of-services'); ? & Gt; ? & Gt; It was not working and I leave trying, any help would be greatly appreciated. use $ args = array ( 'taxonomy' = & Gt; 'your_taxonomy', 'title_li' = & gt; "," orderby '= & gt;' name ',' parent '=> gt; & Lt; Ul & gt; Wp_list_categories ($ args); & Lt; / Ul & gt;