Posts

Showing posts from June, 2014

EF4 ASP.NET - Managing Entity Edits between HTTP Posts and Rollback -

I am struggling with the following usage case: User modifies an existing order The order is complicated - many related 'entities' (addresses, post options, suppliers, creates, models, different items etc.) across multiple HTTP posts. User wants to discard changes. - I have an order unit and as the user is editing it, various changes like unit associations, such as changing order.adression, order.it.ed. (item). .. This is okay in a single post, but in all the posts I do not know the best store state. If I store the entities, then I can not save the changes because they are in various data contexts. I have read that this bad practice is to store data reference in the context of the session i.e. Long-Term References I can not save changes after every edit / post because I can not roll-back (?) I really want to work with entities during the editing process instead of saving a bigger one (UI Taking the settings and applying them in one part). This would be a very com...

c++ - Force execution of parent's method before child's method without explicit call -

I am working on a C + + app and I am facing a problem: I have a class B, which is obtained from the abstract class, one that has some event handling methods, is obtained from third grade C to B. and it should replicate some of B's ​​methods. There is no way to call B's method before calling a C? Class diagram: class A {virtual void OnKeyPress (event e) = 0; }; Class B: Public A {Virtual Zero Oneppress (Event E) {Print ("Keypad:" + E)}; }; Class C: Public B {Zero OKEpress (Event E) {// Doosing}} I have come to know that an alternative solution is to call parent method by using C Do, say, B:: Foo () inside C :: foo () It works, but it depends on the developer that he remembers to add the call to the body of the method. Second, to define a new virtual method on which the child is overridden and parents have their "OKKEP" method. Thanks, 3 blank. You must explicitly call the base class method. Class C: Public B {Virtual Zero OnKeyPress (Even...

e commerce - Merchant account options for Ruby On Rails ecommerce site -

I am looking for a payment processing solution for my Rail E-commerce site, I have the requirements. Simple rail integration, such as through the active activation plugin. Works in the UK. Payment can be taken to my site (not redirected to third parties) "Post-text" itemprop = "text"> lists the UK gateways available (covering your points 1 and 2) Point 4 I personally can not help you to ask the providers individually to weight the cost / benefits.

c# - Declare and create variable in code behind -

यहां 3 परिदृश्य हैं: नामस्थान एनएस {सार्वजनिक आंशिक वर्ग ए: सिस्टम। वेब .UI.UserControl निजी चर वी; संरक्षित शून्य पृष्ठ_ऑलोड (ऑब्जेक्ट प्रेषक, इवेंटएआरजीएस ई) {यदि (! पेज। आईएसपोस्टबैक) वी = नया वैरिएबल (); ....}} नामस्थान एनएस {सार्वजनिक आंशिक वर्ग ए: सिस्टम। वेब। यूआई। यूज़र कंट्रोल निजी वैरिएबल v = नया परिवर्तनीय (); सुरक्षित शून्य Page_Load (ऑब्जेक्ट प्रेषक, इवेंटएरग्स ई) {}} नेमस्पेस एनएस {सार्वजनिक आंशिक वर्ग ए: सिस्टम। वेब। यूआई। यूज़र कंट्रोल निजी व्हेरिएबल वी; संरक्षित शून्य Page_Load (वस्तु प्रेषक, EventArgs ई) {v = नया परिवर्तनीय (); }} जब 2 वी परिदृश्य के लिए हर बार चर "v" बनाया जाता है? क्या 2 वें परिदृश्य तीसरे के बराबर है? परिदृश्य 1: वेरिएबल v को प्रत्येक अनुरोध पर, जब पेज लोड होता है, और कोई नहीं होता है वापस पोस्ट करें (अन्यथा शून्य) परिदृश्य 2: वेरिएबल v क्लास ए के प्रत्येक त्वरण पर आरंभीकरण किया जाता है, कन्वर्टर को बेकार कर दिया जाता है। परिदृश्य 3: चर v को प्रत्येक अनुरोध, जब पृष्ठ लोड होता है। टिप्पणी: यदि आप पृष्ठ लोड होने के बाद ...

Doxygen and Visiblity Keywords in PHP -

I think if I do this in PHP: class Foo {/ * * * Something Good * Returns * Always 1 * / Public Function Bar Returns () {Return 1; }} Doxygen member will not document the function 'bar' If I remove the 'public' keyword, then it does. Is there some setting that controls it? I looked online and saw nothing about it. It turns out that I was running the wrong version Doxygen My way was already Docgigan, and it was pointing to 1.3x. Now everything works.

Virtual Attributes & Rails -

I have a phone model for the phone number in my application that are made as follows: T.column: number ,: string t.references: phoneable ,: polymorphic => True I want to restrict the number of format 317.555.5555x234, so I am creating a form with four boxes (area code, 3 digits, 4 digits, extras): - form_for | User you User_forms | -user_form.fields_for: calling | Phone | = Phone.text_field: area_code = phone.text_field: first_three_digits etc ... I am assuming a virtual attribute that will be the route to go (A La Relentants ep16), but not sure How to collect "number" from 4 different text_fields I think I have to do something like this: def full_number = (phone) self.number "+ + first" - "+ +" + "" + + "Second +" + + + ". + + Extension of the extension But I have uncertainty about how to collect numbers from form envelopes. Any ideas? I normally do this as first_ervice: First_save: update_phone_...

python - Custom user authentication. How is it done, with the best practices? -

I am using Google engine app with Python. I want to add custom user authentication How is this done with best practices? I need custom authentication because the app is built in Flex and I do not want to redirect to an HTML page. User value object is like this: Class User (db.Model): email = db.EmailProperty (required = true, indexed = true) masked_password = db. StringProperty (required = true) # Maybe more things here I would like to mask the password, is there a function built in some GAE? Then, how do I remember the current user? Through seasons and cookies? Or what else? password: password handling Good way is the result of a hash of a random salt value and password for every user + salt. When the user wants to login, calculate the hash (password + salt) and see if that was the value you had set when you originally set the password. This idea is never ever used to store passwords in the claytext and two users with the same password will have the same hea...

php - Save Checkbox State and Update Database -

I am related to an idea that I want to implement in one of my projects, need help. :) What do I have In the first image, I have my information db and that Display the information and also edit / remove a button in which the check box must be checked even after the end of the event. In the second image, when the checkbox is checked, the div turns green and the button (hidden) disappears. What do I want This is a bit difficult to understand, but I will try my best. When a user checks the checkbox, then he will update the field with the value "1" in the DB of that version. After that, every time I check these incidents, they should save their state (if it is done or not). If "full" field is in DB 1, then they should be treated like the second image. Question How can I do this? Very good. $. Ajax ({url: 'script_to_update_db', data: (done: 'true'}), async: false , Success: function (msg) {warning (msg);}}); Then,...

tsql - Excel pivot table Storing in SQL 2008 / Cross tabbed tables -

