Posts

Showing posts from March, 2014

iphone - Cannot get ducking to work with kAudioSessionProperty_OtherMixableAudioShouldDuck -

This is driving me crazy, I have an iPhone app with background music from the iPod app, when I play sound I do not want to finish background music until the background music is to tell. So until I need to play the sound, my audio session becomes inactive, and when I play sound, I set the kAudioSessionProperty_OtherMixableAudioShouldDuck property and then activate the session. When the sound stops, I disable the session to return the background to normal amount. It ducks the sound but playing background music is stopping. It seems that if I set the QaudioSationProperty_AnimixBox audio shotdeq, QAdiosisationPropertyAnotherl Character Miss Vythth other flag is cleared elsewhere in the system and vice versa. It seems that you need these two sets to get the desired behavior, but whichever I set the last overrides the second and closes it Does anyone have any The idea, which is going on here, any advice would be greatly appreciated? What you want to do is set up the ding proper...

jqModal and ASP.NET MVC -

I want to make an easy way to add new products using jqModal See / home / index.aspx: & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('# addProductControlSection'). Jqm ({modal: true, Ajax: '& lt;%: Url.Action ("AddProduct", "Home")% & gt; ', OnHide: myAddClose}; function myAddClose (hash) {hash.Weighted (' 1000 ', function) (hash.O.remove);});}}); & Lt; / Script & gt; // Rest of code ... & lt; A href = "#" class = "jqmodal" & gt; Add Products & lt; / A & gt; & Lt; Div id = "addProductControlSection" class = "jqmWindow" & gt; & Lt; / Div & gt; Home Controller: Public Functionality AddProduct () {Return View (); } [AcceptVerbs (HttpVerbs.Post)] Public Functional AddProduct (Product Products) {if (ModelState.IsValid) {// How to show an error? } _productRepository.Save (product); // Ho...

c# - Including log4net into a .net web application built with .net 4.0 -

