Posts

Showing posts from March, 2015

c# - Casting and Types Question -

I am bubbling events in my application and therefore using the bubble event method, since this method handled all kinds of bubble events They have a switch, or if to determine which type of event we are dealing with, I was wondering if I could create different versions of the Event Arrogs class and get around this. So explain to me, say that I have two types of events called different X and Y, I create new event ARGs classes for these two incidents because they store different types of information. public class events rrxx: events public class event events: events@rgbuelwyven Then when I come from anywhere in my application, then I will be one of two event AGR types I can also pass, so .. EventArgsX Fox = New EventArgsX (); RaiseBubbleEvent (zero, foox); or EventAgargacyFoo = new eventArshji (); RaiseBubbleEvent (zero, fooy); Then the OnBubbleEvent method picks up, which signatures overbride onbill events (object source, eventArgse E) I can not now overload th

jquery form change detection -

Any good script, please explain to me how to implement it with other types of tags such as radio and file uploads; Dream Day Try this code, & lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Transitional //www.w3.org/TR/html4/loose.dtd"> & Lt; Html & gt; & Lt; Top & gt; & Lt; Script src = "../jquery-latest.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (Document) .ready (function () {$ ("select"). Changes (function () {var str = ""; $ ("select option: selected") Each (function () {str + = $ (This) .text () + "";}); $ ("div"). Text (str);}) .change ();}); & Lt; / Script & gt; & Lt; Style & gt; Div {Color: Red; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Choose name = "sweet" multi = "multiple" & gt; & Lt; Options & gt; Chocolate & lt; / Options & gt

iis - Common cache for wcf services launched in different servicehosts -

I am hosting my WCF application with IIS. In order to fulfill some of the methods, I need reference of the helper object which is heavily started. A good scenario is to start and cache it once, then all the requests have to use the object from the cache. How do I caching? The easiest way to use the stable area of ​​mywebmethod is that the IIS has created many services to fulfill the requests. And the stable field will be different in each service host. I have also tried to use System.Web.HttpRuntime.Cache . Then, I have some independent cache. To clarify, I do not need to cache the outcome of the request, but some intermediate data required to act on the request. What could be different then running different services in different app docs gives you crash-protection and some more security-related benefits. The only way I can get it is to use IIS: Apply one, which will return the custom service host, under the service hood. Update I stumbled on this today, and th

shorthand in jquery -

मेरे पास ये jquery कोड हैं: $ (document) .ready (function () $ $ ("# Masthead ul li")। माउसओवर (फ़ंक्शन () {$ ("# masthead ul li")। RemoveClass ("cr"); $ (यह) .toggleClass ("cr");});} ); $ (दस्तावेज़) .ready (फ़ंक्शन () {$ ("# intUl li")। माउसओवर (फ़ंक्शन () {$ ("# intUl li")। RemoveClass ("cr"); $ (this) .toggleClass (" सीआर ");});}); क्या हम दो समान jquery कोड के लिए आशुलिपि लिख सकते हैं? अग्रिम धन्यवाद इसे आज़माएं: $ (दस्तावेज़)। तैयार (कार्य () ($ ("# masthead ul li, #intUl li")। माउसओवर (फ़ंक्शन () {$ (this) .removeClass ("cr"); $ (this) .toggleClass ("cr"); });});

Difference between types of database projects in Visual Studio -

I have 2 types of database projects in Visual Studio 2008: C # - > Database -> SQL Server Project Other Project Types -> Database -> Database Project What is the difference between these 2? Is there any reason to use one on one another? The SQL Server project in Visual Studio to help in the creation of stored procedures, Triggers, aggregates, user-defined functions, and user-defined types. Visual Basic, Visual C # and Visual C ++ .NET Framework languages ​​like. Database Project A special Visual Studio .NET project type is intended to create and manage SQL database scripts. If you are developing a database application with Visual Studio.NET, you would want to know about the tools available to make your work easier and faster with the database.

c# - Accessing members in your own class: use (auto)properties or not? -

I created this "question" as a community wiki, because there is no right or wrong answer. I want the community to feel about this specific problem. When you have an example, examples of variables, and you have created properties that are buses and sets for these example variables, should you use it inside of your own class Assets, or should you always use frequency variables? Having auto-property in C # 3.0 also makes it a difficult decision. Use of properties: Public class MyClass {Private string _name; // Maybe an auto-property off-course public string name {get {return _name; } Set {_name = value; }} Public Zero Action () {string localVar = name; // ... name = "some value"; // ...}} Using the example variable: public class MyClass {Private string _name; Public string name {get {return _name; } Set {_name = value; }} Public Zero Action () {string localVar = _name; // ... _name = "someValue"; (Those people who hate members prefixes, I a

api - Where can I find concise .Net documentation? -

I am just in net development and coming from java background, I like the fashion of a sun's Java API documents. A clean, simple interface with all the constructors and methods (and their parameters!) And properties for one class on one page. No examples - a summary at the top, and details below. I do not think this is an animal - but I am using it, and this Not bad at all. Yes, you have to click to click on the details from the members list (instead of just scrolling), but you use it very quickly. Of course there is also the offline version (though it seems to be a webfide for VS2010) - when I'm using it, I'm almost always in the index.

FSM (Finite state machine) modelling of a web page's states using jQuery -

I'm interested in how the behavior described below can be applied, using jQuery. Technical overview: Technically, behavior is ideally designed by the state machine: One page Loads and initial status (State A). There is no restriction on the user in one page at one place in the state, on one user page, irrespective of who can do anything. Once in Page B (accessed by clicking on a specific button / link etc.), the user will have to complete a special step to complete the page (usually fill out a form and submit it), other words in the initial state In the form correctly rendering the form, the page returns the initial status (state A) , while in state B, any attempt to move the user away from the page or the current one Click on the other link, page etc. will pop up a message box (or JQuery message box) and ask the user to confirm (yes, cancel) if they want to get away from the current work. Practice: A page is displayed, which presents a button to click on the use

spreadsheet - How to get an excerpt of a table in Excel in a different table? -

I have found an Excel document that is used as a patient database for practice, of their first appointment in the first table There is a complete list of all patients with date and date of their last appointment (if applicable). In the second table, I want to get a list of all the current patients (no final appointment) in the third table, I want to get a list of all the patients who are (final appointment) < P> Is there any way to remove these sub-tables from the main table? What about filters by first appointment or last appointment? ... if you do not care only with one table ...

java - Hibernate : Downside of merge() over update() -

I'm having a problem with a thrown by hibernate NonUniqueObjectException . Reading the docs and blog posts, I changed the call from update to merge () , and resolved this problem. I believe I understand the reason for the exception, and why the method has been set in terms of disconnected objects and session boundaries. My question is this: Given that merge () always resolve the session object, or if it does not exist, then retrieve it, merge () Calling is usually a safer option than update () ? Merge () at update () ? Calling merge () is generally a safe alternative to update () from is? As a way to avoid non-UNIQUE object exceptions, yes I think that it explains why JPA does not allow an update method. What is the downside to using merge () on update ()? An unknown user can think that he has a fresh managed unit. Some kind of // myEntity (does not pass as a parameter does not manage) is a managed unit session returned by // merge operation.

