Posts

Showing posts from March, 2014

c# - System.UnauthorizedAccessException on a simple ASP.Net File.IO operations -

ASP In .NET (hosted) I need a simple file IO operation to read data from a file and then a download. It's really simple. I am receiving System.UnuthorizedAccessException while executing the following code: System.IO.FileStream fs = new System.IO. FileStream (Path, System.IO.FileMode.Open); Locally works fine, but when I upload to a shared hosting account, I get the exception exception. What's strange is that if I enter the full path for the full file in the browser, I can see and use the file. As everyone has mentioned, this is most likely because the ASP process is up to the file directory. Security permission not found. If you can use the file through your browser, then you can read the file file instead of using HttpWebRequest. If you do not have admin control over the server, then it will understand. Here are some sample codes for using HttpWebRequest: /// & lt; Summary & gt; /// presents a request for the specified url and returns a te

scroll - How to create a horizontal scrolling view for the iPhone? -

Safari does this with web pages containing tabs. This appstore (3.0) is with the preview images of the app. Visual Horizontal Form Scroll with and focus centered on each scene. Any idea how to complete this? You need it: Scroll with a paging enabled Scene, three screen wide. There are three SubViews - L (left material, at 0,0), C (center material, at 320,0), R (right material, at 640,0) in your scroll view. Which you want to show in the beginning L to display the content that the user has left scrolling. Set the portfolio of 320 to scrollview (for portrait mode), because you want to display C initially, not l. Every time a book is finished, an integer of the content opt-screen will be multiple if you are still displaying the display (content is offset 320), then you are ok if the content offset is now 0 or 640, So you have some work. If the user has left the scroll - you have the same view hierarchy, but now ScrollView is showing L compared to C because the content

timer - Run a task at specific intervals in python -

संभव डुप्लिकेट: समय-समय पर पृष्ठभूमि कार्य के रूप में चलाने के लिए फ़ंक्शन को शेड्यूल करने का सबसे अजगर तरीका क्या होगा? कुछ विचार हैं, लेकिन वे सभी मुझे बदसूरत लगते हैं और अधूरा। जावा वर्ग में एक बहुत ही पूरा समाधान है। कोई भी ऐसे अजगर वर्ग के बारे में पता है? एक आसान ईवेंट शेड्यूलर है जो आपको आवश्यकतानुसार कर सकता है। यहां दस्तावेज़ीकरण के लिए एक लिंक है:

jogl - OpenGL light flickering when I update its position each frame -

I am learning OpenGL and just starting to come in the light, I enable light and light 0, my surroundings Setting / spreading / specular in default values ​​in my init method, and then each frame I do something like this: glMatrixMode (GL_MODELVIEW); GlLoadIdentity (); // Make my 3-person camera conversion and Rotations Glittefowa (GL_Lite 0, GLoposion, {0.1 F, 0.0F, 0.0F}); (Note that this is a bit wrong, I am writing in Java using my app JOGL, so I live with each line for better readability for C ++ people. L. and GL.) Then I have to move on to draw my triangle and this way, and in the end I do a glFlush (). The strange problem is that when I run my application, light flicker. There is no other call for glLightfv in my entire program (as above, as mentioned above, call in my init method, which I have been debug to make sure that it is run only once ). It looks very fast and shows the tearing of the screen. I do not glDisable (GL_LIGHTING) at any point in my visual image;

In Perl how do you dynamically pick what method to use as a callback? -

In Perl, callback or code is too trivial to specify references if its package is known: < Pre> package foo; Subfoo {print "foo" in} # and then package main; The sub-ring (my $ code = shift; $ Code- & gt; ();} Buzz (\ & amp; FU :: FU); and in this Foo < / Code> prints. Let's say that you have an object, sometimes such a trivial, like this: package fu; You can see the method using the above method (\ & Amp; package: method) and call it package main; My $ foo = Foo- & gt; ; New (); My $ ref = \ & amp; Foo :: bar; $ Foo- & gt; $ ref (); But sometimes (well, often) Make you clear I do not know, I know that foo , bar , Baz , and they have their own blat The way you want to get the context of the proper method depending on the object instead of the package. How can you go about it? my $ ref = $ obj- & gt; 'blat'); If the $ ref is down, then your object can not blow off. If there is no $ ref, the

php - What is the purpose of $_POST? -

I know that this php is global variable but I'm not sure what it is? I also read from the official php site, but did not understand. You may want to read the basics of PHP, try reading some starter tutorials. $ _ POST There is a variable to get the data sent through the web form. Here is a generic page in which $ _POST is described and how to use it from W3Schools: Originally: In this way your first Use HTML on the page: & lt; Form action = "submit.php" method = "post" & gt; Email: & lt; Input type = "text" name = "emailaddress" /> & Lt; Input type = "submit" value = "subscribe" / & gt; & Lt; / Form & gt; then submit. Use something like this on Php:

c# - Calling .Parent from a form causes textbox problem, MDI -

I want to create a form in some other form. The problem is that this application is already an MDI, and you can not nest to MDI. If I do a child then brahalf Parents = Parents Some controls behave oddly. For example, if you click on the text in the text box, the text cursor usually appears on it where you clicked, but it is not, it goes to the end of the text. Any suggestions? You do not host content in user control Can one form instead?

Referring to adjacent cells in OpenOffice.org BASIC -

I am trying to calculate F-score (formula 2 * a * b / (a ​​+ b) Using OpenOffice.org Calc, and for the previous two cells in the same line, would require one more B. My problem is that when I try to define a function in OpenOffice.org Basic I get an error ADDRESS and indirect methods have not been defined. How would you define a function, when adjacent cells can be referenced on the cell? Edit: A little explanation I'm actually looking for in a way that if a function is run in cell C1, then if a function (let's call it F) is done automatically by B1 and A1 Receives value. In fact, returning results should be returned without specifying the calling = F () in C1 without 1A and B1. In addition, if it can be run for a whole column, then it will be very helpful. cell value: A1 1 b 1 2 C1 = (2 * A1 * B1) / (A1 + B1) Everything goes in C1, in which = sign also included The = symbol specifies the contents of the cell as a formula.

svn - TeamCity: labeling VCS (Subversion) with an artifact's file version -

I would like to create a label in the SVN with the version of a file I already The name of the artwork is changed by acquiring the file version of the main executable produced by the same build. Such as: MyInstaller-1.2.3.1.exe . Now I want to create a tag in the SVN named /tags/1.2.3.1 . I could not find any way to set such a thing in the labeling pattern. Currently labeling "% system.build.number%" How do I do this? I can not find the TeamCity Professional version 4.5.3 (build 9035) As someone has mentioned, you can output the build number during the execution of the build script, and the team can use that output to label the output. For example, I label my creation with the same version I had inserted in AssemblyInfo.cs. A part of that version (major, minor) is already in the file, the second part (build, modification) is added during build. From my MS Word script: & lt; Target name = "setup" & gt; & Lt ;! - Version.txt inclu

