Posts

debugging - Flex SWCs: Are there "debug" and "release" versions for SWC's? -

Using Flex Builder 3, I have no option to export the release build for my SWC. Is there any concept - "Release" versus "debug" versions for SWC? In fact, Flex Linker will do all the optimization / stripping when you link SWC to your last SWF will do. After saying this, if the reason you are worried about it is that you do not want to be bloated, you can use the adapter that comes with SDK, the "release of SWC embedded SWF file" "Can create the version.

python chaining -

नवीनीकृत मान लें कि मेरे पास है: डाइक = {"z": "zv", "a": "av"} ## क्यों निम्नलिखित कुंजी की एक सॉर्ट की गई सूची नहीं लौटाती है? कुंजी = dic.keys ()। सॉर्ट () मुझे पता है कि मैं निम्न कार्य कर सकता हूं और उचित परिणाम प्राप्त कर सकता हूं: dic = {"z ":" Zv "," a ":" av "} कुंजी = dic.keys () skeys = keys.sort () ### skeys कोई नहीं होगा क्यों नहीं पहला उदाहरण काम? सॉर्ट करें () मौजूदा सूची की सामग्री को संशोधित करता है यह एक सूची वापस नहीं करता है ।

python - Using Jython with Django? -

I'm planning to use Jethon with Jethon I want to know how stable the Jyothan project is, its use How easy it is to do, and how big its developer community is. The special focus in Jyothan 2.5 was that it is a modern web framework such as DJO In theory, Jethon is 100% compatible with CPI. In practice, some extensions or libraries There may be badly written codes which depend on a specific Python implementation such as Cepiton DiegoGio-Geithon project to solve this problem Of course, you can still run in some libraries which clearly require CPython (hence mostly safe).

Routing generated paths in Ruby on Rails -

I'm making a start in Ruby-on-Rail and I tried to do my work last time: I have a Ruby-on-Rail application - blog with posts and categories. I have to have another URL for posts (I want to do http: // localhost: 3000 / posts instead of http: // localhost: 3000 / news ) First I tried to change the controller and the sections of the post to news , but I left (due to non-singular singular-plural form). Then in my place map.resources: posts (case 1) to map.resources: news ,: admin = & gt; "Post" #case2 or map.resources: posts, as in => As I watched "News" # EK3 in routes.rb . It does not work either. How can I do this? Edit: The output of the rake routes is (only the first lines): Case 1 and 3 To: posts / posts {: action => "Index",: admin = & gt; "Post"} Formatted_Posts / Pastes: Format {: Action => "Index" ,: admin = & gt; "Post"} Post / Post {: Action => "...

c# - How does a strongly typed DataContext work? -

This is a deep continuation, which I'm still stumped about. I am using a strongly typed datacentext for my application and although it emits a warning, this magic works, how does it work? It is usually used code to connect to a database using LINQ-to-SQL. class MyDatabase: DataContext {public table & lt; Widgets & gt; Widget; Public table & lt; Cars & gt; Cars; Public Myadabase (string connection): base (connection) {}} Although it emits a warning, it works out of the box. Anyone can start reading it using: using (var db = new MyDatabase (connectionString)) {foreach (var in db.Widgets var) Console.WriteLine (w ); } widget looks like there is an area of ​​ MyDatabase class. And in my code, I'm not telling it anything. But elsewhere, I am reading it and why its value? In other examples of LINQ-to-SQL, the data reference class with the code generated by the DBML layout tool of Visual Studio 2008 can look like this: public partial squares ...

jquery - Is it possible to use javascript to download JSON object from another domain/server? -

यह कोड किस तरह दिखता है? उस डोमेन / सर्वर को JSONP का समर्थन करने की आवश्यकता है, जो मूलतः कॉलबैक में JSON को लपेटता है। jQuery में, कॉल इस प्रकार दिखाई देगी: $। GetJSON ('http://otherdomain.com/api/whatever?callback=?', {Key: 'value', otherkey: true}, फ़ंक्शन (डेटा) {// हैंडल प्रतिक्रिया} ); अन्य सर्वर से वास्तविक प्रतिक्रिया (अगर आपने देखा कि वास्तव में क्या भेजा जा रहा है) इस तरह दिखेंगे: // इस यूआरएल के साथ: Http://domain.com/api/method?callback=the_callback_function_name // प्रतिक्रिया इस प्रकार दिखाई देगी: the_callback_function_name ({"json": "डेटा यहाँ"}); जब आप अतिरिक्त callback =? की आपूर्ति करते हैं, तो jQuery के जेजोन विधि स्वचालित रूप से JSONP को संभालती है। बस कुछ साइटों को ध्यान में रखें जैसे कि json_callback =? महत्वपूर्ण हिस्सा यह है कि आप इसे यूआरएल के भाग के रूप में शामिल करते हैं और कॉलबैक जोड़ने की कोशिश मत करें: डेटा से getJSON फ़ंक्शन।

.net - Am I able to reuse a HttpWebRequest? -

Am I able to reuse HttpWebRequest? It seems that the third request for a site is caused due to the operation for time it seems that each request creates a new connection, so I want to know whether I change the URL and again I can reuse a HTTP webbrick by receiving the request. The code in question is below. This code checks if a limit of urls exists. Fixed Validation list (text worker sw, string urlTemplate, int start, int end) {for (int i = start; i & lt; end; i ++) {var url = String.Format (urlTemplate, i); Var Rake = (HTTPWebST) HTTPPUBLUBE REF. Crelet (url); {Req.Method = "HEAD"; TryHttpWebRequest {var resp = req.GetResponse (); Sw.WriteLine (i); } Hold (exception e) {}}} sw.flush (); } If you call on your response then it should be OK. You are allowed only "open" connections, so the reason for this being unsuccessful is because it can not open a new connection. Once done with the reaction, you have to close it. There is no need to reuse any th...