मान लें कि मेरे पास X और वाई मानों की तरह है : x-1 x-2 x-3 y-1 v = 1 v = 4 v = 6 y-2 v = 1 v = 4 v = 67 y-3 v = 2 V = 0 v = 9 y-4 v = 4 v = 5 v = 62 जहां x-1 , y-1 के लिए मान है 1 और इसी तरह। मुझे सभी x मान फ़ील्ड नामों को संग्रहित करने की आवश्यकता है, सभी y मूल्य फ़ील्ड नाम और सभी मान। आप ऐसा कुछ सरल कर सकते हैं: + ------------------- + | रोनानाम | + ------------------- + | + यूआईडी इंट | | नाम नर्वचर (50) | | स्थिति इंट | + ------------------- + + ------------------- + | कॉलमनाम | + ------------------- + | + यूआईडी इंट | | नाम नर्वचर (50) | | स्थिति इंट | + ------------------- + + ------------------- + | मूल्य | + ------------------- + | + पंक्ति इंट | | + स्तंभ इंट | | मूल्य इंट | + ------------------- + ध्यान दें कि उपरोक्त '+' प्राथमिक कुंजी को चिन्हित करता है (इसलिए, पंक्ति और स्तंभ एक साथ मूल्य तालिका में प्राथमिक कुंजी बनायेगा)। इससे आप अपने तालिकाओं में पंक्ति और स्तंभ नामों को जल्दी से डंप करने में सक्षम हो सकते हैं (जबकि स्थिति क...

sql server 2005 - Why doesn't prompt for input in a batch file allow for a DASH character? -

I have this simple bit file program that I have written but if I enter a database name in which a " " Character. I'm not completely sure why, but I want to find a way around it? :: Open DB batch file @echo off :: SQL Server Management Studio Express 2005 :: starts and opens it to a specific database with the query: the window is already open CLS: SHOWDBNAMES echoed out database names found on this system: echo "% PROGRAMFILES% \ Microsoft SQL Server \ 90 \ Tools \ Binn \ OSQL.EXE" -h-1 -S -E-Q "Selection cast (as naming Naming (30)) from sysdatabases "@echo set DBNAME = set / P DBNAME = Which database name you want to open (from the list Select)? If "dBname%" = "" (resonance dunk I do not recognize your selection. Try again. Goto SELECTDB): SHOWTABLES cls echo echo tables which you can ask% DBNAME%: echo "% PROGRAMFILES% Use \ Microsoft SQL Server \ 90 \ Tools \ Binn \ OSQL.EXE "-h-1 -S-e-Q" [% DBNAME%]; Selection...

How do I find the items immediately before and after a specific one in an ordered array, using Ruby on Rails? -

I have an array of 'questions', which are ordered according to the number of their votes, and immediately and immediately before Want to show the question after the currently selected question? Assume that the currently selected question is stored in the variable @question, and I am showing a list of other questions related to that user. This code gives order according to the number of votes: question = question.fund (: all, conditions => gt; {: user = & gt; @ question.user}) . Sort {| Q1, Q2. Q2.votes.length & lt; = & Gt; Q1.votes.length} How can I raise the question before and after that question? I updated my reply, I thought you would get summaries from the first post, but here's a more detailed Example. You can not do something simple: @questions = user .questions.sort_by {| Q | | -q.votes.length} current_question_index = @ questions.index (@question) @prev_question = @questions [current_question_index-1] @next_question = @ [current...

.net - Sample TCP Client/Server Application -

I need a sample application in the following scenario 1) The IOCP TCP server is capable of accepting the request 3) Close server connection 4) Customers open another socket for connection and receive received actions With this example, I want to see how a customer can open a connection And after the connection of the server another successful connection can be done with the client and can get the operation again In fact how the server can handle the rejected connection and socket is unwanted ?? / P> Please kindly help me with that It can blow a new soul into my body! I wrote several articles on code projects many years ago, to create an IOCP based TCP server A set of code was presented. The code is in C ++ and your question has been tagged ".net" but it seems impossible that you want to develop the net server using IOCP, because you have to use different asynchronous socket methods Can work as well without any need. Anyway ... The first article is li...

xcode4 - Where did the script menu go in Xcode 4? -

Image
I always love the script menu from Xcode, and automatically have the ability to generate the methods for definition and announcement. . But it seems that there is no such thing in Xcode4. I know that I can use properties, but sometimes methods of access are still necessary. Any other way to make them automatically? Under "Xcode", Xcode 4 now has "Behaviours" in the " " post-text "itemprop =" text "> menu. You can create custom behavior here, which is used by the script (other

tfs2010 - TFS + a com project + a .net project -

We currently have an application that is in two pays. There is a C ++ solution that complies. Other solutions for the Com Assembly are our clean app that again presents the Com Assembly. We had an unblocked process to make Com to be asbly and distribute it to the developers working on NFT side. I want to streamline this process. I am trying to find a way to automate the whole process with TFS-2010, I hope that it will be able to close a build that ends with an installer created for the testers. Answer the two solutions to solve the same? Any guidance on managing it will be great. You can point to several solutions in a build that do not have to be solved, in your build definition Go to the Process tab and select the solutions you want to create. I think you have to set build type to release - mixed platform packaging can be controlled by YX (3.5), depending on whether you want to make 2 installers That is how close the app is connected to.

mysql - How to limit results of a LEFT JOIN -

Take the case of two tables: tbl_product and tbl_transaction . tbl_transaction lists the transactions involving the products and includes dates, product-ids, customers etc. I need to display a web page in which 10 products and each product, the last 5 transactions are being shown. So far, no LEFT JOIN query is not working and will be working on the Sbkwarry below if mysql tx.product_id = ta.product_id portion ( Unknown In column 'ta.product_id' where 'clause': [error: 1054] ). includes SELECT ta.product_id, ta.product_name, tb.transaction_date FROM tbl_product ta LEFT in (SELECT tx.transaction_date FROM tbl_transaction tx WHERE tx.product_id = ta.product_id LIMIT 5) TB LIMIT 10 Do I want a method to get the list Inquiries in a loop without multiple usage ? In Edit: This is what I need from MySQL: SELECT ta.product_id, ta.product_name, tb .transaction_date ... tbl_product Join tots tbl_transaction tb oN (tb.product_id = ta.product_id LIMIT 5)...

python - Sending data to django site -

I am trying to create a Django service for which many client data will be sent. Each customer will represent the authenticated user, whether or not to connect to the Internet, so the customer will collect data and send them when the connection is available. Data should be retained at the local level so that the server can be delivered quickly without hitting it. The nature of the data is simple, it has to do with game achievements, so each user will have a collection of their accomplishments. As a result, there are no stability issues, because each user is sending their achievement statistics, and no user will edit any other's data. I am trying to find the most suitable medium for this. My first idea was POST HTTP request, which will handle the DNS server. A Python client will log in and execute these requests and send 'Data' data. Can someone recommend a better option or tell me the reason why this setup is suitable or not? I would also like to know what you woul...

nosql - Questions about FriendFeed's MySql SchemaLess Design -

