Posts

Showing posts from July, 2011

python - How to get rid of frame 'blinking' effect with standard libs? -

I am currently playing with some CMD / prompt animations / graphics: Import OS import time df printframes (timeout, count): OS system ('CLS') L = 0 while true: for range (0, 9): for the range I (0, 9): Category in J ( 0, 9): If Jammu == Kashmir and I! = 4: print ("|", end = "", flush = true) Alief J! = K and I == 4: print ("-", end = "", flush = true) aliff j == k and i == 4: print ("+", end = "", flush = true) second : Print ("O", End = "", Flush = True) Print ("") Time.sleep (timeout) os.system ('cls') l + = 1 If L & gt; Count: __name__ == "__main__": To break printframe (0.08, 2) and get rid of the blinking of the frame - especially in the first line, My thought was to use another print thread: def printframe (timeout, count): #print example 1 DRF printframe two (timeout, count): # ) Without __name__ == "__main__": p1 = threading. Thread (target

android - CallLog.Calls.DURATION gives different result in different devices -

I have created an Android app, in which I want the last call description of the number Using CallLog.Calls.DURATION I get the final call details. My code is - stringbuffer sb = new stringbuffer (); Uri Contact = Call Log Call. CONTENT_URI; Cursor Managed Kaiser = Reference. Telecommunication Receiver () Query (contact, empty, empty, null, empty); Int number = Managed Kaiser.Gate column index (call log call number); Int type = managed cassaror.gate column index (call log call.Tepee); Int date = managed cccore. Est column index (call log call.date); Int. Duration = Managed CASCORE. Est column index (call log call. Sb.append ("Call Details:"); If (managedCursor.moveToFirst ()) {string phNumber = managedCursor.getString (number); String call type = managed quasar .getString (type); String CallDet = Managed Kaiser .getString (date); String CallDetium = New Date (Long.View (Called)). ToString (); // long timestamp = convert datestamp (calldeterm); String Call Draction

javascript - Bootstrap modal - Add a object tag embedding a PDF -

I am currently trying to display a bootstrap model in which I include a PDF file with the "object" html tag Want to do I have made a (). Then you will get a basic modal (just click on a button showing from bootstrap to the original model after the same code) and in the model-body: < Pre> & lt; Object type = "app / pdf" data = "http://www.inkwelleditorial.com/pdfSamplePdf" width = "500" height = "500" & gt; It is not working as expected So when I add this code alone (no such bootstrap model is inside) it is working as expected, it displays PDF in the default PDF viewer of the browser. But when I try to apply PDFs inside the bootstrap model, nothing is visible. If you have any ideas, then this will really help me, many hours searching and I have seen the solution only with the tag ( Change it to: .modal.in .modal-dialog {transform: translations (0 px, 0 px);} to: .modal.in .modal-dialog {transf

jquery - Javascript Custom event trigger issue -

I have a description view that has 2 buttons which will be / on the click of these buttons , I display a modal popup var modal = new MyAppModalView ({Model: person}); Modal.bind ("afteraveave", function (value) {self.showMessage ('submitted successfully to save', wrong, true); return true;}); In addition to the Model View Code, I have; isnew} {// flow to this.model.save (myJSON, {url: "Myapp / people / create", success: work () {self.trigger ("after Save "); self.removeModal ();}}); } Other {// edit this.model.save (myJSON, {url: "myapp / persons / edit", success: function () {self.trigger ("afteraveave"); self.removeModal ();}} ); } Now after saving for both create / edit, I trigger an event for later While the event was triggered for making the flow , It has not been triggered Edit the flow I'm not sure why this happens? I tried to force 2 separate even for the model (after saving / after updates) and

c++ - Mapping pixel formats from CVPixelBuffer to their equivalent V4L -

I need to map a range of OSX CoreVideo pixel formats, such as CVPixelBuffer.h V4L , kCVPixelFormatType_24RGB will be mapped to V4L2_PIX_FMT_RGB24 . I tried to match using the four cc , but did not match the definition of OSX and V4L. In addition to inspecting your exact layout and manually matching them, there is a program or an information table, which will show me the example where the map for KVCPixelFormTap_422YIPCBCR8 ? He said, there are very good comments in CVPixelBuffer.h and videodev2.h which allow you to match pixel format with confidence. The key to mapping certain formats is to understand that YUV and Y'CbCr are often used alternately, according to Y'UV, YUV, YCbCr, YPbPr, etc. The scope of the terms is sometimes obscure and overlapping. Historically, YUV and Y'UV were used for the specific analog encoding of color information in the television system, while YCBCCR used digital encoding of appropriate color information for video and now-ima

ubuntu - HAProxy restrict single backend by ip range -

I have received an Haprosic setup with about twenty backend definitions (and some more) in the config file. I have been asked to restrict any backend in a specific IP range, but so far my research (and limited Heprosy knowledge) has not generated anything. While reading, I would have found a network matching parameter, but I do not have any front end definition and I do not want to apply this restriction on any other proxy routes. Can I use the IP range to restrict access specifically to a backend? Thank you, Simon For a functional HAProxy setup, 'Listen' instructions will be required. These are the only instructions that will answer the incoming requests. The 'backend' instruction provides a way to route traffic only behind the proxy. It is being said that, here is an entry to fulfill your goals that you need in the 'frontend' or 'listen' instruction: / P> acl white_list src 192.168.1.0/24 192.168.10.0/24 TCP-request content accept i

sql server - Data from last 13 months -

I have a table in the SQL Server 2008 database in which the column is 'month', nvarchar dataTip, where data is stored Formats 'January 2013', 'February 2013', 'March 2013' and so on 'March 2014'. Now I want the data from March 2013 to March 2014 in my result, but I am not able to get it. It is trying where segment: WHERE (month> DATEAD (month, DATEDIFF (year, 0, gaterate ()) - 13, 0)) Error giving failed to convert conversion date and / or time with string of characters. I have also tried to rename the data as 'March 2014' and well for other entries, but this is not helping either. Dear SQL experts, please help! you can do something like from SELECT * Table where not in LEFT (month, 3) ('jane', 'feb') and right (month, 4) = '2013' (or '(' John ',' fab ')), 4) =' 2014 ') If you want to include March 2014, then March 2013 will not be, but in March 2014, the l

windows - Error code 1073741502 when running psexec through TeamCity -

I have a build phase that requires running a console application under a different (more privileged) user account. However PsExec always returns with exit code-1073741502. I thought this issue was from my app, but when I change it with the following, it still fails: PsExec.exe -accepteula -u Username -P password "cmd Exe" / c or PsExec.exe -i -accepteula -u username -p password "cmd.exe "/ C Note that the TeamCity Build agent is run under a user account that is specially designed for it. When I manually log in as that user and run the commands given above, they work fine.

c# - Keyboard overlaps textbox -

After I am using a list of boxes for documents that are recorded in a WP8 application. The number of textboxes is quite large, so users have to scroll between them. To navigate between one field to another, I added the next and last two app badges. Pressing on next will change the focus from the list to the next textbox, and scroll the contents of the scroll viewer with the height of the text box (in this case 50). However, sometimes, when the element has to switch to focus, the keyboard cover the text box. (Does not scroll content). Is there a way to apply a text box to go over the keyboard, even if it is in the scroll view? & lt; ScrollViewer X: Name = "ContentPanel" Grid.Row = "1" margin = "12,0,12,0" & gt; & Lt; StackPanel & gt; & Lt; TextBlock Text = "{Binding Source = {StaticResource LocalizedStrings}, path = LocalizedResources.STRING_CONTACT}" margin = "10.5" FontWeight = "SemiBold" for

php - Restrict access to magento admin based on user agent? -

I'm just trying to allow access to the Magento Admin panel based on user agent. Any help is appreciated thanks! Use MobileDetect.php (). This is a simple class to use. need_once 'Mobile_Detect.php'; $ Address = New Mobile_Detect; // a mobile device (phone or tablet) if ($ detect-> isMobile ()) {echo "Mobile"; } // if a tablet device ($ detect-> isTablet ()) {echo "tablet"; } Edit 1: added. Htaccess redirect Rewrite on Check for # noredirect rewritecond on the login% {QUERY_STRING} (^ & amp;) noredirect = true (& Amp; | $) # Set a cookie, and leave the next rule RewriteRule ^ - [CO = mredir: 0:% {HTTP_HOST}, S] #Check that it looks like a mobile device # (You can add another [or] for the second and whatever else you would like to check , But I believe most mobile devices should send at least one of these headers) RewriteCond% {http: x-wap-profile}! ^ $ [OR] RewriteCond% {http: profile}! ^ $ # Check that we are not already o

javascript - Encapsulating functions and variables in an object with object-wide variables -

So, I want to create an object that has functions and variables and objects that contain functions and variables, but I think that if there are "top-level" variables, due to the scoping rules, they can not be reached with deeper work. For example: var myobj = {foo: "test", bar: function () {return.foo; }, Falcon: {pizz: "test 2", pause: function () {this.piz return this; Foo; }}} Console.log (myobj.bar ()); Console.log (myobj.baz.poz ()); The second call returns for obvious reasons "test2undefined" - this.foo refers to baz.foo (which is undefined) and not myobj I have variable fu available everywhere in my object How can I reference myobj to allow? You can modify your by pause () to: pause: function () {this.piz return + myobj.foo; } This can not reference two objects, so that's why I'm just using myobj.foo . If you wanted to refer to myobj in this context, then I suppose, why not use the property of the obje

ios7 - Google map place autocomplete in iOS -

Image
I am using Google Maps Location integration. I'm new to the Google Maps API. I'm trying to implement autocomplete for Google space. I've gone through the Google Places AutoComplete API but I can not do it myself for Google Maps. Can help fully integrate. I have used a GIT Hub sample code from this link This project was used by Google Map, but I want to use Google Map. When I'm changing the map of SEAP to MMAMPView as GMSMapView. @class sp GooglePlacesAutocompleteQuery; @ Interface SP GooglePlacesAutocompleteViewController: UIViewController & lt; UITableViewDataSource, UITableViewDelegate, UISearchDisplayDelegate, UISearchBarDelegate, MKMapViewDelegate & gt; {NSArray * searchResultPlaces; SP GooglePlacesAutocompleteQuery * searchQuery; Mkpoint annotations * Selected place annotation; Should be BOOL editing; } @protecti (retaining, nonmomic) iBoilet GMSMapView * mapView; @end So it's not going to be indicating that 'GMSMapView' can not ans

encryption - In mono, how to control the SSL/TLS cipher suite? -

I would like to configure the server to refuse to pay attention to the DES, RC4, MD5, etc. "Now the network stack allows which cipher suites to use with TLS / SSL to control the developers." ... but how? (thanks to Sebastian Poliot for this answer) You can set up a callback for SSL / TLS, you can control which cipher can be used and the selection order (in general the most servers support those first cipher suits Are). The sample code is part of the document. Also, since some people will find it difficult to get valid enumeration, see

ios - Background handleopenurl with Runkeeper api -

I have a problem with the Ranipiar API Background Handlepanernal when the app is running the foreground, there is no problem with it and I have no problem with RK Calorie data may be obtained from. But when I'm background-appraised, I need to run this calorie fetch. What is this code when the app is made to the background: - {NSLog (@ "Runcipper Connect"); Connect (NSURLRequest *); NSString * _authURL = [NSString stringWithFormat: @ "% @? Client_id =% @ and redirect_uri =% @ and response_type = code and state = 0", [auth_url fullstring], client_id, [redirect full record]]; NSURLRequest * _request = [NSRR request request with url: [ns url URLWithString: _authURL]]; Return _request; } But after that it is no longer working. Then this URL should be sent to the hendopenural, which is in APDeaget and then receives calorie data. / P> And here is my handlamprel: - (BOOL) Application: (UIApplication *) Application handle open URL: (ns URL *) URL {ru

android - Multiple input fields in edit text preference -

What single editable text preference and each input fields are text input fields to keep your keys? I want to save 5 people's phone numbers and I do not want to make 5 different editing text preferences for this. I recommend this design I ... Personal 1: ### - ### - #### individual 2: ### - ### - ### # and so on ... Please straight-forward See more procedures on keeping reference.

ssl - Persistent loading of a PEM key/certificate pair for HTTPS connections in Python 2.x (6, 7) -

I am trying to get some resource ( GET ) from SSL-secured web service To certify in the service, I have a PEM pair of key-certificate file. I am using a slightly extended version (see below) to join the service. My point is: after processing the content of the request, I will issue more requests on the same socket / connection. The code structure is like this: conn = HTTPSClientAuthConnection ("a host name", 443, key_file = a_key_file, cert_file = a_cert_file, ca_file = none) full_page, response = conn.do_request (The_main_url)) Further_requests = process_page (full_page) for the referees in further_requests: new_data, feedback = conn.do_request (ref) print process_data (new_data) This annoyance is that do_request , a passphrase is requested for the certificate / key pair. How can I make that consistently? I am trying to apply this client only to Python with Stadtib, because the machine I will run is not easily modified. But if this is not possible, then a goo

c - Queue: warning: assignment makes pointer from integer without a cast -

मेरे पास main.c में कोड है: #include & lt; stdio.h & gt ; #include "queue.h" int main () {क्यू क्यू = CreateQueue (); / * अन्य कोड * / वापसी 0; } और क्यू को queue.h में परिभाषित किया गया है: #ifndef _queue_h Typedef स्ट्रक्चर क्यूईरेकॉर्ड * कतार; स्ट्रक्चर क्यूएरेकॉर्ड {इंट फ्रंट, रियर; Int * सरणी; }; / * अन्य कार्य घोषणाएं * / क्यूई क्यूटेक्यूक्यू (); // & lt; --- टाइपो #endif और फ़ंक्शन CreateQueue () फाइल में है queue.c : # शामिल करें & lt; stdio.h & gt; # शामिल करें & lt; stdlib.h & gt; #include "queue.h" // क्वू कतार बनाएँक्वाय्यू बनाएँ () {क्यू क्यू = मॉलोक (आकारफ (स्ट्रक्चर क्यूईरेकॉर्ड)); क्यू- & gt; एरे = मॉलोक (आकारफ (इंट *) * MAX_SIZE); InitQueue (क्यू); वापसी क्यू; / * उपरोक्त सही जाता है, सूचक को वापस नहीं लौटा सकता * /} / / INIT द ​​क्वू शून्य अयोग्य (क्यूई क्यू) {क्यू- & gt; सामने = -1; Q- & gt; रीअर = -1; } / * यह फ़ंक्शन मुझे एक त्रुटि नहीं बनाता है * / यह कैसे तय किया जा सकता है?

ios - Migration from homemade models to core data models: setter/getter issue -

I am starting to learn how to use core data for my app, and I have no idea about setter The question is and NSManagedObject . In my old model I was using this syntax to declare attributes: @interface MyModel: NSObject {MyAttributeOfClass * _myAttributeOfClass} - (zero) SetMyAttributeOfClass: (MyAttributeOfClass *) anAttributeOfClass; - (MyAttributeOfClass *) myAttributeOfClass; I know, I can use the @ synthesis to do this stuff. But if I use @ synthesis with a public attribute: @property (nonatomic, strong) MyAttributeOfClass * myAttributeOfClass; A developer can bypass my setter and set a value for myAttributeOfClass : myAttributeOfClass = bar; I do not want to allow this behavior because I use a setter for any action. If this work is not done, then my class will no longer function properly. So, now I am migrating my old model from core data model to subdivision from NSManagedObject . But when I create a square from my data model, the attributes are decl

c++ - How to Initialize an array of my object in another class -

I am creating a game in which my main class "inGame" is to control the game objects. There will be many other custom made classes inside "InGame". Like, square mouse {int x, y; Bull Survive; Speed ​​of float; Public: mouse (int xx, int yy, float spd, bool alv) {x = xx; Y = yy; Speed ​​= spd; Alive = alv; } // member work}; Class inGame {mouse m1; Dog D1; // Single Object which is easy to create public: inGame (): D1 (200, 400, 1.5, false), M1 (40, 40, 0.5, false) // It works fine {} // member work}; But now I can say 3 moses because I thought of M1 [3] or maybe a vector. class inGame {mouse m1 [3]; // I want 3 mouse (animals) in the game Mouse Dog D1; // Single object that is easy to build public: inGame (): D1 (200, 400, 1.5, wrong) // Confusion here; M1 (40, 40, 0.5, false), {} member}; So I have tried the following: inGame (): M1 [0] (1,2,3, true), M1 [1] (2,3,4, true), M1 [2] (3,4,5, true) {} / / in in the game No: M1 ((1,2,3, true) There i

c++ - Displaying Issue Involving Time -

I have trouble in displaying "next day" in my program correctly, the assignment says, "Users Is encouraged to enter the current processing time - hours, minutes, seconds of the cruel time, your program will calculate the next processing time which is 30 minutes of the current processing time. Your program is currently processing timetable. And next processing time 1 next time 1 processing time 2 nextTime2. Next processing time goes the next day, you display next "next day" next to processing time (see sample output). / Strong> Shows sample output: current progress time = 23:50:10 | next process time = 0:20:10 (next day) | Next Process time 2 = 0:50:10 My problem occurs during the bold line "Next procedure is time 2 = 0:50:10, In my code it displays (the next day) in which it is not just for the previous row, "next process time" should be displayed (next day "), so my question is that I type my code at zero times :: display ()

PHP How to create a new array from an array -

मेरे पास Google Fonts (+600) के साथ एक सरणी है: $ google_fonts = array ("एबीज़ी" = & gt; "एबीवी", "एबेल" = & gt; "एबेल" // ......) और मुझे इस नई संरचना की आवश्यकता है: मुझे यह कोड है लेकिन यह काम नहीं कर रहा है: foreach ($ google_fonts) $ फ़ॉन्ट के रूप में) {$ google_fonts_array = array ('value' = & gt; $ font, 'label' = & gt; $ font, 'src' = & gt; ''); } $ Google_fonts_array लौटें; इस सरणी का उपयोग यहां किया जाना चाहिए (यह एक प्रकार है जो एक चयन बॉक्स का उपयोग करता है): 'preferences' = & gt; सरणी (// यह एक पुरानी विकल्प सरणी है ('मान' = & gt; 'ओपन सन्स', 'लेबल' = & gt; 'ओपन सन्स', 'src' = & gt; ''), // और यहां यह है कि मैं कैसे नया सरणी $ google_fonts_array // पुनर्प्राप्त करेगा या पिछले स्तरीय सरणी के बजाय इसका उपयोग भी कर रहा है, यह काम नहीं कर रहा है।) यह क्यों काम नहीं कर रहा है? आप सरणी को

multithreading - java down counter class -

I have applied a down counter to Java in a different class whose zero starting time is starting at zero But public class stopwatch {static int interval; Stable timer timer; Public Zero Start (Int Time) {Scanner sc = New scanner (System.in); Int delay = 1000; Int duration = 1000; Timer = new timer (); Interval = time; Timer.scheduleAtFixedRate (new timer Task) (public zero-zero) {// System.out.println (setInterval ()); Set interval ();}}, delay, duration); } Public at Time () {Return Interval; } Private Static Last Interval Set () (if (Interval == 1) timer.cancel (); Return - Interval;}} Thanks in advance. Depending on what other thread is doing, I am in the middle of a bouleviation value set (or checked in another thread) If the other thread's execution can be stopped at any time using an obstacle, although execution can not be stopped after a certain time. , Then check / set the bullion before entering that code. Boolean in your stopwatch class: Private sta

clipboard - python-IME-How can i type text to any area of my gnome system? -

I use the input method I called. For example, when I type a , I want to show a letter to a window 日 , then I'll type space , and < Code> 日 will be input in the text field where I want to type (for example in text-edit, browser or LibreOffice ...). I also think about using the system clipboard to do this, but I do not know how to control the clipboard in the previous content) through the python. Who can tell me?

javascript - Change dynamically option parameters of the Google Charts (Gauge Chart) -

Is there any way to dynamically change the option parameter to the Goggles chart? (Google gauge chart in my case) I tried to use this variable, but without success: var limit = 20; Var gauge option = {minimum: -15, max: 50, redform: range, red to: 40, minor ticks: 5}; ... ... ... gauge_temp.draw (gazetta, gauge option); Here, I dynamically try to modify the "redFrom" option through the dynamic range. But the result is a gauge without the colors around a circle. I want the user to configure gauge option directly from the web page as the color of the gauge segment (redFrom, yellowFrom, ...).

python - Why must QApplication.processEvents() be called until QNetworkRequest is finished when using QWebView? -

Normally, when I make a network request through QT 4.8, then I QApplication.processEvents) / Code> () However, when I issue a network request from Javascript in a QWebView , it will not work until the request is terminated until the call is completed It is not done, as seen below. Clearing: process events () except for calls calls Quattrocore, QTGui, QTNetwork, QTWBKit client, MANDONDO (Qtgui QumenWindows): def __init __ (self): Super pi QT4 import has expired. (MainWindow, self) .__ init __ () QtNetwork.QNetworkProxyFactory.setUseSystemConfiguration (True) self.view = QtWebKit.QWebView (self) self.setCentralWidget (self.view) self.view.setPage (QtWebKit.QWebPage (self.view )) Self.view.page () Main frame (). JavascriptWindowObjectCleared.connect (self.refreshJS) self.view.setHtml ('' '' & lt; html & gt; & lt; body & gt; Loading ... & lt; script & gt; & lt ;! - APP Request (); // - & gt; & lt; / script & gt;

strcmp - c++ best way to compare byte array to struct -

I need help I have a unsigned char * and say I have a straight struct {int a = 3; Four b = 'd'; Double c = 3.14; Four d = 'e'; } Cmp; Unsigned char input [1000]; L = RQV (sockfd, input, psychof (CMP), 0); I have to compare CFP and input. What is the fastest way? Thank you very much earlier. If the compiler guarantees that there is no interval between fields in the structure (usually due to packing ) Or you can use #pragna to cancel any such interval, you can either: memcmp (& amp; cmp, input, size (steak thaestrat )); Or, my favorite: CMP == * (Structure TheStruct *) input // but Depending on the field, it would be a more secure way to compare on one area. Also, prepare special functions to remove the ingots, floats, etc. From raw input, for example, to remove an int on index N * (int *) and simple as input [n] But it may be more complex, such as 8, 16, shifting of cherry on 24 bits. In essence, communication data should be don

javascript - Detect that a function was called from ngclick in angularjs -

मेरे पास एक बटन पर एक एनजी-क्लिक ईवेंट है & lt; button ng- क्लिक = "कॉल मे ()" / & gt; और मेरे AngularJS नियंत्रक में मेरे पास कुछ ऐसा है myApp.controller ('myController', ['$ scope', फ़ंक्शन ($ गुंजाइश)] {$ Scope.callMe = function () {console.log ("कॉल से उत्पन्न ..."); $ scope.anotherMethod = function () {$ scope.callMe ();}}); क्या मैं कॉल मै विधि के अंदर से कह सकता हूं जहां से कहा गया था? यानी बटन पर क्लिक करते समय उपयोगकर्ता इसे ट्रिगर करता था या क्या इसे दूसरी विधि विधि से किया गया था? आदर्श रूप से, मैं अपने फ़ंक्शन कॉल के अंदर अतिरिक्त चर को पास नहीं करना चाहता। उदा। callMe ('fromClick') धन्यवाद यदि आपको अलग-अलग कार्य करना है, जब फ़ंक्शन को एक क्लिक से या कुछ और के द्वारा शुरू किया गया था, तो मेरा सुझाव विभिन्न फ़ंक्शन का उपयोग करना होगा और केवल उन कार्यों के लिए उपयोग करेगा जो वास्तव में हैं वही: HTML बटन एनजी-क्लिक = "ऑनक्लिक ()" / & gt; जावास्क्रिप्ट myApp.controller (

java - Hilbert–Huang transform: Instantaneous frequency -

I am implementing "empirical mode decomposition" in Java. The next step changes to Hilbert-Hua and I need to know how to get "instant frequency" Does anyone know how to get it? Using the EMD method, any complex data set can be decomposed into a finite and many smaller components, which is a collection of internal mode functions (IMF). The next step is Hilbert-Huang Transform. From this I calculate the signal phase and I have to calculate the instant frequency, I search the matlab code as this link: But I can not understand it. Thank you ) gives. Then Hilbert Transform is applied to each IMF. From an IMF, Hilbert Transform gives a PI / 2 phase delay signal, so that you can calculate the phase, and the time-derived step, which is proportional to the immediate frequency. You will find an interesting tutorial and details of EMD algorithm variations on that page:

java ee - how to deploy project on local server apache tomcat 7 -

I have a dynamic web project called test that has an html file demo.html I created test.war file from eclipse. I want to deploy it in Apache Tomcat 7 so that I can see demo from my browser. I do not want to use Eclipse to run the project Plz help. Leave the war in the Tomcat webpage directory and start the startup if you go to Tomcat DIR / Bin at the command prompt to start the concrete in windows. .bat.if Run Startup.sh if your use is in Linux Tomcat Direct / bin. shutdown.bat / shutdown.sh to stop running tomatoes

ios - UIImageView in sprite kit -

I am trying to create a robot menu when I press the pause button in the Sprite Kit, I am creating a UIImageView . The problem is that UIImageView is not being shown. how can I do this? - (zero) doneUttoView: (SKVUI) * see {UIButton * pauseButton = [[UIButton alloc] initWithFrame: CGRactam (0, 0, 40, 40)]; [PauseButton setImage: [UIImage imageNamed: @ "Stop"] forState: UIControlStateNormal]; [PauseButton addTarget: Self-action: @sillector (paused menu) for control events: UIControlEventTouchUpInside]; [Self.view addSubview: pauseButton]; } - (zero) Pause menu: (SKVUE *) See {SKSPRTnode * Menu = [SKSPN.NNNEERPNNEDJJMName: @ "PauseMenu"]; // Menu size already has the image size (by default), there is no need to set it up menu. Position = CGPointMake ((self.size.width - menu.size.width) * 0.5, (self.size.height - menu.size.html) * 0.5); [Self composite: menu]; Self.scene.paused = yes; Self.scene.view.paused = Yes; Use only the spritekit, why use UIImages

uitableview - Programmatically "flashing" UITableViewCell sets background color to white -

Image
मेरे पास UILongPressGestureRecognizer मेरे UICollectionView में सेट है जो कॉल करता है - (शून्य) लंबे समय से दबाएं: (UILongPressGestureRecognizer *) इशारा {यदि (gesture.state == UIGestureRecognizerStateBegan) {CGPoint बिंदु = [संकेत स्थानःदृश्य: self.collectionView]; NSIndexPath * indexPath = [self.collectionView सूचकांक PathForItemAtPoint: बिंदु]; अगर (इंडेक्सपाथ) {self.manager.currentLongPressIndex = indexPath.row; [आत्म शो पोपोवर]; }}} विधि से दिखाए गए UIPopover एक UITableView है। मेरा लक्ष्य है "फ्लैश" (चयन करें और फिर UITableViewCell को अचयनित करें) और इसे दिखाने के लिए स्क्रॉल करें ऐसा मैं कैसे करता हूं: - (शून्य) दृश्यडिडलोड {[सुपर व्यूडिडलोड]; // मौजूदा इंडेक्स पथ NSIndexPath * path = [NSIndexPath indexPathForRow: self.manager.currentLongPressIndex मेंविशेषता प्राप्त करें: 0]; // सेट फ्लैग self.cellIs फ्लैशिंग = हाँ; // चयन सेल [self.tableView selectRowAtIndexPath: पथ एनिमेटेड: हाँ स्क्रॉलपोजिशन: UITableViewScrollPositionMiddle]; } - (शून्य) तालि

css - How to syle a Gtk::ComboBox -

How do I style a combo box, but unfortunately I try two months to find ways to not work I am ... the only thing I could do was to styling the contents of the combo box (cell renderer), but the combo box was not there, can you please help me? gtk_style_context_add_class (gtk_widget_get_style_context (cockbox), "button or any style you want");

authentication - How to restrict access some part of module in ZendFramework 2 (i.e. only administrator can do some actions) -

It is! I have a question: how to permit only access to some part of the module for adminisitrator, for example. For example, I have a module album. It contains the controller index, delete, add, edit, complete. I need to be complete and available for all roles of the Index controller, but only add, remove and add action for the administrators. Which module do I use to do this? I got Zend \ Authentification table: username , password , role . How to authenticate the user?: // authentication $ auth = Zend_Auth :: getInstance (); $ Result = $ auth-> Authenticate ($ authAdapter); If ($ result-> gt; isValid ()) {// Success: Store the database in the store's store / system (though no password!) $ Data = $ authAdapter-> GetResultRowObject (empty, 'password'); $ Auth-> GetStorage () - & gt; ($ Data); $ This- & gt; _redirect ('/'); } And {// Failure: clear database row from $ 1 from session-> view-> Message = 'Login failed.&#

c# - Chained async methods - tie a thread POV? -

Assume I have this code: public zero AAA () {BBB ( ); } Public ASCNC Work BBB () {Waiting for the job. Daley (10000); } IMHO, in normal mode, the method should be AAA as well as async so that the main thread continues without doing its job without waiting. . But I have 2 questions about this situation: Is it correct to say that the above code binds thread for 10 seconds? (I doubt that the answer is yes because AAA is not ASC, so there is no registration of continuity) If so, how can I prove it by code? Am I Is it right to say that the above code is a thread Does Tie 10 seconds? not AAA call BBB , which sets a function and returns immediately because < Code> AAA no wait on BBB , it comes back immediately, so the "own" thread is not tied. Tasks. "Implementation" of Dele / itself uses the timer instead of blocking the thread, so there is no thread. The pool thread is bound to the duration of the work.

ios - AdColony causing IDFA related error -

Image
When I try to upload an app stored in app store, I get the following error message: I tried uploading AdColony I uploaded Was able to. Any ideas about how to correct this error? We have thoroughly tested the app submission process and found that apps containing our SDK Successfully being processed through the iTunes Connect site. Our SDK is fully compliant with IDFA's stated purpose and collection requirements for IDFA. When you are submitting your app, which has our SDK through IDIN Connection, then you have to check all 4 boxes asking about IDFA. Please see our support documentation on this issue here. There were some reports from our developers who were using other monetization partners' SDKs, to find out that one of these additional SDKs was causing the rejection. You can check with any other monetization partners that you are working to ensure that their SDKs are up to date and not the reason for what you are looking at.

Ruby on Rails: Record Creation from view error -

I have a different problem. I have a table that populates with many different models, it creates links to follow each related scene. The code I created for each link should be the same, but for some reason, the link is not being shown under 'Baseline' I have checked: Prepare the methods for each model, And they copy each other, and the code is also a copy from the scene - so I'm at a loss where to look for the next I'm convinced that the problem is that the way to make it is failing, but I do not know Is that cai From / how to Here I have a code (I'm pasting code from FollowUp3Week, because it works): <% = Baseline.create ( Subject_id: sub.subject_id)%> I left the screenshot as well. <% End%> TD> <% FollowUp3Week.create (subject_id: sub.subject_id)%> < / Pre> and here baselines_controller.rb def becomes O @ Baseline = Baseline.New (params [: Baseline]) is the @baseline flash save: [success] = "Added to the wa

oracle - SQL Query from list of strings -

I am trying to query the last time I imported from a SQL table "Import", one month's string integer January '01', '02' is' 02 ', March is 03'.). I have pasted my solution below, but I was thinking that there is another great way to do this. Select imported month (month month month month month month month month) (choose the month of '01' month from dual union 'select two months' Select month from dual union '' 03 '' Dual union of the month Select 'duration' month from dual union '05' month_string Select from dual union '06' month_string Select from dual union '07' month select from the stringing dual union '08' month_ select from franchise double association ' 09 'month_strain double Select from Union from 'Double Month' String 'Select' from Dual Union '11' Months of Months Selecting month of '12' month month) Where the import Prok

Bigcartel custom checkout page to allow orders with bank transfer -

I'm exploring a way to checkout on webshop on my big cardlot next to PayPal checkout. I really want to just send the confirmation mail as the setup in the order place and (Admin) Notifications section. In this way, I can regularly allow my customers to order through bank transfer. I have experience of html, CSS and programming in general ... Thank you very much!

javascript - Rotate 3d Image using Three.js or somthing else -

Image
So I'm just three. Js is found and it looks like a very good JS library. What am I trying to do is take a 2D image and it's three around an object. Wrap up and move it like a 3D image. I found some such luxury library which provided similar functionality, but most discussions and resources seemed old to me and three. JS seems to be defeating all the jazzy plug-ins performance. Then play around with one of the three examples. I manage production on the JS website. As you can see it does not look very good. So I'm thinking that it would be possible to level a 3D image in 2D below, wrap the image around one of the three and the three in the same way .js and then rotate that image. Since I am similar Most discussion discussions about getting functionality were obsolete, so I'm open to any suggestions on how to use more current browser-based technologies. Would it be best to use WebGl or canvas , or maybe CSS 3 supports this type of 3D functionality? Need to us

php - Access a column in a database Eloquent Laravel4 -

I should be able to access all the data in one of the columns in my table. My initial approach was to do something like this. I am trying to enter my database, the column is called 'tag' // Get all posts $ post = Post :: get (); // Get All Post Tags $ post_tags = $ post ['tags']; But this return is empty. I know that there will be an extremely easy way to do this, I am not seeing it! Edit The reason for this is that I am doing a tagging system in place when something is posted You can add 3 tags That are related to the post when I'm clicking on a tag, then I can filter all the posts with that set tag. The way it tags, when a tag is clicked, the user will be redirected, so for this URL // test-site.com/ Posts / tags / {tag} So Ill can query using that tag Databases for results I have managed to mislead myself into a task which I thought That would be very simple! If your tags are stored in the same table, the problem may be that you can s

php - Laravel Eloquent to treat the column 'archived_at' like it does 'deleted_at' -

I am trying to get a new column called 'archived_at' in the same way as Laravel The way 'deleted_at' is behaving i.e., when I run a query, I do not want to select any archived record as long as I do not explicitly tell it (i.e., only invoice: only fixed () -> Pagnet ()). In other words, the archived_at behavior should be made in Laravel to duplicate the soft removal behavior. I'm looking at Laravel's builder and soft blasting functionality made in model classrooms. Even what I have so far: Increase the model class and add the archived_at functionality to the new category. Update app / config.php alias: // 'supernatural' = & gt; 'Brighten up \ database \ eloquent \ model', 'aloquent' = & gt; "CoreExtensions \ Model", I can not know how to expand the builder class and read Laravel from the Extended Builder class if I can remove it, So maybe I can rest. Any suggestions? thank you in advanced! You

powershell - Workflow with pipeline -

मेरे पास पावरशेल स्क्रिप्ट निम्न हैं: फ़ंक्शन परीक्षण {{CmdLetBinding ()] परम ( [INR] $ MaxRetrycount = 3, [पैरामीटर (ValueFromPipeline = $ True)] [स्ट्रिंग] $ Definition) $ MaxRetrycount} वर्कफ़्लो का परीक्षण-वर्कफ्लो {$ PSComputerName $ data = 'abc', 'xyz' $ डेटा लौटाता है) परीक्षण - मेकटाइट्रीकूट 2 - परिभाषा $ जॉबनाम} टेस्ट-वर्कफ़्लो लेकिन इस स्क्रिप्ट के निष्पादन मुझे त्रुटि देता है 'परीक्षण' गतिविधि वर्कफ़्लो पाइपलाइन में समर्थित नहीं है। क्या मैंने वर्कफ़्लो से कमांड पाइपलाइन के साथ फ़ंक्शन कॉल करने में कोई गलती की? अग्रिम धन्यवाद। फ़ंक्शन टेस्ट-फ़ंक्शन {[सीएमडीएलटीबीडींग ()] परम ([इंट्रेट] $ अधिकतम रिसेट्रीकॉन्टर = 3, [पैरामीटर (मानफ्रेमपिपलाइन = $ ट्रू)] [स्ट्रिंग] $ डेफिनेशन) $ MaxRetrycount} कार्यप्रवाह लौटाते हैं टेस्ट-वर्कफ़्लो {$ PSComputerName $ data = 'abc', 'xyz' foreach ($ डेटा में $ डेटा) {टेस्ट-फ़ंक्शन- मेकटाइटलकाउंट 2 -डिफ़िनिशन $ d} $ JobName} टेस्ट-वर्कफ़्लो आउटपुट: टेस्ट-वर्कफ़्लो 2 Job37

ruby on rails 3 - I can`t edit data submitted to another controller -

मेरे पास यह पंक्ति दृश्य / उधार / _form.html। एआरबी में है: & lt ;% = सरल_फॉर्म_ (@ डालिंग, यूआरएल: सेव_ऑर्डर_टिप्पिंग_पथ, विधि:: पोस्ट) करना | एफ | % & Gt; यह टिपिंग नियंत्रक में "save_order" नामक एक क्रिया को डेटा भेजता है। यह ठीक काम कर रहा है ... लेकिन, अगर मैं संपादित करने का प्रयास करता हूं डेटा को जमा करें और सबमिट करें पर क्लिक करें, यह डेटाबेस में एक और रिकार्ड को सहेजने की बजाए एक को अपडेट करने के लिए मुझे संपादित करना है। जब मैं इसे संपादित करने की कोशिश करता हूं, तो मैं डेटा नियंत्रक / अद्यतन क्रिया में डेटा भेजना चाहता हूं, लेकिन मैं डेटा को कठबोली नहीं कर सकता क्योंकि डेटा टिपिंग नियंत्रक को प्रस्तुत किया जा रहा है। कोई भी विचार? (मेरे अंग्रेजी का बहाना) मुझे यकीन नहीं है कि कोई विशिष्ट कारण है कि आपके पास क्यों बनाने के लिए अलग मार्ग है उधार लेकिन, यह आपके द्वारा प्राप्त किए गए कार्य को कैसे प्राप्त कर सकता है: अगर @ लेंडिंग.न्यू_रेकॉर्ड? Form_url = save_order_tippings_path method =: पोस्ट अन्य form_url = lendings_path (@ लेन्डिं

c - function calling of a structure error -

I am currently having trouble understanding the fault of a certain part of the code that includes the use of a function Structure of structure and structure B RectT a, b, recs [50]; Int acount, bcount; .... .... / * checks whether chk_overlap returns function 1, if it is 1 to bcount and acount * / if (chk_overlap (recs, a) == 1) {bcount ++; } If (chk_overlap (RECS, B) == 1) {acount ++; } The function is being called int chk_overlap (RectT * r1, RectT * r2) {} And the structure is Type-Effect Structure Rect {int x; Int y; Int w; Int h; } RectT; code inside because it is a homework assignment The current error is telling that IM is getting GCC - Wal-g-lion-o xtst rec02.c rec02.c: Function in 'main': rec02.c: 64: Error: Inconsistent type for logic 2 of 'chk_overlap' rec02.c: 69: Error: Logic Inaccurate type 2 for 'chk_overlap' chk_overlap () two accepts rectit * * , you can call it as If (chk_overlap (recs, & amp; a == 1)

groovy - What is "group" property for in Gradle? -

list group as a property of project is. I failed to get any signal about this property's purpose and / or use . Please tell me in the right direction. / P> group work on this project groupId on which The work is being done. com.example: my-project: 0.1 ----------- ---------- --- | | | Group ID Artifact Version

How to declare/implement array of certain type inside a class (c++) -

I am trying to apply a new class that assumes that there is such an array: Classes MyClass {another class < Some 1, some 2 & gt; * Array; ....} I want to build my array with an array of myclass size = other class. How can I do that? Thanks! like this: #include

Javascript simple printing passing parameters -

I hope to print the values ​​passing the parameters in the code but print it [object event]. I'm new to presentation development. What am I missing here. & lt; Body Onload ("Start ('- 33.873651000000000000', '151.2068896000000000000 ')")> & Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script src = "" & gt; & Lt; / Script & gt; & Lt; Script & gt; Function Start (Longitude, Latitude) {Warning (Longitude)} & lt; / Script & gt; The body tag should be placed within the HTML tag. & Lt; / Body & gt; & Lt; / Html & gt;

c# - How the Policy Execution works using FactRetriever? -

I am checking the document for the FactRetriever class by using the following link: A fact hunter is a component used to record long-term facts in the policy during its execution. . You can apply the IFactRetriever interface and configure a policy version to use this implementation on runline to bring long-term factual examples. If I'm trying , the invoke the updated facts method of authenticity on each execution cycle. Business Rule Composer to use independently (not using orchestrations). Question 1: When does a execution cycle occur? How is this getting started? Is it based on a time interval? If so, is it configurable? Is there a mechanism that executes a policy, if any fact has changed? If so, then what is the answer for then question 2. Question 2: What is the performance cycle exactly? What is the algorithm? Possible algorithm 1 implements the first policy , during its execution, it will UpdateFacts potential

xpath - Convert Table to JSON -

I am still taking the steps of the baby with Yahoo Pipes and with whom I believe that there should be a simple task I'm struggling. I'm updating in a real time (every 1-2 minutes). I want to remove the rows, push in a pipe, and then spit a JSON in the following format: "site": [{"site": " 210001-Singleton "," Final Sample Time ":" 29/04/2014 11:51:00 "," River Level ":" 0.744 "," Floreate ":" 501.6 "," Floret ":" 0.744 "," Rain ":" "," Watermark ":" "," conductivity ":" "}, etc. I think I am right to think that once I have pulled the relative table components with an XPath fetcher, then I use a loop to create an item builder inside it. So that the data can be excluded in the format given above. However, I am trying to pull in the ordinary table. Here's a simplified version. I tried and tried

android - I cant make my new thread to function -

IM is actually new to Android and I need to send my current coordinates to my app on my webpad, get it To do this, I have a new thread, but the thread is not doing anything in the Magic SendQueryString () function supost is my code: Public zero transfers (location location) on @Override {// marker draw, if destination location is not set to Latitude = location.getLat Itude (); Longitude = location.gateLong (); If (mMarkerPoints.size () & lt; 2) {mLatitude = location.getLatitude (); Mg = location.gateLong (); Late long point = new letting (mllid, lilgate); MGoogleMap.moveCamera (CameraUpdateFactory.newLatLng (dot)); MGoogleMap.animateCamera (CameraUpdateFactory.zoomTo (18)); DrawMarker (point); } String text = "my current latitude =" + latitude + "longitude =" + longitude; Thread trd = new thread (new runlevel) {@Override Public Zero (run) {tryQueryString ()}} Hold (Throws e) {e.printStackTrace ();}}}); Trd.start (); } Public Zero SendQueryString () {strin

PHP Regex Dealing With Parenthesis -

As far as I understand, regex is tried to match all the points mentioned in parentheses. like & lt; P & gt; & Lt (*.); / P & gt; How to distinguish between how and how the braces mentioned in regular expressions within a large regular expressions. (hello), (how) In the above example, we need to match the bracket, but if the parentheses near RACF [first example , Then how will it be differentiated? thanks if you literally go to () If you want to match, you can avoid most of these regex engines like: \ ( , \) .

asp.net - Using WURFL to detect CSS capabilities -

I am trying to use the latest WURFL database (2.3.5) to detect CSS capabilities, but It does not seem to be doing a great job. It. The NET code is: WURFLManager .GetDeviceForRequest (WURFLRequestFactory.CreateRequest (context.Request), MatchMode.Performance) .GetCapability "css_gradient"); For the latest versions of both Firefox (28.0) and Chrome (33) "css_gradient" returns "none", which is clearly incorrect. I get the same result for "css_rounded_corners" and "css_border_image". What's going on?

oauth - How to Authenticate Quickbook REST API using OAuth1.0a.js? -

I am trying to get some information from QuickBook for online information. I'm fully on the basis of client side to get data. I am using the oauth1.0a.js library to create signatures, tokens, etc. I'm confused with the starting point. As the first step, I will create a new object with the following information var oauth = new OAuth ({Consumer: {Public: '****** * * ', Incognito:' ******** '}, signature_acceptance:' HMAC-SHA1 '}); I now have to get the following information var oauthdata = oauth.authorize (request, 'token'); Var sign = oauth.getSignature (Request, "token", oauthdata); I am confused with the token aspect I know only a token which is app_token which is generated from when an app is created. But to get the data successfully, I need auth_token How to generate this token? The OAuth documentation states that the consumer receives an unauthorized request token. The user authorizes the request token. Request t

MonoTorrent client can't Reach Max download and upload Speed -

I am developing clients and trackers to distribute files in LAN, bandwidth is 1 GBps, but client downloads Speed ​​and upload speed The maximum speed up to maximum bandwidth can reach maximum 10 Mb / s How can I get maximum upload speed and maximum download speed? I found out why it happened and it could be helpful Thanks to Duff < / Div>

c# - combobox SelectedItemChanged fires when XamDataGrid scroll -

I have to I have XamDataGrid user control grid is a combo box and it has changed the image selected. I'm setting some values ​​based on drop down selection when the user selects a line and scrolls vertically, then selected selected event fire and value are set for that selected line. There is no way to ignore the event fire & Lt; Setter Property = "Value Type" Value = "{x: Type Proxy: Basic DataTitO}" /> & Lt; Setter property = "accessible" value = "wrong" /> & Lt; Setter property = "IsReadOnly" value = "{binding path =, converter = {StaticResource ResourceKey = DeleteRowConverter}.}" / & Gt; & Lt; Setter Property = "ItemsSource" value = "{Binding Source = {x: Static member = common_util: GlobalDataCache.BasicDataCache}, Converter = {StaticResource CacheConverter}, ConverterParameter = {StaticResource HierarchyIdType}}" / & gt; & Lt; EventSetter event = "Se

php - how to store session when clicking LINK <a> -

क्या स्टोर सत्र & lt; a & gt; Php में ?? यदि हां, तो मैं इसे कैसे पूरा कर सकता हूं? तो वह सत्र वैरिएबल को इस तरह से जोड़ा जाएगा: & lt; script & gt; $ (दस्तावेज़) .ready (फ़ंक्शन () {serviceName = '& lt;? Php $ _SESSION [' sessname ']। ".php";? & Gt;'; if (serviceName! = "") {$ ('। Main_content ') .लोड (सेवानाम);} संभव है कि मैं क्या करने की कोशिश कर रहा हूं? आपको पहले से धन्यवाद। अपना मान ठीक से जोड़ने का प्रयास करें: serviceName = '& lt; php प्रति सेकंड $ _SESSION ["sessname"] '।' .php;? & Gt; ';

Is a Java string really immutable? -

We all know that string is irreversible in Java, but check the following code: string s1 = "hello world"; String s2 = "hello world"; String s3 = s1.substring (6); Println (S1); // hello world system Out.printline (s2); // hello world system OutprintLine (S3); // World Field field = string.clash.getdcloidfield ("value"); Field.setAccessible (true); Four [] value = (four []) field.get (s1); Value [6] = 'J'; Value [7] = 'A'; Value [8] = 'V'; Value [9] = 'A'; Value [10] = '!'; Println (S1); // hello java! Println (s2); // hello java! Println (S3); // World Why does this program work like this? Why the value of s1 and s2 have changed, but s3 not string is irreversible * But this only means that you can not change it using your public API. What you are doing here is to stop the normal API using reflection. Similarly, you can change the value of anman, change the lookup table used in integer autob