Posts

Showing posts from March, 2010

ruby on rails - How do I apply a drop shadow to thumbnails using imagemagick and paperclip? -

I would like to change the processing of thumbnails in Pemelclip, which will apply a drop-side to all image thumbnails. What I am stuck is the real image magnetic command that will close this small miracle. Whatever I have tried, it returns a wrongly scaled drop shadow without the original image. DF Transformation_anomic scale, crop = current_jammetry.transivation_to (target_geometry, crop?) Trans = "" trans & lt; & Lt; "-Resage \" # {scale} \ "" trans & lt; & Lt; "-crop \" # crop) \ "+ repape" if crop # drop shadow transpole apply & lt; & Lt; "# {Convert_options}" If Convert_section? I have tried ... DF Transformation_ Size scale, crop = current_jammetry.transensfarm_to (@ target_gementory, crop) trans = "" Trans & lt; & Lt; "-Resage \" # {scale} \ "" trans & lt; & Lt; "-Crop \" # {crop} \ "+ repep" if crop trance; & Lt; ...

django configuration, mod_rewrite, mod_alias -

I have created a site for a magazine, and it has been found in mag.org / django-site. The old site is still on mag.org/httpdocs (hosted by mediatemple). I like that a hit demo site is launched on www.mag.org (currently this is the case, the config file is configured) while a hit archive.mag.org is outdated The site works from httpdocs, which means it is provided by Apache and not mod_python. Is it possible that you have Mod -Rearlight Do not do that, either of those two need to just set up their virtualhosts so that works with archives * * httpdocs and www. * Works via Mod_python (although I actually, actually suggest you provide DMJO via mod_wsgi). For example: & lt; VirtualHost "*: 80" & gt; Servername www.mag.org SetHandler Python-Program Python Handler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root / mysite & lt; / VirtualHost & gt; & Lt; VirtualHost "*: 80" & gt; S...

c# - avoid type repetition in class member initializer? -

Is there a way to avoid repeat typing in such a declaration of a member of the class? Dictionary & lt; String, int & gt; MyDict = New Dictionary & lt; String, int & gt; (); No, you only use var for local variables Can be used . Basically you're stuck with a repetition, I'm scared. Eric Lipert is a great one. Interesting thing to note: Java gives the underlying typing and type of conclusions by other means, depending on what you're trying to specify to This means it's legal: // Note: this is Java, not C #! Class Collection Help {Public Stable & lt; T & gt; & Lt; T & gt; NewList () {New Array List & lt; T & gt; (); }} // in another class (does not have to be static) static catalog & lt; String & gt; Name = CollectionHelper.NewBlast ();

authentication - authenticate with ntlm (or kerberos) using java UrlConnection -

I need to consume a relaxing web service with Java, passing the domain user's account credentials. I just used classic ASP set xmlHttp = server.createObject ("msxml2.serverxmlhttp") xmlHttp.open method, url, false, domain and "\" and user I'm doing this with the password xmlHttp.send body = xmlHttp.responseText set xmlHttp = nothing and with ASP.NET HttpWebRequest request = (HttpWebRequest) WebRequest.Create (URL); request. Credential = new network credentials (user, password, domain); Request.Method = WebRequestMethods.Http.Get HttpWebResponse response = (HttpWebResponse) request.GetResponse (); Streamer Outstream = New Streamerder (Response Gaterespanstream (), Encoding .UTF8); Output = Outstream Readout (); How can I get it with Java? Note that I am not currently using the user's credentials, I am specifying the domain account (I have a password) Please tell me how much with the classic ASP and ASP it's easy. Net .... Take...

c# - How to handle 'View not found' InvalidOperationException in asp.net mvc? -

I have an asp.net mvc 1.0 site that serves some content from 2 level hierarchy / category / article When things work right for a view of the article and the scene is provided. However, when the URL meets the routing status, but the view is not present, the exception is raised so that I can not go into the operation of the controller. Routing: Routes.MapRoute ("paragraph", "{class} / {article}. Espx", new {controller = "microcontroller", action = " Paragraph "}); MyController verb: public action paragraph (string category, string text) {string path = string.format ("~ / scene / {0} / {1} .aspx ", category, article); ViewResult vr = View (Path); Return VR; } However, when the view is not found, the system. Resident Operation Exposure is generated that I can not hold in the controller action. Exception Description: System.InvalidOperationException: The view '/ / views / my-category / my-article-with-long-name.a...

makefile - How do I invoke a GNU make macro created using define? -

Is GEP applied in my makefile? Should I use one or the other for any reason? Both produce results. define GREP $ (word 3, $ (Shell echo "#FFFxxff00100 #")) All Endf: @echo $ (GREP) @echo $ (Call GERP The way you are using it, there is no difference though, if your grap If a macro is a function that takes the criteria, then you have to use it to pass the parameter $ (call) for example: Define GREP $ (shell grep $ 1 $ 2) endef FOO: = $ (GREP, abc, words.txt call) S) This reason $ 1 is to be replaced with "abc", and with "code.txt" $ 2 . Here is the user-defined task in GNU: Hope this helps, Eric Mlsby

perl - How can I abort a Catalyst upload based on Content-Length or MIME-Type? -

I tried to use parse_on_demand as I have shown: However, Do not stop uploading; I'm testing it just by creating an action that dies immediately, though the browser starts uploading a large file I chose before reaching my action: Sub Upload: Local {My ($ self, $ c) = @_; Die; #What I would like to do: # if ($ c-> req-> header ('content-length')> $ some_limit) ## "The upload is too big"; #} # ... check filename extension and mime-type ...} Is the correct method for upload verification? Handles the catalyst upload before sending it for your operation before you in the process of handling the request It will need to be intercepted and it means that a plugin, I doubt it. I am not an expert in uploading with catalyst, but there can be something that already does, so it is worth searching on cpan ... but if I do not see the plugin How to get a position on the current upload, you can kill the upload in the same way. JK

c# - How do I get the characters for context-shaped input in a complex script? -

