Posts

Showing posts from July, 2014

flex - Looking for HTTP Authentication website examples -

I'm looking for a website for which HTTP authentication is required, so I am interested in the behavior of specific HTTP authentication dialog boxes Can see The reason for this is that, for some reason, on Firefox 3, our Flex app starts reopening another HTTP authentication dialog box, after clicking cancel is clicked. This is only in Firefox 3. I have to find out that this is only the Firefox 3 issue, the nature of the HTTP authentication, or something in our Flex app is wrong. Edit: I should clarify some more details The problem with our Flex app is that when the authentication dialog box appears, the user cancels the click. Then the attempt to re-enter the page again, again because the authentication dialog box reappears. However, if they type the correct password, the same dialog will reappear. Thank you, Jason This website provides an example of HTTP authentication:

java - Why do this() and super() have to be the first statement in a constructor? -

Java "post-text" itemprop = "text"> It is necessary for Java that if you call it (or) super () in the constructor, then this will be the first statement. Why? For example: public class MyClass {public MyClass (int x) {}} public class MySubClass MyClass {public MySubClass (int a, int b) extension Does {int c = a + b; Super (c); // COMPILE ERROR}} Sun Compiler says "Super should be the first statement in the call constructor". Eclipse compiler says that "Constructor call should be the first statement in a constructor." However, you can re-arrange the code: public class MySubClass MyClass {public MySubClass (int a, int b) {super (a + b) Expands; // is ok}} Here's another example: Public class Myls {public MyClass (list list) {}} Public class MySubClassA MyClass Enhances {public MySubClassA (object items) {// Create a list that contains the item, and pass the list to Super List List = New Arrayist (); List.add (item); Supe...

objective c - This loop chokes on 50,000 lines on the iPhone... can I improve it so it doesn't? -

फ़ाइल * फ़ाइल = फ़ॉपन ([जीपीएसफ़ाइलपैथ यूटीएफ 8 स्ट्रिंग], "आर"); चार सी [1024]; जबकि (fgets (c, 1024, फ़ाइल)! = NULL) {NSString * cString = [[NSString alloc] initWithCString: c एन्कोडिंग: NSMacOSRomanStringEncoding]; NSArray * split = [cString घटकों से पृथकबिस्तरी: @ ","]; यदि ([विभाजित गिनती]! = 3) {continue; // यह केवल पहली पंक्ति पर होना चाहिए} gpx = [gpx stringByAppendingString: [NSString stringWithFormat: @ "& lt; trkpt lat = \"% @ \ "lon = \"% @ \ "& gt; & lt; / trkpt & gt; \ N \ n ", [विभाजित ऑब्जेक्टअटइंडएक्स: 0], [विभाजन ऑब्जेक्टअटइंडएक्स: 1]]]; } जैसा कि दूसरों ने बताया है, आप बहुत सारे अस्थायी वस्तुओं का निर्माण कर रहे हैं। एक बहुत भयानक। उसके ऊपर, कम से कम जीपीएक्स वाले, अस्थायी वस्तुओं का आकार, लूप के प्रत्येक पास के साथ बढ़ रहा है। आप ऐसा कुछ करने की कोशिश कर सकते हैं: NSMutableString * gpx = [NSMutableString स्ट्रिंग]; NSAutoreleasePool * पूल = [[एनएसएयूटीओरियसपुल आलोक] इनिट]; (NSString * ...

flex - Binding to an specific property of objects in an array -

I am using Flex so that a small form can be created. I currently have a list component, that I want to populate with a list of font names. I am receiving fonts using Font.enumerateFonts (true); . It returns an array of flash.text.Font objects. The font object contains a fontName property that is the string of that font name. My problem is that I can not understand how the dataprider of the list is to be tied to the font objects' font name in Array. Is there any way to do this just with bondage? And is not making a new array of strings through font objects? You probably have an example of labelField property of list control: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Mx: application xmlns: mx = "http://www.adobe.com/2006/mxml" layout = "absolute" initialize = "onInitialize ()" & gt; & Lt; Mx: script & gt; & Lt ;! [CDATA [Import mx.collections.ArrayCollection; [Bi...

SharePoint DataView Show Items from last week -

Image
I have SharePoint DataView WebPart which is set to combine data with some different lists. I want to filter to show data I'm able to filter it to show data from this week, but I failed to show last week's data. I have set up a Web Part filter set below: It translates the following XSL: & lt; Xsl: variable name = "rows" = "/ dsQueryResponse / rows / row [number (translate (sub-base (@ wik_x0020_starting, 't'), '-', '') & amp; lt; = number (Translate (first $ $, today, 't'), '-', '') and number (translate (before sub-letter (@ weeks_x0020_ ending, 't'), '-' '')) & Amp; gt; = number (translate (first letter $ $, 't'), '-', '')] / /> I guess I understand this Need [current date] - 7, however, I did not understand how to subtraction Is there anyone facing such a situation? Am I going to go about this right? / P> I managed to hack somet...

How do I make use of java library? -

My project is to develop a network analysis tool and I have decided to use the JUG library. But I do not know how to get started and to use it? I am using Eclipse IDE, how can I accept it? Thank you. To integrate an external library in Eclipse, just go to your package explorer side view; Go to the project or some file inside your project, and go to the properties. In the Java Build Path section, go to the Libraries tab and add your library there. It should be shown in the way of your construction so that it can be compiled with your project. Let me tell you that if this is just an external jar, just click on the external JRS instead of the ad library.

r - Finding Multiple Elements in a Vector -

मान लीजिए मेरे पास निम्न वेक्टर है: & gt; X & lt; - नमूना (1: 10,20, प्रतिस्थापित = TRUE) & gt; X [1] 8 6 9 9 7 3 2 5 5 1 6 8 5 2 9 3 5 10 8 2 मैं कैसे पता लगा सकता हूँ कि कौन सा तत्व 8 या 9 हैं? यह ऐसा करने का एक तरीका है। पहले मुझे सूचकांक मिलते हैं जिस पर एक्स या तो 8 या 9 होता है। फिर हम यह सत्यापित कर सकते हैं कि उन सूचकांकों में, एक्स वास्तव में 8 और 9 है। & gt; इंड्स एंड एलटी; - जो (% c% 8 9) में & x; इंड्स [1] 1 3 4 12 15 19 & gt; X [इंडस] [1] 8 9 8 9 8

javascript - (Rails) How do you replace the text of a "link_to_remote" without breaking the link? -

Is there a quality way to update the text inside a "link_to_remote" and leave the link functional? Basically I have two links: & lt;% = link_to_remote "(# {building.charts.size} chart)", {: url = & gt; {: Action = & gt; "Update_chart_matrix",: chartable_type = & gt; "Building",: chartable_id = & gt; Building.id ,: title = & gt; Building.name} ,: update = & gt; 'Chart-matrix',}%> ... and ... & lt;% = link_to_remote "Add chart", {: url = & gt; {: Action = & gt; "Add_chart_for_chartable" ,: chartable_type = & gt; "Building",: chartable_id = & gt; Building.id} ,: update = & gt; 'Other_link', is definitely not sure about this part because I only want to update the chart count in the second link}% & gt; This link will be easy to replace HTML only, but I do not want to "break" its functionality. Any ideas? Thank you. ...

Weird string concatenate related to arabic symbol C# -

Hi, I am trying to create a number format for currency data. If the symbol is $: $ + #, ## 0.0000, the result is $ #, ## 0.0000 -> this is good. But if the symbol R.S. (Saudi Arabia Currency Symbol) Result #, ## 000 ر.س ~ 0 s0 On this website I can not even write the correct result string My approximate results only keeps the symbol in exactly the same place as any other, but every time I try, it always turns into a weird character sequence. Do you know why? There are many problems in bidirectional Unicode character sequence. Try setting the text direction of the label / text box / whatever you are putting the string right-to-left

html - solution for extra space in div element -

मेरे आवेदन में मैं एक div तत्व का उपयोग कर रहा हूं पोस्ट-पाठ "आइटमप्रॉप =" टेक्स्ट "> प्रत्येक ब्राउज़र के पास विभिन्न तत्वों पर मार्जिन और पैडिंग के लिए इसके डिफ़ॉल्ट मान हैं। इसलिए जब तक कि आप स्पष्ट रूप से सेट न करें। div {margin: 0; गद्दी: 0; } अपनी सीएसएस स्टाइलशीट में, नीचे और आपके डिव के ऊपर कुछ रिक्तियां होंगी। अधिक परेशान क्या है कि प्रत्येक अलग ब्राउज़र में पैडिंग के लिए अलग-अलग मूलभूत मान होंगे और divs पर मार्जिन उदा। फ़ायरफ़ॉक्स में 10px मार्जिन हो सकता है और IE में 8px मार्जिन हो सकता है। मुझे लगता है कि यह स्टाइलशीट्स के शीर्ष पर इन सभी डिफॉल्ट को शून्य पर शुरू करने के लिए सबसे अच्छा है उदा।, Html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, table, कैप्शन, सबक, Thead, tr, th, td {मार्जिन: 0; पैडिंग: 0; सीमा: 0; } वास्तव में इसके लिए मैं शानदार उपयोग करता हूं क्योंकि इसमें एक रीसेट केस फ़ाइल है जिसमें चाल है!

Passing hidden input fields in HTML Select option -

Does anyone know if & lt; Select & gt; It is possible to pass a hidden request parameter with in the HTML code & lt; Options & gt; element For example, if the user has & lt; Option value = "foo" & gt; Foo & lt; / Option & gt; from a to & lt; Select & gt; List of options, can I somehow get a hidden value, as well as the "foo" value, and request parameters? Like & lt; Input type = "hidden" name = "x" value = "bar" /> I will be able to get the "foo" and "bar" requests when the user has the Foo option. Thanks Both prices are displayed in a selection list for the user and A value that is sent back to the server on the form. You can use some sort of delimiter in the value posted to send both values ​​back and then you can parse them at that time: "myselectlist" & gt; & Lt; Option value = "foo; times" & gt; Foo & lt; ...

.net - Switching to OR/M. Writing files while saving Objects -

I have this project where I am regular edo. / Ul> When I make a new order, I attach a document. This document has been given an array of binary data (a PDF file) and when I save it, it writes binary content to the defined path. All this works and even transactions. Now, is it possible to use the same behavior as an OR / M? Obviously this is something that I have to generate or write manually on the top of the M / M code, but is it qualified in Linq-to-SQL or nHibernate? Which one would you recommend? Cards: / P> ID Serial Pin puk Modem: IE IMEI Order: ID Accessories Command lines: ID order_id stuff Identifier_id Identifier_id Identifier_id Identifier_id What I'm trying to do here is a specific card or hook to a specific modem for an OrderLine. For example, by entering 'modem' in identifier_name and id1. This system is currently the ADO. Works on the Net, but again, I wonder...

windows - Any tools available for packing 32bit/64bit executables together? -

I really like the way SysInternals Utilities (process explorer) handles 64bit compatibility It seems that 64bit in executable 64 Bit version embedded, and removes it if necessary. I need an appliance that automates it - that is, takes 32bit and 64bit executables, packs them in any way, and launches the executable according to the running platform. Inserts a stub code for Before I start my roll, does anyone know something like this that already exists? Marx Russianov describes his method of science container fame. They embed an x64 image in the x86 image, unfortunately there is not really much information on the blog post, but it is mentioned that their technique is based on very old articles.

python - need to create a .pem file -

What is the .pem file included? Just key or a function that generates the key. I need to create a .pem file and need to call this file in the function. > Here is the code to which I want to proceed: pk = open ('public_key.pem', 'rb') .read () RSA = MCCRPTARSLod_pub_key ( PK) You can use to create a pem file. You must provide this correct parameter to get the right type key. Openssl's command looks like what you want to use.

Lock profiling in 2.6 linux kernel -

How can I do lock profiling (spin and other types of lock) in the 2.6 kernel Linux? I want to get a lock dispute number for some locks which I have added to my module. Is there a .config option that I can enable and get profiles or other tools? Andrew thanks for good indicator. It seems that oprofile can not lock data. CONFIG_LOCK_STAT exists only after the 2.6.23 kernel. Whereas my kernel version is 2.6.16. If the kernel version & lt; If there is 2.6.23 then the palm () option is the palm () option.

Change all span-tags into label-tags with Javascript? -

What do I do: Call an unload-function to change & lt ; Span & gt; Some content & lt; / Span & gt; In & lt; Label & gt; Some content & lt; / Label & gt; Is it possible to replace a span-tag in labels-tags with javascript? If this is possible how can I do this? Thnx, ... doro and If you are using jQuery, you can use the replacement () jQuery.each ($ ("span"), function () {$ (this). "& Lt; label & gt;" + $ (this) .text () + "& lt; / label & gt;");}); More info:

email - Adding external attachment an mailing from Access -

I am trying to send email using MBBA from VBA but can not use sendobject function because This external support does not support file attachments. Does anyone know how I can do this? Thanks Anyone can use MAPISession control in VB 6.0, So I think it will also be available in VBA Another way is to use the Outlook object model, but MS Outlook will be required to install it. Although most of the users with access usually also put Outlook on their desktop and then another decision - you can use .net (VB.NET for exbaple) to write a very small component. That SmtpMail will use System.Net.Mail to write and send. It will not be very difficult for you as a VBA developer. If you can write a class with a function SendEmail, then you can show this class to COM, then you will have an ActiveX DLL, which you call from your VBA project (Using the CreateObject ("")) and

flash - How do you make a SWF resize inside a HTML page? -

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

.net - Text box validation to enter value only more than zero -

I need an ASP.NET text box verification which is above zero; Not less than zero or zero You can compare these terms with a comparison valetator Can set. If you do not want to leave it empty, then add a requiredFidelWidator. ASPX looks like this: & lt; Asp: text box id = "textbox1" runat = "server" & gt; & Lt; / Asp: text box & gt; & Lt; ASP: ComparisonValidator ID = "Comparison Viadetator 1" Runat = "Server" ControlTowlid = "Textbox 1" error message = "should be and; 0" operator = "greaterthan" type = "integer" value = "0" />

WPF Binding to property and setting another -

I am using MVVM in my WPF application. I have a window in which there is a view inside it. The value can be changed in that view and I will tie it in a text box in my main window: Now I will need to force this to myViewModel.MyValue for a property inside my main window view model, so that I can filter it into a You can use the collection. Can I use a setter or something else that sets the value of MainViewModel.Property whenever myViewModel.MyValue Does change happen? If so, how can I do this? Does the visual model of your "all" scene reside in the "main" window viewodol? If so, then you can only trigger these things through the setters. If not, you can use the ancestors binding and run it from the UI. It is not ideal (I thought that you are trying to avoid the thoughts of parents and children from each other's specific knowledge), but this will work. Here is a RelativeSample sample which is very easy. These can be quite complex. Ex...

Google App Engine with Django 1.0.2 -

Previously it was necessary to install and. But now how do I use it You must add to your code google.appengine.dist In your third link, you talk very well during the documentation process but remember that Not yet in SDK, you must update your local version manually

Is language adoption driven by the productivity of its available IDEs? -

Simply put, if a new language designer wants to adopt it from the largest group of programmers and get interested , Then have those designers developed a high productive IDELE like the introduction facility IDE for encouraging a language to be adopted? "post-text" itemprop = "text"> Yes. Even if you have made the most useful, most advanced language on the planet, even then I have no way of using Notepad. / P>

LINQ to SQL: Concurrency resolution -

इस LINQ को SQL को देखते हुए: का प्रयोग (var db = Database.Context) { Var रूट = (पोस्ट से db.Post में जहां post.Id == रूट पोस्ट ID चयनित पोस्ट)। सिंगल (); Root.LastActivityUtc = DateTime.UtcNow; db.SubmitChanges (); } क्या होगा अगर एक ही रिकॉर्ड एक ही विधि (जहां यह कोड रहता है) उसी कॉल के साथ एक ही कॉल से बदला जा सकता है? एक अपवाद फेंक दिया जाएगा? इस तरह के एक घटना में - एकमत संघर्ष - मैं इसे बदलना आसान छोड़ना चाहता हूं ताकि सिर्फ पिछली गतिविधि के लिए एक अपडेट दोनों के बजाय प्रस्तुत किया जा सके, जो संभवत: वही मान हो सकता है। आप अपनी संगामिति समस्याओं का पता लगा सकते हैं और हल कर सकते हैं, / P> का उपयोग कर (var db = नया MyDataContext ()) {var root = (पोस्ट से db.Post में जहां post.Id == rootPostId पोस्ट का चयन करें)। सिंगल (); Root.LastActivityUtc = DateTime.UtcNow; कोशिश {db.SubmitChanges (); } पकड़ (चेंकन्फ्लिक्ट एक्स्प्शन) {db.ChangeConflicts.ResolveAll (रिफ्रेशमोड.किप चेंज); db.SubmitChanges (); }} के साथ। KeepChanges आप अपने ग्राहक ऑब्जेक्ट के सभी बदलावों को...

c# - Passing a generic collection of objects to a method that requires a collection of the base type -

I have a method that is expecting the base type of general archive parameter, Test.MethodA ( IEnumerable list A) How can this happen when I make it a collection of derivative type which does not create a code? All examples of DerivedClass can also be made of a BaseClass I can create a new list (base class) And passed the method A (IEnumerable listA) but I would think it would be sensible enough that DerivedClass has all the same properties as a collection of BaseClass in the collection. List. Using the Cast (T) () method as I have been shown, the best way to solve this problem has been shown? Abstract class base class {public integer some fields; Public abstract string SomeAbstractField {get; }} Category DerivedClass: Base Class {Public Override String SomeAbstractField {get {return "foo"; }}} Class test class {public zero method (ienumerable & lt; base class & gt; list a) {} public zero methode () {list & lt; DerivedClass & gt; ListB = n...

perl - Catching errors with both mod_cgi & mod_perl -

Thanks in advance for everyone. I am doing some research on error handling and I think I am getting a solid understanding of what I should do. Courses: My code is staying in Apache and implemented in the browser, my goal does not include command line execution. I have the ability to capture the behavior of CGI :: Carp (Motal Tubrozer) and throw it on my own template page, email it etc. etc. I want to notice Does anyone know what does the FatalsToBrowser do not work with mod_perl? How is Apache / mod_perl getting? The first goal: If I am executing the code with mod_perl or mod_cgi, then I would like to add something together. The second goal: I have a high-level method (s) that captures all the errors similar to the .NET application_Error (global.asax) and PHP's set_exception_handler () and set_error_handler () methods. I have read / reviewed: / P> 1.), but that was not I was looking. The item that I want to hold is dead () ing The next link also says that...

servlets - Access to Tomcat from remote PC -

I have developed a web application using servlets and templates when I try to use this application from the server So everything is fine (ie). Although I have a hard time accessing this application from another PC. Server PCs and client PCs are connected to the use of a router, there is no other computer in this network. If, for example, the router IP sends server 192.168.1.4 to the PC that I write in a browser in the client PC: I can not run the application to do this From on the remote PC, can this be an issue about the tomcat configuration or router configuration I think it might be a port issue if you need it so I can provide the router information. Thanks for all It looks as if your Tomato Server other than the localhost It is a normal (and sensible) default for the server not configured to accept the connection. Alternatively, this may be a firewall problem on the server. If your server is running XP, by default firewall is enabled which will block port 8080. Y...

What is the best way to register existing Windows service in .NET? -

I have to register an existing third-party executable (database engine) Windows service with a .NET application. What is the better way to write the registry? How to use the exe from an installer (MSI) or your .net code.

Winforms Timer for Dummies -

I'm trying to get a timer to tick once in a wifi, when I give advice How to do it. It gives me loads of stuff about thread. Well I do not care about threads, because what I'm trying to do, it calculates a value between 60 to 0 in a minute. Is it, wait then I do not think we need to go into cloud computing to solve this one, but I'm actually a web form buddy, so I'm just messing up on this issue. Someone can point me out for an example Here's what I have tried Private Zero Button 1_Click (Object Sender, EventArgs e) {this.timeLeft = 60 ; This.label1.Visible = false; This.button1.Visible = false; Gt = new timer (); Gt.Tick + = new event handler (countdown); Gt.Interval = 1000; Gt; Start (); } Private zero countdown (object sender, event cargo e) {. {This.TimeBar.Value = timeLeft; This.timeLeft - = 1; } While (this.timeLeft> gt; 0); Return (this.TimeBar.Value> 0); Gt.Stop (); This.label1.Visible = true; This.button1.Visible = True; } Any help would be...

geospatial - Point in polygon algorithm that handles polygons that straddle the antemeridian -

I have a database of polygon points in the form of latitude, longitude pairs, and I need to check whether a given In the latitude, the LNG point is any of the polygon inside. It contains many algorithms, but they do not work if polygon permits Antemiridian (on the coast of New Zealand), where longitude 180 degrees east to -180 degrees West). I see that one solution is to find out that polygon enters the antermedicine and if so, then it is divided into each polygon, then check each of them. The second (simple) option, IMO, is to test only for that particular case, and if it If present, then apply your conversion query point and polygon, for example, if this anti-meridian is spread, then translate everything with a special linear amount, so that it is not in the mid-term period, and do your standard test. .

prob!em with sending xml (declaration xml) with php -

My question really what type of structure should I use as part of an XML If I have the highest share of logic in the class, I call the class above the call / my PHP index page, if it becomes clear that a service is being requested. Has anyone told me that the class method should not output anything. Then where should I output XML? Out of class In addition to this I have a problem that the receiving end is saying that the declaration should start with the document. The receiving end is only in these two lines of document. I do not have a code to process yet, but it already gives an error. & lt ;? Php $ url = 'http: //www.woonbel.nl/gps/setgpsloc'; $ Xml = simplexml_load_string (file_get_contents ($ url)); ? & Gt; I send XML from this class, as you can see, it could happen that something goes wrong, with some white lines or something else. Anyway, I need some advice on how to avoid error declaration and how to send XML, if I do not want to do it in any m...

silverlight - How to bind SelectionStart Property of Text Box? -

मैं इसे का उपयोग करता हूं: & gt; टेक्स्ट बॉक्स एक्स: नाम = "टेस्ट" / & gt ; & Lt; टेक्स्टब्लॉक टेक्स्ट = "{बाध्य चयन चयन, एलिमेंटनाम = परीक्षण}" / & gt; लेकिन यह हमेशा 0 दिखाता है। यह कैसे हो सकता है? धन्यवाद। मैं इस समस्या में पड़ गए (selectionstart और SelectionLength गुण निर्भरता नहीं कर रहे हैं) और bindable चयन आरंभ और अंत के साथ एक पाठ बॉक्स बनाने का फैसला किया: सार्वजनिक वर्ग SelectionBindingTextBox: पाठ बॉक्स {public static केवल पढ़ने के लिए DependencyProperty BindableSelectionStartProperty = DependencyProperty.Register ( "BindableSelectionStart", typeof (पूर्णांक), typeof (SelectionBindingTextBox), नई PropertyMetadata (OnBindableSelectionStartChanged)); सार्वजनिक स्थैतिक केवल पढ़ने के लिए DependencyProperty BindableSelectionLengthProperty = DependencyProperty.Register ( "BindableSelectionLength", typeof (पूर्णांक), typeof (SelectionBindingTextBox), नई PropertyMetadata (OnBindableSelectionLengthChanged)); ...

apache commons - Python equivalent of PropertyUtilsBean -

I was thinking, is there a python equivalent for Apache Commons' Property Internet Bean? Edit: For example, I want to be able to do this assignment xy [2] .z = V given "y [2] .z" as a string. Please note, I am only asking because I do not want to change the wheel again :) When this happens, why do you need such a thing?

networking - the best resources to get involved in p2p file sharing project -

These days I am interested in joining an open source p2p file sharing project. My knowledge about the subject is not so specific, I mean I know about security, networking, P2P basics, but I still feel that at the same time the big picture and practical information from where to start Have to be What are the resources recommended in a nutshell? Right now I am studying and running around systems like Freenet and others. There is a place Source Forge is an open source P2P client will be a good place to follow O Reilly page And, Google Some wikibooks and Wikipedia pages

wpf - How to design a Tab which shows content Vertically -

I have to design a tab control The title of the tab item should really be shown. I can tell you how to do this. Obtain a copy of ControlTemplate of TabControl You can get it , if you are not using Expression Blend to edit. & lt; Grid keyboard navigation. Tabanavigation = "local" & gt; & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition Height = "Auto" /> & Lt; Roadfinion height = "*" /> & Lt; /Grid.RowDefinitions> & Lt; TabPanel name = "HeaderPackel" grid. Row = "0" panel. ZX = "1" margin = "0,0,4, -1" isitemmohost = "true" keyboard navigation. TabIndex = "1" background = "transparent" / & gt; You can see a tab panel in the form of a 2-row grid and header panel below. This is the reason that in the default tab control, the hannel panel (tab) sits at the top (the first row), you can change these rows in columns and replace a tac...

asp.net - Unable to format date in dataset column,GridView -

I am reading data from excel sheet and displaying it in data gridview. There are some date columns in Excel. When I read data from Excel and bind it in the DataGrid view. The date is displayed in the format "02/02/2009 12:00:00 AM" but the actual data in the Excel column "2/2/2009". So how to change the date format in DataAgrid view. Since I'm bound data from the dataset so I do not set a template column or bound column so I do not know where set out HtmlEncode = "False" DataFormatString = "{0: T} " Is there any way to do this? Please help me Please find a sample of the code below. string OleDbConnection = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source =" + FileUpload1.PostedFile.FileName + ", extended attributes = \" Excel 8.0; HDR = yes, ex = 1 \ ""; String strSheetName = "Sheet1"; Oleandbankation olecognition; Olebub Commands Oleb Command; OlebeyDataAdaptatorOldAdapter; OledbCommand = ...

Python- about file-handle limits on OS -

Hi, I wrote a program by Python, and when I open several templates, I'll get an exception: many open files ... then I understand that there are limitations of file-handle in Windows OS or C runtime, so , I change my program using stringio (), but still do not know whether stringo is also limited ?? Usually OS allows to open thousands of files before running in the same range, so if your program handles running out of file unless you can forget to close them You do not intend to open thousands of files and in fact only run out.

plugins - Prototip-like plug-in for jQuery -

I am very impressed with the plug-in, and I was wondering if we are available for the same plug-in JQuery ? The plug-in must be for more than a few months and needs to be updated regularly - or at very least; On the new release of jQuery It comes very well on one aspect and characteristics:

PHP Function execution cost table -

Is there a reference table that shows the performance cost of every PHP function? I know that time execution is the limit of many factors and it is impossible to determine a unique value, but looking for a 'conceptual' table. For example, is_dir () = Cost 3 is_file () = Cost 2 (Take it as an example now;) If I do not mind bad, edit for C: I read all the comments to you, and therefore a table for my needs is. Anyway, I know that is_dir ('/'); // is faster than is_dir ('/ a / very / long / path / to / check /'); But, I have some difficulty in accepting this situation (if, I have understood your words right then it is possible); $ a = '/'; $ B = '/ a / lot / tall / path / to / check /'; Is_dir ($ one); // Time execution 0.003 is_file ($ a); // Time execution 0.005 // It seems that is_dir is faster than is_file // (still examples, the names and numbers of the functions are random;) is_dir ($ b); // time execution 0.013 ...

R object identification -

I often end up with output output for which I do not understand the output data type. I am expecting a list and it ends up with lists or data frames or something else. What is the best way to find out the output data type when using the first time function or workflow? I usually (obj, class) sapply (obj, attribute) names of attributes (obj) Obj) starting with some combination of obj class (obj) sapply: / ex> As appropriate as it is found, it is appropriate on its basis. For example, try with: obj & lt; - data.frame (a = 1: 26, b = letter) obj & lt; - List (a = 1: 26, b = letters, C = list (d = 1: 26, e = letter)) data (car) obj & lt; - Lm (dist ~ speed, data = cars) .. etc .. If obj is an S3 or S4 object, you can see the methods or showMethods , showClass , etc. Patrick Burns has a very nice section on it (Sec # 7). Edit : The mention of Dirk and Hadley str (obj) In their reply, it is actually a quick and detailed detailed information The...

menu - Wordpress Page order -

For any reason I can not get any ideas to update the page in WordPress to get the order? This page is but it should look like this Just got the problem: I forgot to set the page Order popup options in the sidebar widget. I am using widgets so that I can ignore the change.

how to add Save button to each row of the Oracle APEX Report -

I have created an apx report with the edit link and drop down box to edit the edit link in all areas of the report Is used for. But I would like to add a 'Save' button next to the edit link so that users can change the value in the drop down and save the record instead of going to the next page using the edit link. Please provide an option to get it You can do this.

algorithm - Is it worth it to look at a method that does exactly the opposite of what you want to do? -

Take for example [pdf] If I want to add a degradation of weather in a clear picture, then to see that paper Will it be worth it and reverse it? What is the special way to reverse the algorithm if it is possible? Draemon is correct, there is no general view in your case, I will read the paper. If you want to add or remove the erosion of weather, you need to know how the weather seems to fall. That letter will contain information on it, and this can be an easy answer. There may be an example on breaking a replacement cipher You can of course read the paper how to encrypt it with some replacement cipher .

Creating non-standard pages with Ruby on Rails -

Comments, etc. can be easier than all instead. However, I have some pages that do not require any specific model. For example, the 'About Me' page is necessary, and still does not assure the model / controller of its own. In addition, these 'singleton' pages will be linked to my default layout, and to reach here Should not be suitable, when no object is created. Is there any good way to handle it? I have seen many ROR sites, which contain single pages while maintaining a lot of URL, but it is never an example of how structured it is. Finally, is it possible to mobilize these single pages? I definitely do not want static HTML if all regardless. Answer this question about a topic that has a railroad: I have used this solution a few times in my Rail App.

apache - Rewriting query string using mod_rewrite -

itemprop = "text"> In my MVC application, I determine which controller and verb it uses to remove the parameter from Yuri with the Yuri Router is. I have written it so that it can accept both forms: http: // localhost / controller / action / param1name / param1value http: // localhost / controller / action? Param1name = param1value / p / v at ? Now what I want to do to redirect the form P = v form is to use Mod_rewrite form (Logic is purely cosmetic, use the ? X = y form in GET forms) . I'm totally stuck with this how I can do it - I have an idea, I need to use the $ {QUERY_STRING} , but I'm not sure how. If you actually have / controller / action? Try it: Rewrite% {THE_REQUEST} ^ GET \ / [^ / 2] From Param1Name = param1Value to / controller / action / param1Name / param1Value ] + / [^ /] + \? [^ \ S] + RewriteCond% {QUERY_STRING} ^ ([^ = & amp; nbsp; +) = ([^ & amp;; +) & amp;; (. *) Recharge rules ^ [^ /] + / [^ /] +. * / $ 0 /...

css - How can I put a vertical line down the center of a div? -

How do I insert a vertical line between a div? Maybe I should put two divisions inside the divisor and on the other hand should be placed a left border and right border? I have a DIV tag and I need to insert an esquex on the left (which will periodically swap with the second ASX) and then on the left will be a stable esque. Any thoughts on how I should do this? Maybe I answered my question. Any sign will be great Maybe it .here: after {content: ""; Status: Completed; Z-index: -1; Top: 0; Bottom: 0; Left: 50%; Border-left: 2px dotted # FF0000; Conversion: Translation (-50%); } Div {margin: 10px auto; Width: 60%; Height: 100 pixels; Border: 1px solid # 333; Status: Relative; Text align: center} & lt; Div class = "here" & gt; Content & lt; / Div & gt; This is a demo.

jquery - Is there any way to shrink an ascx to make it fit in a fixed div? -

I have an esx control and I need to fit in a device on my page. I do not want to scroll it, can I reduce its size to fit it properly? Labels look fine, but some table cells and text boxes can be shrunk and I believe it will fit properly. I was thinking of selecting jQuery on the text box in ASCs and reducing their width. One concern is that these text boxes use the "Coles" attribute for their length. Can I set that value up to 75% which is currently or something else? Can you hold some columns of a table in jQuery and only work on those cells? Some columns will need to maintain their width while others may be clearly shrinking. I do not want to modify the execution ASX because it was used during the whole app and the stakeholder would like to use the same control on this page. Thanks for any advice ~ San Diego in CK I think That you can use CSS for it. a id attribute like "myDiv" or whatever. You can use CSS & lt; Div & gt; Style and it...

Add text to Existing PDF using Python -

I need to add some extra text to existing PDFs through Ajithan, what is the best way to go about this And what additional modules would I need to install. Note: Ideally I want to be able to run it on both Windows and Linux, but only in Linux. Thanks in advance. Richard EDIT: PEPDF and ReportLab looks good, but no one will allow me to edit the existing PDF, are there any other options? I know this is an old post, but I am trying to find a solution. I've just come to a decent person using Report Lab and PAPDF, I thought I share: Read your PDF using the PDF file (reader), we'll call it Input Create a new PDF to use ReportLab, save it as a string object Read the string object using the PDF file (), we Use it by using text using PdfFileWriter () Education Create PDF object, but it output input and apply. Mergepage ( text .getPage (0)) You want that the text is added to each page, then use output .addPage () to add modified pages. A new document ...

c# - Setting a style on Control type not working -

I am writing a very basic WPF dialog and implementing a simple style on all the items received from the control class Want to The code I am using: & lt; window. Resources & gt; & Lt; Style TargetType = "{x: Type Control}" & gt; & Lt; Setter property = "margin" value = "20" /> & Lt; / Style & gt; & Lt; /Window.Resources> & Lt; StackPanel & gt; & Lt; Text block text = "some text" /> & Lt; Text box x: name = "x_NameTextBox" /> & Lt; StackPanel Orientation = "Horizontal" Horizontal Alignment = "Right" & gt; & Lt; Button x: click on the name = "x_Cancel button" = "x_Cancel Button_Link" content = "Cancel" /> & Lt; Button x: name = "x_OkButton" click = "x_OkButton_Click" content = "OK" /> & Lt; / StackPanel & gt; & Lt; / StackPanel & gt; & Lt; / Window &...

string - Static vs instance methods of str in Python -

तो, मैंने सीखा है कि तारों का एक केंद्र तरीका है। & gt; & gt; & gt; 'A'.center (3)' a ' तब मैंने देखा है कि मैं एक ही चीज़' str 'ऑब्जेक्ट का उपयोग कर कर सकता हूं जो एक प्रकार है, क्योंकि & gt पूर्व; & gt; & gt; प्रकार (str) & lt; प्रकार 'प्रकार' & gt; इस 'प्रकार' ऑब्जेक्ट का उपयोग करके मैं स्ट्रिंग विधियों तक पहुंच सकता हूं जैसे वे स्थिर कार्य थे। & gt; & gt; & gt; Str.center ('a', 5) 'a' अफसोस! यह अजगर का ज़ेन का उल्लंघन करता है। एक होना चाहिए - और अधिमानतः केवल एक ही - यह करने का सबसे स्पष्ट तरीका। यहां तक ​​कि ये दो विधियां अलग हैं। & gt; & gt; & gt; प्रकार (str.center) & lt; टाइप 'method_descriptor' & gt; & Gt; & gt; & gt; प्रकार ('नी!' केंद्र) & lt; टाइप 'builtin_function_or_method' & gt; अब, क्या यह उदाहरण है कि कैसे अजगर में कक्षाएं तैयार की जानी चाहिए? प्रकार क्यों भिन्न हैं? ...

ruby on rails - Why doesn't rake db:migrate report version number? -

रैक 0.8.7, रेल / सक्रियरेकॉर्ड 2.3.3 रेक डीबी से आउटपुट: माइग्रेट करें: == बनाएँप्रोडक्ट: माइग्रेट करना ======================================= ========== - create_table (: उत्पादों) -> 0.0017 एस == बनाएँप्रोडक्ट्स: माइग्रेटेड (0.0019s) ================ ============================ संस्करण संख्या, इस मामले में 20090724013528, प्रवासन नाम से पहले दिखाई देना चाहिए?

Do Drupal and YUI play well together? -

We are putting a website for a customer and their IT team asks us to use Dupl and UI together can do. We have not used both products before, but we have no reason why we should not use them. We have heard good things for both, the only concern is that we have real integration , Because Drupal is a CMS and YUI is a framework. Can you throw all the tips? I have a drop of 6 sites and the UI works together. Two Drupal modules that handle integration: http://drupal.org/project/yui http://drupal.org/project/yui_editor I have used YUI only for rich text editor, nothing else but editor is very good. All normal formatting, plus image handling is very cool. The only thing I found was getting it to work with a local copy of UII. You have the option to use Hosted-YUI or Local-YUI with Hosted-YUI, just give it to the URL where Yahoo is hosting it. Local- With YUI, you can install YUI on your server. For my site, on my company intranet, I wanted a local version so we were not al...

Javascript Regex: How can I surround all words starting with @ with <b> tags? -

I & lt; B & gt; I want to encompass all the words in a cave starting with ; Which pattern would I use to tag javascript with regex? var sample = "sample"; Sample = sample.rele (/ (^ | \ s | -) + @ (\ w +) / g, " b & gt; $ & amp; amp; lt; / b & gt;"); // ^ ^ Assuming that you want @ @ to stay, if not, instead of $ 2, $ & amp; $ & amp; Includes matching substrings. Function use: var sample = "@sample"; Sample = sample.rele (/ (| | | | \ | | -) + @ (\ w +) / g, function (ARR) {return " > See more.

How can you check if a key is currently pressed using Tkinter in Python? -

Is there a way to find the currently pressed keys by using the tanker? If possible, I do not want to use additional libraries. I can already know when the key is pressed, but I can check at any time what key is being pressed at this time. I think you need to keep track of events about pressing keys And continue (maintaining its own set of currently pressed "key") - I do not think it is so that keep track of it for you (and the tikenator actually adds very little to the top of the buck, This is mostly its direct interface).

xml namespaces - What does "xmlns" in XML mean? -

मैंने एक XML फ़ाइल में निम्नलिखित पंक्ति देखी: xmlns: android = "http : //schemas.android.com/apk/res/android " मैंने कई अन्य एक्सएमएल फाइलों में xmlns को भी देखा है, जो मेरे पास आये हैं यह क्या है? यह एक को परिभाषित करता है आपके उदाहरण में, नेमस्पेस उपसर्ग है " एंड्रॉइड " और नामस्थान यूआरआई है " " दस्तावेज़ में, आप तत्वों को देख सकते हैं जैसे: & android: foo / & gt; पूर्ण नामस्थान यूआरआई के लिए एक छोटे नाम उपनाम के साथ एक वेरिएबल के रूप में नाम स्थान उपसर्ग यह & lt; http: //schemas.android.com/apk/res/android: foo / & gt; के बराबर है इसका क्या मतलब है " जब एक XML पार्सर दस्तावेज़ पढ़ता है नोट: आप XML नाम दस्तावेज़ में नेमस्पेस उपसर्ग के स्थान पर वास्तव में पूर्ण नेमस्पेस यूआरआई का उपयोग नहीं कर सकते हैं। नामस्थानों पर इस ट्यूटोरियल को देखें:

Looking for tutorial to call WCF service from classic ASP -

I have some legacy classic ASP codes (not ASP.Net, but ASP), and I call a WCF service I want to do it by using VSTS 2008 + C # + .NET 3.5 and using basic Http binding. Any reference samples? I've heard the only way - we have to generate a hard soap message manually and it is correct to parse the SOAP response? Here's an end-sample code Example with: Mark

iphone - UIView and UIViewController practice for inheritance -

I was thinking that this approach looks like a good practice for apps with many custom ideas for nested PNG graphics. Can change on the basis of interaction. I created a baseway class that extends UIView @interface BaseView: UIView {@ Protected BaseViewController * Controller; } @ Property (Maintaining) Baseview Controller * Controller; @end and related to the controller class which is the primary location, which I am putting code to manipulate the view @interface BaseViewController: UIViewController { @protected CGRAT Dreyaria; } - (Zero) Draweria: (CGRTact) _ Drarea; - (CGMATAT) Draweria; - (zero) linkview controller: (baseview controller *) _subviewController; @end Where "draarea" is a CGRact to be passed to see it as a frame. "LinkSubviewController" allows you to nest a controller and see as follows: - (zero) linkoverview controller: (BaseviewController *) _subviewController {[ Add View Special: [_ subviewController View]]; } In addition ...

Python: Multicore processing? -

I'm reading about Python. I still do not think I have a good understanding of what this can do. Let's say I have quad core processor and I have a list with 1,000,000 integers and I want the sum of all the integers. I could just do this: list_sum = sum (my_list) but it only sends it in one core. Is it possible, using multiprocessing module to divide the array, and each core gets the sum of its fraction and returns the value so that the total amount can be calculated? Something like this: core 1_sum = sum (my_list [0: 500000]) # 1 core for core 2_sum = sum (my_list [500001: 1000000]) # For # 2 core # all_core_sum = core1_sum + core2_sum #core 3 calculates the final Any help would be appreciated. Yes, it is possible to do more in conjunction with multiple processes, doing so with lots of threads Q}: do_sum (q, l): q.put (sum (l)) def main (): My_list = range (1000000) q = line (), with the multiprocessing import process: P1 = Process (target = do_sum, ...

cocoa - Objective-C @interface/pointer clarification -

Learning as always, was running quite well, until I realized what the difference between them is > @ square player; @ Class map; View @ interface: NSView {Player * player_; Map * currentMap_; NSMutableArray * worldArray; NSMutableArray * itemArray; Float celllight_; } @ And It does not matter which star has no effect on it. Now I know why I was so confused. All objects are referenced by Object Object Points, which is * either on the star left side or the compiler on the right Does not matter; I believe this is a personal preference. Float does not have * because it is primitive, not Objective Object Object.

c# - .NET Programming - Can I access members of a C-Sharp project from my VB.NET Project? -

I have a multi-project .NET 3.5 solution I This is ASP.NET, that The C # code-behind is one of all the projects. I am trying to use members from VB.NET to "core" project called C # project. I have set a dependency on the core solution in my solution properties. However, the core is something that does not In addition, core projects are able to declare my other C # project core objects as dependencies (resolution settings) . Example: Private Core. ObjectName InstanceName; In addition, Intellisense brings lots of information into C # projects. How can I hook into these members from my VB project but any thoughts? Thank you! Add the C # project as a reference, not dependent this solution is done through explorer So that the context can be right-clicked under the VB project. You will see a window pop up; Select the Projects tab and find your C # project there. Dependence, on the contrary, only affects the build order. You can set up a project to be depend...

version control - Subversion - How do I commit? I updated one of my project directories to a previous revision -

First of all, I used the "Update Amendment" to update one of my directories for an old revision Because we had to undo some changes. However, when I am committed now, it is telling that the things in my project are old and I should try to update. However, I really do not want my current file to be replaced by any "new" file in the revision. Any suggestions? Thanks I am committed to moving forward and to be head modification. What you want to do is called "reverse merge", update your working copy on the head, then a reverse Wish to revise the merge that you want. For example, if you are on revision 412, but you want to back up the content of Amendment 410, then use it, there is a section in the SVN book for use, under this section about the "Undeterminate Changes" section. svn merge -r 412: 410 http: // Your sposphatry / trunk This is your working copy The state will reflect in 410, and then you can commit one.

data binding - What makes WPF databinding so powerful? -

In fact there is a simple question, it can actually be simple but he goes here. What WPF Any code example shows that its power will be cool. A powerful feature of WPF data binding is that it can happen in two ways, by changing the target asset in the code, the value changes in the banded control. If there is dependency on the property or applies InotifyPropertyChanged other powerful feature converters see, and tired which I think should be mentioned that you can use WPF databinding with animation classes Edit Then this WPF database has this and many other features that are difficult to implement in the form of a win Two May be in the way In templates May be loaded Maybe b can be used directly

.net - PowerShell Runspace vs DLR -

Now with the available .NET 4.0 beta, and thus the broad availability of .NET dynamic language runtime, I think that Types of topics are going to be "hot" I'm confused about the conceptual difference between DLR and PowerShell. I think if I want to provide scripting capabilities in my .net app, So I can enable scripting in DLR (and thus IRPathan or IronRB) , Or whatever Iron * languages ​​available for DLR), or a PowerShell host Runspace. What are the pros and cons of each method? Why can I choose another? As a dynamic language, and a first-class .NET language on it, why does PowerShell not also target DLR? You can consider "DLR v1.0" in DLR in .NET 4.0. This includes improvements to call site caching mechanisms, cross-language interop featuers, and existing LINQ expression trees. These are all features that are very useful for hosting languages, but are not hosting a single language. And this is a missing piece in DLR 1.0 - a shared hosting story...

cocoa touch - Converting a normal PNG to iPhone Optimized format -

I have an iPhone application that downloads images from the Internet and saves them for later performance. Users can select images to look at from UITableView, the table view contains custom cells that show the thumbnails of the original images in different sizes. When a large image is downloaded for the first time, it is saved using thumbnail size and thumbnail UIImagePNGRepresentation. What I would like to do, can save thumbnails in the optimized iPhone PNG format. How can I do that? Does it magically just keep the original big image loaded into memory and save it? Do I have to do some further procedure on the thumbnail before saving? The possibility that UIImagePNGRepresentation is not created, because these are non-compliant PNG, and something else If they can not be read by API generated PNGs, then I think it will document, and whoever uploads PNG from any phone, will see that they have not worked. Optimization is useful, but most optimized PNGs are part of UI whe...

c# - What is the best way to empty a directory? -

Is there a way to delete all the files & amp; Without the sub-directory of the specified directory without restarting them? Non elegant solution: public static zero empty directory (string path) {if (Directory.Exists (path)) // All files in directory {foreach (var Delete file.GetFiles (Path)) {file.Delete (file); } // Delete all folders foreach (Directory.GetDirectories (Path) Miscellaneous Directory) {Directory.Delete (directory, true); }}} How about System.IO.Directory.Delete? There is a recurring option in it, you are also using it. It looks like reviewing your code that you are trying to isolate a bit - emptying the directory without deleting it, right? Okay, you can delete it and make it again :) In any case, you (or some method you use) all files and subdirectories again Should walk However, you can repeat both files and directories at the same time: foreach (System.IO.FileSystemInfo new system in FSI .oo DirectoryInfo (path) .GetFileSystemInfos ()) { If ...

java - Servlet context scope vs global variable -

What is the difference between archiving a variable in the ServletContext (if any), and only as a public stable member About keeping classes? Instead of typing: // Simplified (!) Int counter = (integer) getServletContext (). GetAttribute ("Counter"); Counter ++; This.getServletContext () SetAttribute ("counter", counter); Why not only: // MyServlet public fixed int counter = 0; // MyServlet.counter ++; (Ignore concurrency issues, please, this is just a dumb example) What I can tell, both of these options are only under Tommack Behave in a manner. Is there anything better about using the first option? The web container knows about your servlet reference, but not about your fixed variable which A separate classloader (this server can be restarted, web application redistribution, or multi-node server), to serve by an application example, two separate requests The reason may be, whatever your argument will have to break the servlet Ndrb will a...

opengl - How to create textures within GPU -

Can anyone tell me how to use hardware memory to make texture in OpenLL? I am currently running my game window mode, do I need to switch to fullscreen to use the hardware? If I can make texture in hardware, then what kind of texture (except hardware memory) have no limit? And then how can I cache my texture in hardware? Thank you. It should be covered by almost all texture tutorials of OpenGL. For example, and. For every makeup you first need the texture name. The name of a texture is like a unique index for a single texture. Every name indicates a textured object whose own parameters, data, etc. are used to get new names. I do not know there is a limit other than the UIT category (2 ^ 32). If there is, you will probably get 0 for all the new textured names (and a mistake error). The next step is your texture (see) after all the operations that use or affect textures will use the texture specified by the texture name which you used as the parameter of glBindTexture. You ...

windows installer - MSI - Uninstall gives "Unidentified Publisher" -

I have created an MSI installer using a Studio 2008. I will sign it with signtool.exe and my authenticode certificate. On a Vista x64 test pc, the expected dialogue when the MSI is running is recognizing my company as a publisher Appears for However, when uninstalled from the program Add / Remove Programs, the yellow "Unknown Publisher" dialog is shown. Is there any way to sign the uninstall process? Google is not showing anything useful Many thanks, Chris

LINQ to SQL: using string filename to create a DataContext at runtime -

With FileInfo I can find the file name of a DataContext .dbml file. provided I declare: Dim DataModel = New feature mapping source (). GetModel (GetType ( Northwindetettentex )) With System.Data.LINQ.Mapping I can find the name of all the tables and additionally their columns and relationships. Thanks for all the excellent posts from Jomo Fischer: LINQ to SQL trick: Get all the tables [and columns] Name: But without knowing the dataTontacted object I How can I get results? I mean how can I "replace it": GetType (NorthwindetDettext) with : String = "Northwind DBML" dimmed mode = ... / ... GetType (myDCFile) as the slow myDCFile You can try doing something like this: assembly dataAssang = assembly Load ("yours .data. Assembly"); Datacontext type type = dataAssabankGetType (). FirstOther Default (x => x.IsSubclassOf (Datacontext)); You will basically load your data assembly and will first look for the data type which is a...

Wordpress - hardcoding subscribe2 (or any other plugin) widget into template -

How do I know hardcod categories, archives etc. in the subject, but for my one project, I harden some plugins widget (Particularly subscribe 2) And I'm not sure how to do this. I know that I can add widget to widget manager in wp, but not what i'm trying to achieve, I'm trying to install it later in topic for reuse . Any ideas how to do this? Specially? You can add widgets through normal means, and check the code using the site See-> source. Then, you have to edit the HTML template for the topic (where you want the widget to appear - main entry, sidebar, etc.) and add the code directly there.

Store options in database or in a file? -

In the client-server database application, , the different options where the customer needs to read from the server, where will you store them? In the database or in some files that will then be transferred to the network, or there is no better way. It depends on the specific. Generally speaking, there is very little to store some things in a file on the server while speaking (except for images, videos, songs etc.) databases. If you are storing, say, customer preferences you can store them in a file in the client, but it has portability issues (which do not have profile settings on the other pc with the user ) But this may be appropriate if the client "offline" can be used. Perhaps the best of both worlds is to store things in a database on the server and allow them to cache on the client (perhaps in the file) to allow offline use, if they have an app in question is applicable.

actionscript 3 - Can I change the 'Default Application' class of AS3 projects in Flex Builder 3? -

फ्लेक्स बिल्डर 3 में एक एक्शन स्क्रिप्ट बनाते समय एक एपलीकेशन क्लास स्वचालित रूप से बनाया जाता है और आपके स्रोत फ़ोल्डर की जड़ में गिरा दिया जाता है। मेरे मामले में, मेरे स्रोत फ़ोल्डर को src / कहा जाता है। क्या डिफ़ॉल्ट ऐप्लिकेशन वर्ग को एक वर्ग में बदलना संभव है जो सीधे स्रोत फ़ोल्डर की जड़ में नहीं है? ऐसा लगता है कि क्लास फाइलों पर राइट-क्लिक करते समय उप पैकेज में 'डिफॉल्ट एप्लीकेशन के रूप में सेट करें' विकल्प चुनने योग्य नहीं होता है। क्या यह ऐडोब द्वारा अपने शुद्ध आवेदन को लागू करने के लिए सभी शुद्ध क्लास शीर्ष-सबसे पैकेज में रह रहा है? आप संकलक के परिवर्तन में बदलाव करने जा रहे हैं "स्रोत" निर्देशिकाएं ऐसा करने से पहले मेरे लिए काम किया है ... मैं मान रहा हूँ कि आप इस तरह की संरचना का उपयोग कर रहे हैं & gt; MyApp & gt; HTML- टेम्पलेट & gt; मुख्य & gt; MyApp.as & gt; Src जहां आपका मुख्य डिफ़ॉल्ट अनुप्रयोग का स्थान हो रहा है? यदि आप ऐसा करते हैं, तो अपने शीर्ष-स्तर पर क्लिक करें (मेरे उदाहरण - MyApp) या फ़्लेक्सबिल्डर...

Packaging Algorithm -

I have found a set of items with related attributes (weight, length, width). I related characteristics (maximum weight, length, width) has got a set of packaging type I'm looking for an algorithm to determine at least one box of items to the package I am here. / P> So far, I have detected the problem of the lid, and although it may come closer, I'm not really dealing with a weight, price type problem. Here is an example: Item: 10 x item # 1, (1 lb each, 24 "long, 12" wide) 5 x item # 2, (2 lb each) 24 "long, 6" wide) packaging type: small box (Makswait = 40 lbs, 24 "x 12") large box (Makswait = 75 lbs, 24 "x 24") will be possible ways to package: 2x small box -> Forests -> it everything I have to return a box results for each type of item 1x big box, but if I do all possible combinationsProgramming can go back, then it will work. Are you describing Note that this problem is NP-hard, so you Bruce Force Withou...

c++ - I need help on how to rotate an image with OpenGL using SDL -

I am making a game and the character's hand will be constantly moving because it will follow the mouse cursor. I have never worked before OpenGL and I need to start some help. If someone gets a good website to learn well and has a special rotation, please let me know. I have already visited Neha and went to that rotation tutorial but other basic tutorials, it still seems very confusing to me, so some explanations on the subject will also be appreciated. In addition to this, I do not know that it will change things, but the player's "shoulder", "so I have to know how to rotate this point." Use glTranslate to move the origin of your coordinate system and glRotate to rotate around this root. Anyway, You should get a book about the basics of computer graphics. If serious about, go.

"Build Solution" not working in Visual C++ anymore -

I am working on a personal project in Visual C ++ 2008 and for some reason "build solution" is no longer work not doing. Any thoughts as to why this is happening? I tried Google, but nothing was found useful ... Did you check to make sure that all the projects are set to be compiled in the Configuration Manager? (Right click on the SLN in the Solution Explorer and select "Configuration Manager." Besides, I ran it once on a VS 2008 solution and converting it to Net 2.0 solution and "fixed" back to 3.5 solution.

iphone - Propagating touches from UIApplication in a custom manner -

Is it possible to touch a custom view with the shared app object which is not actually touched and the top view behind it? Let's say I can not use my top view to track touch. It will be difficult - because the top view receives the first event Can not call userInterActionEnabled only at the top, and can pass the bottom layer to the event?

Delphi - .bpl plugins for application - problem while loading > 1 plugin -

I am using to load simple applications with the ability to load. Bpl plugins I have a general interface announcement in the "uIntfs.pas" file, which is a type of SDK;) The problem is that if I try to load more than one plug-in , Then the app throws an error: Package 'test2' can not be loaded The unit is 'uIntfs', which is also Package 'test' included It is quite clear that both BPL files have that file, although I have to do it Required ... Please help! Put your uIntfs.pas in another BPL, and your plug-in has references to both that BPL You have to do this for each unit which is common to both plug-ins.