f# - How do I create a job queue using a MailboxProcessor? -

I am trying to model an asynchronous work processing structure using the mailbox processor. Start, stop, stop, and resume my job processor to my needs. Can I create a break / restart functionality with the mailbox processor? Also should I be able to stop and start? I am trying to model after the Windows service I have a system in C #, which has been implemented using Row / Threads. I was looking for design options, when I saw a mailbox processor I believe I can use it but it can not figure out how to handle the above scenarios, is it possible to achieve this functionality? Sure :) Just keep jobs in an internal queue and calculate through the queue when the job processor In any other mode, the processor is in start mode, just enter new jobs until the processor goes into start mode. Type 'a msg = //' | Get started | Stop it. Stop (Unit -> unit) type of efficiency () = UB = mailbox processor. Start (Funniest Inbox -> REC Loop Position (Jobs: System.clubs.jenori

.net - SQL Scripts from dotnet with transactions -

I am trying to execute SQL scripts from dotnet (c #) but can be geo statement in SQL scripts and I would like to be able to wrap the collection of scripts in one transaction. I got the question and the accepted answer I got to deal with the Geo Statement, but if I use an initial behavior then it will be Invalid Operation Exposure on the "New Server Connection" line . SqlConnection connection = new SqlConnection (connectionString); Connection.Open (); SqlTransaction transaction = connection.BeginTransaction (transactionName); ServerConnection Server Connection = New Server Connection (Connection); I'm running it against SQL Server 2005. I found a way, after trying several combinations, the simplest thing done ... < / P> Good assuming that you are using TransactionScope object (different transaction scope = new transaction scope (transaction scopap Essentials, New Transaction Options {Isolation Level = Isolation. SqlServerInstance.ConnectionCo

deployment - Visual Studio - Resource (CSS/JS/Images) sharing between web projects -

संभव डुप्लिकेट: मैं कई वेब परियोजनाओं में वेब संसाधनों (सीएसएस / जेएस / इमेजेस) का आम पूल साझा करने के लिए देख रहा हूं। मैं क्या करने की उम्मीद कर रहा हूं, संसाधनों के लिए एक प्रोजेक्ट फ़ाइल बनायी जाती है, उदा .: सामान्य। वेब संसाधनों , और इसे Site1 & amp; के लिए विजुअल स्टूडियो समाधानों में शामिल करें। साइट 2 । जिस भाग को मैं हल करना चाहता हूँ, उसे वीएस डेवलपमेंट सर्वर के साथ काम करने के लिए सेट कर रहा है (जो उस पर चला जाता है F5 ), और किसी भी बाहरी तैनाती की चिंताओं। इसलिए हम निम्नलिखित वेब निर्देशिका के लिए मैप किए गए निम्नलिखित परियोजनाओं के साथ हवा की उम्मीद कर रहे हैं: < Li> साइट 1। वेब - / सामान्य। वेब संसाधन - / संसाधन IIS में, यह होगा बस एक वर्चुअल निर्देशिका हो अब तक वी.एस. डेवलपमेंट सर्वर के साथ, मैं केवल यह करने में सक्षम हूं: उन्हें अलग-अलग बंदरगाहों पर तैनात करने के लिए (बहुत से उपयोग नहीं) प्राप्त करें एक पोस्ट- मेरे प्रश्न हैं: अन्य विकल्प क्या हैं? आप सबसे उपयुक्त, उपयोगी और amp; प्रबल होने योग्य? (कारण मैं

uiimagepickercontroller - iPhone camera images are rotated when uploaded to web -

I am using UIImagePickerController to take a picture in Portrait mode on iPhone and save it on the Web. The photo appears in the picture on the phone, but rotates 90 degrees on the web. If I download the photo and see it in preview (Mac) or Photoshop (Mac or PC) then it is again in the picture. In Windows Picture Viewer (PC) it has been rotated in the scenario. Do I need to apply rotation transforms to image data before uploading? Do I have to remove that meta-data which is rotating it in Photoshop and Preview? The problem was that image rotation was added in the form of XF data in the photo, which is done by most browsers. There were two solutions that were not used: Apply rotation on the server side. I was using the Ruby plugin paperclip (by Thottbot) and the model had to include the auto-and-converter option in the has_attached_file command: is_tacket_file: photo,: convert_options => {: all => '-Outo-Orient'} Rotate the photo within the iPhone app. Th

ASP.NET How do I add javascript function to a control? -

I have some user controls that I want to add some client-side functionality. Say 1 controls have a bunch of hidden areas and checkboxes. When a checkbox is checked, it sets the hidden field to 'yes'. How can I get that control in the hosting control or page, and I can call some functions on that hidden area Will return the value of? If I have some of these on the page, I like being able to: var option 1 = $ mill ('options1_id') if (options1. Dirty () = 'yes') // get whatever option 2 = $ ('options2_is') if (options2.dirty () = 'yes') // whatever I'm looking for something like this: but I'm not sure how to use the object from the parents. Thank you, Mark I take this issue in you Is that ASP.Net can confuse the ID of Control? In the situation that I usually do, it either takes care of how the id is entangled for simple pages, and according to this is to write javascript or for more complex scenarios, .clientID each p

ipc - Interprocess Mutex In Perl -

I have a Pearl CGI program that executes under mod_perl. Within the program, I would like to stop a resource from reaching many processes at the same time. # Semaphore Start Code # 10023 is the unique ID, and this ID different Apache process. # 1, Only one semaphore is being made # 0722, as all the processes will be implemented under the Apache account. Therefore, they will have all '7' privileges with my $ sem = new IPC :: Semaphore (10023, 1, 0722 | IPCCATAT); # Code (1) # 0 set (one and only one) The value of semaphore 1, as I want to use this sequor as a mute x. $ Sem- & gt; Settle (0, 1); The problem is: How can I code (1) to create a new Alexander only when the semaphore 10023 id is ever before Can not be produced by the same process or other processes? How can I execute the code (2)? For the first time, do I create a CD with the 10023 ID? A semaphore will only be started one time. Another way is to create an empty file to lock the object. However, i

Can I provide a download button for content in an iPhone app? -

I am working on an iPhone application called IYoga-Classic which will provide high quality video for instructions. I want to add a download option to the video so that users can download their desired posts even when they are offline? Is there a way to do this? Sure! Create a button, and in its implementation, download the content later, when the user goes to see it, see that it has already been downloaded and it is showing what it is.

javascript - Basic Crud Application Using Php , Prototype.js and Scriptaculous.js -

I want to develop web applications using php and javascript. Beliefs should have functionality, check data (by table), sorting and pagination on page. But my application should be created on php, prototype.js and scriptaculos.js. Due to the issue of virus I do not want to use jquery and similar tools. What prototype.JS and ScriptCoolos.JS have any tutorials on? Please guide me thanks OK, you can try and . / P> Curiously, what type of virus can you do with jQuery? It is a simple JavaScript library, you can also use a hosted Google ... You can discover how the virus such as this?

regex - how to match something with regExp between roundbrackets -

मेरे पास यह है: var regExp: RegExp = new RegExp ("((। ? *)%) "); और ( और %) के बीच सब कुछ चाहते हैं: स्ट्रिंग ऐसा दिखता है: (- 24%) < / कोड> मुझे अब एक वापसी वापस मिल जाती है "(-24") और एक समाधान खोजने के लिए लंबे समय से खोज की है लेकिन उसे नहीं मिला। आपको कोष्ठक से बचने की आवश्यकता उपयोग: var regExp: RegExp = new RegExp उदाहरण के लिए, "स्ट्रिंग" (-24%) "दिया गया है," यह रीजक्स "-24" पर कब्जा करेगा ("। (*। *?)% \\)"); संपादित मेरा बुरा। भूल गया था कि जिस तरह से इसे दोबारा भागने की आवश्यकता होती है regex बनाते हैं।

user interface - How to select multiple folder paths using FolderBrowserDialog control in VB.NET -

Is it possible to select multiple folder paths in a browse dialog box in VB.NET? Please let me know that there is no link or reference. Any multiple selections < / Strong> The folder browser component does not allow multiple folders to be selected. So this is not possible. Fill a directory with notifications, it is possible to select multiple nodes.

delphi - Mouseover hint for TChart series value -

I am using a TChart in Delphi 7, and I want to display charts sometime. I am using the following code to set the chain value to a database query: chart1.FreeAllSeries; Chart1.SeriesList.Clear; Chart1.AddSeries (TBarSeries.Create (self)); TBarSeries (chart1.Series [0]) BarStyle :. = BsRectGradient; Stop starting with Query 1; Executed; While EOF does not start chart1.Series [0]. Add (field 'flags' ('sum_actual_days'), Field Astrstring ('contract_no')); the upcoming; End; End; Each time (value) is now showing both the label below the bar and in a yellow rectangle above the bar. Rather than repeating the amount of label twice, I have some additional information from the query that I would like to show above the bar rather than the label (or, preferably, as a mouseover signal). Can it be done with TChart? And how ...? This can be done with a TChart using the onMouseMeave event of the chart. Something like this should start with you: Process TForm

python - Making a wxPython application multilingual -

I have an application written in wxPython, which I want to make multilingual. Separate all UI text in a message.py file, and translate text to its Using I am very interested in the other side and I'm not getting any benefit in going on the gateway path, in another way I can not keep all my messages in the code in one place. So, if I need to change a message, then there is no need to change the code in the case of gettext Switch to me as might be suspected that msg- constants I only message instead of converting continuous wrapping message to the original message instead of Wx.MessageBox (_ ( "Hi Stackevvrflo!")) I wx.MessageBox (messages.GREET_SO) Is Better, Is There Another Way In Gatetext Method And Damage? And is there any third way? EDIT: Gatetext language files may also be tied to code, and if I want two messages in English but one is different in French it seems that for French English, There is a more subtle translation for different sc

java - How to implement a custom cell renderer for ScrollTable in GWT -

I have used widgets for GWT and I need a custom cell renderer so that I separate this code separately The rest of the app can I would like to use generic if possible to secure this cell renderer as long as a value and calculate something before displaying the result. There is no such good example on how a custom renderer can be implemented. I'm not sure about ScrollTable, but if you get the PagingScrollTable from GWT incubator < Code>, you can use columnDefinition for AbstractColumnDefinition & lt; RowType, ColType & gt; . Then you can call cell renderer & lt; Bread type, calltip & gt; can override and apply it: columnDefinition.setCellRenderer (cellrendender);

c# - How I can use MVVM with CRUD operations? -

I am trying to understand the basic MVVM design approach, but I do not understand that working with CRUD Where are the best tips to operate? a. Create a view model with the essence of properties and see how to apply the CRUD methods in this modal? Create the ViewModels base and then add the attribute for the ObsmableCollections of Viewmodel. Did you tell me, how can you do this, please !. With MVVM, the model should have contacts with all business logic and data sources. will expose your lost data and functionality that is required for viewing For example if you had a button on your view that an item was removed from the database, on the button view modal An ICommand would be bound for example. Once ICommand implements, to communicate with the model of implementation of this order, make sure that the item has been removed. View MODEL is populated with new data to allow visual updates.

Bash: Getting standard program for file type -

A web radio station has a background shell script to open the .m3u file. So I want to know inside the script, what is the user's program to open such files. At present, they have to set the environment variable $ player, but obviously this is not a good way. Optional: Is there a command that takes the file name and searches itself for the appropriate program to handle that file? Such as file , for example, open-file my_playlist.m3u the script should be portable, at least Run on Ubuntu, Debian and Windows / Signin machines. Cheers, This should be done differently on each platform In OS X, the "Open" command will do what you want. This is messed up in Linux, because the desktop environment (gnome or kde) keeps its list of applications to run for each file type There are two files that you have to do with Ubuntu / Gene that holds this information: ~ / .local / share / applications / defaults.list and ~ / .local / share / applications / mimeinfo.cache

iphone - A Table Within A Table -

I'm quite new to programming and I'm working with Objective-C. I am trying to program the app where you have to click on the cell with the UITableView , which will bring you another option with another UITableView However, I have had only problems in popularizing this second UITableView . What is the suggestion for doing this? Do I need to create new classes for every new table? You can also view in a UI navbar if you are going to navigate through the tables and You want to go back and forth between the two (once you connect it all properly, UINaviagationBars can be great, because you do not have to worry about the level in your tables, it is

c# - Is it possible to set the actual SQL that the entity framework provider will execute? -

My entity structure provider (Corlabs / MySQL / Derart) is creating ridiculously slow queries. Is it possible to execute the actual SQL query for me which will be executed? Thank you It's weird, I was just looking. Halfway through webcast, they showed the same query generated by the script written by EF and Linq-To-Sql generated; Linq-to-sql generated script was way more efficient Now I do not know the use of linq-to-sql is an option for you, but I thought you should know, relating to your question In the same way, I do not compel EF and Linux-to-SQL to defeat the whole purpose of EF and Linux-like-SQL, like your own SQL command, to avoid the TSQL programmer writing in the wire. ?

Allowing users to input JavaScript in a page and sharing it with other users? -

I am allowing users to input JavaScript into web pages and share those users with other users. Let me do What could be the worst? Can I make it 'safe' in any way? As described by others, if Javascript is displayed only to other users and not played It will be completely safe (do not take into account to run the course manually in the account). If code is run, then there may be some bad things. One very bad thing is that your site is used to make a so-called puppet. The puppet is similar to the boatnet but uses the browser instead, and single puppets can be relatively small (which separates puppets from boatnets). Puppetry can be used to deny the delivery of service attacks, worm propaganda, spamming and more. More about puppets can be found.

java - JFace question: How do I select all items in a ListSelectionDialog? -

I create a Jeff's list selection dialog as follows. GetActiveShell (), list & lt; SomeClass & gt ;, New Arraycentent Provider (), New LabelProvider (), ""); Select the final list dialog dialog = Select new list dialog (PlatformUI.getWorkbench). // $ Non-NLS-1 $ Dialog. Sitelit ("Dialog title"); // $ Non-NLS-1 $ Dialog. Settlements ("Some Messages"); // $ Non-NLS-1 $ Dialog open (); And the dialog looks fine. However, I want to select all the checkboxes. How do i do this select list elements ... select ... dialog .set your element selection (elements To select);

How can I improve WMI performance in .NET? -

I have inherited the code that makes many remote WMI calls when I repeatedly stop execution and call-stack I see it almost always in a ManagementScope.Connect () call. Despite limited testing and error, I have not yet won a big win in improving the performance of WMI calls. I have tried caching the previous results, have reused the connection, and to avoid the dangerous " select * ". This has not given me performance improvements which I want. I am interested in understanding the impact of the environment on WMI performance, but the code needs to be run in different types of environments which are probably beyond my control. If any, then what happens and do not use the performance oriented WMI in .net? Not my area of ​​expertise, but it may be some help: "In this blog, I will talk about several different ways of connecting a WMI to many remote machines, in which there will be a difference between several WMI operations and their performance."

help me convert Processing code to C# -

I am trying to convert this code from Java to C # (located) my Has some WinForm experience but there is not much to do with pixel drawing on a Winform applications. I think I can convert most of the sub methods, I feel quite confident. I will just dump the ambiguous pixels on the screen Any help or device to be changed from Java to C # will be very recognizable // Buddhabrot // J.tarbell January, 2004 // Albuquerque, New Mexico // Complexes. // Based on the code given by Paul Bourke // Astronomy / Processing 0085 Beta Syntax Update // JTirble April, 2005 Intel Dim = 800; // Screen Dimensions (Square Window) Int Belout = 200; Number of iterations before collateral // IT plot = 10000; // Exposure Values ​​[] Exposure = New Int (slow * dim) Plate number to take per frame (x30 = Plot per second) / 2D array to execute; Intex Exposures; // Maximum Exposure Value Time = 0; Int exposure = 0; Boolean drawing; PFont metaBold; // Main -----------------------------------------------

ant - executing eclipse.buildscript task on a feature misses the fragment -

After I have a feature called foo, a plugin called foo and one piece is foo.win32.x86. I need to be able to call the buildscript in an ant file on a feature and this will create build.xml for the feature, plugin and piece; However, get.xml for feature and plugin i get foo feature.xml: & lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Feature id = "foo" label = "% featureName" version = "0.0.0.200906251500" Provider-name = "% providerName" plugin = "foo" & gt; & Lt; Install-handler / & gt; & Lt; Description & gt; % Details & lt; / Description & gt; & Lt; Copyright & gt; % CopyRight & lt; / Copyright & gt; & Lt; License url = "license.html" & gt; % License & lt; / License & gt; & Lt; Plugin id = "foo" download-size = "0" install-size = "0" version = "0.0.0" /> & Lt; Pl

internet explorer 7 - Programmatically disable all IE7 add-ons EXCEPT one -

Is there any way to do this 1) All add-ons disabled for an IE session (Like-phone option) 2) Then only enable 1 (or some) add-on I want to do this with a .cmd file Other nearby but Not quite a choice, you are welcome. Thank you! You can enable / disable control by twiddling some bits in the registry: P> Find it: HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Ext \ Settings \ {CLSID} ... where {CLSID} It is the ID of the control you want to change, in which each key will have the following DWORD value: flag If the key exists and at least Extension is set if critical bit is set Then, write a script to do this using the REG command.