iphone - UISegmentedControl Best Practice -

I want to create a "best" way of using an UISegmentedControl for an iPhone Trying the application I have read some posts on Stackoverflow and have seen some people's ideas, but I can not get the best way to do this. The posts I am mentioning are: and It appears that the options are: Add each view to the IB And Create each subview separately in the IB, then create a container in the main view that you need. Set a really long or really expanded UIView and make it alive to the left / right or top / bottom depending on the selected segment One < For classes> UITabBarController tables, for tables, reload the table and cellForRowAtIndex and sections based on different data sources or selected segmentation options Populate. Case for my app) Which approach is best for a subview / non-table approach? Which easy to implement? Can you share some sample code in the approach? Thank you! Go along with the other option you specify, create subvie

iphone - Set the same default background of the UITableView to a custom view controller -

I have to set the same brown hidden background in another view. Can anyone help me on this? Thanks, Leonardo this is very easy :) < Previous> [self.view setBackgroundColor: [UIColor groupTableViewBackgroundColor]];

virtual memory - .NET API for determining VM fragmentation -

Is there a .NET API to get detailed information about VM usage? I'm particularly interested in finding out how fragmented my address space is. Thanks You can give some insight on this like Windows API functions How to calculate the virtual memory classes and find unused space, GetProcessHeaps () processes and HeapWalk blocks are used in each stack. This will not be easy, especially in the program that runs the Heavywalk (), there is a hassle. You should take a look at SysInternals, this provides excellent virtual memory diagnostics. The fall with this is that it does not really help in solving your memory fragmentation problem, as the Windows Memory Manager sub-allocates virtual memory space, affecting you on it Can not do anything to do. If you are now struggling with OOM, then you should actually consider building your app again. Or switching to a 64-bit operating system, solution for two hundred dollars.

wpf - Retemplating a Button control with custom properties possible? -

I have created myself a TransparentButton style which can be found in the button The way I treat it, the way I want it (mouseover, enable, etc.), but whatever I am not able to do is set correctly in style. Currently, I manually & lt; Button> Content & gt; I set everything for every button in , and obviously the stuff needs to go in style I get a ContentTemplate with a StackPanel < / Code>, which has just one image and label . The problem is, I do not know my & lt; Button ... & gt; Markup is the text of the label and the image source I think was to do it with a template, but I am searching like crazy and looking for information. I'm unable. So, in a nutshell, I want a consistent button style where the button content is just a a image and label a stackpanel , and I want to be able to make it in my GUI in a few simple ways: & gt; Button style = {DynamicResource TransparentButton} "label =" click me "image =&q

Python: file with programmer-defined attributes -

After Using Python 2.5, I want to create a temporary file, but add (& amp; modify) my own responsibility telling. I've tried the following: class TempFileWithAttributes (): __slots__ = [ '_tempFile', 'value'] def __init__ (self): self._tempFile = tempfile.TemporaryFile () object. __setattr__ (self, '_tempFile', tempfile.TemporaryFile ()) object .__ setattr__ (self, 'value', 123) def __getattr__ (self, name): If name == 'value': object .__ getattr__ (self, 'value') Elif name == '_tempFile': return getattr (self._tempFile, name) def __setattr__ (self, name, NewValue): if name == 'value': object .__ setattr__ (itself the 'value' NewValue) Elif name == '_tempFile': Setattr (Selfk_tempFile, NewValue) MyFile = TempFileWithAttributes () MyFilekwrite ( "! Hello, Jason ') print myFile.Value myFile.Value = 456 print myFile.Value myFile.seek (0, OsSEK_END) print myFile.tell () However, welc

How to use SVN locally and push changes to a remote Git server? -

I use OS X to manage all my code in Subversion, to make changes in my current workflow Not interested unless there is a great GUI app like GIT versions in. One of my clients wants me to push my code into a personal geethback repository, there are many questions and articles about running GIT locally and pressing the Remote Subversion Server, but for the opposite scenario Can not find any suggestions. To be clear, what do I have to do? Manage your code in a local subversion checkout (central repatriation is actually on a remote server, but I hope That will not make any difference to it) Whenever I deliver to the client, I would like to run any order like "GIT Update-Gothub-K-local-SVN-Change" If there is no other geathb (rare) Tidy, I would like to run an order like "git update-local-svn-with-github-changes" I can think that the best answer is that you can use git-svn to make a git copy of your subversion server, then branch Push which github w

jquery shopping list form recipe ingredients -

If this is possible with such a jquery, then I can say that I have the interval with the check box Remove from the shopping list 1 cup of this butter salad 1/4 cup < P> Do not know what your markup looks like, but I believe it is such a symatic: You can write the following javascript using jQuery to add the checkbox: $ (document) .ready (function () {$ (' # Lig ') .prepend (' & lt; input type = "checkbox" name = "content" /> gt; ');}); In front of this text, a checkbox will be added inside each LI in the list. You should ideally have items defined in such a list as I did, which makes it much easier to detect That's what each item is.

python - Django forms: how do I display the initial blank form? -

मेरे पास यह दृश्य फ़ंक्शन है: def खोज (अनुरोध): यदि request.method == 'GET': form = SearchForm (request.GET) यदि form.is_valid (): last_name = form.cleaned_data ['last_name'] first_name = form.cleaned_data ['first_name'] वकील = वकील। [अन्य अगर बयानों] .... और: फॉर्म = सर्चफार्म () रिटर्न रेंडर_टो_प्रॉपस ('खोज' html, {'फॉर्म': फॉर्म}) मुझे लगता होगा कि जब पेज लोड करता है else स्टेटमेंट को प्रारंभिक रिक्त रूप से निष्पादित किया जाएगा। पर ये स्थिति नहीं है। प्रारम्भ में प्रपत्र प्रदर्शित करने के लिए मुझे इसे पहले if : डीईफ़ खोज (अनुरोध) के अंदर जोड़ना होगा: यदि request.method == 'GET': फ़ॉर्म = SearchForm (request.GET) यदि form.is_valid (): last_name = form.cleaned_data ['last_name'] first_name = form.cleaned_data ['first_name'] वकील = वकील.ओब्जेस.सॉल्ल () [अन्य अगर बयान] .. प्रपत्र = SearchForm () रिटर्न render_to_response ('search.html', {'form': form}) अन्य: form = SearchForm () रिटर्न render

jQuery UI: Datepicker month format -

