Posts

asp.net - AJAX file upload -

I have control over uploading an image and above it is an image control. When the user clicks on the 'Upload' button, after the image image is uploaded, the image is transformed into an animated image displaying a 'Reasonable' message, the image source turns it into a picture, it is a simple AJAX, javascript (XmlHTTP objects), asp.net, VB.NET. Can somebody help me out??? Javascript / Ajax can not use IFRAME or flash for security reasons above four reasons. Access your local drive, which is why it is limited to input file control or flash. Ihr iFrame or Flash is your choice. There is also ASP.NET that can be reliable enough for your needs.

java - Getting the type of a parametrized class parameter? -

मेरे पास निम्न श्रेणी है सार्वजनिक वर्ग MyClass & lt; T & gt; {सार्वजनिक कक्षा & lt; T & gt; GetDomainClass () {} कक्षा का वर्ग}} मैंने इस समस्या को चालू कर दिया है और मुझे मिल सकता है सभी जवाब getGenericSuperClass () का उपयोग करने के लिए मुझे बताया गया है, लेकिन इस विधि की समस्या है कि मेरे पास एक द्वितीय श्रेणी होनी चाहिए जो MyClass फैली हुई है और मैं ऐसा नहीं करना चाहता। मुझे एक कंक्रीट वर्ग के पैरामीट्रित किए गए प्रकार प्राप्त करने की क्या आवश्यकता है? आप ऐसा नहीं कर सकते आप चाहते हैं कि जानकारी (यानी टी का मूल्य) टाइप-एराज़र के कारण रन-टाइम पर उपलब्ध नहीं है।

c# - How to terminate a thread which has spawned another thread which is sleeping? -

I have a long lasting thread made from thread. Start () Then the class owner is settled, I call Thread 1. Joint () but naturally it does not return because its background is sleeping on the background thread. P> What will be the perfect solution to end a thread, which are other threads with little trouble? I wrote a question when suddenly I realized that maybe I had a mental block I did this part In the first place not to end the thread due to the background thread But wanted for another reason. In the second - I had to use the timer instead because I had kept a thread for no reason - just waiting for one incident which happens once a day! It was very stupid :) Sorry. It is usually good to use thread thread thread for a short thread if you need background thread Is to use a new instance of thread to run for long periods and set its background property to correct.

objective c - Filtering NSMutableArray based on enum property -

I found an NSMutableArray filling with objects of type "game object". GameObject has many properties, one of which is "gameObjectType". "GameObjectType" type is of GameObjectTypeEnum. I want to be able to filter this NSMutableArray so that only a certain type of GameObjects is returned, I have found the following location, but it is giving me a "poor access" error: NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "gameObjectType =% @", gameObjectType]; Return [gameObjects filteredArrayUsingPredicate: predicate]; Is it possible to define this "custom" type (i.e., this enum I have defined)? Format call with format? string format specifier % @ indicates an object, whereas you Integral values ​​are passing. You probably want to type gameObjectType a int and use the % d specification. For more information, take a look at this

c - uzing libgz to inflate a gz input -

I am currently trying to use the gzipped source of data to be inflated . It seems that the flakat API in zlib can not raise a grip data (e.g., the snippet fails to read the file: "zpipe: invalid or incomplete defaults data" ) . I have noticed that this API has a gzopen function, but as far as I understand, it only works with file names or file descriptors. Can I use this API if my source of gziped data is stored in a SQL Blob etc in memory ...? Many thanks to Pierre You can open file by using the fmemopen function, and then pass that file descriptor to the jizon function.

content management system - New to WordPress - How viable is it as a CMS for a small business website? -

I know that a large community of people behind WordPress has pushed it into a fully developed CMS area in the last few years, But to what extent I am not clear yet, for example, would it be a good option to handle something like a small biz website with a simple shopping cart? Yes, if you need it, then you use a spanner to bang into the skids But you can better rethink. A small website with the wordpress shopping can be enabled to drive, and this is probably useful for those who have developed a blog and they are divided into sales Are there. But why do you choose a blogging platform for your CMS when there are completely good CMS systems that target that role?

PHP Simplify a ternary operation -

PHP में, एक if () ? $ foo = $ bar! == 0? $ Foo: ''; मैं सोच रहा था कि यदि कोई शर्त संतोषजनक है तो खुद को $ foo को फिर से असाइन करने का कोई तरीका नहीं था। मैं समझता हूं कि जावास्क्रिप्ट में ऐसा करने का एक तरीका है (और & amp;; सही है?), लेकिन सोच रहा था कि ऐसा करने के लिए PHP में कोई तरीका था। हाँ, आप तार्किक और ( & amp; amp; amp; amp; amp; amp; & amp;; ) ऑपरेटर PHP में भी उपयोग कर सकते हैं। $ बार === 0 & amp; amp; $ Foo = '';