resources - (Java) Good Libraries and What they are -

We compile a list of third party Java libraries that we like and / or useful. I will post my preference as answer < P> Google archive rule predicts you, biomimas, synchronization wrappers around java.util archive, etc.

c - Possible to avoid including whole standard header file because of one method? -

मैं "सी" फ़ंक्शन कॉल करना चाहूंगा फ़ैब्स (डबल); मेरे कार्यक्रम में कई बार, लेकिन मैं संपूर्ण हैडर फ़ाइल को शामिल नहीं करना चाहता क्या यह संभव है? यह पूरी फ़ाइल को शामिल करने के लिए चोट नहीं पहुँचाता है। आपके निष्पादन योग्य में संकलित नहीं किया जाएगा।

java - Best way to get value from Collection by index -

What's the best way to get value from java.util? Compilation by index? You should not have avoided talking about a archive instructions Especially because it does not make sense for specific collections. For example, the order of a list is in some form, but not set . Archive & lt; String & gt; MyCollection = New Hashet & lt; String & gt; (); MyCollection.add ("hello"); MyCollection.add ("world"); {String AMM: Microlication} for {System.out.println ("elem =" + elem); } System.out.println ("myCollection.toArray () [0] =" + myCollection.toArray () [0]); gives me: elem = world elem = hello myCollection.toArray () [0] = world < P> when: myCollection = new arreelist & lt; String & gt; (); MyCollection.add ("hello"); MyCollection.add ("world"); {String AMM: Microlication} for {System.out.println ("elem =" + elem); } System.out.println ("myCollection.toArray

