Posts

python - *args and **kwargs? -

इस सवाल का पहले से ही एक उत्तर है: 12 जवाब इसलिए मुझे * आर्ग्स और ** क्वार्गेस की अवधारणा। अब तक मैंने यह सीखा है कि: * आर्ग्स = आर्गुमेंट्स की सूची -as स्थैतिक तर्क ** kwargs = शब्दकोश - जिनकी कुंजी अलग कीवर्ड तर्क बनती है और इन तर्कों के मूल्य बन जाते हैं। ?? ईमानदारी से मैं समझ नहीं पा रहा हूं और किस प्रोग्रामिंग कार्य के लिए नहीं मिलता है यह उपयोगी होगा। (मुझे यकीन है कि वहाँ है, लेकिन मैं इसे समझ नहीं पा रहा हूं।) हो सकता है: मुझे लगता है कि एक समारोह के तर्कों के रूप में सूचियों और शब्दकोशों को दर्ज करें एक वाइल्डकार्ड के रूप में एक ही समय है, तो क्या मैं किसी भी तर्क को पारित कर सकता हूं? क्या यह एक सरल उदाहरण है कि कैसे * args और ** kwargs उपयोग किया जाता है? इसके अलावा मैं ट्यूटोरियल जो केवल "*" और एक चर नाम का इस्तेमाल किया है। क्या * आर्ग्स और ** kwargs सिर्फ एक प्लेसहोल्डर है या आप बिल्कुल * args और का उपयोग करते हैं * कोड में नाम * आर्ग्स और ** kwargs केवल सम्मेलन से ही हैं लेकिन उन्हें इस्तेमाल करने के...

debugging - Testing iPhone app with Valgrind -

I have a terrible bug "The object was modified after the release", so I want to take Valgrind from my SDN After the successful establishment, there is a lot of trick here: And with one of my, changing the way of Valgrind, I get "Debugger Finished". With GDB log: [Session began on 2010-08-03 10:47:25 +0500] GNU GDB 6.3.50-20050815 (apple version GDB-146 9) (Wed May 05) 04:36: 56 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, which is covered by the GNU General Public License, and you are welcome to change and / or distribute it under certain conditions. Type "Copy Show" to see the circumstances There is no warranty for GDB. Type "show warranty" for details, this GDB was configured as "x86_64-apple-darwin". SherylLawee Applicable-load-rules are all in the process of 17763. Warning: Could not delete breakpoint at "0x8fe0b830" Can not remove breakpoint because the program is no longer writa...

c# - should I install asp.net mvc 2 on a deploy machine? -

I am deploying an ASP.NET mvc 2 app on Windows 2008 R2 and I get an error that someone No system. Web .mvc.dll, should I install mvc2 on deployment machine? You can actually deploy without MVC to your server by employing MVC DLL on the server be established. Keep the following DLLs in your bin directory and it will work fine System.Web.Mvc System.Web.Routing System.Web.Abstractions If your server is on .NET 3.5 SP1, you only need to run the web. MVC DLL needs to be deployed, if it is not running then SP1 will need to deploy all 3 of you. Here is an article of Phil Hack, it's more

wpf - High-Performance UI Framework for .NET -

My current work is to develop a software for measurement and testing purposes which will communicate with different devices. Since I believe that there will be a high amount of data transferred from some conspiracy component or devices to be displayed in the same, the UI framework used should be as fast and responsive as possible. I have a few years of experience in the WPF, but I think this best option will not be performance-wise. I am currently considering using Windows Forms, but I want to find some options first. Do you know there is a good UI frame for the net (wrappers are also fine for basic settings) and what is your experience using them? Thanks! Create prototype to see if there are actually performance issues. Selecting Windows Forms on WPF seems suspicious if it is purely based on assumptions.

python - Aggregating save()s in Django? -

I am using Django with a SQL backend, and writing is a problem. I can be a graduate of "proper" DB at some level, but at this time I have stayed with the scalet. I think my writing problems are probably related to the fact that I am making a large number of rows, and possibly : Every time I save () one locking it, unlocking and syncing DB to disk. How do I collect a large number of save () calls in a single database operation? Actually it's easy to do, then you think. You can use these batch database operations in Django (especially save, insert and delete) in an operation. I've found that the easiest way is to commit_on_success . Basically you save your database to a function and then use the commit_on_success decorator. Django.db.transaction import commit_on_success @commit_on_success def from lot_of_saves (queryset): In query for items: modify_item (item) item.save () If any of the items are unsuccessful, you will also get the benefit of makin...

wpf - Override ControlTemplate - not Style -

I override content on button This is that when I do this, the button's default style overrides how I can keep the old style (the old style defines the mouseover, mouseout effect and like) This is my code: & lt; Fluent: DropDownButton SizeDefinition = "Small" & gt; & Lt; Fluent: DropDownButton.Template & gt; & Lt; ControlTemplate & gt; & Lt; StackPanel & gt; & Lt; Label content = "a" fontfamily = "times new roman" fontsis = "11" /> & Lt; Polygon points = "0,0 0,15 15,15 15,0" stroke = "{fill binding}" strokectitches = "5" & gt; & Lt; / Polygon & gt; & Lt; / StackPanel & gt; & Lt; / ControlTemplate & gt; & Lt; / Fluent: DropDownButton.Template & gt; & Lt; ColorSelectorModule: ColorGallery / & gt; & Lt; / Fluent: DropDownButton & gt; PS: I know that this is a question for a specific library control. Howev...

Opensource Java or Ruby Web based Virtual Class Room Components? -

क्या कोई रूबी या जावा वेब आधारित वर्चुअल क्लास रूम अवयव है जैसे 1. व्हाईटबोर्ड 2. त्वरित संदेश 3.Hand स्थापना उपकरण 4.मार्कर धन्यवाद आप प्रोजेक्ट वर्लैंडैंड () को देखना चाह सकते हैं। यह एक बहुत अच्छी आभासी दुनिया है जिसे वर्चुअल कक्षा के रूप में इस्तेमाल किया जा सकता है। वे एमआईटी में इसका इस्तेमाल भौतिकी कक्षा में अनुकरण करते हैं जहां आप एम-फ़ील्ड देख सकते हैं आदि।