Brett Taylor discussed schema les design in this blog post: It seems that they Store different class objects in only one table. Then build more index tables. My question is how to create an index on a class. For example, the user's blog {id, userid, title, tan} A user tweet is {id, user-id, tweet}. How can I do if I want to create an index for users' blogs? It's very easy - maybe you are expected. When you archive a blog unit, then you have the main institutions table of course. A blog goes like this: create table entities (id INT AUTO_INCREMENT primary key, entity_json text tap); Enter Entities (id, entity_jason) value (default, '{userid: 8675309, post_date: "2010-07-27", title: "MySQL is NoSQL", body: ...}'); You are also included in a separate index table for each logical type of attribute. Using your example, UserID for a blog is not the same as the user id for a tweet. Since you have just added a blog, then you enter...

php - stuck in a rut, need help breaking through to the next level -

I am working on a humble website with my usual, self-taught PHP skills, and the current interface structure Of: & lt ;? Php if (a) {$ output = some funk (a); } And if (b) {$ output = other Func (b); } And if (c) {$ output = still african (c); } And {$ output = 'default stuff'; }? & Gt; & Lt; Html template top off & gt; & Lt ;? Php $ output echo; ? & Gt; & Lt; / Html template bottom half & gt; This was the first time, and seemed very well arranged, but the required functionality has increased from one aspect of 10 and it is rapidly turning into a seamless, embarrassing mess. And I do not know how to get out of it. I think that the work that is called for each situation is quite well written and focused, but has been in some disadvantage of how to handle mid-step between the user. And manage returns. I think MVC is a solution? But I have a hard time getting out of here ... I apologize for any headache or unpleasant memories that can be...

c++ - Are the elements in a std::map guaranteed to be ordered? -