How to make a customizable user survey in Django -

I'm creating a system for a company in which the satisfactory level about various things, among other things Should have information, I've made it work properly using a certain model with definitive questions and answers, but I'm sure they need to change or add questions. That's why I wanted to create a system where users custom QR code can create schemas RATING_CHOICES = ((0, and "good") , (1, u "bad"), (2, u "danno"),) Class EvaluationShame (model.model): title = moles. Charjfild (Adiktm_lambi = 200) Class Evaluation (Modlkmodel): Doctor = Modlkkarfild (MAX_LENGTH = 200) Agency = ModelskCharField (MAX_LENGTH = 200) Plan = models.ForeignKey (EvaluationScheme) class EvaluationQuestion (ModelskModel): Q = models.CharField (MAX_LENGTH = 200) evaluated = models.ForeignKey (EvaluationScheme) def __unicode__ (self): return self.question class EvaluationAnswer (models.Model): evaluation = models.ForeignKey (evaluation) Q = models.Foreign

jquery animate -

I have to use animated properties for less than general activity. I'm new to jquery, so I do not know Exits right from the box for jquery, but lets see it. $ ('#zoom'). Toggle (function () {img. Properties of removal ("height"); $ ("# draggable"). Draggable ();}, zooming the image by removing the height barrier And gives the image its overall appearance. Can I animate this transition? < Code> $ ("#zoom"). Animate ({'height': '1024px'}, {'queue': false, 'period': 2000} To pass the height you have to know at full resolution you can try to pass 100% ("Height": '100%'}, {'queue': false, 'duration': 2000} / Pre> More information about jquery animation can be found.