I am trying to change the format of the month that shows in the popup (not in the date that the picker actually I do not have any choice anywhere to do this, do I like to use a sub-string () or something else? What I normally display is Trying to change: Class = "ui-datepicker-title"> January & lt; / span & gt; ... & lt; / div & gt; Div>

asp.net - New Relic for .Net? -

Is there anything for the net app? Sam, I'm happy to tell you that something like today is something new Like this, it is a new remnant for .NET .Net service, UI, pricing, etc. A new agent that supports the .NET framework. Try it:.

email - Issue with SMTP relay in .NET -

Maybe it is more than an IIS question compared to programming, but I will still get it out there. I am trying to send an email via SMTP with C # using the following test code: // params: email, topic by email , Body Melmessage M = New MailMessage (& lt; Sendemail & gt;, & lt; receiveemail & gt ;, "testubject", "testby"); SmtpClient c = New SmtpClient (& lt; SMTP Server & gt;); C. Sand (m); Extremely simple I am completely avoid credentials due to the configuration on my SMTP server: This connects me without credentials Allow Alternatively I have tried an empty string for the username / password, and the default credentials. When I send an attempt to send, I get an error in sending "SMTP email to get the error: Mailbox unavailable. Server response was: 5.7.1" Relay for error hopeless at. I go to the relay section of IIS, and it is as follows: So my idea is, "Allow all computers, successfully authenticated

objective c - Unfamiliar with technique to solve pre-populating textfields (w/out access to a viewDidLoad or similar method) on Mac Desktop -

I have a main menu. Xib - which sets all my interface items (buttons, textfield, etc.). I have a log controller who has access to all these items through IBolet and IABET. Works fine - all connected and good running. However, I want to assume pre-populated NSUserDefault in Textfield. However, I can not understand how - my logcontroller does not extend to a UIVIUC controller (like the world of the iPhone) - I do not have access to using delivery methods such as viewDidLoad - etc. - where I I can not put it here (because its UI does not have access to UI elements): - (zero) applicationDefinitionLunching: ( Nsnt Ikeshn *) ANotification {// Insert here to initialize your application} So did for desktop applications on the Mac, how about me solve this kind of problem? is your friend - (zero) awakeFromNib

zend models architecture -

Assume that my database has two tables: projects and users I create two models, which is Zend_Db_Table_Abstract: < Expands code> Model_DbTable_Users and Model_DbTable_Projects . Now, is it a good format to make an example of Model_DbTable_Projects inside Model_DbTable_Users class? In other words: Is it ok to put any arguments in this model, or I should create another category, which uses Model_DbTable_Users and Model_DbTable_Projects > Use to insert all the arguments in the I model, which increases the Zend_Db_Table_Abstract, but in large projects this code can be very impure. So, can you give me some advice on model architecture (links on articles will be great!). I had Project Lead for the Zend Framework Project through version 1.0. My contribution was mainly in the Zend_Db component. I often have to use patterns and people should avoid the antipaton. Remember that No table is a model. Your model is such a class (does not raise a base class) tha

r - What's the best way to map the link connection between blogs? -

I want to do a social network analysis on a group of blogs, which are the ones who are linking ( Not only by their blogroll but also inside their posts). Can the software perform such crawling / data-gathering / mapping? Thank you! is a good enough crawler, but you have to analyze your indexed data.

c++ - why c++wt is not integrated with ExtJs 3.x ? and how is it possible to integrate it with that? -

I wonder why wt (WebToolkit for c ++) is not integrated with ExtJs 3.x Is still using extJs 2.x And how is it possible to integrate with the updated version of extjs? I want to use some updated widgets from extjs 3.0 with the help of wt but unfortunately there is no chance: (< / P> . I understand that about the Ext JS style Not very happy in widgets now and prefer to use their widgets. I think it is the most open source support questions It seems that any person working on the project is not interested in updating all the code to the latest version; if you really want, do it yourself, or pay someone :) There is some interest in this and here's more information: The summary of not renewing is basically: No, I think they are not There are some boring licensing cents in fact no one Emweb does not care about leaving people :) And the fact is that ExtJS is actually getting buggy: -)

android - ContentResolver - how to get get random access / seekable representation of the resource which maps to file -

How do I use content reseller content as a file? It's an easy way to open the underlying file-based content as inputstream, but it is not possible to search on the interstitial The content I am trying to read is the file (email attachment) Has been mapped for.

.net - What's the best way to create a percentage value from two integers in C#? -

I have two integers that I want to split to get the percentage. I have it right now: int mapped items = some list. Count (x => x.Value! = Null); Int totalItems = someList.Count (); (Integer) (((double) mapped item / (double) total rectangles) * 100) This gives the correct answer. But this is very easy to do, because one percent gets between two numbers. Is there a better way to do this? Something that does not include casting? How simply mapped items * 100.0 / total items and it is appropriate Casting for type?

c# - Dump of returned data from webservice in .NET -

I have a web service customer in C # where I take the returned item from the website and pass it in the following method Order to create an XML file: XML serializer S = new XML serializer (typef (t)); TextWriter SW = new streamer (filename); S.Serialize (sw, obj); Sw.Close (); However, there are fields that claim the webservice side, while the resultant xml does not include it (IU has updated service in 'VS ...) whether webcams Is there a way to get the dumps of data obtained at lower levels? Two very good options: - A network tracer, original - A proxy that records requests and responses, and displays well Widerhark is less aggressive than Fiddler because this customer Does not change anything, but Fideleller has support for HTTPS, as long as you agree to accept your certificate from your client. (It's effectively a man-in-the-middle attack as far as the protocol is concerned - but Fiddler is a man in the middle). In addition to this I'm pretty sure

.net - FluentMigrator Failed Migrations Don't Rollback? -

I started experimenting with bus I saw that the failed migration was not being brought back to what it still applies Has not happened? It feels very bad because it leaves the database in broken condition. For example, the migration from below will obviously fail when it tries to add Table1 the second time (I'm doing this just to apply an error). I hope the migration should be included in a transaction, which will start when it fails. [Migration (1)] Public class AddTable: Migration {Public Override Zero (up)} Create.Table ("Table1") WithIdColumn () .; Create.Table ("Table1") WithIdColumn () .; } Public Override Down () {Delete Tables ("Table 1"); }} However, what happens instead is that the runner throws an error (which causes the console app to crash) and the database is left with Table 1 and the version There is no line in the difference table, it seems like a bad situation to leave things. Using the latest FluentMagger code (as of today),

objective c - iPhone window add subview crashing problem -

मेरे पास कोड है [window addSubview: [self.mvcontroller view]]; जहां mvcontroller है एक दृश्य नियंत्रक और जब भी मैं प्रोग्राम (डिवाइस और सिम्युलेटर) चलाता हूं, तो यह क्रैश होता है। क्या आप कृपया पोस्ट कर सकते हैं पूरे कोड जहां यह कोड बुलाया जा रहा है, साथ ही साथ त्रुटि संदेश भी। मेरे लिए सबसे पहले सोचा गया है कि mvcontroller को आरम्भ किया गया है? यदि आप कोशिश करते हैं और शून्य को एक सबव्यू के रूप में जोड़ते हैं तो यह ऐप क्रैश हो जाएगा, जो कि यदि आप पहले दृश्य नियंत्रक को आरम्भ नहीं किए हैं तो ऐसा होगा।

C# blowfish encryption/decryption -

Has anyone found a link to a bluffish library that could be encrypt / decrypt text? I get some DLL for Windows and pinwalk is used to encrypt / decrypt text, but it does not work on Dell Linux (mono). Favorites I want to work on a library both Windows and Linux Thank you. From my research, it seems that bluffish.net has now been shut down. However, maybe it will help. Update: Looks like a paid component is needed, maybe a better option.

c - Adding Linker Flags in Xcode -

(I'm not sure the word "flag" is what I want, but I'll explain it.) I am trying to compile a program that uses a large number of libraries. But to be able to compile with GMP, I would add -lgmp at the end of the command. For example, if I want to compile "program.c", then call me GCC program.c-lgmp must be typed. It's easier than command line, but I do not know how to do it in Xcode. How do I add the lgmp flag when using Xcode? Right-click Xcode from the target and contextual menu in the Groups and files list In the Build tab, select Get Info , type linker in the search field and then search for Other Linker Flags items. . Double-click on the Other Linker Flag item and add -lgmp .

c# - String.IsNullOrEmpty(myString) Vs myString != null -

इन तीनों में से कौन सा बेहतर है? string myString = ""; String.IsNullOrEmpty (myString); बनाम स्ट्रिंग मायस्ट्रिंग = ""; यदि (myString.Length & gt; 0 || myString! = नल) बनाम स्ट्रिंग myString = ""; अगर (एम लैलेण्ड & gt; 0 | m! = Null) पूर्व स्पष्ट है, लेकिन क्या इसमें कोई अंतर है? क्या होगा, यदि कोई स्ट्रिंग कभी खाली नहीं होती है, जैसे कि पाठ बॉक्स से लिया जाता है, जो खाली हो सकता है, लेकिन रिक्त नहीं हो सकता? खैर, इस सवाल का संस्करण: यदि (myString.Length & gt; 0 || myString! = Null) निश्चित रूप से खराब हो, जैसा कि आपको null पहले (दूसरा नहीं) के लिए जांच करनी चाहिए - आदर्श रूप में शॉर्ट सर्किटिंग null ताकि आप को कॉल करने का प्रयास न करें। Length । लेकिन आम तौर पर मैं सिर्फ string.IsNullOrEmpty का उपयोग करता हूं। यदि आप चाहते हैं कि आप (आप null मानों पर एक्सटेंशन विधियों को कॉल कर सकते हैं), तो आप इसे हमेशा कम वर्बोस बनाने के लिए एक एक्सटेंशन विधि लिख सकते हैं। स्थिर बॉल हस वैल्यू (यह स्ट्रिंग ) {वापसी! Stri

process - How to block child processes in java and restarting them -

I have two questions: I have to stop child processes with my main process and then It has to start again something happened in my main process. Can i do this Thank you very much. I'm not sure what you meant in the post above - I doubt they There are different questions and the other is related to the glassfish, which I probably can not answer. However, I can do it first if you mean Threads instead of processes - there is a waiting / notification in Java that informs the method used in the combination so that you can make the child threads Can launch and wait to complete it before continuing in the main process. I think that you should do this in concurrent programming rather than preventing the hair process from the main process, it should never be done because you can not guarantee that you take a look at where you are in the hair process:

Run AutoHotkey script when screen locked? -

I have written some scripts with autohotkeys, but I think that when the user is logged in and the screen is not closed. I want to schedule the script to run. Does anyone know if it is possible with AutoAuto, or is there any other program with such functionality that the script can run when the screen is locked? Thank you! You can use the system task scheduler to schedule execution of scripts. The scheduler accepts a user name and ID and runs the script under that account. By chance, I've found that hotkey mapping and hotstring work when the screen is locked, but of course nothing will send the key or otherwise will not interact with open windows.

sandbox - What is sandboxing? -

Image
I've read, but I'm not sure what that means, and version control . P> A low, wide container or sand-down depression in which children can play children With many homeowners building sandpits in their backyard, unlike many playgrounds, they can be easily and cheaply built. A "sandwich" can also denote an open-pit sand dune. OK, a software sandbox is no longer what a sandbox is created for a child to play. By providing a sandbox to a child, we simulate the environment of the actual playground (in other words, a isolated environment ), but with what restrictions a child can do. Because we do not want to infect the child or we do not want to disturb others. :) Is this any such reason, we just want to ban the code for what children can do for security reasons . Now our software is coming to the sandbox, we can play any software (to play) with some restrictions (what it can do) to play Safe & Amp; About what the safe execution software can

iphone - selection Menu like Tap Tap Revenge 3 -

I think how to get a tap menu like 3 to change the selection menu. Should I be able to run my subclass for the entire custom class or any class? I tried to modify the UIPKear Weave but I can not change the background image and frame (both are private). Thank you Mrigank Gupta There is a link here (picture does not have a reputation for posting) < Div class = "post-text" itemprop = "text"> Creating a custom control class will make it easier to try one of the existing ones. The tabbots put a small article on their work You should be able to touch some images, a button, a conversion of graphics and event handling to pull it.

attributes - Jquery: Cloning a select list and selecting an option by its value -

I am trying to add a selected table list to a devil table with jQuery, after doing this, I Select a specific option in the want list, I'm trying something like this: // My hidden options list Try it out: $ (". ("Name", "a_dynamic_name_for_php_form") .find ("option [value = none]"). ("Selected", "true"); notice changes to the last line

Databinding of WPF Toolkit DataGrid to LINQ to SQL queries -

LINQ से SQL के माध्यम से SQL डेटाबेस को बाध्यकारी WPF टूलकिट, जब बाध्यकारी स्रोत को सही ढंग से सेट करने के तरीके: क्या यह कुछ सामान्य संग्रह होना चाहिए, LINQ से एसक्यूएल प्रश्नों से भरे और अद्यतन किया गया है या क्या LINQ से एसक्यूएल प्रश्नों के साथ डाटाग्रीड को सीधे कनेक्ट करने की संभावना है? हमेशा की तरह, एक बिल्ली को त्वचा के लिए एक से अधिक तरीका है हालांकि, मैं एक SQL क्वेरी बनाने के लिए LINQ को SQL क्वेरी बनाने और एक ObservableCollection में सूची भेजने के लिए .toList () का उपयोग करना पसंद करता हूं ताकि आप अपने डेटा में परिवर्तनों की निगरानी कर सकें और जब आपका डेटा गंदा हो तो SQL सर्वर डेटाबेस को अपडेट कर सकें। दूसरे शब्दों में, यह कुछ ऐसा दिखाई देगा: // अपने LINQ से एसक्यूएल डेटाटाउनटेक्स्ट LINQDataContext डीसी = नया LINQDataContext () के एक उदाहरण बनाएँ; Var productQuery = डी में पी। प्रोडक्ट्स चुनें पी; // अपने डेटा को पकड़ने के लिए और डेटाग्रिड को इस संग्रह में बाध्य करने के लिए एक अवलोकनशील संकलन बनाएँ सार्वजनिक पर्यवेक्षणसंपादित करें & lt; उत्पाद & gt; उत

directx - Releasing a vertex/index buffer causes warning -

जब रिलीज ()) एक शीर्ष बफर (ID3D10Buffer / D3D10_BIND_VERTEX_BUFFER) को रिलीज़ किया जाता है, जिसका उपयोग पिछले फ्रेम में रेंडर करने के लिए किया गया है बफर बाध्य है, यह चेतावनी प्राप्त करें: डी 3 डी 10: जानकारी: ID3D10Device :: IASetVertexBuffers: वर्तमान में बाध्य VertexBuffer हटाया जा रहा है; तो स्वाभाविक रूप से, अब बाध्य नहीं किया जाएगा। [STATE_SETTING INFO # 31: IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT] क्या कोई रास्ता है जिससे मैं बफर को बंद कर सकता हूं? धन्यवाद, जेकब यह भी एक चेतावनी नहीं है, लेकिन एक जानकारी है। यह कोई अंतर नहीं करता है कि आप बफर को बाध्य होने से हटा देते हैं या नहीं।

.net - Extract PDF form field names from a PDF form -

I am using pdftk to fill a PDF form with an XFDF file. However, for this project I do not already know which fields will be present, so I need to analyze the PDF, which field needs to be filled, according to which there is an interface for the user, and since then one Generate XFDF file for filling in PDF form How do I get field names? Preferably command line, .NET or PHP solution. Easy! You are already using PDFTax # pdftk input.pdf dump_data_fields This field will produce name, field type, some properties of it (Such as dropdown list or text alignment option) and even tooltip text (which proved to be extremely useful to me) The only thing that I am missing is field coordinates. .

Help with simple assembly mmx exercise -

Looking at a vector of bytes in length of 8, how can I use MMMA instructions, all 2 of 5 Can I convert to example? .data v1 byte1, 2, 3, 4, 1, 2, 3, 4 Thanks. Edit: Just one example of 2 and 5 is that they are actually the criteria of a process. I'm sure there are several ways to do this. For example, the following should work: / P> 1) Mask (or load) 5 and one of two mmx registers ( mm0 - mm7 ) < / P> 2) Load the data in another Mmx register, such as MOVQ 3) to test with the mask of 2, eg Using PCMPEQB , the result will be according to the FF and 00h whether the register Whether the element was 2 or not 4) Use MASKMOVQ , register with 5 and create a mask, which is already selected in the positions of 2 Write selectively MASKMOVQ will store data for mask positions that handle the FFh values. 5) Repeat until it finishes. 6) Finally, release the EMMS to exit the MMX position. At the end of the routine, a SFENCE or MFENCE Issue

Need help with MySQL query for Wordpress -

My problem is not with the WPDB class of Wordpress, but with MySQL syntax. I'm trying to do the following sequence: Get an array of all post IDs Filter posts from a specific category Filter Show only published content, duplicate, modify, draft etc. Help? Thank you. Use that for the query by passing the query id or category name. All this has been explained on the link. Edit after your comments: You can use get_posts, however, both AFAIK return returns. $ post = meet ('category = 1'); Forex Currency ($ post $ post) {echo $ post- & gt; Id; // or what you want to do with it ...}

python - Access contents of PyBuffer from C -

मैंने अजगर में एक बफर ऑब्जेक्ट बनाया है जैसे: f = io.open ('Some_file', 'rb') byte_stream = बफर (f.read (4096)) अब मैं एक कोड के पैरामीटर के रूप में byte_stream से गुजर रहा हूं समारोह, SWIG के माध्यम से मेरे पास डेटा को परिवर्तित करने के लिए एक टाइपमेप है जो इस तरह दिखता है: % typemap (में) अहस्ताक्षरित चार * बाइट_स्ट्रीम {PyObject * buf = $ input; // कुछ कोड बफ़ की सामग्री को पढ़ने के लिए} मैंने कुछ भिन्न चीजों की कोशिश की है बग मेरे बाइट_स्ट्रीम की वास्तविक सामग्री / मान को नहीं प्राप्त कर सकता है। सी एपीआई का उपयोग करके मैं अपने byte_stream की सामग्री को कैसे परिवर्तित या एक्सेस कर सकता हूं? सी डेटा को बफर में परिवर्तित करने के लिए कई अलग-अलग विधियां हैं लेकिन कोई भी ऐसा नहीं है जो मुझे दूसरे तरीके से जाने के लिए मिल सकता है मैंने इस ऑब्जेक्ट को जीसीबी में देखने की कोशिश की है, लेकिन न तो यह, या मेरे डेटा को शामिल करने के लिए यह मान है। (मैं बफ़र्स का उपयोग कर रहा हूँ क्योंकि मैं डेटा को स्ट्रिंग में कनवर्ट करना जब फ़ाइल से इसे पढ़ते हुए) मैं लिन

licensing - Can I copyright source code under a username? -

I want to publish and copyright some source code. However, I am living a little in the United States, and in this way, my full name is not comfortable with my source code at this time. Is it possible to maintain copyright on the source code that anyone who wants to identify me? Can I do something like, "Copyright (C) 2010 Matching", and specify that "Milan" is the owner, says, My GithHub account? Or am I stuck? IANAL, but as I think the US Congress has backed US copyright law back in the 1970s All to create automatic copyrights for creative works, whether the author has applied for copyright or not then the main thing that you need to be concerned about Prove that is that you were going to build works and the date was created.

python - Is it possible to narrow down the generated query in SQLAlchemy if it was created via query_property? -

I have one more quick question about SQLite. If I have to narrow the selected areas, in my SQLite table class in the [code> query_property [1] field? What do I mean here Suppose in my class comments is: class comments: query = Session.query_property () ... Then if I do the following: gt; & Gt; Print Sessions .Qiveer (Comment) Then SQLAlchemy generates the following query, which contains all the columns in my comments table: < Code> select comments.comment_id as comments_comment_id, comments.comment as comments_comment ... more columns ... from comments but I want to reduce this question and select only (let's say ), As the following creation: & gt; & Gt; & Gt; Print session. Select the comment (comment depression) Comment from comment comment comment comments Is it possible to do this through Comment.query ? I tried the following but it does not work: & gt; & Gt; & Gt; Print Comment. Query (comment dot

c++ - compile time polymorphism and runtime polymorphism -

I saw that polymorphism refers only to the virtual function somewhere. However, they include function overloading and templates. Later, I found that there are two conditions, compile time polymorphism and run-time polymorphism. is it true? My question comes when we usually talk about polymorphism, what is the widely accepted meaning? Yes, you are right, there are two recognized "types" of polymorphism in C ++ and they Very much mean what you think dynamic polymorphism Whether C # / Java / OOP people are commonly referred to as "polymorphism" is essentially subclassing , Either from one base class and overriding one or more virtual functions, or implementing an interface. (Which is done by overriding the virtual tasks related to the abstract base class in C ++) static polymorphism occurs at compiled time, and it should be considered as a variation of decultiping Could. The idea here is that, despite being completely unrelated, different types of fu

css - How to enable HTML content on top of Flash content without the frame rate dropping? -

I am developing a flash application that is communicating to allow more features with javascript, such as custom Html input etc. At the top of the flash application is a full-fledged diva and controls its position etc. Flash & amp; Javascript Because these HTML elements have to show flash content up , I thought the following basic CSS would be sufficient to do the trick: # Flash Content {Status: Completed; Left: 0 pixels; Top: 0 pixels; Z-index: 0; } #htmlContent {Status: Completed; Left: 200px; Top: 200px; Z-index: 1; Width: 200px; Height: 200 pixels; Background color: yellow; } Therefore, compared to Flash content htmlcontent is high z-index and thus it should be shown above it. Unfortunately, this only works when you set the "wmode" parameter of the Flash object to "transparent". The problem with this setting is that it is seriously reducing the application's frame rate in an unacceptable amount. This is not a problem for static content

Match elements between 2 collections with Linq in c# -

I have a question about how to do general programming work in linq. We say that we have different collections or arrays, what do I want to do, match elements between arrays and if anything happens then do something with that element. Example: string [] collection1 = new string [] {"1", "7", "4"}; String [] collection2 = new string [] {"6", "1", "7"}; Foreach (straight 1 in collection 1) {foreach (straight 2 in collection2) {if (str1 == str2) {// do SOTH EXCITING} The form may have been completed using the above code, but am I thinking that if you can do this with LinqtoObjects in a fast and systematic way? Thank you! Yes, intersection - code sample to describe. string [collection1 = new string] ["1", "7", "4"}; String [] collection2 = new string [] {"6", "1", "7"}; Var ResultsSat = Collection 1. Intrigue & lt; String & gt; (Collection 2);

x86 - Assembly: Jump from one section to another -

In the x86 assembly, how can I make an unconditional jump from one segment? Example: .section .text main: ... jmp here ... .section. Here's the other: ... I think it's a lot far away. When I try to run it, I get a sygft. Because you have not specified whether the assembler type (nasm, gas, masm, or any other workaround) Tasm) If you know that section is here , for example, if the .section section code is in section 0x8, You can also define the segment: jmp 0x8: here You can also define the segment and can also use it ... Then your profit is Angler Varies depending on Oga .. Hope this helps, Best regards, Tom.

mysql - Java: Rollback Database updates? -

I got three ways, with a current save the node database, desired effect of not changing Does not receive until all the writing is successful. conn.setAutoCommit (false); WriteNodeTable (node, new nodeNID); WriteContentTypeBoutTable (node, newNodeNID); Instruments (node, new node nid); Conn.commit (); If the second is a problem in the third method (such as that put an exception exception), so I want to roll back all the changes. private Whaid list Tirms (Drupanl node, Aianti New Nodanaidi) throws Skyuelksepshn This is a DB writing: String sql = "Trm_anod (NID, Weed , TID) include values ​​(?,?,?) "; Submit Prepared Placement = conn.prepareStatement (sql); Prep.setInt (1, newNodeNID); Prep.setInt (2, newNodeNID); String School name = words. Help school Ofagainst (Nodkget (Bitafild.aganst)); Prep.setString (3, SchoolName); Prep.execute (); String Fencernames = words help Fensrofagenst (Nodkget (BoutField.against)); Prep.setString (3, FencerName); Prep.execute ();

insert - CodeIgniter: Unknown column 'xxx' in 'field list' -

यहां मेरा निर्यात बीडी तालिका है: बनाओ टैब 'hta_users` (`id` int (11) नहीं NULL auto_increment, `nombre` varchar (100) utf8_spanish_ci मुक़ाबला नहीं NULL,` apellidos` varchar (255) utf8_spanish_ci मुक़ाबला नहीं NULL, `nif` varchar (10) utf8_spanish_ci मुक़ाबला नहीं NULL,` direccion` varchar (255) utf8_spanish_ci नहीं, शून्य मुक़ाबला `cp` varchar (5) utf8_spanish_ci नहीं NULL,` poblacion` varchar (255) मुक़ाबला utf8_spanish_ci मुक़ाबला नहीं NULL, `provincia` पूर्णांक (2) नहीं NULL,` telefono` varchar (9) utf8_spanish_ci नहीं NULL मुक़ाबला , `edad` पूर्णांक (3) नहीं NULL,` retribucion` पूर्णांक (1) नहीं NULL, `entidad` varchar (4) मुक़ाबला utf8_spanish_ci नहीं NULL,` varchar oficina` (4) utf8_spanish_ci शून्य नहीं, `dc` varchar मुक़ाबला ( 2) utf8_spanish_ci मुक़ाबला नहीं NULL, `cc` varchar (10) utf8_spanish_ci मुक़ाबला नहीं NULL,` centro` varchar (255) utf8_spanish_ci नहीं NULL, `email` varchar (255 मुक़ाबला) utf8_spanish_ci मुक़ाबला नहीं NULL,` ई विशेष आईडी `` (2) नल नहीं है,

git - Repo Sync a particular folder -

I'm trying to get the source code for the Android OS. How can I synchronize a special folder from the master branch? partial checkout is not supported with Git. I All repo, your Try to experiment to cloning part of the split part in their own project repo. He said, "If you are in Android, they are GET repo, and can be managed with the" "tool." Also see "" < / P> Install repo: $ curl https://storage.googleapis.com/git-repo-downloads/repo> / Bin / repo $ chmod a + x ~ / bin / repo $ mkdir work directory-name $ cd work-directory-name $ repo init -u https://android.googlesource.com/platform/manifest synchronize your customer Synchronize files for all available projects For: $ Repo sync to synchronize files for selected projects : < / P> $ repo sync project1 project2 ...

Perform conditional bulk update in Linq to SQL -

I have a SQL table that stores photos with a small sort order field. Users can insert new photos, which specifies a decimal sort order to keep a new record between two existing photos (or before the first photo). The sort order will be stored as a small one, so when I think an insertion will move the existing record, then I need to update all the affected photos by increasing the sort order from 1. It's easy to archive the process, but I'm looking for the most effective way to complete it with SQL from Linq. If I want to pull down all the records from the client, update them, and then submit them, then I will be with the stored procedure only which is already working and very fast. Here T-SQL changes the records: Photo ST sortorder = sort order + 1 where album id = @bubbyID and sort order & gt; = CEILING (@SortOrder) Is there a way to make this kind of bulk update without Linux records in Linux? The CUD does not state statement from SQL for SQL set, so st

c# - How to make web services secure in asp.net both the asmx and on WCF -

ASPNA and F.P. We currently have web services and now our application has the process of converting them into WCF in some modules. Now as the upgrade, we want to include security on web services because we intend to open them all through our web (both ASMX and WCF with both). Tanks in advance This is not a quick and straightforward answer, for the following CodePllex link WCF security guideline : & amp; . The site provides step by step checklist for different scenarios, one of which should be able to relate to your scenario provided different scenarios and security arrangements for intranet / internet scenarios. There are certification mechanisms that include: None, Basic, NTLM, Windows, Certificate, Username, Token Autorization options are included: Based on Role-based Chan based and resource based

javascript - Why is __caller__ unsafe? -

निम्नलिखित में __ कॉलर __ का उचित उपयोग लगता है: < कोड> var foo = 1; फ़ंक्शन ए () {var foo = 2; फ़ंक्शन बी () {var foo = 3; foo; // 3 this.foo; // 1, वैश्विक __caller__.foo // 2} b () से; } ए(); // का निष्पादन संदर्भ बनाता है हालांकि, __ कॉलर __ उपलब्ध नहीं है। क्यों नहीं? यदि वैश्विक संदर्भ / परिवर्तनीय ऑब्जेक्ट को यह का उपयोग करके एक्सेस किया जा सकता है, तो क्यों नहीं a 's? : विशेष संपत्ति __कुलर__, जिसने कॉलर की सक्रियण ऑब्जेक्ट को इस प्रकार स्टैक के पुनर्निर्माण की अनुमति दे दी, उसे सुरक्षा कारणों से हटा दिया गया था। और यह देखना आसान है कि यह ब्राउज़र में एक सुरक्षा दुर्घटना क्यों हो सकती है, जहां बहुत सी यूआई जावास्क्रिप्ट में कार्यान्वित है। एक ऐड-ऑन या अन्य क्रोम द्वारा आपके एक फ़ंक्शन को कॉल करने की कल्पना करें। आप कॉल स्टैक को देख सकते हैं और कॉल करने वाले (संभावित रूप से संवेदनशील) वैरिएबल पढ़ सकते हैं, या कॉलर फ़ंक्शंस में जावास्क्रिप्ट मूल्यों को भी इंजेक्ट कर सकते हैं, जो संभवत: उपयोगकर्ता की इच्छाओं के विरुद्ध कुछ करने के लिए उन्हें नी

xhtml - Adding strong emphasis to an img tag. Semantics -

I'm actually coding a website and one suspicion came to me. I have a list of images (this is an artist portfolio, so this should be the image), some of which have a "featured" badge to wrap IMG in class = "featured display" rather than a strong tag Is this right in the right way? Will this give a strong emphasis on the image? Reading W3C Speak, it is strong and refers to it as a semantic text-level, but I am not sure what happens to the media like IMG. Thank you very much. I think that's fine. You can do this already, but you need to make sure that the description of the ALT text is why the images have been emphasized. Like alt = "man with dog - characteristics"

Janus GridEx data not binding soon -

I am using the Janus.Windows.GridEX control in my user interface. I am trying to list the objects But this is not happening and when the binding object is assigned to the datasource, immediately after specifying the binding source, if I check the line count then it still shows 0, even if the objects in the binding data Be the list. The collection class I am trying to bind implements the implementation here. MyType is a class I have written. The reason for this is that it is not read from the data source of Genus Gridx unless the control Is not visible (i.e. the control is loading). If you need access to fields in the underlying datastructure, then you can do this through GridEx.Datasource. However, if you need access to bound grid fields like RowCount, then your only solution is during the occurrence of those parents being loaded, or some events that are during the installation of fire after control. Hope this will help, Chris

struts2 - How to create submit button using Struts tag? -

Can anyone tell me how to create a submit button in the struts? s: Submit You really need to use the tag is. For example, suppose you have a form that appears in your code in "name" : & lt; S: Form Action = "My Action" & gt; & Lt; S: Text file name = "name" label = "name" required = "true" /> & Lt; S: Submit value = "Click here to submit" /> & Lt; / S: Forms & gt;

linux - How to run GUI application from userdefined boot time daemon server -

I'm writing daemon is a simple server up and running with /etc/init.d/server running properly But when I want to run a simple QT GUI with the system () function, it is not able to run it and returns 256 as the return code. If the same work properly daemon running was terminal and system () function is also getting to be elevated success with return value 0 and GUI. What is the problem that is not found ... plzzzz anyone can help me .......... im down Ubuntu-9 .10 Usage code is .... #include & lt; Stdio.h & gt; # Include & lt; Sys / types.h & gt; # Include & lt; Sys / socket.h & gt; # Include & lt; Arpa / inet.h & gt; #include & lt; Netinet / in.h> # Include & lt; Unistd.h & gt; # Include & lt; Stdlib.h & gt; #include & lt; String.h & gt; # Include & lt; Errno.h & gt; # Include & lt; Syslog.h & gt; Int main () {// local variable int sockfd, clifd, ret; Int client_flag = 0; Int server_flag = 1

How does Linq-to-Xml convert objects to strings? -

There are many ways in Linux-to-XML, which can add arbitrary objects to an XML tree. These objects are converted into string in some ways, but I can not find this description how it is done. The reference I am mentioning has been mentioned (but not specified). I need this for Javascript interop, but there is nothing more about this question. Linux is not just calling to XML. Toaster () . Firstly, it accepts null elements, and the other thing is that it is not working anymore .string () implements: For example: New XElement ("elem", true). Ostring () == " true " // But ... true.ToString () == "true" // IIRC, this culture is irreversible, but in any case ... true. Toasting (Culture Info Environmental Craft) == "True" Other basic data types are specially treated. So, does anyone know what it is doing and where is it described? Earmon, you are right. Quick visit with * shows that XElement will try to add value to a

c# - Can you access 'Service Reference' Programmatically? -

information: C #, Visual Studio 2010 I'm trying to use existing service references Am I or not as DTE 2, make sure I get the following to get all the 'references' DTE2 test = Package.GetGlobalService (typeof (SDTE)) ; Stringbilder sb = new stringbiller (); VSProject2 Project = test.ActiveDocument.ProjectItem.ContainingProject.Object as VSProject2; Foreach (reference item in context. Reference) {sb.AppendLine (string.Format ("name: {0}", item.Name)); } MessageBox.Show (sb.ToString ()); The property in the project is: project.WebReferencesFolder but this is zero (yes, I do A service reference has been added, honest) See third example from MSDN sample: < P> IVsWCFReferenceManager Reference Manager = refMgrFactory.GetReferenceManager (hierarchy); IVsWCFReferenceGroupCollection ReferencesGroup = ReferenceManager GETReferenceGroupCollection (); I was after that namespace C: \ Program Files (x86) \ Microsoft Visual Studio 2010 Beta2 S

PHP & mySQL: Simple code to implement Transaction - Commit & Rollback -

मेरा प्लेटफ़ॉर्म: PHP & amp; MySQL मेरी स्थिति: मैं अपने कोड के भीतर लेनदेन को लागू करने की कोशिश कर रहा हूं। मैंने उदाहरणों का पालन करने की कोशिश की, लेकिन यह बहुत मदद नहीं है मैं 3 प्रश्नों को चला रहा हूं और मैं इस तरह से एक लेनदेन लिखना चाहता हूं जिससे कि कोई भी क्वेरी विफल हो, तो पूरे लेनदेन को वापस रोल करना चाहिए मैं इस लक्ष्य को प्राप्त करने के लिए एक सरल, कुशल और गैर-ऑब्जेक्ट ओरिएंटेड PHP कोड की सराहना करता हूं। अग्रिम में आपका धन्यवाद। मेरी PHP कोड: // db_res एक कस्टम फ़ंक्शन कॉल करता है जो query पर mysql_query करता है $ res1 = Db_res ("SELECT c1, c2 से T1 WHERE c5 = 3"); $ Res2 = db_res ("अद्यतन T2 SET c1 = 5 WHERE c2 = 10"); $ Res3 = db_res ("T3 WHERE c1 = 20 से हटाएं"); अगर ($ res1 और amp; $ res2 और amp; $ res3) {// प्रतिबद्ध --- लेकिन कैसे? } और {// रोलबैक --- लेकिन कैसे? } आपको इस कार्यक्षमता का उपयोग करने की आवश्यकता है। देखें:,, और & lt;? Php $ link = mysqli_connect ("स्थानीयहोस्ट", "m

concurrency - Are BSD/Posix sockets reentrant? -

कई धागे उसी सॉकेट डिस्क्रिप्टर पर चल सकते हैं, यानी स्वीकार (sock_fd) एक ही समय में चिंता के बिना? मुझे जो प्लसट में दिलचस्पी है, वह है POSIX / Linux। < पी> हाँ, वे "रीएन्ट्रंट" हैं - कर्नेल उस पर कार्य करते समय सॉकेट संरचना को लॉक करता है (उदाहरण के लिए देखें), इसलिए केवल एक धागा क्लाइंट कनेक्शन प्राप्त होगा।

Can I do merges with the TFS offline? -

We are having trouble with a TFS connection. Is there any way to merge between branches with TSS down? I do not think TFS items compared to the source / target branch on at least one server Will happen.

php - Tracking Quiz Results with URL, No Database Allowed! -

I have to create a 10 page quiz for a mobile browser. This is just a mobile webpage, so there is no thought for other browsers should be done. Here's my problem: I can not use Javascript because every mobile browser does not support it. I am not very proficient in other languages, but I thought that something like PHP could be done because it is server-side. If my first url is domain and I enter the correct quiz answer, then the URL / domain on the next page? P = 1 The URL does not need to do anything but count the number of correct results. For the actual code, I was thinking that it can be included in HTML, because I am not people are very worried about people viewing the source on their mobile phones. Is it possible to write a line of code, which increases the 'p =' attribute in the URL when one click is done and it only engages in the correct answer? Here's an image of what I mean: And, what is Do I have to stop manually increase the "correct

fft - Spectrogram C++ library -

For my current project in C ++ / QT, I need a library (like LGPL) which can calculate spectromog from a signal (originally an array of doubles) I already have Qwt for GUI part I am using. Any suggestions? Thank you. It will be easy to put your own spectromomes together: < Li> Window function (fairly trivial, eg haining) FFT (FFTW will be a good option, but if licensing is an issue then then kiss FFT or Frequency domain components (trivial) : Calculate log magnitude of log (sqrt (again * again + im * im)

c# - Can I get the ExecutablePath from a System.Management.EventArrivedEventArgs object? -

I am using a system. Management. Management Watcher to get the process ID and executable path for the startup process: Private Wide startWatcher_EventArrived (Object Sender, EventArrivedEventArgs E) {String processID = e.NewEvent.Properties [" ProcessID "]. Value.ToString (); Var Finder = New Management Object Search (New WqlObjectQuery (String.Format ("Choose executable power from Win32_Process where ProcessID = {0}", processID)); Management Object Management Object = Faucet; Foreign Exchange (Objose Management Object in Investor.Get ()) {managementObject = obj; break; } Console. WrightLine (Management Object ["Executable Path"]); } Use this WQL query: Select the executable path from Win32_ProcessStartTrace Is there any way to Can I still survive the object using the search, but what is available in the EventArrivedEventArgs object can still be found? All I really need is the Process and ExecuatblePath for each new process begins. Is thi

Uninstall C# Windows Service - Using uninstaller -

I have created a setup project for my window service. I install it properly, however, if I uninstall the project (Either by adding / removing programs, or by clicking on the installation project in VS - uninstall), then it does not seem to be deleting the service. I have to use it Am I setting something wrong? In your installer class (which you call your custom actions) , Make sure that you override the uninstall code and call & lt; PathToFramework & gt; \ InstallUtil.exe / u & lt; to uninstall the service. PathToServiceExe & gt; .

c# - Dude, where's my thread?? (or: rename a .NET thread pool thread - is it possible?) -

Sometimes I proceed myself through an application in debug mode, as long as I'm on a particular line Do not hit 'step' and take it very well, doing a lot of time, doing a 100% CPU, at this point, I hit the 'break' button and tried to figure out what is going on so long Taking The problem is that there is a huge amount of thread running in this app, and when I ' If I hit 'A', then the execution point goes to the GUI thread, which is probably just 'waiting', I have to hunt through the existing thread (I count them - this time they are 37!) I'm going on Was trying to find him. I have to find the stack of each one of them until I should find what I was looking for. The thread I am running is an async call, so this thread runs on a thread pool. I want to give this thread a descriptive name and reset its name at the end of the operation. The problem is that, property threads. The name can only be set once , later it returns a invalid o

html - Get background color to fill full height of div -

I have a div that has set height and background color - as you can imagine the background color The full height of the devil does not extend to fill I also have 4 div , for the spherical corners in this container compartment, I have included the code given below. Regardless of the content, how do I get the background color to expand on the bottom of the container diva? # art2 {margin-top: 15px; Margin-right: 10px; float right; Width: 485px; Background color: # 262626; } .art2boxtl {background-image: url (../ Images / tlar2.png); Repeat Background: No Repetition; Height: 10px; Width: 9 pixels; } .art2boxtr {condition: full; Correct: 10px; Top: 15px; Background image: URL (../images/Tar 2); Repeat Background: No Repetition; Height: 10px; Width: 9 pixels; } .art2boxbl {status: complete; Bottom: 0 pixels; Background image: URL (../images/blair2page); Repeat Background: No Repetition; Height: 11px; Width: 10px; } .art2boxbr {status: absolute; Bottom: 0 pixels; Correct: 10px; Back