कुछ RightToLeft भाषाओं में (अरबी, फ़ारसी, उर्दू, आदि) प्रत्येक पत्र अलग हो सकते हैं आकार। एक पृथक रूप, प्रारंभिक रूप और मध्य रूप है (आप इसे किसी भी यूनिकोड फ़ॉन्ट के लिए खिड़कियों के वर्ण मानचित्र पर पा सकते हैं)। कल्पना कीजिए कि उपयोगकर्ता को उस सटीक वर्ण की आवश्यकता है जो उपयोगकर्ता को एक टेक्स्ट बॉक्स, डिफ़ॉल्ट रूप से, जब आप स्ट्रिंग को चारअरेरे में कनवर्ट करते हैं, तो वह प्रत्येक वर्ण को पृथक रूप में बदल देगा। (क्योंकि जब उपयोगकर्ता कुंजीपटल द्वारा वर्णों को दर्ज करते हैं, यह पृथक रूप में होता है और जब यह स्क्रीन पर प्रदर्शित होता है, तो इसे उचित प्रारूप में कनवर्ट किया जाएगा, यह सिर्फ एक अनुमान है। यदि आप सटीक वर्ण कोड का उपयोग करके स्ट्रिंग करते हैं, तो यह उचित सरणी उत्पन्न करेगा)। मेरा सवाल है, हम उस स्ट्रिंग के रूप को कैसे प्राप्त कर सकते हैं, जो कि दिखाया गया है पाठ बॉक्स में। यदि कोई रास्ता नहीं है .नेट तो इसका मतलब है कि मुझे इस T_T जटिल स्क्रिप्ट के लिए प्रासंगिक आकार देने करने के लिए Windows का उपयोग करता है (जो एल-टू-आर पर भी लागू हो सकता है आर-ट...

Order of calling of CreateChildControls() and ApplyChanges() methods in a SharePoint web part -

I am creating a web part for SharePoint, I have a custom editor part that is synchronized with SyncChange () and Upper Change ) Is overriding the methods (among others). The problem is that when I right click in editing mode, the page changes to browse mode, but the data (propake) that was changed to EditorPart and saved in the ApplyChanges () method Is not updated. I debug it and found out what it was doing - after right clicking in the edit mode, webpart .creativechildcontrols () is called first, and EditorPart.ApplyChanges () second. Therefore, the data was updated but it was non-updated data that was displayed. I thought more about this behavior: adding a specific control to my webpart in CreateBildControls () causes the wrong sequence of calling the WebPort. CreateChildControls () and EditorPart.ApplyChanges () In my case it connects to WebDatry or ultra webbetry control (infographic), but it can also happen with the common ASP.NET textbox (as the same problem is explain...

xmlhttprequest - Iframe and cross domain requests -

If I have a page that provides service from foo.com, where ifframe is provided from barfork, then its Is there a script inside the IFrame to do an XMLHttpRequest for bar.com? Say that IFrame requests additional pages from bar.com, in the server, will reference these requests to bar.com or foo.com? If your IFRAME is serving bar.com, then yes, the script in the iframe (bar. Com) will be able to do an XMLHttpRequest to bar.com (the same domain) if the page of iframe changes (unrelated to XMLHttpRequest), then the reference will be foo.com (the original window).

java - Why doesn't GCJ find the classes from my imported packages? -

I want to compile a small Java application into a Windows executable. This application is very small, there is only one main square, but it uses Apache POI. When I compile it, then everything is fine, as long as I put the POI jar into the class path logic. But when it comes to linking, GCJ can not solve the references of classes in the PoI package. The messages are all like this: undefined reference tp 'org :: apache :: poi: hssf: usermodel: HSSFWorkbook :: class $' What do I have to do to link my application? You can separate .so libraries in the imported jar - To provide a jar in classpath , be sure to compile libraries while compiling your code. An example, where I am compiling the GNU crypto library: gcj --classpath = source /: libs / gnu-crypto.jar -fjni -c libs / Gnu-crypto.jar -o libs / gnu-crypto.o gcj -shared -fPIC Finally, execute your executable through a shell script referenced to the library path. For example: #! / Bin / sh exported ...

Assign a type to an object at runtime in vb.net or c# -

I have an object, o, and one type, t. I want to use the image to type object o T on the runtime without turning it on. Compilation time will be equivalent: dot = nothing = I Dim P () as new point But I explain as to how to use Activator.CreateInstance to create an instance at runtime Do not want to do this I do not have any knowledge of constructor parameters like this and there are some types of parasailable constructor. Font. So, in short, I want a way to equalize this: T = nothing as dim o If you are wondering why I am doing this, that's because I am using a property grid type on the form to edit. If this is the first time for editing, then say, a font, the default value is displayed to the grid by passing an unpublished font for the property grid. Cheers. I tried 'o = GetUninitializedObject (T)', but propertyGrid either a properly set object, with an initial object or an object, a defined type Wants to I have really solved my special prob...

c++ - Forward declaration in multiple source directory; template instantation -

I'm looking for a good book, reference material that is related to further announcement of classes. When sources are in multiple directories, for example, class A in DIAR has been declared in DIERB in Class B? How is this done? In addition, template issues, advanced uses and immediate problems, any content for excessive praise? Thank you. Further announcements do nothing with the directory structure of your project, you have not declared anything present in your project can do. They are used to resolve cyclical references between most classes and to speed up the compilation, when the full class declaration is not necessary, and related #include can be replaced with further announcements. Enough, sizeof () queries can usually answer the question. For example, square wheel; Square car {wheel wheels [4]; }; In this announcement, further announcements can not be used because the compiler can not determine the size of the car: it does not know how much data is in the...

google app engine - Python file at GAE -

I've added a python file to the Google app engine. How to send a request for this file This file is clearly executed Is it necessary to? Your app. The Yaml file decides how to run the Python script, depending on the request URL. See examples on this. You can also use regexp.

Using PlotKit (javascript) through C# -

I am relatively new to javascript, and although I know how to use it, I actually have mechanics behind it Did not understand it Stay here with me I have to write a small app that takes a chart (in SVG) based on the data, taking as an XML file, which I actually want, except that it is in JavaScript Written while my current program is written in c # I did some goggles and found some articles that explain how to evaluate the simple javascript code with the network. Unfortunately, I do not know at all how to use VsaEngine to execute more complex javascript for which reference of other files is required. In fact, I want to be able to call something like C # for C #: var layout = new plotkit.layout ("bar", {}); Layout.addDataset ("data", [[0, 0], [1, 1], [2, 2]]); Layout.evaluate (); Var canvas = cobbler.com. Gate Element ("article"); Var Graphics = New Plotkit SVG Andere (canvas, layout, {}); Var svg = SVGRenderer.SVG (); And retract the SVG string ...

user interface - Creating native GtkMenu from Firefox extension -

Is it possible to create the default GTK menu (I do not mean, but the real GTK menu) from the Firefox extension? (And add it to the Firefox window) I would like to work with the Global menu Firefox, which currently does not work due to the lack of original GUI. If you want to keep your menu in the Firefox window ... I do not know the details, but In X, the normal way is to create an X window (for example, GTK windows) with your GTK menu. Then you should "swallow" Firefox, which does something like all the system utilities (keyword: reprinting x window - should be enough) I think it should be a special XUL element, but I do not see anyone. If you want, you can also create your own GTK window with GTK menu and show it. I think you probably should do this with another thread. It is entirely possible to write an extension in C ++ about your second question, as long as you use Gecko SDK and Geo API, you can then link to any library including GTK. I think you should as...

iphone - How does Quartz handle texture compression? -

I am developing on the iPhone and our game is using OpenGL ES, but there is also a menu which is available for CGI Uses and quartz to display In OpenGL ES, I know that there is no problem in any image compression (JPG, PNG, etc.), the textual data in the memory is 8-bit texture, as long as I can not use PVRTC, in which case I can get it 2 or 4 bits due to the large CGI image we are carrying out the issue of memory, so my question is ... What kind of optimization and compression do quartz and CGIMS use? I am not getting the details in apple docks, when in fact I want to know that if the 256-color image is made by making a PNG a JPG, then on the power of 2 help, on the dimension, etc. Speed ​​is insignificant, memory is obstructed here Thanks. Quartz is uncompressed. Pixel is meant to compose and render the exact content quickly, once it has been pulled in one context, no matter where they come from, whatever references they reference, although many pixels for them (each devic...

What is the most memory Visual Studio can use on a 32bit Windows Server 2003 OS? -

It is well known that the entire OS on XP Pro can only use 3 GB 32 bit Windows Server There are more limitations in 2003. If OS is not implementing artificial barriers then how much visual studio can use and use? Backdrop I have 4 GB, use Recharge, I get lots of memory errors and I am thinking that this problem will help in throwing more hardware. When there is a 32-bit application with Visual Studio, it can only extend to 2 GB virtual memory Is limited, even if it is running in 64-bit OS. At least, this is limited to 2GB by default ... but we can change it. So increase the amount of invoice user-mode memory to increase it, and then make Visual Studio a bigger known address I have successfully completed it up to 3 GB I do not know the upper border before killing the OS range.

xslt - XSL : how to select a unique nodes in a nodeset -

I'm talking about choosing unique nodes in a separate document (using the Muenchian method), but my In case I can not use the key (or I do not know how) because I'm working on the node set and not on the document. And the keys can not be set to the node-set, basically I have a variable: which includes & lt; Structure & gt; Elements may be included in the node set: & lt; DeviceInstance & gt; / P> & lt; DeviceInstance name = "Demux TSchannel" means index = "0" & ​​gt; & Lt; Structure Name = "Demysticusnel Caps" & gt; & Lt; / Structure & gt; & Lt; / DeviceInstance & gt; & Lt; DeviceInstance name = "Demux TSchannel" means index = "1" & gt; & Lt; Structure Name = "Demysticusnel Caps" & gt; & Lt; / Structure & gt; & Lt; / DeviceInstance & gt; & Lt; DeviceInstance name = "Demux TSchannel" means index = "3...

How Do I Validate a JPEG Image in C# / .Net is not corrupted -

I must be valid whether a JPEG image is valid or not, is not corrupt, it is not what it just asks That is, in fact, JPEG image is loading with image with validation eg: var testJpg = bitmap.framstream (filename, use embedded collar management, valid data) ; The clip will not throw an exception for the shapes. Currently our solution is to try to parse the file for any error opening an external GD script and throwing it off from gdImageCreateFromJpeg. gdImagePtr im; Im = gdImageCreateFromJpeg (testFile); Fclose (in); But there should be some node code which validates that JPEG is not valid only, but does it have full image? Is it possible that you can search EOI bytes from the stream?

iphone - Why does Xcode's autocomplete always think my properties are int? -

I've been looking at it for a year and I do not know whether this is a bug or I'm doing something wrong . When I declare assets in one of my classes @property (nonatomic, retain) NSString * aString; And I go to use it somewhere else myObject.aStr [ESC] when The list pops up with all the suggestions, aString always type int all my properties are in this way. I have tried different installations on different machines, releases or beta. Anyone seeing this? Or am I forgetting something? this Xcode 3.1.x. There is a known bug in. The version of Xcode in the release of Snow Leopard has many improvements to auto-completion behavior.

xml - Best tool for monitoring Coldfusion interoperability with .Net web service -

Is there a tool to see the message sent to the webservice hosted on the IIS server? I have a webservice written in .Net and our ColdFusion people are having trouble creating "complex" parameters. This problem has been described in Coldfusion's perspective: When called from a .NET client, when hosted on the server inside our LAN, I put it on the public server so that the view can be seen by the WSDL: When the CF developer runs its code Is it, so be it It is: java .lang.IllegalArgumentException: Logic type mismatch ... and I am thinking that there is an instrument that I can run on the server It has been that whether he is entering or even rejecting the WS using Java code using Java and is not actually getting it for my webservice I know this is an old question, but I have to Hoot issues have been settled in the past, so I am posting it if anybody is still looking for help. If you develop against web services, you have 2 great tools included in the CF t...

java - Can Tangosol Coherence cache non-serializable objects? -

I am using Tanzocol Correction v3.2.2b371. Can I cash out items which can not apply serialjob to NamedCache via api? Or it depends on the configuration? EDIT: For clarification, I am trying to compile the javax.xml.xpath.XPathExpression object. To store an object in a cache, it must be serialized, but the need to implement serialization is not. Specifically, it can be used more efficiently in serializable time and memory. The POF requires some additional configuration, which is described by the link.

What is the best API/framework/platform you ever worked with? -

Most programming is done on an existing framework or platform, and using different APIs that make your programming job more convenient Make them. This can be either a great design API, or a good framework that you have been able to do really well. All answers should give concrete examples. This outline is so horrible, or examples of good things you have done with it. Did the current structure actually motivate you to do some great work? I know that this is subjective, but I think we can get some good ideas from this question. Please stay easily on the "Close" link. In addition - In advance - Communication Notification C # and .NET framework.

ruby on rails plugins - Enabling stemming from sphinx.yml in Thinking Sphinx -

मैंने एक config / sphinx.yml फ़ाइल को लाइन के साथ बनाया है: morphology: stem_en रेक चलाने के बाद Ts: config, ऐसा लगता नहीं है development.sphinx.conf को बदल दिया है, और पुनर्निर्माण के बाद, "dawg" के लिए खोज "dawgs" से मेल नहीं खाता। मैं इसे कैसे काम कर सकता हूं अगर मुझे सही ढंग से याद आती है तो "विकास" शीर्षक के अंतर्गत आकृति विज्ञान की रेखा के समान आना चाहिए: development: morphology: stem_en निश्चित नहीं है कि आपने पहले से ही ऐसा किया है, लेकिन अगर इसे कोशिश न दो।

objective c - iPhone Music App: Playing from a Cache of Notes -

It will basically be a temporary wavetable synthesizer. With the number of devices to use the Times, Notes are stored as .wav files and cached in RAM to prevent overhead from hard drive retrieval Will go However, there is a major time-space business in terms of physical memory, since .wav files can be very large Does anyone know how to caching them. Wave files are more space-efficient? Compression is a good choice, but can greatly reduce the quality. The interval or distorted frequencies on the fly will definitely be very low. If I am wrong then correct me, but with this implementation 200 bpm will play. If you have experience with the music app, please share your advice. No experience with the music app, per copy, but I have used audio with the recording. On the iPhone, you do not usually load the whole audio in RAM, because size decreases and disk speed. By using the AudioQueue API, you type a callback function that pops up buffers from disk (u...

vi - How can I prepend text in the middle of the line to multiple lines in Vim? -

Say I have ten lines and I want to include some words in the words in that text? It is not at the beginning of the line. To: sdfsd foo sdfsd sfsd foo fsdf sdfsdf foo sdfsdf For: sdfsd bar (foo sdfsd sfsd bar) (foo fsdf sdfsdf bar) (foo sdfsdf Is this the only bar ( but actually foo with bar (foo) I also would like a quick way to add text "itemprop =" text "> before foo Go, Ctrl - v enter the visual block mode and press down until all the rows marked with foo , Then press Shift - i to enter the start (block) and press Esc , to the left of the marked block The inserted letters will be added to each row. Press Ctrl - v to insert on E, marking all affected lines Go to Top / Down and then press Termination or $ to extend selection until the end of the line - i Like, you can now press Shift - a to attach to the end of all lines, Kbd>. Scene selection can also be done with orders of general movement...

javascript - Audio clip recorder for website -

On the client side of my website, I want to be able to record a short audio clip to the user, about 20 seconds and Store this recorded audio on the server thanks I'm sure there is a small flash app that lets users access their computer The audio enables recording, but you will need some type of server script that takes recorded audio, and saves it on the server.

asp.net - SharePoint - Open Document Library PDF in New Window -

To open me in a new window, there are PDF files in the MOSS 2007 Publishing Site Document Library. possible? I do not want to mess with a site definition for something as original as this ... I also need to know that if Adobe Reader is installed as part of your SEO and is using it to open your PDF then the problem is not on the server but the client. There is an option in Adobe Reader called "disable display of PDF in browser", which you need to convert to your clients. If you want to correct it, then you have to roll out your clients. The downside is that it will be affected by how PDF is opened by all websites, and not Only your SharePoint server I do not think this can change the site, you can ask.

logging - What does "GC--" mean in a java garbage collection log? -

We have turned on Verbose GC logging to keep track of known memory leak and have received the following entries in the log: / p> ... 3607872.687: [GC 471630K-> 390767K (462208K), 0.0325540 seconds] 36,07,873.213: [GC-- 458095K-> 462181K (462208K), 0.2757790 seconds] 36,07,873.488: [Full GC 462181K-> 382186K (462208K), 1.5346420 seconds] ... I understand first of them and the third of them, but "GC--" means what a I get these types of lines in my GC output: 44871.602: [GC-- [PSYoungGen: 342848K- & Gt; 342848K (345600K)] 961401K- & gt; 1041877K (1044672K), 0.1018780 seconds] [Times: user = 0.16 sys = 0.00, real = 0.11 sec] I read the answer to Jesse and understand it, but I will go to it Want to see in GC source code, when GVM prints in GC log and why. Because the "parallel scavenge" for my knowledge is the young general is a stop-the-world GC, so for this GC there can not be any parallel thing (see) You can find this in J...

networking - Specify source IP address for TCP socket when using Linux network device aliases -

For some specific networking tests, I have created a VLAN tool, eth1.900, and some nicknames, eth1. 900: 1 and at 1.900.2. eth1.900 Link Anep: Ethernet HDWder 00: 18: E7: 17: 2F: 13 Inset Adrer: 1.0.1.120 Back: 1.0.1.255 Mask: 255.255.255.0 Eth1.900: 1 Link Encaps: Ethernet HDW 00: 18: E7: 17: 2F: 13 Inset adrer: 1.0.1.200 Back: 1.0.1.255 Mask: 255.255.255.0 eth1.900: 2 Link Enepap: Ethernet HWAD 00:18: E7: 17: 2F: 13 Inset Adrer: 1.0.1.201 Best: 1.0.1.255 Mask: 255.255.255.0 When connecting to a server, is there a way to specify which of these aliases will be used? I-Eye & lt; Ip & gt; Which address is the option to use the nickname, but I do not know how it can do with the TCP socket in the code without using raw sockets, because I would like to run without additional socket privileges, that is, if possible If not, then the route is not running Unfortunately, even with root, SO_BINDTODEVICE does not work because the name of the device is not recognized: from printf...

applet - How can Facebook's photo upload application access the local harddrive? -

I did not think it was possible to use hard drive for client-side applications? How can this app do this? Can a signed Java applet access your external devices? I know that Flash may be ... The Facebook Uploader is a Java applet, which requires the first Permission to access your PC

python - How can I display updating output of a slow script using Pylons? -

I am writing an application in pylons which depends on the output of some system commands, such as the output of the tracerout me command I would like to display because instead of waiting for it to finish it is prepared and then all are displayed together. I came to know how to access the output of the order given in Python by answering this question: Now let me tell this information in the browser There is a need to find a way to get it because it is occurring. I was planning to use jQuery's LoadContent () to load the output of a script. The problem is that Pylons controllers use return , so outputs must be completed before submission of the Pillans page and the web server responds to the client with the content. Is there any way to display the page to the content such as whether it is generated in the pylons or will it be scripted out of the pile? Basically, I'm trying to do something like this: Pepext Allow to get output without buffers. To update info...

asp.net - Strongly typed access to result-set from Linq Join - to display in MVC view -

I'm new to MVC / Linq party (coming from Java). I know that I can use some of the following to type emphatically, but do I want to use joining my linq query? Public Zero IQueryable & lt; Products & gt; GetItems (int CategoryID) {... linq query ...} Enter code Should help with some of the following (estimating property names; DB is your data reference): public IQueryable & lt; Products & gt; GetItems (int category id) {returns db.Products.Where (P = & gt; p.Category.CategoryID == Category ID). Enqueueable (); } Or if you are not comfortable with the Lambda syntax, the following is synonymous: Public IQueryable & lt; Products & gt; GetItems (int rangeID) {var results = p in db.Products where p.Category.CategoryID == select Category ID; Return Results. Enqueueable (); } The product category has class property, which provides firmly typed access to all the properties in that category. For example, to get the name of the categor...

selenium - Access to file download dialog in Firefox -

Is there an API that can allow me to manipulate the file download dialog in Firefox? (I want to use the person who does something, since then does not start any one). What I have to do, is to use this dialogue with Selenium (and whether the Selenium "privileged mode" is enough, there is nothing to use the Chrome interface which I certainly know about). Not that I know but you can configure Firefox at a particular location. Your test could then check that the file actually arrived.

c# - silverlight datagrid - binding each row's style -

I have found a silver light (v2) Datagrid where some items are section headings and such as the color of a different background color. Should appear with I'm trying to do this with the following xaml: & Lt; / Style & gt; & Lt; / DG: DataGrid.RowStyle & gt; I expect this to bind the background property of the datagrid line view model for the background property of each row, instead I get a pretty unknown xaml parsing error: {System.Windows.Markup.XamlParseException: AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR [Line: 16 Position: 57] On the system. On Windows.Application.LoadComponent (Object Component, URI ResolubleCaster) Etana.Survey.Silverlight.UserInterface.Views.MaximumProbableLossPage.InitializeComponent () If I do not explicitly try to specify "red" and do not bind the style I try, so it works, so I wonder if the light of silver will allow me to tie a style like this or if there is some other move in it. (xaml is based on a wpf implementation of...

WPF - How to stop an ItemsControl psuedo-grid's columns from dancing/jumping around during layout -

मेरे पास एक ही निष्कर्ष पर आए हैं - एक ItemsControl का उपयोग करके एक DataTemplate का उपयोग करने से बहुत अधिक सरल (विशेष रूप से प्रारूप) ग्रिड के समान आइटम के लिए निर्मित प्रत्येक आइटम के लिए P> & lt; स्टैकपैनेल ग्रिड। आईएसएयरसइज्ड स्कोप = "ट्रू" & gt; & Lt;! - हैडर - & gt; & LT; ग्रिड & gt; & LT; Grid.ColumnDefinitions & gt; & Lt; कॉलम डिफाइनिशन चौड़ाई = "ऑटो" साझा किया गया समूह समूह = "स्तंभ 1" / & gt; & Lt; कॉलम डिफाइनिशन चौड़ाई = "ऑटो" साझा किया गया समूह समूह = "स्तंभ 2" / & gt; & LT; /Grid.ColumnDefinitions> & Lt; टेक्स्टब्लॉक ग्रिड। कॉलम = "0" टेक्स्ट = "कॉलम हैडर 1" / & gt; & Lt; टेक्स्टब्लॉक ग्रिड। कॉलम = "1" टेक्स्ट = "कॉलम हेडर 2" / & gt; & Lt; / ग्रिड & gt; & Lt;! - आइटम - & gt; & Lt; आइटमोंकंट्रोल आइटम्स सोर्स = "{बाध्यकारी पथ = मान, मोड = वनवेज़}" & gt; & L...

delphi - OpenGL: Help with camera transformation -

After the details given in the OpenGL Superbible, I am trying to implement the camera-model in Delphi / OpenGL. The position of the camera is a forward vector and an up vector. Translating the camera works fine, but when I try to rotate the camera according to the forward vector, then I lose sight of my object. function TCamera.GetCameraOrientation: TMatrix4f; Var x, z: T3DVector; Start z: = T3DVector.Create (-FForward.X, -FForward.y, -FForward.z); X: = T3DVector.Cross (z, FUp); Results [0, 0]: = x.x; Results [1, 0]: = x.Y; Results [2, 0]: = x. Zed; Results [3, 0]: = 0; Results [0, 1]: = FUp.X; Results [1, 1]: = FUp.Y; Results [2, 1]: = FUP.Z; Results [3, 1]: = 0; Results [0, 2]: = z.x; Results [1, 2]: = z.y; Results [2, 2]: = z.z; Results [3, 2]: = 0; Results [0, 3]: = 0; Results [1, 3]: = 0; Results [2, 3]: = 0; Results [3, 3]: = 1; End; Process TCamera.ApplyTransformation; Var Cameras: TMatrix4f; A, B, C: TMTix 4F; Start Camera: Orientation = getcamera; GlMultMatrixf (@camera...

best desktop or webscript for managing database? -

Image
Which is the best web script or preferably desktop software in which my small company can keep students and teachers' databases and like stuff To print certificates for selected students on the demand, layoffs, filings and orders. Thank you If you use a small amount of data to manage the user interface If you want a simple database with, download and use is free to use. Here's a screenshot: Update: If you are willing to pay your data public or a small monthly sum, you may also consider it.

finance - High Frequency Trading -

In the last few weeks I have come across many articles about high frequency trading. They all talk about how important computers and software are, but since they are all financially written, there is no information about what the software does. What is a high-frequency business that can explain from a programmer's perspective? And why is computer / software in this area so important? Paul said that to expand: executing HFT or UHFT The server is almost always coordinated in the data center of the exchange, it reduces the latency and permits permission to use alga order (which may soon be banned) for first viewing on the order flow before the order is transmitted to the market Gives several algms in a few milliseconds Been afraid of evaluation and it is a game where the case Misekend. Trading groups are known to hire all the shutters to hire custom developers to hire kernel developers in order to optimize better time between NICs when order is received and resultant action...

visual studio - Running unit tests from within VS2008 vs using mstest on the command line -

I had some inconsistencies in running VS 2008 vs. Unit Test against the running of the same unit test with MSTES on the command line recently. Have faced. / P> My scenario is a bit advanced, so I've probably hit some corners. I have many data driven unit tests running against the same datasource. I like to experiment with PostShare, so I have a PostSharp aspect - TestDataSource is written - which I apply to the unit test type, not the unit test methods. When the type is created, this aspect gives the PostSHORA instructions to attach the "Code> DataSource attribute to each type of unit examination method. Checking the assembly built in the reflector It is found that each test method is credited with the correct DataSource attribute, running the test with the mstest on the command line behaves as expected - each test specifies the data It is run against the source. However, the VS2008 fails to run the exact same unit test to find the data source. It appears t...

cakephp - redirect from another div -

Popup Dive from My Home Page Showing, I need to redirect my home page to present a popup form. But my popup form is redirected after completing the controller function, how to redirect my home page. Now using the $ -> Redirect (Home / Action) You need to get context on the homepage via java script by pop-up win: window.opener.location.href = "new page";

jquery - adding a "loading" image to dynamic images comming from flickr -

Is there any way to display a loading image for moving images using Flickr? I have come to a version working on this site, but I am not able to locate the code to see what they are doing. You can create an image that shows GIF loading, then create another image and Use image loading events. Flickr provides a callback to inform you when the image is ready, then swap just loading GIF for the image from Flickr. Obviously, you have to change the logic to use the JSN feed for the URL and to reuse the JSN object, but it should give you a basic understanding. HTML & lt; Image ID = "image1" src = "someLoad.gif" /> Js $ ('& lt; img />').attr('src', 'someImageFromFlickr.jpg'). Load (function () {$ ('# image1'). Attr ('src', this.src);})

SharePoint LDAP filtering of People Picker users -

On my WSS server I've run the following stsadm command to filter the results that people take: stsadm .exe -o setproperty -url -pn "peoplepicker-searchadcu stomfilter" -pv "(memberoff = cn = SharePoint, OU = AccessGroups, DC = contosio, DC = local)" My WSS All of the sites are all used by different groups of users. Whenever I create a new site collection in WSS, I want to make sure that I can filter people to show only relevant users for that group - I can automate it Or would I have to do something like the stsadm command manually? All the best You can apply an SP WebProvisioningProvider This piece of code , Which can be run when creating a new site (based on a specific site definition). You must ensure that your site collection root is appropriate site definition. You will either need both to apply your stsadm call using the object model, or to wrap the call in that specific call to some custom code.

iphone - UITableView pushViewController On Selecting a Row -

I am creating an iPhone app with UITableView, when I select a row, let me load a specific URL to a UIWebView To be pushed in - (zero) table view: (UITableView *) was the TableView SelectionRowAtIndexPath: (NSIndexPath *) indexPath {NSDictionary * story = [Stories { : [Index path line]]; NSString * storyLink = [NSString stringWithFormat: [story objectForKey: @ "link"]]; [[Self-Navigation Controller] PushviewController: [[FirstviewConverterAloc] Init Whitneynames: @ "Firstview" Bundle: [NSBindle Main Bundle]] Animated: Yes]; } How can I get a new view that slides up to include a UIWebView and later loads the story link through it: P> As other people have said, the general idea is to first place a property on the ViUI controller, which is the URL Loads the need to load, and then loads that URL into the UIWebView when the view appears. This example is how it might look, starts with the header: first interface controller: UIViewController {UIWebVie...

c# - Where is acedao.dll? -

I want to know that Microsoft.Office.Interop.Access.Dao.dll is similar to version 12 acedao.dll. If not, where can I find acedao.dll and add a reference to the C # WPF project? I do not know that the interop DLL is similar to acedao.dll. Go to download DLL as a separate component. Note that Jet 4.0, msjet40.dll, is a Windows operating system component and Windows is required for it, it exists through Windows 7 in Windows 2000. While acedao.dll should be installed. Based on your overall purpose, you find that msjet40.dll works for you.

sql server - Time query for sql database using Visual Basic -

I want to show maximum time and minimum time for a day in grid control by using Visual Basic from scale database. The table columns are: - User ID, Username, Date, Time 1 Shakes 30/1/2009 10:11:22 1 Shakes 30/1/2009 10:15:22 1 Shakes 30 / 1/2009 12:15:22 1 Shakes 30/1/2009 13:15:22 Output must be in the grid 1 Shakes 30 / 1/2009 10:11:22 13:15:22 I go Here is something to believe in your table structure. Make TableMbable (UserID Integer, Username varchar (20), [Date] Time of day, [time] varchar (8)) yours The time is stored as a varchar field because sql2005 does not have any time type, since it will display minimum and maximum time for each user and date. There are two options, if your time is HH: MM: SS then you can use the convert function. The second shows an example of parsing it and builds its own date. Select UserID, User Name, [Date], Convert (varchar, MIN (convert (datetime, [time], 108), 108), Convert (Manor, Max (Date Time, [Time], 108)), 108) Use...

crash - iPhone app crashes after downloading an update -

We just released our first iPhone app update, and some users have complained that - after installing the update - Crashes just after launching the app. Obviously, rebooting the phone solves the problem. The only change we made for App Dieset was in addition to the Pinch Media Analytics Library, which is not a criminal, we have found online articles which say that this is a common problem and that it has issues with DRM or Have something to do. Our app requires OS 2.2.1, but the pinch media documentation said that to change the "Base SDK" to 3.0 and "Target OS" in 2.2.1 within the Xcode Build settings. I have not heard the problems due to this technique, maybe I am in the dark here? Any advice would be greatly appreciated! You should fix the target operating system in 2.21, but changing the base SDK will release your application from 3.0 release. To use the actual headers, you will compile (and run). The installation of the base SDK refers to the ver...

Objective-C Basic Class question -

So I'm returning to little programming and I can not find a good reference to understand the structure I am trying to do so, I am making no other movements and class objects like .. ...} ... @end After having a class object within a class, should I initialize when the object is created in the main? I want to make sure that each instance created for the Mainrecord is always associated with its property (in the future it will be written in a file) all that is mainly readability and easy to add items to this category. I recommend (at least part of), a guide published by Apple. The section called will answer all your questions. Basically, you define not class methods to initialize the example variable in main () - which handle its variable Normal practice.) In Objective-C, you can initialize the example variable in a - (id) init method and give them - (zero ) Dealloc Method to avoid leaking of memory, for example, refer to all the -initWith ... methods. ...

Erlang: how can I reference an anonymous function from within the body? -

is currently a method of executing)? This is an underwear endless loop: spawn (fun -) -> do_something, this_fun () end) In the JavaScript, arguments.callee does this, but see the specification. To answer one 'why do you do this: mostly curiosity; It is also useful to define a timer at the time of prorotiPing: self = self (), spawn (fun () -> self! Wake_up, received after 1000 - & gt; Zero end, this_fun) in the end), %% ... Errang / OTP 17.0-RC1 In, you can use that nominated fun for: 1> Self = self (), 1 & gt; Fun = funny this fan () - & gt; Self! Wake_up, receive after 1000 - & gt; Zero End, Jafan () End # Fun & LT; Erl_eval.44.71889879 & gt; 2 & gt; Eggs (fun). & Lt; 0.35.0 & gt; 3 & gt; Flush (). Shell pass wake_up Shell wake_up Shell wake_up found right In the earlier versions, there is no way to do this exactly. You can pass the function as an argument: self = self (), fun = funny (this fine) - ...

security - Is this plan for preventing iPhone app client spoofing sound? -

I am preparing an iPhone app that communicates with more servers than HTTP. I just want the app to be able to POST for some URLs on the server, not arbitrary HTTP client. Therefore I will set the server to validate only those posts, which includes the secret token, and set up the app to include that secret token. All requests that include all tokens will only be sent over one HTTPS connection, so that it can not be smeared. Are you seeing any flaw with this argument? For example, is it possible to exclude the token from the compiled app using "string", hex editor, etc.? I'm definitely one. Will not store this token in Plist or other plain-text format Suggestions for alternative design are welcome. What exactly is the key that is trying to get the keys, and sells the product with a demographic objective, which are not encouraged to steal. The price of your product is so much that it is cheaper to buy than it is to find the key. Provide good service to your c...

Pass Arrays to SQL Functions from .NET C# -

There is no scope to pass an array from .NET C # to SQL Functions. Honestly. Honestly. And can you show me how? With SQL Server 2008, yes, using. With SQL Server 2005, you have to wrap the data in XML and it must be dismantled using XQuery in its T-SQL function. NB: You can only pass table valuable parameters for stored procs - not to work. From the link: // Configure SqlCommand and Table-Honor Parameters. SqlCommand insertCommand = new SqlCommand ("usp_InsertCategories", connection); InsertCommand.CommandType = CommandType.StoredProcedure; SqlParameter tvpParam = insertCommand.Parameters.AddWithValue ("@tvpNewCategories", Detader); TvpParam.SqlDbType = SqlDbType.structured;

forms - How to programmatically create and use a list of checkboxes from ASP.NET? -

I have a page with a table of luggage and I have to allow the user to select rows for the processes . I have thought how to add a column of check box in the table but I do not have to figure out how the test is recorded, when that form is deposited. If they were static elements, then I could only check on this.theCheckBox but they can be programmatically generated. Besides, how am I am that I am? I am not sure that it is relevant but I am looking at a little bit of a catch-22 because I know this What edit: I checked the checkbox that was made during that time around the last time . Ve almost found the solution found by AutoPostBack property and checked event: checkbox. AutoPostBack = false; Checkboxes. Checked + new event heredollar (checkboxcotted changed); I can get the code to call a post for any check box that has changed. Although it has two problems: After the call back process is processed (or during that time, I am not sure) Page_Load where I use...

Word Ifilter installed on Windows 2k3 Server? -

Do anybody know that iFilters for MS Word are installed by default on a vanilla Win 2k3 server? IFilter Explorer will tell you what your IFilters are installed will probably tell you what you want : There is an IIFILBER blog which should be able to answer all your questions, but the stack overflow will only let me post a link! Personal experience, I believe that if you install the index server or SharePoint services, they will come with the IFilters for MS Office 2003 files. I do not remember setting certain for them. .

functional programming - What is wrong with this macro in Clojure? -

(defmacro nif [expr pos zer neg] '(condp = (पूर्णांक / सिग्नल ~ expr) -1 ~ Neg 0 ~ zer 1 ~ pos)) मुझे यह त्रुटि मिलती है। 1: 1 उपयोगकर्ता = & gt; # & Lt; नेमस्पेस अध्याय 7 मैक्रोस & gt; 1: 2 अध्याय 7 मैक्रोस = & gt; (निफ़ 1 (+ 2 2) (- 2 2) (- 3 2)) 1: 3 अध्याय 7 मैक्रॉस = & gt; Java.lang.Exception: प्रतीक को हल करने में असमर्थ: इस संदर्भ में expr (repl-1: 57)

Determining if a matrix is diagonalizable in the R Programming Language -

I have a matrix and I would like to know whether it is deceptive. How can I do this in R programming language? If you have any matrix, then M is the only way to eigen vectors to diagonal times The time of eigen value of the inversion of the matrix should be withdrawn to us the original matrix. Looks like in R: m then in that example [p% % d% % Hull (P)] should be similar to M And yes, I completely stole from him

php imploding array help -

I am attempting to implode the user ID into the $ users_in_range array, the problem is that instead of the user ID, Mi is P> $ comma_separated = implode (",", array_keys ($ users_in_range));

design - Coding Database web apps -

This is something misleading from me to explain here. When I try to learn a new language, I go with some of these steps: 1) Simple Hello World Program, Math Program, Counter Program 2 ) The interplay between pages is using data (RSS / Atom) from other websites using their APIs. 3) Storing or manipulating the data (mysql / postgresql may call you as database). Now the third part of handling and manipulating data is a bit confusing to me and it seems that I can not go into the coding. Developers may be, but I want to know how I can imagine this structural way so that the programming database app is easy and I can move without fear of codes and database connections. I mean that even if the language is not used, the steps to make the database web app are quite normal (driver / failing table data / storage etc.) but I can not see it. For example, how can I create an APL which stores certain information like adobei using JSP / circlet or PHP. What do I need to think before crea...

asp.net - bing maps cost money? -

I am creating a new web site in asp.net, and a newbie im using maps. For my web site, I'll need the following functionality: Display a map of a specific location Display a route map between two or more places Calculate the distance between 2 spaces. I found the functionality: and it works fine. My questions are: Does it spend money to use SDK? For the third task, I understand that I have to use mappoint services. (Is there any other way ??) Is the code of money to use it? If you do not send me a link, then I appreciate it, because my english is not the best ... lot Thank you very much It seems that you are in the decision-making phase of your project and the professionals of different frameworks And we are weighing the opposition. Due to the nature of the development of commercial applications using maps (provided by Google, Bing, Yahoo, or any other map provider), this may be the idea of ​​a code against such a library. This allows you to eas...

flex - How do set size of state After moved child state using AIR? -

In the air project I used the current position size width = "441" height = "358". I have a Singini-like link button, then go to the singing state (currentstate = 'singing') & Lt; Mx: SetProperty name = "width" value = "919" /> Then the application changes size in 616 9 1. After that work ended like the current situation (currentstate = '') but the size can not be changed How can I decide the size for the current situation? Let me know a & lt; MX & gt; You can set the size with width / height using the ActionScript to use the tag, if any, if you can get a reference.

javascript - Maximum width/height canvas scrollbar interference? -

I'm trying to get 100% width, height canvas element to attract, but because I grab 22 Chrome and Firefox both make scrollbar. The scrollbar appears here because the other related scrollbar makes the content longer / longer. That is, the vertical scrollbar is there because the bottom of the canvas is covered by the horizontal scrollbar and the horizontal scrollbar is there because the canvas right is covered by the vertical scrollbar. Any help is appreciated. & lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Strongly //n" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml: lang = "en" & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "js / jquery.js" & gt; & Lt; / Script & gt; & Lt; Style & gt; * {Margin: 0; Padding: 0; } & Lt; / Style & gt; & Lt; Script type ...

objective c - Filtering a NSOutlineView/NSTreeController -

How do I use a search box to filter NSOutlineView / NSTreeController? I know that there must be something with binding and an ingenious. But do not specify how can someone take me through the steps to filter the NSOtline Vis / NSTI Controller? I do not think you can. NSArrayController allows you to give it a filter undoubtedly; NSTreeController does not offer you a suggestion.

Session ID not the same in my java ee application -

I wrote an application with a custom login system, and then wrote my own security filter for that which Sets the area that can be accessed. However, I am always redirected to the login page and then on the index page with the log in the home page. I have found that session ID is different when I try to use the thing which is restricted when I login. Here is my code: Public class securitizer tool filter {Public Zero Init (FilterConfig filterConfig) throws ServletException {// Use the file to change the body of the implementation methods. Settings | File templates} Public Zero doFilter (ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {HttpServletRequest req = (HttpServletRequest) servletRequest; // If there is no user, they have not gone via // login, then kick them on the long page if (null == req.getSession (). GetAttribute ("user name")) ((httppservate Response) Servlet Response) .seendRedir...

apache - How can I get my website to display a .c file instead of trying to make the user download it? -

My webserver is Apache (though I do not have admin rights on it). In my directory, I have something The files that I would like to show to the user to view in my browser At present, the website tries to download the files rather than just displaying them to the user. How can I fix this? What some kind of Does the Htaccess move? put: AddType text / plain. C should work in .htaccess.

javascript - Replacing a html tag with another tag using JS DOM -

I am quite new to JavaScript and DOM and I have a problem adding the dom using Javascript for the following HTML code . & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Trial & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Marquee direction = height above = 400 scrolling = 3.7 scrollable = 70 onmousedown = "this.stop ()" onmouseover = "this.stop ()" onmousemove = "this.stop ()" onmouseout = "this.start ()" & Gt; & Lt; A href = "#" & gt; & Lt; Period & gt; The lion's & lt; / Span & gt; & Lt; / A & gt; & Lt; Br> & Lt; Br> & Lt; A href = "#" & gt; & Lt; Period & gt; Tiger & lt; / Span & gt; & Lt; / A & gt; & Lt; Br> & Lt; Br> & Lt; A href = "#" & gt; & Lt; Period & gt; Giraffe's & lt; / Span & gt; & Lt; / A & gt;...