Posts

c# - generate thumbnail of pdf document using acrobat 7.0 sdk -

How to create an image of a page from a PDF document using Acrobat 7.0 SDK Acrobat usage will be quite inefficient and slow. Ghostscript can be used to do this (it's free to run on your own server) or components such as

windows - Qt equivalent to Win32 Fibers -

I am responsible for a Windows application, the plugin "script" DLL is written in C ++. To index dependencies in the script without the use of encodrons events - Plug-in DLS to use the 'yield' and 'resume' type call - basically co-routine - to use C ++ Executes script 'API' based on Win32 fiber to the application. Architecture Now, I'm thinking of porting Mac and or Linux to the app, and there is an option to use a framework like armor. QT seems to support only though What is Win32 Fibera Analog on Cocoa, or in a CrossPlatform Framework like QT? I do not know about cocoa, but QT You do not have support for fiber.

concurrency - How does the Reactive Framework (Rx) relate to Tasks in .NET 4? -

Asynchronous and concurrent programming seam these days are in everyone's mind and NAT 4 contains many types of improvements such as the built-in Secure collection and course work from thread. Above this, I have started watching the Reactive Framework (Rx). The focus is to focus more on the concurrency, mainly for calculating the tasks, although it is also a normal model for those tasks which will be completed in some time, the future can be used. And handle other types of asynchronous tasks, as well as combine them. * Continue * Do you see these two frameworks and one overlap in particular, do you see a work for modeling IObservable in reference to a task and vice versa? Only one channel 9 video discussion saw a blog post from the PFX team joining PFX, in relation to RX, answering some questions in it Should:

command line - How to get NO context when using svn diff -

When I use 'svn diff' from the command line, it prints the rows that have changed, But 3 unchanged lines are also very much for reference only, before and after, with no reference only to see the changed lines. I am not able to define any command line options that allow me to behave like this. Will give The standard 'diff' and 'cvs diff' I want to do by default can definitely do this 'svn diff' but I'm missing something, anybody know how? After viewing the useful link above, the short answer is that svn's inherent difference which I He can not do it You can ask it to use standard external difference and tell ARG that you do not want any reference. I keep the following aliases in my .bashrc and all of these now work properly if I use it: alias svndiff = 'svn diff --diff-cmd = diff - X-U0 '

wpf - Does overriding default style/controltemplates break theming? -

जब मैं "कोई प्रतिलिपि संपादित करें" को संशोधित किए बिना मिश्रण में एक मानक WPF नियंत्रण की डिफ़ॉल्ट शैली / नियंत्रण पट्टी को ओवरराइड करता हूं यह (सिर्फ अगर की एक स्थानीय प्रतिलिपि बना रहा है) , क्या यह पहले से ही कुछ स्थितियों में उन्हें तोड़ देगा? दूसरे शब्दों में, क्या अलग-अलग विषयों में मानक नियंत्रणों के लिए differnt controltemplate- और / या स्टाइलिफाइनिशन प्रदान करते हैं? हां, यह उन लोगों को टूटता है; हां, विभिन्न थीम विभिन्न नियंत्रण शैली प्रदान करते हैं यदि आपके पास एमएस ब्लेंड है तो आप ब्लेंड के फ़ोल्डर में उन्हें ढूंढ सकते हैं (जैसे सी: \ प्रोग्राम फाइलें \ Microsoft Expression \ Blend 3 \ SystemThemes \ Wpf) इन्हें सम्मान करने के लिए, आपको थीम प्रति एक शैली भी बनानी चाहिए अपने नियंत्रण के लिए कस्टम नियंत्रण और थीम समर्थन पर वहां मौजूद हैं बस एक का उल्लेख करने के लिए:

javascript - Simple String and variable problem using jQuery -

I am trying to add my string to this string: var liPad = 20; $ (This). CSS ({'width': width, 'height': height, 'padding': "'0 pixel' + lipad + 'px'"}); To work this way: $ (this) .css ({'width': width, 'height': height, Padding ':' 0 20px '}); "post-text" itemprop = "Text"> This should work: $ (this) .css ({'width': width, 'height': height, 'padding': '0' + Lipad + 'px'});

regex - Is there a regular expression for a comma separated list of discrete values? -

I use the following regular expression to validate a comma separated list of values. ^ Dog | Cat | Bird | The values ​​are listed in a drop-down list in Excel (the (dog | cat | bird | mouse)) $ $ value, so users can select a value from the dropdown list , Or can be typed in different values ​​by commas. Regular expression does a good job of preventing the user from entering anything but the accepted values, but this prevents the user from entering the duplicate, for example, the user "dog" and The "dog, cat" can enter, but the user can also enter "dog, dog". Does the duplicate stop using the same regular regular expression? In other words, I should be able to apply the discrete list of values ​​separated by the comma separated. Thank you! Use a backtraction and a negative perspective: ^ (Dog | cat | bird | mouse) (, (?!! 1) (dog | cat | bird | mouse)) * $ edit : This will not work with cases such as "cat, dog, dog" ......