Is this just an implementation side effect (red-black tree) or is the order guarantee by C ++ standard? The ordered execution is not an implementation description; It is guaranteed by the C ++ standard; It is the basic asset of all the Associated Containers (C + 03 03 § 23.1.2 / 9): The basic properties of the organizers of associative containers are: That they determine the sequence of non-keys through the container where the non-descending definition is defined, which was used to make them. From any two dereferenceable iterators i and j to that distance that i to j is positive, value_comp (* j, * i) == false value_comp comparator with which map was created (By default, this is std :: less .

osx - How can I replace a Python 2.65 UCS-2 build with one built using UCS-4 without losing everything in my site-packages? -

I downloaded the Python 2.6.5 source, it is made for OS 10.6.4 64-bit, and many dependencies Are set up. I recently opened a large project working in our team, conducted unit tests, and one of the tests failed because I had made Python using UCS-2 (I did not know it was OS X Was the default!) In short: I did not supply the flag - enabled-unicode = ucs4 while creating Python (as I found that it was necessary :) Now I lose everything Without the sector would like to correct for losing site packages. Is this possible? if so, how? Thank you! Michaux You can save the / Library / Fraameworks / Python.framework / Versions / 2.6 And can restore /lib/python2.6/site-packages (such as a .tar.bz2 ), but restored .so s If there are any deals with their entry points with Python Unicode objects - therefore, those packages (such as any .so files) will not work properly for you The version must be rebuilt / restored Ha! Hopefully this is very far from "everything...

sql server - Split function in SSIS Expression -

I got a column value as '035-7448-001-3854535' - in SSIS - data flow me Need to split ** Col1 Col2 Col3 ** 035 7448-001 3854535 This can be done using the script component. Is there any way to deal with the derived column components thanks I'm sure you can do this and in combination, but I think a script component will eventually give a more readable, better document solution.

python - Fastest way to produce UDP packets -

We are creating a test born to push binary messages on UDP multicast. The prototype is using twisted reactor loops to push out the message, which is achieving the level of traffic we expect - about 120000 messages per second. We have 16 cores on our testing machine, and obviously I really want to spread it over the core to make a horn fly. Does anybody have any idea about how we can make the application architect (either using an event loop approach or CSP style approach) output. Apart from this, prototype is spent mostly in writing UDP - like IO, I should not be surprised, but am I not missing anything? Any thoughts are welcome. I have a broad NIC, hardware or kernel interface limit. I use Broadcom Corporation Net Extreme BCM5704S Gigabit Ethernet Adapter. I can only access 69,000 packets per second. Try Quad Intel Gigabit Server Adapter with all four NICs on the same subnet.

php - How to have different logic for a page and a post within Wordpress? -

I am modifying a WordPress template and need to separate the rendering logic for posts and pages, especially The form that renders out the date in the form of the problem is that I am not getting any code to do this, I am sure it exists. Is there a variable that exists in WordPress that tells me whether the item is displayed or a page? Something like this will appear in an ideal world: & lt ;? Php if (is_page ()):? & Gt; Page logic & lt ;? Php else:? & Gt; is the type of post, so the different blog posts for page versus normal blog posts should properly return different values.

code formatting - Ruby indented multiline strings -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर यह एक सर्वोत्तम अभ्यास प्रश्न है । ऐसा करने के लिए स्पष्ट तरीके हैं, उनमें से कोई भी बिल्कुल सही नहीं लगता है। मुझे अक्सर यह परीक्षण करने की आवश्यकता है कि कुछ बहु-लाइन स्ट्रिंग का उत्पादन होता है। यह आमतौर पर गड़बड़ी की तरह दिखते हुए सब कुछ खरोज बनता है: वर्ग टेस्टहेल्लोवर्ल्ड & lt; टेस्ट :: यूनिट :: टेस्टसीज डीईएफ़ test_hello assert_equal & lt; & lt; ईओएस, हैलो_वर्ल्ड हैलो, दुनिया! विश्व आपको ईओएस एंड एंड के साथ मैं डॉक्टर मार्क मार्कर इंडेंट कर सकता हूँ, लेकिन यह हेरेडॉक के अंदर इंडेंटेशन को पट्टी नहीं देता, यह अभी भी दिखता है भयानक। वर्ग टेस्टहेल्लो वर्ल्ड & lt; टेस्ट :: यूनिट :: टेस्टकेस डीईएफ़ test_hello assert_equal & lt; & lt; -ईओएस, हैलो_वर्ल्ड हैलो, दुनिया! विश्व आपको ईओएस अंत का अंत मानता है इससे मुझे इंडेंट की सुविधा मिलती है, लेकिन परीक्षण लाइन की पठनीयता भी ग्रस्त है। यह gsub वास्तव में सही नहीं लगता है। वर्ग TestHelloWorld & lt; टेस्ट :: यूनिट :: टेस्ट सीज़ डीईएफ़ t...

path - PHP using dirname(__FILE__) on non-dedicated server? -

What I'm trying to do to define constant variables in a config file: Define ("path", dima name (__ file__). "/"); Therefore, when I want to "join" or redirect, I can do this: Include (Pat. "Filename.php "); or header ("location:". Path. "logout / php"); But when I try to echo the PATH, I get this result: / home / myDOMAIN / public_html Do I constantly tell wrong? (Honestly, I copy that code from the WordPress config file) Update: Try: Set the site path to include the file ('Pat', $ _SERVER ['DOCUMENT_ROOT']. Dirname ($ _ SERVER ['PHP_SELF'])); More info:

objective c - Is there any document to work on Core animations and core graphics in iphone sdk? -

I am new to iPhone in native graphics, anyone can tell how to work on it and through it Go process In addition, anyone provides me with a document with sample code. Thanks in advance. Monish See section in the iOS reference library - you can find, reference to the square and some samples of it there. The same applies to PS Core animation - there is a whole relevant section in Apple's docs

PMD and auto generated code in Netbeans -

I am using Netbeen to create a GUI application and about things in the PMD Auto-Generated Code "Complains". Can I ignore the PMD auto-generated code (as I did with the checkstation)? Thank you. There are some things you can do: Change the form type template to include magic strings. Use the template items from the Tools menu to open the 'Template Manager' dialog. Find a folder named 'swing GUI form' and expand that node. Select a template and open the editor's button. Change @SuppressWarnings ("uncheck") to @SuppressWarnings ({"uncheck", "PMD"}) B Create a rule, which does not include the warning which is violated by the generated code and use that rule. There is another one page.

c - Why printf( "%s" , ptr ) is able to dereference a void*? -

When we talk about dereference, is it necessary that the * Should use? If we reach the indicator's direction in any other way, then it can be considered as an indicator or formatting, such as: char * ptr = "abc"; Printf ("% c", * ptr); // Here the indicator is dereferenced. Printf ("% s", ptr); // what about this one? This is the first part of my question. Now if printf ("% s", ptr) is an example of derining, please answer the following part of my question too. K & amp; R says that A "pointer to wholes" can be used in any type of pointer but can not be dereferenced > char a = 'c'; Char * p = & amp; A; Zero * k = & amp; A; Printf ("\ n% c \ n", * p); Printf ("\ n% c \ n", * k); does not compile, complier gives error function in 'main': Warning: dereferencing 'zero *' pointer error: invalid usage of zero expression But if we use ...

iis 7 - Creating virtual directories within another virtual directory using C# -

I created a Windows service app that knows how to create a virtual directory in the original folder of IIS (7.5). And this code is: System.EnterpriseServices.Internal.IISVirtualRoot vr = new System.EnterpriseServices.Internal.IISVirtualRoot (); string sError = ""; vr.Create ("IIS: // localhost / W3SVC / 1 / root", physicalPath, virtualDirectoryName, sError outside); This works perfecly Now, to say that I have created a virtual dealer named MyVDir in the root folder, and then I want to create another virtual dior, as above, with the same C # function - MyVDir virtual directory (create nested virtual directory). What should I do? Something like vr.Create ("IIS: // localhost / W3SVC / 1 / root / MyVDir", physical path, virtual directory name, sError outside); doesn thanks for all! is not a work for me, and a 'path can not be found'

java - Why does ScheduledThreadPoolExecutor only accept a fixed number of threads? -

I can think that some tasks are set for a very long time and Scheduled ThreadPoolExecutor Threads will need to be run by other tasks, until the maximum number reaches the threads. But it seems that I can only specify certain numbers for the pool, why is it so? As to why, I do not know either but I can imagine. The amount of computer resources is limited. Not all resources can be handled together. If several processes load the file simultaneously, they will be loaded sequentially (at least on a hard disk). A processor has limited support to coordinate multiple threads simultaneously. At some point the OS or JVM Threads will have to spend more time to spend, Threads have to spend in executing their code. This is a good reason for the Scheduled Tahrudpur Accelerator designed in the way it is designed. You can put any kind of jobs on the line, but instead of being able to run efficiently, more jobs are not performed at the same time. It is up to you that, of course, ...

Writing my own 3D Game Engine -

I want to write a simple 3D game engine for applicable . I have purchased some important books such as: Last 3D Game Programming by Sherrod Game Programming Gems 6 Best of Game Programming Gems I read them But I need a road map . Please give me some advice. Thank you. I would recommend at least one small game using an existing engine so that you can understand That one engine is from that point view. Personally, I recommend Unity, Neoaxis or UDK. Then focus on creating a game without any such engine (as suggested by others). You may want to start using some existing sub-systems like Ogre 3D, gradually change it with your own. Then you can start thinking about how to build an engine that is suitable for other sports. Even jump straight to make a simple engine is like trying to write a novel that has read without any one. (And in fact, the novels are much simpler than the game engine.) In those books, I take game engine architecture and instead of f...

javascript - Manipulating browser cache -

I'm developing a web app uses many asynchronous loaded images, which are often modified over time There are several problems with their URL: If I do not provide images with explicit caching in the HTTP header, then the user is often given an old image The version will be available, but doing so increases the server load significantly The expertise. How can I remove the cache control from the browser and how can I manually evaluate whether I should use a cached image or reload it from the server? Since many different images are being loaded, I am parallel to the image download on different hostnames (i.e. image01.example.com , image02.example.com , but all these hostnames resolve for the same physical server) since the hostname NN is randomly generated, so I also miss the cache Where I could recover the up-to-date image from the browser cache. Would you recommend using cache control techniques and reading material? To force a load, the URL Add a nonsense p...

git - Where to find Qt's commits? -

There is a regression in Qt 4.6.2 on windows (there is no border color setting from stylesheet). This bug was originally recorded in Q 4.4, and it was fixed in QT 4.5 around December 2008. Unfortunately I have not received similar commitment, probably because the command guit (or switch) was done during this transition). Where can I do this work? Cheers, Franz For reference: New ticket for retraction: Can you reduce the QT version, where a problem was present, and then the latter one, where it was fixed ? If you can find any reference to the bug in the page, then it will give you the exact pair of the desired versions. If so, then I have found that, with this information, I can usually find out the changes to a bug-fix by downloading the source code for 2 different versions of QT, and Then compare related source files. A diff'ing tool like a Meld or Arxis merge can actually be useful for it.

c# - Thread Renaming -