java - Is there any game engine in Scala? -

I wonder if there are any game engines written in Scala or are easily available from Scala? All Java gaming engines are easily accessible due to easy Java integration. / li> How to start coding a game in Java is a good presentation that applies simultaneously. Should be easy as ointrepe as you can add something to feel good scala for, as stated by Matram,

wxpython - Attributes of CommandEvent -

wxPython में get () कमांड इवेंट में विशेषताएं हैं, जैसे कि getid ( ) wxCommandEvent :: GetClientData wxCommandEvent :: GetClientObject wxCommandEvent :: GetExtraLong wxCommandEvent :: GetInt wxCommandEvent :: GetSelection wxCommandEvent :: GetString और इसके सुपर वर्ग से विरासत में मिला है: wxEvent :: GetEventObject wxEvent :: GetEventType wxEvent :: GetId wxEvent :: GetSkipped wxEvent :: GetTimestamp

design patterns - Forcing interface implementations to implement hierarchy in c# -

I am writing an interface for a new project and I would like some advice. I have a square that is a subclass and has a subclass in this tree of this class like this: class car {wheels wheel; } Class Wheels {Rims Rim; } To make it so easy: There is a wheel in a car and one wheel has a rim. So I would like to emphasize this hierarchy in its interface implementation of ICR, Ivehils and Irim. So I did something like this (in C #): ICW (IWheels Wheel;} IWheels {IRims Rim;} And I have an error that I can not have a field in the interface implementation, so it has started me that maybe this is the wrong interface design. I want to emphasize the interface implementation to implement such a hierarchy. Perhaps this is another way to design patterns and prepare the best methods. ? Can you please tell me how to design my system so that the object is compelled to implement this kind of hierarchy? Maybe my question is not accurate or I am missing some important information.

javascript events - IE8 only raises mouse click over text in table cell -

I have a problem arising in IE 8, but not in IE7 or in IE8 compatibility mode. In IE8, I can only raise a mouse click event when the mouse is on a text in a cell cell. If the mouse is on an empty area in the same room, the mouse click event has not been raised. The tables are dynamically generated running in browser quirks mode. The code works well in all browsers. I was just thinking that if you know anything with IE8, this can be clicked due to the mouse click, when the text in the cell The table is fixed and the table is not complete, the table determines the layout with the specified width for each column. I've found that this is because the cell is transparent. Try setting the background of the cell in any color. Once I did, I expected to get the click ...

Better CSS in .NET? -

I'm feeling a bit jealous of innovation, I'm looking around the CSS from Python and Ruby community. For example, see: He said, my question is two times. Can this library easily "port" through IRRRUB and IORAPithation, so can I write to MSWUILDD or HT Operators in C #? Besides, should I have trouble with this, the Net community is already working on it? Update: Since I wrote this basic question, there have been a lot of work in this space in the .NET community. See the following tools that provide support for less, SASS and even coffee scripts: - My attempt to play at least for .NET.

static analysis - What's wrong with using System.err in Java? -

I'm using your Java code Enerjy () static code analyzer tool it tells me that the following line: < / P> System.err.println ("That database was ignored"); Bad because it uses System.err is the exact error: "Use of JAVA0267 System.err" What is wrong with using System.err? It is an observation that in the old time when no widely available / acceptable entry frameworks, everyone used to print error messages and stack marks in the system err. This approach may be suitable during the development and local testing phase but is not suitable for the production environment, because you can lose important error messages, due to this, today such code has been detected in almost all static analysis tools And it has been marked as a poor practice (or similarly named problem). The logging frameworks provide a structured and logical way to enter in return, in the form of events and error messages, they can store messages in various constant locations (log

Paging in Entity Framework -

In the unit framework, using LINQ units, database paging is usually done in the following manner: int total vacancies = entity context Context UsSat.Count; Var list = EntityContext.Context.UserSet. Skip (initial record number). Move (Page Size). Ollist (); This is the result in the two database call. Please tell how to reduce it in a database call. Thank you. What's wrong with two calls? These are small and quick questions that the database is designed to support many small questions. Developing a complex solution to do a query for paging is not letting you pay more.

multimedia - iPhone Dev: MediaPlayer not playing video (only audio) on subsequent plays -

I am working on an iPhone application that uses a media player to play some different video. It works very well for the first video, but when I want to play second, the screen is black and only audio plays. Do anyone have any idea why this can happen? This is my code: - movieURL {NSBundle * bundle = [NSBundle mainBundle]; If (bundle) {NSString * moviePath = [Bundle Pathfound RSOrs: vidName ofType: @ "mov"]; If (moviepath) mMovieURL = [NSUr file URLWithPath: MoviePath]; If (vidName == @ "Vid01") vidName = @ "Vid02"; Else if (vidName == @ "Vid02") vidName = @ "Vid03"; } Return mMovieURL; } - (zero) onHitButton1 {mMoviePlayer = [[MPMoviePlayerController alloc] initWithContentURL: [self movieURL]]; MMoviePlayer.movieControlMode = MPMovieControlModeHidden; [Mmvplayer play]; } I thought it. I need to release the media player before calling another video. Code example: - (zero) onHitButton1 {[mMoviePlayer release]; MMoviePl

Converting from globalized date/time format (maybe ISO8601) to SQL Server datetime type -

What is a stat format that represents a data time that is a SQL Pars and an offset (EST -> UTC example for). I have a string from the user like: declared @ P1 varchar (50); Announce the DTKDet Time Datamyme; Set @ p1 = "2009-06-26 14: 30: 00.000Z-4: 00"; - Can be ISO 8601 - What do I do to convert @ P1? Set @utcDateTime = - should be "2009-06-26 18: 30: 00.000" I want to be able to convert the string to its UTC equivalent and it will be periodically I want to store on the farm. It is such that: select @ utcDateTime should generate it: "2009-06- In other words, I want to store a date time whose first string is the value of '2009-06-26 18:30'. In addition to this, we must believe that the server is not in the same timezone as the user (hence we can detect offset (gettime)), getutctime (). > > I have tried to use the convert (...) and cast (as in the form of day-to-day), but there is no luck. Is there any way to do this in

java - What does UnmappableCharacterException mean? -

reads: There are two common types of decoding errors if the input byte sequence this charset If the input byte sequence is legal but can not be mapped to a valid Unicode character, then unmatched character is considered if input is not valid for malformed has gone. I understand the concept of wrong forms, but what does an unmappable character mean? I thought that Unicode contains all possible characters, then why a legal byte sequence can not be copied to the Unicode character? Although Unicode can represent a great number of characters for a large number of languages, it definitely In other words, characters are set with characters, for which there is no mapping in Unicode.

Adding custom property attributes in Entity Framework code -

Is there any way to add custom properties of properties in EF code? The only thing I can see as a commendable solution will come with a custom T4 template. However, due to the nature of the attribute, it would be impossible to determine the exact attribute parameter per AF property. You can do this by specifying a metadata type that reflects the properties and only attribution is used to. / P> [Metadata type (typewriter)] Public Partial Class Dinner {} Public Category Dinner_validation {[Required] Public String Title {get; Set; }} Steve Smith blogs about it. Unfortunately, the above approach is brittle to reconstruction. Another option is to use new Poko institutions, these skeletal-time codes are completely escaped from generation to generation as far as I can tell. I have not used them so far, so can not comment about any loss or business.

iphone - Two finger swipe gesture -

Some sample code for the apple is under "detect swipe gestures". I should find two swipe gestures for my application but I do not know where to start. Surprisingly, I was not able to find examples of any sample / similar code. Is there something natural about the code? Any links or suggestions that you are ready to share will be great. Two finger swipes (assuming swipes are moving in the same direction) Regular swipe Detecting is similar to UITT * touch = [touches any object]; You have to touch each in the NSSet touch . You want to keep your own active touch, so you can track them A simple method is made by making a single piece below: NSArray * ActiveTouches; NSArray * ArrayOfStartTouchPositions; NSARRA * ArrayoffquantTouchPosition; The array can help you track which one touches which starts the current state. When you touch the end of the event, you have to remember to remove the array items. This simple method has additional hydrostring benea

swing - How to do file uploads via a Java applet? -

In particular I can how I do: Display a button that users click You will browse through a selection of computer and file show a progress bar Once uploaded files or store files to a location on the web server on which the applet Running Any thoughts? And yes, I should do this in a applet, and I'll make it a trusted / signed applet, it will see it all. is I had to do, with very large (4GB +) files. The piece of code below this Google Answers post helps me a lot: This shows a way to upload files that are selected in small bits, so that you can easily use a JP display Able to

c++ - DirectShow stop/resume live stream -

I am using DirectShow to run audio / video files in my application. I use the filter graph and the media to create / pause / stop the interface. It works fine for local media files, but causes problems with Live MMS streams. If I call on a live stream, however, if I say to start the stream again, then nothing happens. The graph generates an EC_COMPLETE event, but the video no longer plays. After that, the call will resume the stream where it left, but eventually it will be closed. It appears that instead of synchronizing with live stream, the data in buffer will have to be backed up. Do anyone know what to start playing without a live stream and rebuilding the filter graph? The behavior indicates that one of the filters in the graph indicates a small cart behavior if you feed again. If you want to be able to play with, you have to change the filter. Also, there is no good source filter for remaking MMS: // stream which is obsolete itself as a protocol. In Windows 7, Windows M

.net 3.5 - Naming conventions for extension method namespaces and sponsor classes -

What naming conventions are you using for namespaces and sponsor sections? (I.e. classes that catch extensions law definitions) Is there a standard / recommended NAT Framework Naming Convention? ("Framework Design Guideline, 2nd Edition" book guides only not to use the name). For namespace - I will focus on the standard framework guidelines for namespace names. Put the expansion methods in a namespace, where they will usually be used / connected in a meaningful way, and avoid having extra namespace for this. For the sponsor class - in this case, it is quite unimportant. I try to choose the name of a class which is meaningful, but does not seem to have certain guidelines. The important thing here is that the sponsor class is never actually used directly / is seen as long as the namespace is included to the user of your extension methods, the extension method is found correctly. . I privately use a lot like this for my extension methods, but Microsoft does not fo

javascript - jQuery Intellisense using something other than $ -

I am currently using two libraries (prototype and jquery), in this way I have implemented the jQuery nozzle method And it's set equal. $ J: var $ j = jQuery.noConflict (); The problem is, jquery-1.3.2-vsdoc.js now does not recognize my $ j as a valid entry logic. Is there any way to change this? I played with jquery-1.3.2-vsdoc.js and had no results. Thank you! jquery-1.3.2-vsdoc.js on line 51 < Code> jQuery = window.jQuery = window $ = Function (selector, context) with { jQuery = window.jQuery = window. $ = Window $ J = function (selector, context) { You have to lie a little bit in the studio because the source of VSDok no longer matches the execution source, but it should be a secure hack .

c++ - Trouble with QxtGlobalShortcut -

I am trying to set global shortcuts to use QxtGlobalShortcut for my applcation. Here is my code: QxtGlobalShortcut m_hotkeyHandle; M_hotkeyHandle.setShortcut (QKeySequence ("Ctrl + Shift + X")); M_hotkeyHandle.setEnabled (true); Connect (& amp; m_hotkeyHandle, Signal (active), this, slot (hotkeyd ())); Zero MainWindow :: hotkeyPressed () {QMessageBox :: Information (this, "Good", "Hot Key Trigger", "Yes", "No"); } But after the applcation started I found: Failed to register QxtGlobalShortcut: "Ctrl + Shift + X" and my program is not activated after pressing the hot key. What should I do? There was a bug in the Qxt-lib 0.5 with the shortcut. I talked to the developer and I knew that I needed to update the library just from Dev-branch (0.5.1 work).

sql - TSQL How to update column from row in same table? -

Say I have this table schema. ID ADNO Amount I Obtain This Data ID ADNO Zodiac 1 1020 100.00 2 2040 50.00 How do I write a TSQL update query to update the Exton 1020 Amount column with the amount? From 2040 ?? Malcolm Use the nested selection: updated tablanem set zodiac = (where the tablainem from ID number = 2), where AccNo = 1200 Obviously if your situation is different, then suit you, eg if AccNo unique , You can use it.

website deployment - svn checkout and update without the .svn directory -

I have a website under svn and I currently want to patch the live website in the repository (i.e. effectively Calling svn update) on the live website), but I do not want the SSN directory in each folder on the production website. What is a way to set up SVN so that version information is not in the .svn folder with the same directory as the file under version control? You can make a work tree and visit and update a project in this manner (accordingly), I basically want to be able to do something like SVN In svn export similar to a checkout Works but without the .svn directories However, you can not do such a composition as updates because it is not a svn work copy. You can go to the web server with the .svn directory and checkout + update method.

expires.url configuration for static images in lighttpd -

I am trying to avoid repeating the images again and again from my web app. I use lighttpd to complete the static content, and I have ended up like this configured: expire.url = ("/ Static" "=>" It seems that work is being done for JS and CSS, which are steady / stable, which will reach "1 year", "static / images" for 1 year " 1 year access ") But it does not really work for image files - it seems that the browser still requests them repeatedly, not receiving a '304 revised' response . relevant information: ** liability: ** Termination: Tuesday, 22 June 2010 13:07:38 GMT Cash-Control: Max-Age = 31104000 Last modified: Thursday, 25 June 2009 13:00:11 GMT Date: Sat, 27 Jun 2009 13:07:38 GMT ** Request header **: If modified-Since: Thursday, June 25, 2009 13:00 : 11 GMT Cache-Control: Maximum-age = 0 Completely normal. The service of an http 304 with no body is still very fast compared to the full ima

Is fulltext search enabled on Google App Engine Java platform? -

केवल Django में उपलब्ध है? लेकिन जानकारी नवीनतम नहीं है आप कम्पास इंडेक्सिंग इंजन का उपयोग कर पूर्ण पाठ खोज को लागू कर सकते हैं आगे की मदद के लिए निम्न URL देखें < / html>

iphone - Fuzzy Date algorithm in Objective-C -

I would like to type a fuzzy date method for the calculation of dates in the Objective-C for the iPhone Here's a popular comment: / P> Although there are missing arguments in how can this be used in Objective-C? Thank you. const int SECOND = 1; Const int MINUTE = 60 * seconds; Const int HOUR = 60 * min; Const int DAY = 24 * hours; Const int monthly = 30 * days; If (delta and lieutenne; 1 * minute) {return ts.Seconds == 1? "A second ago": ts.Seconds + "seconds ago"; } If (delta and lieutenne; 2 * min) {return "one minute ago"; } If (Delta & Lt; 45 * Min) {Return T. Minutes + "minutes ago"; } If (delta and lt; 90 * minute) {back "an hour ago"; } If (delta and lieutenant; 24 * hours) {return t. Hers + "hours ago"; } If (delta and lieutenant; 48 hours) {return "tomorrow"; } If (Delta & Lt; 30 * days) {Return TSD + "Day First"; } If (delta and lieutenant; 12 * month) {int months = conver

php - Linux tar command: compressing a directory but exluding subdirectories -

Scenario: I have a directory that hosts on my website in which hundreds of user-rendered images are making a backup script that takes all the images from the directory and Compress them in a .tar.gz file I have the order till now: tar -czpf / path / to / backups / my_backup.tar.gz path / to / images / Problem: Not inside my path / images / images / I have a directory The tmp / I called when I run the command, I get a .tar.gz file containing all images are path / to / image / directory and subdirectories that TMP / said. Question: How can I get an order to leave / leave the tmp / subdirectory in the .tar.gz file? Thanks a million in advance. You are searching for - deprecated argument < Pre - exclude = PATTERN Some users start to confuse the excluded option. Here are some common pitfalls: The main operating mode of tar does not work on the command path explicitly listed on the command line if its file name components In the example above, if you cre

user interface - Generic Question: Thoughts on soft keyboard UI for mobile devices -

Yo, so I was curious about your ideas about your preferences on soft keyboards for mobile devices. Are there any particularly innovative people who you like? By the way, to ask this question, my wrong motive was to see a special example, which I have heard, oh 10-ihis months ago. Basically, you type your finger on the keyboard continuously. Based on your direction change and speed, keyboard keys are considered to be a better prediction. If you want to apologize for using information as a search for me, but this apparently makes small smashes in news sources of gadgets, and the implementation still does not come out. is. I think typing on the keyboard is very easy, the press that you press while pressing. Also, unless you take it off your finger, that letter is not kept. As seen on the iPod and iPhone, and my current phone is LG Dare. This is really good if you are working on a small space for the keyboard. If you are developing a keyboard, then I suggest using this method.

dsl - Learning More About Parsing -

I am programming for work and fun since 1999. I want to learn new things, and recently I am concentrating on parsing, because a large part of my job reading is reading data, integrating and analyzing it. I have too many repetitive tasks which I think I can express in very simple domain-specific languages ​​if the overhead was low enough I have some questions about this topic My current parsing code does not define formal grammar. I usually hack into a language of choice in some way because it is easy, I know how to do it and I can write this code very quickly. I also want to work for those I work with. There are advantages and disadvantages to defining grammar and defining the actual parser (as with one), which is to parse things compared to hacks that most programmers wanted to write parser? What are the best parser generation tools to write grammar-based parsers in C ++, Pearl and Ruby? I have seen the use of ANTLRV3 with the C ++ goal and have not found much, but otherwise

regex - what does this regular expression mean? -

^ (?! -) [az \ d \ -] {1,100} $ रेगेक्स टिप्पणी मोड का उपयोग करते हुए एक स्पष्टीकरण दिया गया है, इसलिए यह विस्तारित प्रपत्र स्वतः regex के रूप में इस्तेमाल किया जा सकता है: (? X) # फ्लैग टिप्पणी मोड को सक्षम करने के लिए # # पंक्ति / स्ट्रिंग की शुरुआत (?! -) # अक्षरशः हाइफ़न (-) चरित्र के लिए # निगेटिव लुकआहेड, ऐसा इसलिए विफल हो जाता है यदि अगले स्थिति में एक होता है [A-z \ d \ -] # वर्ण वर्ग एक अल्फा (ए-जेड), अंक (\ d) या हाइफ़ेन (\ -) से मेल खाता है। {1,100} # ऊपर से [वर्ग] से 100 गुना तक, कम से कम एक बार मैच करें $ # पंक्ति / स्ट्रिंग के अंत संक्षेप में, यह 100 लोअरकेस अल्फ़ान्यूमेरिक या हाइफ़न तक मेल खाता है, लेकिन पहला अक्षर हाइफ़न नहीं होना चाहिए। सीरियल नंबर, या समान , लेकिन यह निश्चित रूप से कहने के लिए बहुत सामान्य है। सभी रिजक्स इंजिन नकारात्मक नजरिए का समर्थन नहीं करते हैं यदि आप यह पता लगाने की कोशिश कर रहे हैं कि क्या एक नकारात्मक इंजन के लिए अनुकूलित इंजन के लिए अनुकूल है, तो आप इसका उपयोग कर सकते हैं: ^ [az \ d] [az \ d -] { $ 0,99} $

VB.Net WPF Key Value Pair Dictionary in Application Settings -

I'm looking for a way to store a key-value pair in the application settings I have found that key-value pair dictionaries are not ordered, and therefore can not be stored in the application settings. Currently I have tried all kinds of dictionaries and collections and they do all the work, till I restart the application, then all the settings have gone. Somewhere I read that there is a list-show serial, but I'm still not able to get it to work. If someone can give me some VB.net examples how this app works to use the settings, it would be good! Thank you! The dictionary (TKE, TVL) class is actually serial but in the binary sense XmlSerialization engine is unfortunately anything Can not process IDictionary, which prevents it from working in the application settings. What I usually do to work around this is to create a small square which is XmlSerializable and the key / value pair I think that those key / value pairs the collection of combinations. It is easily c

asp.net mvc - Does duplicate id's screw up jquery selectors? -

अगर मेरे पास दो divs थे, दोनों के साथ id = "myDiv" क्या $ ( "#myDiv")। FadeOut (); दोनों divs बाहर फीका? या यह केवल पहली / दूसरी फीका होगा? ध्यान दें: मुझे पता है कि डुप्लिकेट आईडी मानकों के खिलाफ है, लेकिन मैं इसका उपयोग कर रहा हूं Fancybox मोडल पॉपअप और यह पॉपअप की सामग्री के लिए आपके पृष्ठ पर सामग्री को डुप्लिकेट निर्दिष्ट करता है। अगर कोई इस के आसपास एक रास्ता जानता है (शायद मैं गलत गलत इस्तेमाल कर रहा हूँ) कृपया मुझे बताएं। एक आईडी के लिए क्वेरी करते समय jQuery एक ही तत्व से मेल खाता है अधिकतम एक तत्व ऑब्जेक्ट को $ ("# foo") द्वारा वापस किया जाएगा। Get () । अधिक जानकारी के लिए देखें या स्वयं को आज़माएं। $ (फ़ंक्शन () {अलर्ट ($ ("# फ़ू")। लंबाई);});

How to serve files in Drupal without using links? -

How can I serve files in Drupal without revealing any such link which can be used again? This type of thing is usually handled by PostBack in .NET, for example, but I can not find any documents to complete it in Drupal. The goal is to be able to give specific file to the user exactly once they complete a series of steps defined by the module. Some eCommerce modules provide some features to support limited file downloads, but I prefer not to set up a complete eCommerce solution to complete a task. Thanks in advance! Once you write a module to manage the URL and log in while logging in. The module will use the function to serve the file from some personal space.

flash - Monitor browser tabs with localConnection and sense when a user closes a tab -

In my application the browser window connects with the server with long-term poling (comet) if the user opens multiple browser tabs , Then only one of them (called Master) communicates with the server and acts as a proxy for the other tab. I want to use Flash Local Connection to exchange data between tabs. What happens when the user closes the master tab that keeps the comet session? I can use Javascript with an unload event to notify other tabs, which are closing the master tab and then closes the local connection, but the unload event is unreliable. I want to track the Master Tab Connection object I can use the ballot, but it's dirty talking. When master is closed then one needs to become a master from the other tab. How do I ensure that one tries to become the master of them? If a user closes the tab without flash, then if it is capable of closing the local connection, will this cause a memory leak? Thanks Identifier wire to handle searching by seeing as a local

vb.net - LINQ to XML when a node does not exist -

I read RSS feeds from various sources and write a common class to consolidate into a collection of objects in VB.net Was there. Basically the function - Using XML - using LINQ is working properly, but I have a problem when I try to read RSS feeds that do not have any nodes (as You know, many of them are optional). The returned value will not be empty string or nothing, but instead I get a runtime error. I searched the web for the same problem and I found this post, which apparently interprets a workaround, But it does not work with my code. I am also surprised by the small resources being aware of this issue, so now I am thinking that I am also putting a question in the right questions ... The following code can be found: Moderate PostMen = From the blog post in the XMLSource ("item") order date from date. Perse (blog post. Element ("pubadet") value) New post (descending) With {.Title = BlogPost.Element ("title"). Value, .Link = BlogPost price

cocoa touch - Programmatically send to front/back elements created from interface builder -

In the interface builder, there are layout options for sending or sending back UIButton , UIImage , UILabel etc ... Now, I want to program at runtime. Is there an easy way to do this? I do not want to create separate views, just update the z-axis. UIView has several methods that allow you to modify the visual hierarchy Gives you Since your thoughts are already included you can see that you can easily call bringSubviewToFront: for each view. Are there.

delphi - How to recompile a specific unit from the VCL? -

I want to apply a fix to QC from a Delphi 2009 unit (this happens in the form of DBClient). I know that I need to copy the unit to another directory and change the copy. Then how do I compile the unit to Delphi and use it in the favor of DCU which is already present? If you do not want to modify the original .pace file, I copy it. Copy the file to my folder, then select the project, it will create a new DCU file in my Applications folder, which will be used instead of the original

c# - speech recognition from audio file instead of microphone -

How do I recognize speech on a speech coming from the audio file (MP3, VO) instead of the microphone? I want to be able to do this from C #. NET and Delphi. This article specifically answers your question: Using WAV file input with SR engine For the general information, see the following article:

java - What are attributes? -

Can someone explain the definitions of attributes? For example, in the following code, what is a feature: request.setAttribute ("ja", new foo.Employee ()); Is the attribute in the above code an object of foo.Employee (), or is this key / value added, or is it really "ja"? filter, servlet, JSPP, and further , for example, you have an object in the push servlet and bridge can in a JSP The same approach is for sessions and application scopes