I have noticed that there are lots of threads on it, there are many threads on the web, but there is no way to stackoverflow Found I have tried three things to solve my problem and all this does not work: I just tried to get log4net.dll from the log4net zip folder All source code provided is Bin Directory Result : There is no compilation error, But my SmtpAppender does not just send emails to errors. Therefore, I have found from the web to find out that it can should be related to the version that log4net.dll was compiled. Which is weird, but anyway, I asked to generate a strong key for the assembly who faced an error and said what I did and compile so I leave this project and take log4net.dll and my The projet has been added to the refereces. Result : No compilation error but 1 error when trying to configure it from Global.asax line: Protected Zero Application_Start (Object Sender, EventArgs e ) {Log4net .Config.XmlConfigurator.Configure (); } Here is an error: (se...

c# - Moq - Using VerifySet to check number of times called -

I'm trying to use VerifySet with Mac, so that the number of sets on a collaborative object can be checked . But when I put in the times section of the call, I get an error that the assignment operator is not valid in the expression tree. mockTimer.VerifySet (timer => timer.opop = value); // Works OK Mock Timer VerifySet (timer = & gt; timer.pop = value, times. Once); // compilation error You must call the function Times.Once () : mockTimer.VerifySet (timer => timer.opop = value, times. Once ());

Remembering text resizing across different pages on a web site using PHP SESSIONS -

After reviewing some tutorials in this way, how to change text size and how to build yourself using PHP I was wondering how can I get my own text PHP sessions? $ size = 100; Remembered from many different pages on my web site using If (isset ($ _GET ['i']) & amp; is_numeric ($ _GET ['I'])) {$ s = $ _GET ['i']; } If ($ s == TRUE) {$ size = ($ s * 1.2); } If (isset ($ _GET ['m']) & amp; is_numeric ($ _GET ['m'])) {$ m = $ _GET ['m']; } If ($ m == TRUE) {$ size = ($ m * 0.8); } If (AZAT ($ _GET ['n']) & amp; amp; is_numeric ($ _GET ['n'])) {$ n = $ _GET ['n']; } If ($ n == true) {$ size = 100; } Here is the CSS code. #content {font-size: & lt ;? Php echo $ size; ? & Gt;%; } And here is the XHTML. & lt; A href = "index.php? I = & lt; php echo $ size;; & gt;" title = "" & gt; Increase & lt; / A & gt; & Lt; Br / & gt; & Lt; ...

iphone - need a specific JS framework to support all mobile os -

I am going to support my website mobile phone. My website contains a lot of JavaScript and AJAX stuff so that a specific JS framework can be found to support all mobile OS (Android, iOS, Windows and Blackberry). Me phonegap, ceicha touch, jacuzzach and titular titular apeseller. Can you help me, which will be suitable for my needs, to know right. If you want to convert your website into a native app on a mobile phone, you can use it Would like to do something like phonegap or titanium if you want to run it as an original app more than just Android and iPhone, then you should use phonegate, otherwise Titanium will also work. If you just want to see your website in the mobile phone browser, you may be able to leave it now because IOS, Android, Windows Phone 7, and RIM OS 6 have all the best browsers. Otherwise you can definitely use jQTouch or Sencha to make your site more mobile-friendly.

asp.net mvc 2 - How can I get action name? -

I changed the ASP.Net controller factor by a Windsor Controller Factor. And I registered all the controllers and interceptors so far everything is working well. Now when I'm debugging my interceptor, invocation. The controlbase in Method.No name requires me to get the name and parameter of the action to take some assumptions. How do I get action names and action parameters in the interceptor mode of my interceptor? The information about the controlbiz_execute method and its parameters does not help me. Thanks, Rafael Malosem I believe That you can get from the RequestContext.RouteData collection. I think the key "action" for the method / action is something like this: requestContext.RouteData.Values ​​["action"]

c# - asp.net page cannot invoke SOAP POST method in middle-tier -

I have an ASP.NET (C #) web page that uses the VB class library. The VB Library posts a SOAP for a remote web service and gives a message. However, the VB Library is a "no connection can be made because the target machine has actively denied it xxx.xxx.xxx.xxx". However, I also created a C # exam customer The same VB class library that can be consumed and posted properly! So what's going on here? Default.aspx: protected void Prisht_lod (object sender, Iventaarjis e) {string Sopastring = ........ Mayvibimdeltiarobjektkpostmjiar Pimarar = new Aivibimdeltiar Object.postgig (); Response.Write (pMgr.DoPOST (soapString)); } VB Middle Tier: public function DoPOST (ByVal soapMsg as string) String Dim encode UTF8Encoding = new UTF8Encoding () as fond dim as () = encode.GetBytes (soapMsg as bytes) retarded client as HttpWebRequest = CTYPE (WebRequest.Create (ConfigurationManager.AppSettings ( "SoapService")), HttpWebRequest) client.Headers.Add ( "S...

html - Using width property for table data cells to change the look of table -

& lt; टेबल आईडी = 'टैब' सीमा = '2' & gt; & Lt; tr & gt; & lt; td width = "33%" & gt; कर्नल 1,1 & lt; / td & gt; & lt; टीडी चौड़ाई = "33%" & gt; कर्नल 1,2 & lt; / td & gt; & lt; td चौड़ाई = "33% "& Gt; कर्नल 1,3 & lt; / td & gt; & lt; / tr & gt; & Lt; tr & gt; & lt; td चौड़ाई = "50%" & gt; कॉल 2,1 & lt; / td & gt; & lt; टीडी चौड़ाई = "50%" & gt; संकलन 2,2 & lt; / td & gt; & lt; / tr & gt; & Lt; tr & gt; & lt; td width = "33%" & gt; संकलन 3,1 & lt; / td & gt; & lt; टीडी चौड़ाई = "33%" & gt; कर्नल 3,2 & lt; / td & gt; & lt; td width = "33% "& Gt; कर्नल 3,3 & lt; / td & gt; & lt; / tr & gt; & Lt; / तालिका & gt; हैलो मैं एक ऑर्डर में सभी कॉलम प्राप्त करने की कोशिश कर रहा हूं, इसलिए आवश्यकता पूरी करने...

javascript - ASP.NET MVC - How do I load an image asynchronously? -

On the home page of my site, I want to display a lot of products in which the images are too large Taking it for so long that it's really time is up and the page fails to display! In general MVC or just ASP.NET, how can I load an image asynchronous? Basically what I want to do, displays product details and just displays a small loading image eg . Unless the image loads. I think this requires some JavaScript / jQuery ... & lt; Img src = "ajax-loader.gif" onload = "this.onload = null; this.src = 'bigimage.png';" / " Or if you prefer randomly: & lt; Img src = "ajax-loader.gif" id = "myimg" /> and then: $ (function () {$ ('# myimg'). Load (function () {$ (this). ( 'Load'); this.src = 'bigimage.png';});});

c++ - Qt - Real time drawing -

I want to show the path of a car in a window in real time, how to do it, and which class I use To do . There is nothing like QT drawing area. Any help would be appreciated. You will need to read. There are several helpful examples that show every bit of what functionality is present here. Implementation of myself ... I think this is just a bunch at QLine s on a QGraphicsScene . Realtime is again controlled by calling color or Pentavet or by calling from time to time, or by setting complex animation.

How to stop HTML5 audio when iOS4 iPhone Web app is put into background? -

I am creating a web app for iPhone (on chirpid.com) which runs an audio file to identify cricket co. is. User can start and stop audio by tapping the screen button, but if the user taps the Home button while playing the sound button, then it continues to play in the background (the iOS 4 feature). I want to stop the audio in this case. Is there an event or property that I can use in Safari via javascript to determine when I have been placed in the background? You can manually trigger the "stop" button like this when closing the app . - (zero) applicationDidderbackground: (UIApplication *) application {if (AudioIsplaying) {[btnStop sendActionsForControlEvents: UIControlEventTouchUpInside]; }} When you use the application, you receive 5 seconds to do anything: Background Background: Function. It should be enough to stop the audio; -).

Copy String from an android from EditText into String variable on Android -

I have a class that has a view getView () . This category also has the variable answer . When the user makes the possibility of editing text, then I want to store the contents of EditText in the Answer . If I use an onKeyListener I am afraid that the answer is probably the last what the getView () function is handled by some other listener Is there a good way? You should be in your EditText and implement it in your class Then you will move text only in ways and store in your answer

.net - Assembly creation guidelines -

Is there a rule of thumb that you can get as a number of static functions in an assembly? How can you identify that the function requires a static V / S function, which is not required to be stable? OK, there is no rule of thumb - which comes under the design logic. If you wanted to listen to FxCPOP, then a method is static, if it does not work on class members ... I like the old definition of age, the method should be stable But may not be specific for an example of type. This link contains "when to use" section:

iphone - Is it possible to use pushViewController without a navigation controller? -

I have a UISearchBar in my opinion, and when the result button is pressed, I like it. Is it possible without using the navigation controller? I am new to iPhone development, so it is not completely sure that navigation between the scenes is completely reliable on the navigation controller or not. I have seen from all the examples that have been seen using pushViewController, it seems that this way. Hopefully I am being proved wrong. The UIAgreement Controller provides the simplest way to manage a stack of view controllers, but any Not necessarily the way; You can move your thoughts around, and you can add and remove them from the hierarchy, although you may want to do what you are trying to do, and why do not you use the navigation controller?

iphone - What does [super viewWillAppear] do, and when is it required? -

- (शून्य) दृश्यविलएपीपर: (BOOL) एनिमेटेड {// यहाँ कुछ [सुपर दृश्यवैलप्रदर्शक]; } क्या [super viewWillAppear] हमेशा आवश्यक है? यदि नहीं, तो कब और क्यों इसका इस्तेमाल करते हो? सबसे पहले, सही बॉयलर प्लेट होना चाहिए: - (शून्य) दृश्यविलएपीपर: (BOOL) एनिमेटेड {[सुपर व्यूव्वलएपपर: एनिमेटेड]; // कुछ यहाँ} दूसरे शब्दों में, सुपर पहले को कॉल करें, फिर अपनी खुद की बात करें और आपको एनिमेटेड पैरामीटर को सुपर पास करना होगा। आप आमतौर पर किसी भी तरीके से पहले सुपर क्लास कार्यान्वयन को कॉल करना चाहते हैं। कई भाषाओं में यह आवश्यक है उद्देश्य-सी में यह नहीं है, लेकिन आप आसानी से परेशानी में चल सकते हैं यदि आप इसे अपनी विधि के शीर्ष पर नहीं डालते हैं। (उसने कहा, मैं कभी-कभी इस पद्धति को तोड़ता हूं।) क्या super's कार्यान्वयन आवश्यक है? इस विशेष पद्धति के मामले में आप अप्रत्याशित व्यवहार प्राप्त कर सकते हैं यदि आप इसे कॉल नहीं करते हैं (विशेषकर यदि आपने UINavigationController को उप-वर्ग किया है उदाहरण के लिए) तो इसका जवाब है नहीं तकनीकी अर्थों में नहीं है, लेकिन ...

.Net - Load Type dynamically from AppDomain without remoting proxy -

I've loaded a specific AppDomain and I want some kind of it to dynamically load I (piece of cake right ?). It all CreateInstance methods that app domain Class retire Cheats is as remoting object handles. Remoting have proxy limitations, which I would like to save: such as Sirijlaybl concrete class, and more garbage collection, unless Laiftaimsewayr have not used. My question is how can I load a type in another app domain without wrapping it in a remote proxy? Below is a snippet of my code. AppDomainSetup ads = New AppDomainSetup (); Ads.ApplicationBase = Path.Get directory name (_bllAssemblyPath); Ads.PrivateBinPath = Pathgate Directory Name (_bllAssemblyPath); If (File.Exists (_bllAssemblyPath + ".config") ads.ConfigurationFile = _bllAssemblyPath + ".config"; _workerSpace = AppDomain.CreateDomain ( "workers", the new system. Security. Policy. Award (AppDomain.CurrentDomain.Evidence), Advertising); _bllQueue = _workerSpace.CreateInstanceFrom (...

Partitioning in clojure with a lazy collection of strings -

तारों के संग्रह से शुरू करना जैसे: (def str-coll ["abcd "Efgh" "jklm"]) लक्ष्य स्ट्रिंग संग्रह के सिर से विशिष्ट वर्णों की संख्या को निकालने के लिए है, स्ट्रिंग का एक विभाजन समूह बनाना। यह वांछित व्यवहार है: ('का उपयोग करें' [clojure.contrib.str-utils2: केवल (शामिल होने के लिए)]) (विभाजन-सभी 3 ("str-coll में शामिल हों") (( \ A \ b \ c) (\ d \ e \ f) (\ g \ h \ j) (\ k \ l \ m)) हालांकि, पूरे संग्रह, जो स्ट्रिंग्स के बहुत बड़े संग्रह के साथ काम करते समय स्मृति समस्याओं का कारण बनता है। मेरा विशिष्ट उपयोग केस सीमांकित रिकॉर्ड की एक बड़ी फ़ाइल को पार्स करने से उत्पन्न आलसी संग्रह से तारों के सबसेट उत्पन्न कर रहा है: (defn file-coll [in-file] (- & gt; & gt; ( लाइन-सीक (रीडर इन-फाइल)) (विभाजन-द्वारा # (.प्रारंभ के साथ ^ स्ट्रिंग% "& gt;")) (विभाजन 2)))) और काम पर बना रहा है से मैंने कम करने, विभाजन और शामिल होने के संयोजनों की कोशिश की है, लेकिन पहले तार के सिर से पात्रों को खींचने के लिए सही भरोसे के साथ...

c++ - Using popen to write in a pipe only send data when pipe is closed -

I am using popin to open a writing pipe and send commands to an application. The problem is that when I turn off the pipe, the commands are sent only to the app. FILE * fp = open (target_app, "w"); Fwrite (command, 1, command. (Size), fp); Getchar (); // Wait for a key, because I do not want to end the application pclose (FP); // At this point, the command is sent What could be wrong?

html - Offset viewable image in <img> tags the same way as for background-image -

plain & lt; Img & gt; It is possible to offset the image in the same way as you can with CSS background image and background-position? There are main images on this page and when these two separate thumbnails are loaded (thus the bandwidth is increasing) there are some picture diagrams and some scenarios, although I display thumbnails at the same size Need to do (and crop more and more, where it fails to meet the desired aspect ratio). Although it is possible to use other tags and backgrounds - CSS values ​​are plain & lt; Img & gt; Tags will be better. Unfortunately, this is only a & lt; Img & gt; Tags CSS background-image a & lt; Div & gt; Create . Where the image is applied as a background-image asset: & lt; Div class = "thumbnail" style = "background: url (an-image.jpg) no-repeat 50% 50%" & gt; & Lt; / Div & gt; CSS clippings Use the clip-path property to show only a part of the im...

website - Adding sound in a web site -

How do I add sound to a web site? I do not want to show the .swf player in the page. Music should play in the background You can & lt; Audio & gt; tag, but check whether it is supported in all browsers, which you are interested in. If not, you can use an invisible SWF. D recommend that you do not put the sound of background in the site, it can actually be disturbed.

java - is it possible to have multiple instances of static variables -

is just an example of static variables (that they are part of the class). East: Math P. Is there any way that there can be many examples of stable variables? I have heard that something related to Classloaders? If you think you need multiple instances of static variables, this is a strong signal that you are the first The static variable should not be used in place. Yes, if the same class is loaded into different class loaders, then the class copy will have its position. However, there is only one code that can be static for those statics, the class loaded by the same class loader. And of course, that code will only look at the (statically) position in a copy of the class. So maybe you have not achieved a lot. Instead of roaming with classloaders, you should refactor your code to change the fixed variable to the frequency variable.

Is there anything bad about attaching a variable to a function in Javascript? -

I am writing some javascript code and I need to keep track of a global situation the state has changed to only one function It is necessary to be widely accessible with other functions. I am currently doing this in this way: function Foo (bar) {var self = arguments.callee; If (! Self Stated) {self.state = 0; // is called 0 times} else {self.state ++; // Many times I have been called}} Is it sensible to force such a function into a global state? This is a nifty but I am worried that I have something dangerous which I have forgotten. There is nothing wrong with assigning properties to the object function. What should you worry about it? That arguments.callee has been deprecated in ECMAScript 5, which is the language specification that is currently making its way into the mainstream browser, in strict mode, arguments Referring to callee would be an error.

java - Memory usage concern for using display:table jstl tag -

I use & lt; Display: table & gt; is written by my jsp & lt; Display: Table & gt; To pass an argument as an argument, there is a need for a live list. Currently, a controller will create a list, then JSP will display it. My concern is that what will happen if 1000 users search at a time. This means that all results will need to be loaded for memory because & lt; Display: table & gt; To display different javabean lists running out of memory, the system will probably crash, is there a good strategy to stop the system running out of memory? Is there any way to limit the number of users to load the application? Does this mean that & lt; Display: table & gt; Is a bad programming practice because all records should be loaded into memory at a time? thank you in advanced. This is a very legitimate concern. You should not assign unnecessary memory. DisplaysAlthough unfortunately does not support the PageGen at the database level. Everything shoul...

javascript - IE won't toggle element -

I have javascript on this page to toggle between a java and switch between two images & lt; Script type = "text / javascript" & gt; Function ToggleArchive () {document.getElementById ('Cat'). Toggle (); Var image = document.getElementById ('arrows'); If (image.src == 'bullet_arrow_down.png') {image.src = 'bullet_arrow_up.png'; } Other {image.src = 'bullet_arrow_down.png'; }} & Lt; / Script & gt; Works fine on modern browsers, but IE says there is an error in that line document.getElementById ('cat'). Toggle (); So it does not toggle the div nor switches the image. What is the plan? It seems that as you are using prototype JS library, the library will add methods of DOM elements In this particular case, it is adding HTMLElement.prototype.toggle . The DOM prototype is supported only in IE8 and later and should be rendering in standard mode. To make it work in all browsers, use getElementById ...

java - Nested expression in JSP/JSTL -

I am using JSP for the scene, and Spring MVC 3.0 for the controller. In my JSP, I want to show current datetime, for which I have the following code ... '/ & Gt; & Lt; C: set var = "currentDateTime" value = '& lt;% = new simple data format ($ {dateTimeDisplayFormat}) format (new date ())% & gt; Radius = "page" /> Now, the problem is that JSTL fails to recognize my nested tag for simpler format installation. I want to send the format string (as derived from the 'datetimedisplayplay format' variable) into a simple data format constructor. Can someone please advise how to write a nested constructor for SimpleDateFormat in the SEED SET statement? Thank you in anticipation! & lt; C: Set & gt; By value attribute & lt; C: set var = "dateTimeDisplayFormat" & gt; Instead of tag content it can be assumed. & Lt; Spring: Message code = "display.dateFormat" /> & Lt; / C: ...

What is the best JavaScript image processing library? -

I need some kick-ass effects for my web site, such as Gaussian blur, noise, conversion filter, morphological Actions etc. What is the most powerful image processing library implemented in Javascript? I know only one, but all its methods are not fully cross browser compatible - they HTML5 relies on the features of canvas element which is not available in Internet Explorer, even with Exquisites. Some demos: Other links:

Is there a better way to run a c++ makefile from a c# project? -

I have a project in c # that uses binding to use some C ++ code. The C ++ code contains multiple DLLs, which are compiled using a messphile. Currently I'm trying to use makefile build a pre-build event which calls NMaC. However, to find nmake to get it, I want one of the following lines: "$ (DevEnvDir) .. \ .. \ vc \ vcvarsall.bat" Apart from this, NMK does not produce any output in the output window, along with the existing line here. Neither does it throw any error I tried to redirect the output to the file and it does not write anything. I have redesigned all the usual steps in my prebuilding event and it works fine. I think I should remember something why Visual Studio does not give me a visual studio shell for my pre-made event? Is there a better way to run this makefile? If not, then no one has got any idea why NaMac is not producing any output? Edit: D-Oh! Nmake was not running because I forgot to add 'call' for the beginning of the line, that...

web services - Ideas on sync between iPhone and website -

I have to sync an iPhone app with the website using a webservice, the sync process I'm using , It is the following: Send items which need to be synchronized to the website from the iPhone Add items to the website MySQL database IOS Send items that need to be synced from the website from Add items to the iPhone SQL database This is done on a server using a request. Users often have some items (& lt; 20) to sync, but sometimes the user can have up to 2000 items to sync. Adding 2000 items to a MySQL database can take some time. I am using the transaction and I am committed to the website on adding items, something like this: mysqlTransaction.BeginTransaction (); The forehand item is sent from iPhone {mysql.CommandText = // Sql query mysql.ExecuteNonQuery; } MysqlTransaction.Commit (); Sometimes when there are so many things to add to a user, it can take longer than a long time. So my idea is to change the sync process a bit and instead of using a larger reque...

php - Zend Framework - Zend_Measure translation problem -

I want to translate the measurement that returns the Zend_Measure 10 languages ​​(BG - Bulgarian) I have found that in my language 10 hours (en_US) is a collection with translation that is necessary to me - Zend / Locale / Data XML is a group of files, many of them have been translated for the measurement. I think that they have Zend_Jarez measurement type. (All these translations should be used for some ...) Can anyone help me ?? If you want to translate the style of an output into a canary or a number, or a localized In the version you have to use Zend Locale. Zend Locale will use those XML files and will work for you. You do not need to manually mount the data in XML files.

c# - How to call javascript function in item template when using gridview -

I am trying to call a JavaScript function which will set the foreground and backcolor control of the control when the control is over but this function is not growing gt;')" & gt; & Lt;% # Eval ("ColorCode")% & gt; & Lt; / Div & gt; & Lt; / ItemTemplate & gt; This is my javascript function invert caller (sender, backcore) {alert ('hi'); // warning (backColor.toString ()); // if (backcoller! = '') {// // sender.css ('background-color', backcore); // backColor = backColor.substr (1, 6); // foreColor = numberToHex (255 - parseInt (backColor.substr (0, 2), 16)) / + numberHohex (255 - parseInt (backclosure.SUBTT (2, 2), 16)) // + numothex (255 - parsiat) (Backcoller. Subert (4, 2), 16)); // sender.css ('color', '#' + foreclose)}} You can do this immediately after the div if the element has a way to find it, such as ID or CSS class. Div will produce a unique ID for each item in a serv...

.net 4.0 - Task Parallel Library. Nested task do not start -

I am working with the new TPL library and I am facing some strange behavior, I understand not can. For some reasons nested work has not started in my case. I have simplified the following solutions: bool flag = false; For (Int i = 0; I {flag = true} ;});}}); } Thread Sow (2000); Assert.IsTrue (flag); I have 5 tasks that are running simultaneously, each task gets some elements from the pending queue, do some operations and then try to run nested work for the results of this operation. Please. The problem is that if there are so many elements (whereas the (fact) limits it) and all 5 functions are not continuously nested functions. Loop can only be started after a lot of tasks while completing its execution. Tasks. Factor Startup does not start a task, it adds to the list of tasks to be determined by the task and determines the scheduler to run the work on the basis of things; The number of available cores (the size of the thread pool), the current CPU load and the curre...

iphone - A question related to @property -

क्यों हम @ प्रॉपर्टी @ प्रॉपर्टी (nonatomic, retain) UIButton * बटन में nonatomic का उपयोग कर रहे हैं; नॉनटामिक का क्या अर्थ है? नॉनैटॉमिक संशोधक का अर्थ है कि संपत्ति को तब लॉक नहीं किया जाता है जब इसे एकाधिक धागे से पहुंचा या संशोधित किया जाता है। आप अधिक जानकारी प्राप्त कर सकते हैं।

Create remote P2 eclipse update site? -

I have created an eclipse update site using the plugin project wizard in eclipse helios. I have added some features to this site. And it works and it works fine (I can accept the site in the update manager). Now I want to take this updated site to the server so that it can be reached globally, but where do I get information about the installation of a server and how to transfer the site to the correct folders ? It is very simple: you need a server which can file more than HTTP. If you upload your update site to the server you will have plug-ins and feature directories and all relevant XML or Compressed XML (depending on how you make it). For example, if you have a server and your doctor-root is on / var / docroot, then all these files come under / var / docroot, so you have / var / docroot / plugins, / Var will >

javascript - Scaling multiple paths with raphael -

I'm trying to use Rafael to create a map tool similar to this in the webpage. I have a SVG file of the map that I want to use, and there are all different paths in the provincial file. However, if I copy coordinate to make a RAFEL path straight as SVG file, the image is too large to suit the screen and so I need to scale it. I know that I can personally scale scale of all the province paths, but then they will now touch each other, and I surround them with re-collecting the map Have to move. Is there a way to group the path together and group the whole thing, or is there a smart tool to scale the original SVG file? .. Inkscape scaling does not seem to modify coordinates in SVG file thanks source: window.onload = function () Paper = new rafael (document.getElementById ('canvas_container'), 20004000); Var province = {} province.a = paper. ("M1195.23,2765.05 1176.44,2753.8 1182.93,2743.86 1198.21,2745.13 1201.92,2738.12 1263.62,2752.62 1284.76,2743.95 131...

WPF button background in windows 7 -

Before the windows XP and the background of the wpf button was always set, but background from Windows 7 is always blue Is set to. How can I fix it? You will need to create your own template for the button (I think it's just hover color Which you are struggling with, not the original color, which follows the background property). Here is a very simple button template, which can help you to get started. Settings will be required to suit backbirds and forbes. (And they are back and rest of the rest of the application, so they look back in this example) & Lt; Setter property = "click mode" value = "press" /> & Lt; Setter Property = "Text Block. Text Dissection" Value = "Wrap" / & gt; & Lt; Setter Property = "Borderbrush" Value = "#E9DBA" /> & Lt; Setter property = "foreground" value = "{static resource backbish}" /> & Lt; Setter Property = "Background...

sql server 2008 - execute script automatically at 2:00 a.m? -

Text after " I get executed every day in this process 2:00 a.m. Besides, I want to pass the date parameter for the process. Suppose today is July 28, 2010, so I am for the 27th of July, 2:00 process. In this way, I want to record all records that are inserted at 2:00 p.m. after 27th July in any other table. This is my process. Go to Alter process set GO set on spBackupRows QUOTED_IDENTIFIER (@date datetime) set as ANSI_NULLS declared @ItemId integer, @ItemName varchar (100), @Description varchar (50), @ ItemCreatedDateTime declares my cursor cursor for datetime declaration * tblItems where ItemCreatedDateTime & gt; @date Open myCursor Next check myCursor @ itemid, @ ITEMNAME, @ Description, @ ItemCreatedDateTime while @@ FETCH_STATUS = 0 check tblBackUpData (Itemid, ITEMNAME, Description, ItemCreatedDateTime) Enter Value (@ Itemid, @ ITEMNAME, @ Description, @ItemCreatedDateTime) @ itemId, @ itemName, @ from my concert, close @ itemcreatedDateTime end, end my consonor e...

svn: is there a graphical tool to assist in merges? -

(Before you say it is a duplicate or, please read ...) I need a graphical tool to help merge into SVN; I do not mean per file merged; I am beyond comparison and it works well. I mean merge trees. What I would like to see is a 3-way source tree merge, which shows me which files are the same and which are different, and the working version, or version A, or version B, or a merged version There is also a way to prevent any automatic merge without accepting or rejecting me either. Any suggestions? Edit: I'm imagining some tools which is a svn merge - dra-run behind the curtain and Parse results in some way, tell you what the recommendations of svn are. To answer your second question about preventing automatic mergence. This can be done using the - diff3-cmd switch for svn.exe.

objective c - Assigning UTI to file type -

I am trying to add UTI for a pair of file types, matching the detail I think I Systematic setup has been found - At the very least, file extension -> UTI mapping is recognized (I have notified it as an imported type in info.plist) However, when I try to stop UTI from my test file I am a dynamic person TI is back. Here is sample code that I am using to test these two cases: NSString * previewTypeUTI = zero; NS URL * Preview file URL = [NSUr file URL with path: @ "/ user / eLayer / desktop / EWF / The Tainfile.Mayica1"]; [PreviewFileURL getResourceValue: & amp; Type to preview UI: NSURLTypeIdentifierKey error: zero]; NSLog (@ "% @", PreviewTypeI); // # 1 NSString * testUTI = (NSString *) UTTep crateptfiledEditification tag (kUTTagClassFilenameExtension, (CFStringRef) [previewFileURL path extension], tap); NSLog (@ "% @", TestUti); // # 2 [Testi release]; NSLog # 1 print out prints "dyn. ########" and NSLog # 2 "com.mycompany.f...

jQuery: how do I add a div to the end of my HTML file? -

I saw in the documentation .append allows you to add elements to an element but I & lt; / Body & gt; You can use it before: $ ('Body'). Append ('& lt; div & gt; footer & lt; / div & gt;'); But also: $ (' Footer & lt; / div & gt;'). Annex ('body'); Html ($ ('body'). Html () + ' Footer ;); Reference here with difference:

Android: How can I make a Drawable array? -

How can I create an array that handles some of my images so that I can use it this way? ImageView.setImageResource (image [1]); I hope I explained well ... int [] myImageList = New int [] (R.drawable.thingOne, R.drawable.thingTwo}; // later ... myImageView.setImageResource (myImageList [i]); or a resizable version For: ArrayList & lt; Integer & gt; MyImageList = New Arrestist & lt;> (); myImageList.add (R.drawable.thingOne); // In ... myImageView.setImageResource (myImageList.get (i));

html - PHP stop closing tag being automatically added -

When I add strings to the array in PHP and output, $ spinere [$ I] = "itemf idref = 'part-$ i' linear = 'yes' / & gt;"; It looks like when the outputted closing tag is automatically added and can I stop it? Thank you. & lt; Itemref idref = 'part-$ i' linear = 'yes' & gt; & Lt; / Itemref> Are you using firebug to view HTML? Firebugs automatically add missing tags, make sure that you see the HTML with the "view source" feature of the browser Edit: This makes it clear to the recipient if you use the code described above , I'm sure you will not see the tag.

asp.net "Remember Me" cookie -

I have applied while I remember using this option in my asp.net webform, protected void LBtnSubmit_Click (object sender, EventArgs e) {if (this.ChkRememberme = null & amp ;! & amp; this.ChkRememberme.Checked == true) {HttpCookie cookie = new HttpCookie (TxtUserName.Text, TxtPassword .Text); Cookie.Expires.AddYears (1); Response.Cookies.Add (cookie); }} Am I doing this correctly? Any suggestions .. I am using windows authentication and i asp.net not using subscription I .. but directly, username and storing passwords cookie hash of the username and password and cookie from a salt store, then when you authenticate cookies, the user name, Make a hash with password retrieved password and same salt for re Compare all of them. Creating a hash is simple as computing, converting passwords and salt values ​​together into one string, converting a byte array string. When using byte array of hash (MD5 or whatever you prefer) and convert the hash result of a string (proba...

c - Shellcode and format string vulnerabilities? -

In my work, we have many machines due to RH 9, RH Enterprise 3 and some older Linux flavors. Format string vulnerability "and" shellcode ", I would like to know how to see if Linux is weak for these kinds of attacks (without running attacks) ... Thanks for the help! Firstly, a shell code is not weakly, shell code is a small executable code, which is the vulnerability of memory corruption There is a payload distributed as a drop indicator or buffer overflow. It is very difficult to take advantage of the modern Linux system What do you have to do, this is a yum upgrade and then you should be good. Just keep your system up to date and all you need to worry about if you want to see if a system is remotely usable, then you should run against that system. If you want to exploit a system, and run a choice of your choice, you can use it.

c++ stack trace from unhandled exception? -

have been asked before the question and given specific answers to windows but no satisfactory GCC has been no reply. I called a set of set_terminate () is I can use (the Close instead of ) when thrown an unused exception. How do I use the backtrace library to generate a stack trace from a point in the program? However, when my termination-replacement is called from that point, it will not help if the stack is useless. However, if I allow the program to be abort () , then it will produce a core dump which contains the complete stack information from that point on which the exception is thrown I went. So the information is there - but is there a programmatic way to get it, for example, it can be logged instead of checking the original file? Edit Answer: You #include & lt; Cstdlib & gt; You can use. # Include & lt; Iostream & gt; # Include & lt; Stdexcept & gt; # Include & lt; Execinfo.h & gt; Zero handler () {Zero * trace_elems [20]; In...

security - PHP getting the PHP file -

Do you have a way to get the source file of PHP from a HTML file or web browser to JavaScript itself? if so, how? If not, why not? No, this is not possible. Server-side languages ​​are meant for translation and before are sent to the browser.

c# - Do I always have to cast enum or am I doing something wrong? -

If I have such a very simple enum. enum alignment {left, center, right} Where I want to make datatype an integer, which I think is the default, and values Is to be omitted = 0, center = 1, right = 2 but if I try to assume and value like header.Alignment = alignment.center; I am told that I have to put alignment. Which is not a big deal but I am wondering if I am doing something wrong or that is the way to work. If header.Anignment is type , then yes, you must always put it on int . You can create header.Alignment type alignment , and then you will never be able to enter it if you are working with legacy or third-party code If you accept only int , then you are out of luck.

javascript - Moving 3d Model in google earth? -

I am using Google Earth Web-Plugin API and I've got 3D model of Helicopter, I can make A 3D model using the following code: var placemark = ge.createPlacemark (''); placemark.setName ('model'); // placemark / model (geometry) var model = ge.create model ('hail'); Placemark.setGeometry (model); // placemark / model / link var link = ge.createLink (''); link.setHref (''); model.setLink (link); // placemark / model / location var loc = ge.create location (''); loc.setLatLngAlt (temp1, temp2, alt) model.setLocation (local); model.setAltitudeMode (ge.ALTITUDE_RELATIVE_TO_GROUND); Every time there are new late-long coordinates, there is a way to move the 3D model into these coordinates, instead of creating a new one, after about 50 render, it becomes unresponsive! Any help would be appreciated I think PlacePlacemark is required instead of MakePlacemark, but there is no mention of such a functio...

multithreading - implementing a basic queue/thread process within python -

Verify that for some eyes verifiy that psuedo comes to understand the next part of the dragon. I am creating several threads to implement some inproc functions as soon as possible. This idea is to lay the thread in the master loop, so the app will run threads simultaneously in a parallel / code - write file names from each file in the name of each file, each file A queue for the name- spawn thread, where each thread waits for value / data from the queue - thread mercury function then handles actual processing based on the file included through the "execfile" function ... # System module queue importing queue thread importing thread import time # local module #import feedparser # set some global variable apes = quo () # will need more than # this matches the number of those files Packet #degroup to create the name of the file to join # urldir # Num_fetch_threads = 200 DF Threadpers (Q) # Different Component Line = q.get () College, Level, Packet = Disruption (Line) # Col...

obfuscation - deobfuscator for .Net -

Do you know a good debugasketer for the Net? I know the most powerful. NET Debfuscator is open source, actively developed, and claims to support the following obfuscators: Babel.NET Clicikur CodeVeil crypto ombcasseter Dotsaka Dotfuscator NAT reactor EzfScNet.NET Goliath SketCode SmartSaad Spices Net Zenocode

media - How to play large video files in blackberry application? -

I want to design a Blackberry app that plays video. In the latest JDK, the media player that I can use to play the video However, after the video of 6 MB, the application has been added, because COD files do not support that data Can do What can I do? Is there a limit on the size of an app on a Blackberry device? 5.0 In JDK, they also support Esclaim. I was thinking that I can store video there, but I'm not sure whether it is possible or the app store will allow it? I have around 100 MB of video that I want to add. I have no problem on the iPhone. Most of the BlackBerrys have limited memory space available, so if you make your app too big Many people will stop it from downloading and installing it. An alternative approach will be to host the video on a web server and will not compile them in the application. The app can download videos from your server and store them in SD memory (if available). I think storage is the only way in SD memory that you are going to fit...

php implode question -

So I'm searching for one and I am using an implode in my selection statement, which I find useful is. Basically this search engine will have 3 different selections, which will select different things based on different criteria and when I use my implode, I get an error of invalid arguments. Here is my SQL statement: $ sq = "select camp select camping camp, start camps, type camps, camp.indere, camp link form (join gender in gender) Camp.id = gender.cap_id) Enter camp. ID = grade Camp_id) join camp.id = interests.camp_id where ((grade.year = '' .implode ('\' or grade.year = '', $ Age. '') And gender.gender = '". $ Gender."') Or ((interests: activation = '' .implode ('\' or interests) Ruth = \ '', $ array). '' And (grade age = ''. $ Age. '' And gender.gender = ''. $ Gender. '' ')) " The second is to push for interests where I got my problem and $ a...

ios simulator - iAd testing on iPhone -

I have a problem with testing the iAd on the simulator and simulator. The way I am called when ads load If it is happening or fails, then it does not appear that testing and Apple should not show an empty frame when there is no advertisement to display the app. Actually, did I hide the adview and it was only shown when bannerViewDidLoadAd: (if the scene is not being shown already). I ViewedDidLoadAd Banner View: and bannerView: didFailToReceiveAdWithError: but when I run on both simulators or on the device, nothing has been logged on but some NSLogs have been placed on. Is it normal practice / testing an app with IAds? Is there any way to make sure that it is working really well? Thank you for your time. Are you sure that you have set up a delegate on your iAd, which is ViewController or bannerViewDidLoadAd and Point to bannerView class: didFailToReceiveAdWithError methods?

Lambda Calculus reduction -

All, The lambda expression below which is making me difficult to reduce i.e. Not to know about this problem. (λm λn λa λb m (nab) b) (λ f x. (Λ fx .fx) This is what I try, but I am trapped : Considering the above expression: (λm.E) equates to M = E = (λn λa λb m (nab) b) m = (λf x. X) (Λ f x .fx) => (λn λa λb. (Λ f x. X) (λ f x) (nab) b) the above expression Keeping in mind (λn. E) equates to E = (λa λb. (Λ f x. X) (λ f x) (nab) b) m = ?? .. and I'm lost !! Does anyone help me to understand that, for any lambda calculation expression, what steps should be taken to reduce it? You can follow these steps to reduce the lambda expression: Ol> To avoid mistakes completely preserve the expression and make it more clear where the application is. Find the function app, that means find an instance of the pattern (λX. E1) e2 where X can be a valid identifier and e1 and e2 can be a valid expression. The result of changing every free event of x ...

enterprise library - Please help! unable to add performance counters - 'Add' button is disabled -

I made counter functionality using following Entlib 4.1 I when I open Performon.exe and add counters - I perform I can see the list of objects I have made and counters. However I can not add them because the add button is disabled. Any suggestions public class program {static void key (string [] args) {Console.WriteLine ("You are about to set display counter"); InstallPerformaceCounters (); Console.ReadLine (); (I% 3 == 2) {Thread sleep (100);} If (i% 5 == 2) {Thread.Sleep} for (Int i = 0; i & lt; 100000; i ++) (1000);} display Search (i);} console. Reedlain ();} private static void PerformSearch (int i) {Console.WriteLine (i);} private static void InstallPerformaceCounters () {try {PerformanceCountersInstaller founder = new PerformanceCountersInstaller (new SystemConfigurationSource ()); IDictionary state = new system. resolution. Hastebl (); InstallerkContext = new InstallContext (); InstallerkInstall (state); InstallerkCommit (state); Kansolkprkash line ( "...

How to use jquery for this scenario? -

I have a scenario - I am displaying a list of product names in the form of a list. REQUIRED I need to display the image of the product (the image is hidden). Html is the same (dynamically Prod 1, Prod 2 etc.) You can use .show () and . If you can, then give the link a general class so that you can do it like this ... $ ('.prod'). Hover (function {$ (.h) .next ('hidden'). Show ();}, function {$ (this) .next ('hidden'). Hide ();}); But if you can not change the html, you can do it, function over () {$ (this) .next ( '.hidden') Show ().; } Function Out () {$ (this) .next ('Hidden') Hide (); } $ ('# Prod1, # ​​prod2'). Hover (over, out); // It will show on mouseover and hide on mouseover //, but if you just want to show it and do not want it to hide $ ('# prod1, # ​​prod2'). Hover (over);

wcf client - wcf connection closed notification -

I set up a nettcp WCF connection as a trusted session with a 7/5 timeout between a client and a server Monitoring a process on the client server is the most activity customer has a callback lifting service. If the service crashes, how can the client find it and display the "Connection failure" message? Do I need to keep a live message from the client on a regular basis from some type of client, or is there any program I can listen to on the client? My binding code is: NetCanc binding binding = new NetBeBbending (); Var trusted session = binding. Trusted session; Trusted session Competent = true; Trusted session Fixed = true; Try to subscribe to the event of a client or channel.

regex - What regular expression can be used for detecting different sports times -

I need a regular expression that detects the timer string which can be less than or equal to one minute. Then the expression should match both: 35.54 and 1: 03.24 ([0-9] +: |) [0-5] [0-9] \. [0- 9] [0-9] should do it.

asp.net - Generate Local Resource for all pages -

Is there a way or way to automatically generate local resources for all pages of Visual Studio 2010? I have about 500 pages and user controls. It is difficult for every one to generate resources for one. Is there any add on or extension in it? Shahin Write a script, no? Nothing from a resource file XML file.

Python: multiple files download by turn -

Displays the files downloaded and saved in the script loop (curl). But loop iterations are very fast, so there is no time to complete its operation in the download and saving tasks. Def run (self): Global DB C = DB Cursors (C) Execute ("" "Def run" "selection by command js_stones * stone_id limit 1" "") EC = EasyCurl (table), while (1) stone = c.fetchone () does, stone no ==: breaking img_fname = stone [2] Print img_fname url = "(" / "\ Var \\ dragon \\ \\ Jaston download Yogy_paccr \\" + Fname, progress = ec.textprogress) this is a fraction, # (url, filename) Tuples queue = qi. URL for url in url: url = url.strip () If no URL or URL then [= 0] == "#": file name = "doc_% 03d.dat"% (LAN (QEQ) ) + 1) queue.put ((URL, the file name)) # Czech args queue.queue loud, NUM_URLS "no claims URL" = len (queue.queue) num_conn = min (num_conn, NUM_URLS) 1 & Lt; = Num_conn & lt; A = 10000, ...

php - mysql:show date from datetime -

I have a field inside the table inspection, it is inspection / datatyme type of field is date time, so that the data is Yy / mm / dd hh: mm: ss . My question is, what should I do if I want to show only date from data? There are some solutions in other solutions, including data formatting in SQL or PHP. Another option is to return the date portion only with the date time column: Inspection from SELECT DATE (inspection_datetime)

svn - Is there a good practice to make a branch of a subdirectory of "trunk"? -

I have a project that has many parts Is there a good practice to do this? is? Or, I should put this branch in the branch to avoid some problems, the entire "trunk"? The only problem is, I see, this is an illusion - which part of the project was really dividing because svn lazy copy is only being brunched, the contents of the folder The following svn standards, you can only create branches tags or trunk Therefore, the following exercises are good: svn copy project / trunk project / branches & lt; Branch_name & gt; or svn copy project / tags / & lt; Some_tag> Project / Branches / & LT; Branch_name & gt; In this case you will not be disturbed about additional space on the server because it is "virtual" copies, the svn server conducts actual differences between modification.

jQuery UI Autocomplete - How to handle AJAX errors? -

I am using jQuery's autocomplete control to auto-complete the server via an AJAX call . I have implemented the search event to show a "Loading ..." animation while results are being received from the server I want to disable that animation and show a message if the server has its own complete results Failed to get (timeout or whatever), what is the best way to do this? There is a check post on the jQuery.ajaxError method, which allows you to set a default error callback for all AJAX calls;

vb.net - Getting the local instance of SQL Server rather than a named instance -

Shortly before, I wrote a web-based guestbook application that wrote that it is a database of itself. My code was very amateur, but because it was my first publication, I was very happy with it. Only a month after publishing, I realized that I had made a big mistake in the code. I have only ever associated with a specific named example from SQL Server, and this is me, if SQL Server is a different name than the frequency I specified, then it will not work. Therefore, because my users probably will not know what the name of the instance of SQL Server is running, I thought by adding a field where the user can specify that if they do, then What will happen, but what if they do not? My answer was to get the local name, regardless of name. I tried data source =. Local; , data source =. and A non-named example is called "default instance" and its use "Data Source = (Local); ..." .

Integration of escrow web services in a PHP site -

I want to integrate services into my PHP site How do you start with this goal , And which APIs will provide the basic functionality? Do you have any PHP specific advice or what? Would you recommend another service provider? This is the first time I heard about escrow, but gives me a quick scan site : This contact form to get more information: A common question:

iphone - When should uiviewcontrollers be declared as properties -

Well it has been going to annoy me for a long time so that now I will ask when uiviewcontrollers want Can be declared as property? I noticed that in many instances uiviewcontrollers, who are pushing on a uinavigation controller and have been popped not have been declared as attributes. I extended it and now every UIVIC controller is used inside my code. I is not declared as an asset (ACC memory is handled with caution), even My main view controller is also inside the appendix. However since the device was reporting a leak, I tried to declare it as a property ... The result is that, if the leak is still somewhere, the memory acquisition of the app has been halfway. So now I 'm thinking ... Is my view completely wrong and should all UIVieE-controllers be declared as proprietor? View controller views can take lots of memory, and not enough memory in the iPhone That's the spare. Maybe there is some part of the controller you want, but by the time it was rejected, I...

php - saving and reading a xml file getting from the other url -

Maybe I'm going to ask some stupid questions but I have no information about php, so I want to know I have never worked in PHP and now I have to do this, please give me some useful tips, I have an XML file coming from a different URL and if I want to save it on the server then I have to read it and it Must be removed in the appropriate format You $ dom = New DOMDocument () can be used; $ Dom- & gt; Load ('http://www.example.com'); This will load the XML from the remote URL, after which you can process it as needed to save it to your server after processing the file, you $ Dom- & gt; Use Save ('filename.xml'); $ dom- & gt; Loading a file with load () will only work if you have enabled it in your php.ini. If not, then you have to use it first.