In Java, it is possible to rename the thread. This is not in .NET. The reason for this is that the name is a property that writes- once in the thread class: public string name {get {return.m_Name; } [Host Protection (Security Action.LinkDemand, ExternalTrading = true)] Set {Lock (this) {if (this.m_name! = Null) {New Invalid Operation Expansion (Environmental GETResourceString ("InvalidOperation_WriteOnce")); } This.m_Name = Value; InformThreadNameChangeEx (this, this.m_Name); Given the fact that Java is allowed to rename the thread and use the built-in thread structure, both the platforms are OS-supplied, I think I can actually change the name in the thread C # I avoid a certain methodology which i) do not care about me or b) do not use at all Do you have any idea why changing the name of a thread once The registration? Any name changes, does any idea break up? I have tried a test where I change the name of the thread: var t1 = new thread (testmistm); T1.Name = ...

asp.net mvc - Great project ideas for MVC/LINQ/jQUERY -

I'm looking for some projects so that I can get help in learning MVC, LINQ, and maybe a little bit of Junkery I've got some ideas - creating a full bug tracking system or support ticket system at the top. Do any of you have any suggestions that I can try? I will go with some more advanced and some real utility these will go to my portfolio, so it will be good to be able to show them in the future. Thank you! I want to give you all the small green check marks but I can not regret :( Thanks for the suggestions, I will use them all. I would recommend writing a blog engine . Posts, comment threads, categories, and tagging will give you some practice with MVC. In addition, a great place to show jquery use in both presentations with a blog engine menu Land, etc., and asynchronously to post comments with Ajeaks.

c# - please explain the use of "default()" in this code -

स्रोत कोड // स्थानीय से कनेक्ट करें, SQL सर्वर का डिफ़ॉल्ट उदाहरण {सर्वर srv = डिफ़ॉल्ट (सर्वर); Srv = नया सर्वर (); // लिंक किए गए सर्वर बनाएं लिंक्डसर्वर lsrv = डिफ़ॉल्ट (लिंक्डसर्वर); Lsrv = नया लिंक्डसर्वर (srv, "OLEDBSRV"); // जब उत्पाद का नाम SQL सर्वर है शेष गुण हैं // सेट करने के लिए आवश्यक नहीं है। Lsrv.ProductName = "SQL सर्वर"; lsrv.Create (); } डिफ़ॉल्ट (सर्वर) का उपयोग क्यों करना है? -यदि इसकी पसंद सर्वर asd = new asd (); यह अभी भी डिफ़ॉल्ट इंस्टेंस से जुड़ जाएगा! डिफ़ॉल्ट का उपयोग क्यों करना (लिंकधारक) -क्या बिंदु होता है? हम अभी भी srv और प्रदाता और उत्पाद निर्दिष्ट करते हैं! डिफ़ॉल्ट (...) डिफ़ॉल्ट मान ऑपरेटर है यह संदर्भ प्रकार, या मूल्य प्रकारों के लिए "शून्य" मान के लिए रिक्त करने के लिए मूल्यांकन करता है। इसमें बिल्कुल कोई बात नहीं है ... चर को एक अलग मान को तत्काल सौंपा गया है यहां समतुल्य कोड है: सर्वर srv = नया सर्वर (); // लिंक किए गए सर्वर बनाएं लिंक्डसर्वर lsrv = नया लिंक्डसर्वर (srv, "OLEDBSRV"...

java - Create excel chart using Apache POI -

I need to create excel sheets from my java code which includes charts such as bar charts, line charts, etc. which are apache POI library Use. Is this possible? I can not find any useful code examples for this. Is there another option other than the POI library for Java? You can use Excel template only to preserve the charts with POI. This means that you create an Excel template file with the chart in it and link the data source of the chart with a defined name, you can load the template file with POI and use the code to change the defined name. You can. Current POI does not support creating charts from scratch.

html - Can I center a <ul> with left-aligned <li>s? -

Image
I want to focus a list of left-aligned items. This is what I am currently in: Which page looks like this looks: What I really want looks like this: width: 200px; to #content ul but the problem is that I have a lot of lists, this and their There is a different width. To remove me from the content f So that it can be centered properly or is I going wrong about this? Thanks for any help you can provide. Solution Thank you and the solution here: Add these four lines to the CSS rules of #content ul : Display: -Moz-inline-stack; display: inline-block; zoom: 1; * Display: inline; I have it in IE6, IE7, IE8 and Firefox 3.6 Have tested. The results look like the second image above and the list always fits the content of the item. set & lt; Ul & gt; Display: Inline-block to use . See. Note that inline-block is not supported for IE7 (fully) .7.

problem building Mutis demo (Delphi) -

I am using CodeGear RAD Studio 2009. I want to use the Mutis text search engine. Download from SourceForge is a lack of documentation, so I tried to create the included BasicDemo, does not create a series of errors, "The implementation is missing for the abstract method ...". Does anyone have a working version? TIA Steven PS: For which I remember about abstract methods is that implementation is necessary only at the legacy level or is it? You are right about abstract elements. The author marked methods in the orbit in the form of a table , But did not make their implementation in derivative classes. I followed this project from the beginning and even tried to help. It lacks a significant number of users. I recommend that you search for options, the last file which was released 4 years old and the last activity in the SVN repository was 2 years old.

c# - Serialization vs LINQ -

I am currently writing an application to manage some customers, customers have some relation such as order you think Like the Northwind database, I want to save the data in an XML file. My application should read, modify, and save data I think, the two approaches are the first way to save, read, and modify data from the XmlSerializer class. The second approach is to work with LINQ-to-XML. All my classes are written in simple C # classes, so I'm not sure. What do you think What should I do for my needs? Thanks in advance! XML XML documents from LINQ are good for interrogation. If you are serializing / de-serializing an object, then I will drop it in the XML serializer class.

python - Provide Global Access Point to an Instance of an Object -

Imagine a system (Python), where different parts interact constantly with an example of a given object . What is the best way to provide universal access points for this example? So far I only have __init __. Py and Import Module Requirement: # __init__.py Class Thing (Object, Singleton): The Typing = Thing () __all__ = [ 'The Typing'] What is the TheThing ? j is a better way to provide a universal access point for Do not use singletons in Python Python module are great single songs ( They only get started once and are available everywhere) and if you need it, you can be one in a global variable. The explanation given here is:

Bad Request Piwik -

I get this error when I try to call a PIWIK API Bad Request Your browser has sent a request that the server could not understand. Size of a request header field exceeds server limit. Cookie: piwik_visitor2 = 1% 3DMjQ2NzVkZWQzNWE2NmVmZTg0mDAzYjcxNDVjMWNkYjM% 3D% 3A2% 3 .... How can I ride this Piwik is hosted on one of our servers Apache configuration What is anything with? By the way, it is working for some time. But it has stopped working suddenly Please advise. Thank you, Imran This is a known bug in Piwik, which is the future At some point in: However, according to information in the ticket, the team will issue a fix to prevent error for 1.0 next week.

sharepoint 2010 - Cannot Enable Anonymous Access for Publishing Site -

I have created a new publishing site on a new installed SharePoint 2010 on my local Win7 box. The publication site's home page has the option of "Enable anonymous access" when I use that link, with "None" selected, there are three radio button options, "entire site" and "list and libraries" Other radio buttons are disabled for them and they can not be selected. Why is this disabled? How can I enable them? Thunsk Web application in central admin? Central Admin> Application Management> Web Applications> Select Web App> Authentication Provider> Select Zone> Enable Avon Access After that the button should be enabled at the site collection level.

How to bring Android existing activity to front via notification -

I have an Android application, when it runs a service, I want to show a notification on the status bar. After that user can navigate to other applications by pressing the Home key, however, when I try to bring the last running application back to the notification icon on the front, there is some problem in the current activity. Announce as "single top" mode (I want to run existing activity because there is no affiliate service in it), any kind of activity. Dastor stated before Onrsum. Here is my code to create notification object. Can you please tell me what is wrong, thanks. Private Zero Shows Notification () {Intentionally Lock = New Intent (getApplicationContext (), MassingTapActivity.class); Pending Intentback = PendingIntext.get Activity (getApplicationContext (), 0, ToolLeach, PendingEngineFLAG_UPDATE_CURRENT); Notification.setApplicationContext (), getText (R.string.GPS_service_name), text, intentback); ....} private zero show notifications (intent) Lock ...

wpf - ToggleButton group: Ensuring one item is always selected in a ListBox -

I'm trying to duplicate the left / center / right alignment toolbar buttons in Word when you press the "Left Alignment" Click on center and right button are unchecked. I am using a WPF ListBox with togglebutton. The problem is that users can click the left alignment button twice. The second click is to unselect the button and sets the underlying value to zero. I have to do a second to do nothing. Thoughts? Always emphasize the list box for a selected item? Stop the empty in the visual model (need to refresh togglebinding binding)? & lt; List Box Itemsource = "{x: Static Domain: FieldElement.AL}" SelectedValue = "{Binding Focused FieldAlignment}" & gt; & Lt; ListBox.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; ToggleButton IsChecked = "{Binding relative Soros = {Reslevsource mode = SearchEnster, ancestor type = {x: type list box}}, path = ishselected}" & gt; & Lt; Text block text = "{bin...

javascript - Why isn't document.evaluate working? -

I'm using it in the Firefox extension and can not get it to work. all allLinks = document.evaluate ('// one [@ auf]', window.document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, empty); Window.alert (allLinks); This alert [Object XPathResult] . Although always gives 0 in the following (and of course there are links on the page). window.alert (allLinks.snapshotLength); If this Firefox is specific and I believe that you only use the new version Can you do this when the DOM is completely loaded? to do this DOMContentLoaded or something else. Documents. AddEventListener ('DOMContentLoaded', fn, false); Edit: Your XP works for me Is it in the console on the current, loaded page, before anything is present you are inquiring .

locking - How to don incremental multi user updates with NHibernate -

I am using nhibernate as my orm and I'm trying to implement something that is easy Appears, but has become unsuccessful as it concerns how to implement a concurrent update of an entity, where it is expected that the unit will be updated simultaneously in a multi-disciplinary scenario by more than one user. An entity is an account with a balance of which An example is an inventory system that requires the balance of inventory items to be updated, which is either inside or outside the movement entries. I have included a short version of the code below. I code only saves insertion and relies on the netnet which saves all the way to the item in cascade. The system is expected to handle many users, the objects are built in the UI during the period of time. The balance of each item will be adjusted in quantity when the entry was made in the UI and the object was received. Ultimately saving the user can take several minutes. If another user has created other entries on the same ...

perl dbi handlers interacting with each other -

I have a strange problem where I have 2 dBi handlers and they interact with each other in a non-obvious way are doing . Specifically, I set up 2 handlers, one for putting one, and one called a stored proc, and if I call them $ spHandler-> Executed ($ cusip); $ InsertHandler- & gt; Execute ('2010-05-01', '36200A3C1', 595795, 'X', 3); Then the insertion fails B / C of an exact error. If I execute only $ insertHandler-> order ('2010-05-01', '36200A3C1', 595795, 'X', 3); $ SpHandler- & gt; Execution ($ CUSIP); Then both of them work correctly Is the resources here shared or something I do not know? I said that they want to be able to process the result of the accumulated process, hence the situation at this time is problematic.

What does the ruby method "in" do? -

Searching for it is a bit difficult. This can actually be the rail method. If you want to know what any method does, just open "Re the_method" In this case, "Rei" appears in date # in . "Ri date in" returns: surname for #since In return, "Re din winter" returns: converts the date in the date (or date time if necessary) with the time set to the start time of the day (0:00) and then adds seconds to the specified seconds And yes, it's in ActiveSupport.

asp.net mvc - Going live with a MVC site -

I have just moved my site to my server which is Windows 2003 SP2, SKL 2005. I have an MVC site running on my server (although I have closed it) this works fine but my new site does not work properly For some reason routing fails to work on my server. I can hit the homepage properly by using the domain, but clicking on any link (or typing it) results was not found in only one page! Page "The page could not be found, the page you are looking for was deleted, its name was changed, or is temporarily unavailable." MVC does not play so well with the IIS 6 outside the box. Have you either configured a handler for .mvc or wildcard handlers?

swing - Java + JCommon: How set cell background in SortableTable? -

SortableTable में सेल पृष्ठभूमि का रंग कैसे सेट किया गया? एक नज़र डालें (यदि आपके पास एक JTable को ध्यान में रखना है)

gridview - ASP.NET Custom Paging -

How to keep custom paging for dynamic result sets? (I.e.) 10 dropdown selects my stored procedure dynamically based on selection, but it generates millions records. The row is statically known as record count, cues paging is efficient, but how to achieve it for a dynamically increased result set The problem I have to pair the general list with gridview, the columns are fixed, but the number of retuened rows is unknown, but the result for carrying my GridView 30 minutes without custom paging. You should use LINQ if possible, as extensible operations do for easy paging. Then you have a IQueryable & lt; T & gt; is the method that accepts an initial status and the number of rows to retrieve. Then you skip () and take () to get simple paging. Very good article on doing this. Remember that skip () and take () come in front of any class that applies IEnumerable, therefore, the above article is called LINQ- Use SQL for your data repository, unless your own ...

c# - Can someone please clarify the key difference between Entity Framework and Typed Datasets? -

I am comparing EF and type datasets for their usefulness. I was unable to see why the use of EF would be used on the dataset you typed, if EF is only bound to SQL Server. But is it true that the details of the links in EF are evaluated late if you do something like this: db.Customers.where (c => c.Name == " John EME will create such a query: Select from customers * where * name = 'John Smith' But with the typed dataset you can write Are: bll.GetCustomers (). Where (c => c.Name == "John Smith") which is very similar But the difference runs first: select from customer And then using the standard collection library, the lines named "John Smith" find: EF in theory would mean more efficient. Is it correct? Yes, with the unit framework, By using code> IQueryable : var result = db.Customers.Where (C => c.Name == "John Smith"); Internally, the result is IQueryable & lt; Customers & gt; (or your ...

Expect (the language) "couldn't compile regular expression pattern: quantifier operand invalid" error -

I'm having trouble with a relatively regular expression. I am trying to match it Output: RUC. Hg 0: 6 +6 ITPOCHG 0: 6 +6 ITUC HG 0: 6 +6 ITPKTHG 0: 6 +6 IT 127 Hg 0: 6 +6 ITBIT Hg 0: 456 +456 IR 127 Hg 0: 6 +6 IRPKTHG 0: 6 +6 IRUCHH 0: 6 +6 IRPOK Hg 0: 6 +6 IRBYT HG 0: 456 +45 IRGenk 00: 1 +1 I want to exclude '6' from '6' in line: ITPKT.hg0: 6 +6 I am using this regular expression: ITPKT * \ + (\ [0-9]) But when I run the script, I get an error: Regular expression patterns are not compiled Could: While executing the Quantifier, while "Expected -Ray" while executing ITPKT. * \ + (\ [0- 9]) "{puts" $ expect_out (1, string) "; set STT $ expect_out (1, string); set 1 sent;}" I have read that some characters need to run away or try to evaluate the expectation (hence '[top' escaping]], and I have an 'invalid command' error, so I think That I have got past from this stage. But now I am stuck in ...

What does <.ctor> mean when it appears in a symbol in .Net -

मेरे पास प्रतीक है जो दिखाई देता है MyNamespace.MyClass। & Lt; .कॉक्टर & gt; b__8 () क्या & lt;। & Gt; मतलब है? या b__8 () उस बात के लिए? यह सदस्य एक विधि है MyClass के कंस्ट्रक्टर में प्रयोग किए गए लैम्ब्डा अभिव्यक्ति या अनाम प्रतिनिधि के लिए सी # के संकलक द्वारा उत्पन्न & lt; & gt; में उस विधि का नाम है जहां लैम्ब्डा अभिव्यक्ति / अज्ञात प्रतिनिधि देखा गया था, और b__8 विधि का नाम अद्वितीय बनाने के लिए सिर्फ एक अर्थहीन प्रत्यय है । एनबी: यह नामकरण योजना सी # के संकलक के एक आंतरिक कार्यान्वयन विवरण है यदि आप इसकी मदद कर सकते हैं तो इस पर भरोसा मत करो।

asp.net - <%= %> embedded in Javascript IF Condition -

एएसपीएक्स पृष्ठ में: यदि (& lt;% = not me.ThisVisa.PassportExpirationDate माइक्रोसॉफ्ट जेस्क्रिप्ट रनटाइम त्रुटि: 'ट्रू' अपरिभाषित है मैंने इसे करने की कोशिश की: त्रुटि: / P> यदि ("& lt;% = Me.ThisVisa.PassportExpirationDate.IsNull.ToString% & gt;"! = "सत्य") { .. लेकिन मुझे एक संकलन समय त्रुटि मिलती है: त्रुटि 5 विकल्प सख्त पर 'स्ट्रिंग' से 'लांग' तक अन्तर्निहित रूपांतरणों की अनुमति नहीं देता है सहायता! लॉजिक को सर्वर स्क्रिप्ट में ले जाने पर विचार करें। ऐसा करने से आपको पृष्ठ पर कितना जावास्क्रिप्ट कम करना पड़ेगा। & lt;% यदि नहीं I.ThisVisa.PassportExpirationDate.IsNull फिर% & gt; // जावास्क्रिप्ट भलाई & lt;% अंत अगर% & gt;

Splash Screen Programatically in Delphi -

What's the best way to implement a splash screen in Delphi? "itemprop =" text "> Create a form, this is FormStyle = fsStayOnTop , this is the border style from anybody and it's title to empty. This will create a form that does not have a caption bar at the top. Drop a TImage on the form and load your bitmap into it. (A TTimer drop on the form will be used to make sure the splash screen remains at least some duration here is the code I as your splash: TSplashForm = class (TForm) Image1 :. TImage; CloseTimer: TTimer; process CloseTimerTimer (sender: TObject); procedure FormCreate (sender: TObject); procedure FormClose (From: TOBject; Action on: TCloseAction;) Process FormDestroy (Sender: TObject); Personal FStartTicks: Integer; FOKToClose: Boolean; Public Property OKToClo se: Boolean FOKToClose read about FOKToClose; end; var SplashForm: TSplashForm; In FormCreate: process TSplashForm.FormCreate (Sender: TObject ); start FStartTicks...

Facebook Share success callback -

Is there another way to callback or track someone, using someone's share button, Shared? What are you using? Because it says right in the docs function (feedback) {If (feedback & response.post_id) {Warning ('Post was published.' ); } Else {Warning ('Post was not published.'); }}

Migrating from "SQL Server" to "SQL Azure, while already using "Linq to SQL" -

I want to migrate the existing application to SQL Ezur from SQL Server. I am using "Linq to SQL", the application is local, do I believe that I only have to change the connection string and the cloud will be connected to the cloud instead of the local database and no change is needed at the code level. If your database has already been migrated to SQL Ezur, You will need to change the connection string and open the SQL Ezire Firewall. To allow your customers to reach DB. (You can do it in the portal). However, SQL Azure is very close to SQL Server, but it is not exactly the same. Many links can be found for official variations in this or you

java - Issue writing out file path properties in ant -

I am having a problem with writing a property that holds the value of the directory path in the property file. My script basically reads in this special property, it is called 'appserver.home', & lt; Property file = "source.props" /> and & gt; by using a prom file. I echoed the incoming value and read it correctly as C: \\ somedir \\ jboss_4_2_3. What does my script need to do next? This value is used by another property file (another ant script - though this is not important). To create this other file, I am using an off-template file in a way that is surrounded by $ $ .... with placeholders, to put the right place in the right places using the following: - & lt; Copy file = "template_file.props" tofile = "target.props" & gt; & Lt; Filterset begintoken = "$" endtoken = "$" & gt; & Lt; Filter token = "appServerDir" value = "$ {appserver.home}" /> & Lt; Filt...

osx - Hacking and different environments -

For a long time, I wanted to be a safety expert. In fact, I usually want to know everything about a computer I am So I read something on the virus and different types of environments that you can get. What I've found is that the virus affects Windows computers due to at least the people of Unix, which for some reason use Unix (there is more control over the matrix) and Mac computers are hardly Is affected by the virus. What I think, this is because Apple MacOS basically holds the source under lock and key. What I wanted to know was: Black Hatts exploited weaknesses in Windows and Unix systems. Obviously because it is targeted for more mainstream use, windows are often exploited, but why is not the advantage of Unix? Source code is available freely, what does it offer? With it, we move on to the macode. Unless they are employed by Apple (I think), no source code can be viewed, and with any software, it is bound to vulnerabilities, but due to the lack of availability of cod...

php - Slow server script makes IE stall -

I am working on a php web application that includes calls to 3rd party web services Recently I have problems Participated because some web services are slow and / or timed out. (When this happens, the service throws an error after 5-6 minutes, which is handled by a web application) However, the problem arises that the web while waiting for the result / time-to-time All other connections in the browser (in other windows / tabs in IE) stall it seems to be a problem in the browser, because if the web application opening a secondary window in another browser (such as Chrome) does not delay Land. I have considered setting up web service calls asynchronously (a separate server.side process, or an AJAX call in the browser), but in the mean time I would like to know why a page awaiting When IE has put all the apps on the web app while doing it? Could it be that in the custom header or other frivolous markup move, will IE go with the connections of other pages on the same host? Th...

algorithm - Implementing Interior Point -

In addition to Boyd's Covilix programming book, What is the best source for this: Analysis + Practical implementation of internal point algorithms? If you have a book of books, then you know about it. If you are interested in the details, then look for an implementation is invaluable. With the most complex numerical algorithm, you will be better off using your own written code, but you probably know that there are many other interior point implementations available online for linear programming, SOCP, bilingual programming, intensive programming etc. . I have also used it, and have seen the inside. It seemed quite straightforward. I liked the first version too. I had an excellent, quite practical, overview of predictor-correctional methods in the second half. There is no doubt of the same quality in the second edition.

build - Compiling node.js on Cygwin -

I have a node on my Windows XP box. Trying to make JS (Yes, it is painful, thanks.) After the Ryans instructions using Sigwin. Unfortunately, call it from ".configure" node source directory barfs: $. / Config / home / LWE / source / node Js / wscript: Error: Traceback (last most recent call): File "/home/LWE/sources/node.js/tools/wafadmin/Utils.py", line 274, Load_module exec (compile (code, file_path, 'exec'), module .__ dict__) file "/home/LWE/sources/node.js/wscript", line 12, & lt; Module & gt; Import js2c file "/home/LWE/sources/node.js/tools/js2c.py", line 35, & lt; Module & gt; Import jsmin file "/home/LWE/sources/node.js/tools/jsmin.py", line 1 ../deps/v8/tools/jsmin.py ^ syntax error: invalid syntax I am not in Python at all, so I find it difficult to find out. Am I losing some dependency or what? I expected that to make this work I have some simple configuration switch which I have to chan...

getting checked checkboxes values mvvm light wpf -

I have a user control where the main categories are shown in the form of a button from the database by clicking on the main category button , A new user control is being opened with that list of items clicked in that related category. I am binding the item names of category which uses TexbBlock in XML and showing the checkbox with each item to choose from. After selecting them I want to get the value of the check box and I want to click on the full button. The checkbox value should have the Item ID in the database. How to obtain the selected checkbox value. For xaml is here: -> & Lt; Text block text = "{binding sub-category name}" horizontal alignment = "center" vertical element = "top" /> & Lt; Checkbox Grid Line = "3" /> & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; /ItemsControl.ItemTemplate> Thanks, Tarun I think what you need to do, you have a Boolean property, whi...

Can alias in SQL be used within the same table? -

I am otherwise having difficulty understanding whether nickname in SQL can be used in the same table? In a query, you can use multiple aliases: a single table: on alias2 as the nickname in the INNER table as prefix SELECT alias1.Name, alias2.Name from table. In the code I'm aliasing the table as alias1 and alias2 . This is the same table, which has 2 different nicknames.

algorithm - cross-validation -

Is it possible to cross-verify 10-fold with svmmulticlass or do I have to apply it manually? Thank you in advance, I searched a little and came over to Increase cross verification by using multiclass support vector machines. You can see there and perhaps see both references as well as other papers, if you do not find the answer in the letter which I have cited.

iPhone ios4 - Replacing iPod dock icon whilst playing background audio stream -

I have found out how to play audio in the background on ios4, but I've found that some apps also have their own Instead of the iPod dock icon with the app icon (for example, Last.fm and Spotify). They are able to use Dock Media Control to stop and resume their streams. Does anyone know how to do this? It is easy that you respond to remote control events. This lets you control your app with headset. The viewDidLoad call says in: [[UIApplication ShareApp] begins RecivingRemoteControlEvents]; [Self-made first responder]; and you have to answer both - (BOOL) can first return the first responder; } and - (zero) Remote control reception with avenues: (UIEvent *) event {switch (event.subtype) {case UIEventSubtypeRemoteControlTogglePause: if (Audio.rate == 0.0) {[audio play]; } And {[audio pauses}; } break; Case UIEventSubtypeRemoteControlPlay: [Audio Play]; break; Case UIEventSubtypeRemoteControlPause: [audio pauses]; break; Default: Break; }} ...

c++ - Why are cv-qualifiers in template parameters ignored? -

I had some code that failed to compile, which is equal to some of the things shown below to dig around After, I came to paragraph 14.1 note 5, which states: The top-level CV-qualifier on the template-parameter is ignored when determining its type. My code looks like this: #include & lt; Iostream & gt; #include & lt; Typeinfo & gt; Square bar {}; Template & lt; Class T & gt; Zero Funk (TT) {std :: cout & lt; & Lt; Typid (t) .name () & lt; & Lt; "\ N"; } Template & lt; Square T & gt; Zero Funk (Constant T & T) {std :: cout & lt; & Lt; "Constant Reef:" & lt; & Lt; Typid (t) .name () & lt; & Lt; "\ N"; } Int main () {repeatedly; Cost Bar & amp; Constbar = bar; ConstBar; Return 0; } This returns the compilation error: The 'int main ()' error in the function: The overloaded call ' Amp;) 'is ambiguous Can anyone comment on the reasoning behind t...

c++ - Problem Reading MBR with DeviceIoControl function -

I get an error when calling the DeviceIoControl function to read the MBR of a removable device. The error code is 5. It means denial of access! I'm using Windows XP SP2. #include "stdafx.h" #include & lt; Windows.h & gt; #include & lt; Winioctl.h & gt; # Include & lt; Stdio.h & gt; BOOL GetMBR (PARTITION_INFORMATION * pdg) {Handle HDTV; // Check the BOOL bResult to handle the drive; // result flag DWORD junk; // Remove results hDevice = CreateFile (TEXT ("\\\ .. .. \\ G:"), // drive to open 0, // drive FILE_SHARE_READ | // SHARE MODEL FILE_SHARE_WRITE, NULL, // default security attributes OPEN_EXISTING , // voluntary 0, // file attributes do not copy zero / file properties); If (hDevice == INVALID_HANDLE_VALUE) // can not open the drive {printf ("CreateFile () failed! \"); return false); } Bresult = DeviceIoControl (hDevice, // device to IOCTL_DISK_GET_PARTITION_INFO, // to perform zero, 0, // to return an input buffer PD...

php - Doctrine: How could I get all participants of many-to-many relationships -

मेरे पास 3 टेबल है: ["ऑर्डर", "ऑर्डर_ट्यू_गुड", "गुड्स"] I ऑर्डर_आईडी द्वारा कई-से-कई रिश्तों के सभी प्रतिभागियों को प्राप्त करना चाहते हैं, ताकि ऐसा कुछ कर सकें: $ आदेश = सिद्धांत :: getTable ('order') - & gt; findOneById (1); $ आदेश - & gt; लोडरेलीटेड ('माल'); विदेशी मुद्रा ($ आदेश- & gt; माल $ उत्पाद के रूप में) {...} लेकिन यह काम नहीं है सब कुछ मैं निराशा की कोशिश करने के बाद आप मुझे कुछ सहायक काउंसिल दे सकते हैं। अतिरिक्त नेस्टेड मान प्राप्त करने के लिए कुछ ऑपरेशन की आवश्यकता है: $ this-> ऑर्डर ऑब्जेक्ट- & gt; loadReference ( 'StoreOrderToItem'); विदेशी मुद्रा ($ इस- & gt; ऑर्डर ऑब्जेक्ट- & gt; स्टोर ऑर्डर टॉइटम को $ ऑर्डरटोइटमैटम के रूप में) {$ ऑर्डरटोइटम- & gt; लोडरेफरेंस ('स्टोर इटैम'); } डीबी के लिए और कुछ प्रश्नों, पूरा वस्तु प्राप्त करने के लिए: का चयन करें s.order_id s__order_id के रूप में, s.goods_id के रूप में s__goods_id, s.count के रूप में s__count, s.pr...