Posts

Showing posts from February, 2013

php - How can I create friendly URLs with .htaccess? -

I have a hard time with .htaccess I want to create a friendly URL for the site I'm working on Are ... Actually I want to change this: http://website.com/index .php? Ctrl = pelicula & amp; Id = 0221889 http://website.com/index.php?ctrl=pelicula&id=0160399&tab=posters In: http : //website.com/pelicula/0221889/ http://website.com/pelicula/0221889/posters/ If I want it later, I would also like to know that Like how to add the title of the article at the end of the URL (I am using PHP): http://website.com/pelicula/0221889/ article-name-name / http : //website.com/pelicula/0221889/the-article-name/posters/ Note: The Stakeworfl flow method is also good for me, for example the url of this question : http://stackoverflow.com/questions/3033407/htacces-to-create-friendly-urls-help-needed But you You can put anything after the id and it will also work. By the way: http://stackoverflow.com/questions/3033407/just-anything-i-want I used some automat

How to check null element if it is integer array in Java? -

I am quite new to Java and there is a problem checking the zero element in an integer array. I am using Eclipse for the editor and the line error checking error element is showing: if (a [i]! = Null) {< Code> Error message from Eclipse: operator! = For logic type is mandatory int, null In PHP, it works without problems, but in Java, it seems that I want to type orange the object from integer Change so that do not complain to the line (like below) Object [] A = new object [3]; So my question is that I still want to declare the integer array and still want to do a redundancy check, what is the syntax for it? Code: Public Zero Test () {int [] a = New Int [3]; (Int i = 0; i & lt; a.length; i ++) {if (a [i]! = Null) {// This line is compliant ... system.out.println ('null ! '); Java can not contain a int primitive type and null . Objects, however, are stored in the form of references, so if you declare an object reference but do not object to

sqlite - EXTRACT for TIMESTAMP types in SQLite3 -

It seems that extract function is not supported for timestamp types by SQLite3 (). for example; Select year from LAIER (year with L_ShipDate) ... ... returns the following error; Error: Near "From": Syntax Error I wonder if SQLite3 has an alternate way of doing this (or by typing the SQL query again). Thanks in advance, / P> try it < Pre> select l_year as strftime ('% Y', l_shipdate) ...

C++ boost ublas + units dimension constraints -

I am seeking advice on design / general thinking that the compulsions of matrix dimension on matrix matrix / vector how possibly the use of Boost units Can do For example, in the Matrix A, the time x is the dimension of the force (for example) dimension does not have x, time x force and compulsive time x is not . Matrix & lt; Double & gt; a; //Something like this? Dimensions & lt; Time, force, matrix & lt; Double & gt; & Gt; a; Dimensions & lt; Force, time, matrix & lt; Double & gt; & Gt; B = Trans (A); // Perhaps the custom layout, though to make sure the dimension becomes difficult between the matrix? Matrix & lt; Double, dimension & lt; Time, force & gt; & Gt; a; Have you done something like this or do you have some good ideas about organizing such obstacles? I have gone through the ublas archives, there are some discussions, but some are not concrete. Thanks Check out this good boost tutorial which is using

Subsonic class has reference to HttpContext.Current.User in a Windows app -

I am using SubSonic 2.1. I went against this one database and made it all right in the right way, however, when I went to use one of the classes, the app would not be created. I am creating a windows application, but in the subsonic file it is in reference to HPPTEX.Court.user. Does anyone know why this will happen? The subscore initially uses the asp.net application. Though it works very well in Windows. Applications of applications but you have the system in your project The web is required to be included. View in ClassTemplate.aspx: if (System.Web.HttpContext.Current! = Null) items .save (System.Web.HttpContext.Current.User. Identity.Name); Other items Save (System Threading Thread.Content Principal.Indentity .name); If the code is executed inside the asp.net webpage, then it draws usernames from context and receives the user name from the existing thread. There is a conference in Subsonic, if you have a table that has been created and modified column and you us

Share a JavaScript library's namespace or use your own? -

It is well known in Javascript that declaring variables within the global scope is a bad thing I work in it contain nominated javascript. It seems that it takes two different ways - Adding your application specific function to the namespace of libraries eg $ MyCarouselfunction Create your own namespace Example MyApplication.myCarouselFunction I wanted to know if there is a better solution or not, if they In the case of professionals and opposition, they get closer. The reason for me is that the decision not to go personally with the library is for the alienation of separation / separation / conflicts of conflict with the library code and the potential plugin for the possibility of sharing that namespace. Is this not being considered more? I think the most important thing to choose is semantics Does your function / class expand or depend on library-specific features? Keep it in the library name space Is your function / category library independent? In

Do you know of a JavaScript widget for Solar Hijridates? -

Do you know about Javascript widget for Solar Hijri (Jalali)? Users will enter prospects as solar hijri and I need to change. You can find an LGPL licensed JavaScript implementation to change the dates forward and forth: / P>

java - "Cannot find symbol" problem when using Class.forName() -

I can not find the symbol from my code Does anyone know that this problem What could be the reason? The code is: // Register JDBC driver Class.forName ("net.sourceforge.jtds.jdbc.Driver"); and error output is: blah.java314: symbol symbol can not be found: method forName (java.lang.String) Location: Class Java.lang.Class class. ForName ("net.sourceforge.jtds.jdbc.Driver"); ^ 1 Error // STEP 1. Import the necessary package java.sql Import. *; Public class JDBCExample {// JDBC driver name and database URL fixed final string JDBC_DRIVER = "com.sql.jdbc.Driver"; Fixed final string DB_URL = (": jdbc: jtds: sqlserver: // localhost: 1433 / tempdb"); // database credentials static last string USER = "username"; Fixed final string PASS = "password"; Public static zero main (string [] args) {connection conn = null; Description stmt = null; Try {// STEP 2: Register JDBC Driver Class. ForName ("net.sourceforge.jt

C++: use array of strings wrapped in namespace? -

Code> Namespace message ({int arr_sz = 3; Const char * msg [arr_sz] = {"blank", "blank", "blank"} ;sg [0] = "Welcome, blah blah string 1! \ N" ;sg [1] = "OK, bla bla bla .."; msg [2] = "etc.";} The code inside works well inside a function But I do not know how to get an array from this, the namespace idea looks fine, but this The cheat lays down on three lines: error: type before expected constructor, destructor, or '=' token Why can not I define the array inside the namespace, Do I need to do something before? This is good because I can call it like printf (msg :: msg [1]). I just want to do what I say is wrong. Wrap my head around: ( You can arrange the array inside the namespace You can define: // This is legal name location message {const char * msg [] = {"blank", "blank", "blank"}}} You can not do that, there is a statement outside a function: //

RSA Cryptography in c# -

Suppose an RSA algorithm has created a private key on two machines. Is there any possibility that both keys are equal? short answer: no. There is a theoretical probability, but even if you make key of each second, you should not get it twice before the sun explodes.

performance - Why is my Symfony site so slow? Can someone decipher this pingdom? -

My site is really slow, 4603prospect.com? Sometimes its ok, sometimes I'm caching thumbnails at its slow speed, I do not understand how to make this pingdome report .... Thanks Todd Help things to check: Do you share hosting are using it? Is your images being disturbed by an HTC case rule resulting in redirection? How many images are you loading immediately? Most browsers can only request ~ 8 HTFs at a time You can try to combine some of your CSS and JS files together to limit HTTP requests.

events - jquery change not working incase of dynamic value change -

How can I track the onchange event in jQuery if the value of the text box is something else Dynamically changing event. I tried to do this, but it is not working: $ ("# txtbox"). Change (work () {warning ("change");}); fun does not include all natural cases: ( Mouse-Aspest Paste from System Clipboard. Example: The form is intended for entering an email address, and on-change, Events are attached. When user starts typing an email address, such as Chrome or Firefox autocomplete pops up And the user clicks from one of the options, the box is filled with value, the focus remains in the text box (no such change event) and no key is pressed (any key usage Not the event). I tried clicking in the list, but it causes strange behavior in my browser. Similar to Paste - if mouse is used for pasting (on right mouse click) Contextual menu Sector is available through)), nor are there went the Kunjeep and remove events change. How is the s

c# - XML Deserialization -

मैं निम्नलिखित xml फ़ाइल । & Lt; a & gt; & Lt; p & gt; & LT; ग & gt; VAL1 & lt; / ग & gt; & LT; घ & gt; val2 & lt; / घ & gt; & Lt; / p & gt; & Lt; p & gt; & LT; ग & gt; val3 & lt; / ग & gt; & LT; घ & gt; val4 & lt; / घ & gt; & Lt; / p & gt; & Lt; a & gt; मैं इसे एक श्रेणी में डिसेरीलाइज़ करना चाहता हूं और मैं उनको बनाया वर्ग की वस्तुओं के साथ उन तक पहुँचना चाहता हूं। मैं सी # का उपयोग कर रहा हूँ मैं deserialize और वर्ग ' a ' ( & lt; a & gt; टैग) के ऑब्जेक्ट में मूल्य प्राप्त करने में सक्षम हूं। लेकिन इस ऑब्जेक्ट से & lt; b & gt; के मूल्य का उपयोग कैसे किया जाए? [Serializable ()] [XmlRoot ( "एक")] सार्वजनिक वर्ग एक {[XmlArray ( "एक")] [XmlArrayItem ( "बी", typeof (: मैं निम्नलिखित कोडिंग किया बी))] सार्वजनिक बी [] बीबी {प्राप्त; सेट; }} [सीरियलज़ेबल ()] पब्लिक क्लास बी {[XmlElement ("c")] सार्वजनि

java - Coverage can't cover the public static void main method -

Using junit coverage, it can not cover the public static zero principal method. How can I cover it? After making sure that it is testable, it is called as any other public static method : YourClass.main (new string [] {"parameter1", "parameter2"}); And then emphasize the following situation.

iphone - how to implement zoom and pinch zoom effect in application? -

I have implemented a photo app in which I want to implement the zoom and want to kiss the zoom effect as iFile Is similar to the default photo app. How is it possible that please help me for this question? In advance. The UIScrollView component takes care of such functionality. Try starting here: An example of ScrollViewSuite (links in context) that you can use.

uitextfield - Formatting the number entered in textfield in iPhone -

I have a text field where the user enters the number, which is in thousands of boundaries. I want the text field to be formatted because the user enters the number, for example: 200000 200000. How do I go about doing this ?? Many thanks, s I have a The only question is! Here's how you do it. You want to use NSNumberFormatter and want to set it to use decimal style: NSNumberFormatter * formatter = [[[NSNumberFormatter alloc] init] autorelease]; [Setter Settlement Style: NSNumberFormatterDecimalStyle]; TextField.text = [Format stringfarmNumber: [Former numberframestring: textfield.txt]]; Replace textField with the name of your UITextField variable.

php - SoapClient throws Wrong version -

When I send down the request, I'm getting an 'incorrect version' exception. & lt; OTA_HotelGetMsgRQ xmlns = "http://www.opentravel.org/OTA/2003/05" timestamp = "2001-12-17T0 9: 30: 47.0Z" version = "4" xmlns: xsi = "http: // www .w3.org / 2001 / XMLSchema-instance "& gt; & Lt; Message & gt; & Lt; Message HotelCode = "123" Name of the Hotel = "Test Hotel" Chancoda = "321" ReasonForRequest = "Reservation Retrieval" RequestCode = "Optional" ChainName = "Test Chain" MessageType = "All" StartSeqNmbr = "1" & SeccnmR = " 10 "/> gt; & Lt; / Messages & gt; & Lt; / OTA_HotelGetMsgRQ> The request is converted to the zend code $ client = new zend_soap_client (zero, array ('location' = & gt; 'http: // url ... ',' Uri '= & gt; "http: //www.opentravel .org / ota / 2003/0

javascript - Select link from table using single selector -

मैंने इस तरह चयनकर्ता लिखा है jQuery ("td: contains ('test') ")। Parent (" tr ")। Find (" a ") मैं तालिका में लिंक पर क्लिक करना चाहता हूँ। यह महान काम करता है, हालांकि मैं इसे सेलेनियम चयनकर्ता के रूप में उपयोग करना चाहता हूं। सेलेनियम jQuery चयनकर्ताओं का समर्थन करता है, लेकिन उन्हें एक लाइनर होना चाहिए, उदाहरण के लिए सेलेनियम क्लिक करें ( "jQuery = एक: ( 'परीक्षण') शामिल हैं"); मेरे चयनकर्ता को एक लाइनर चयनकर्ता में बदलने का तरीका क्या है? क्या यह संभव है? कोशिश करें jQuery ("tr: has (td: contains (' परीक्षण ')) एक ")

jQuery .toggle() not working as expected with second function? -

I'm trying to create a button below to show / hide a div, all is fine, I just fine I'm struggling with the last bit! I should segregate the weather, this is a show or hide action, so I can pass the variable elsewhere, here I have what is .. < Code> $ (() () () () () () () () () () () (.) .attr ("id") + 'show');}, function () {warning ($ ( This) .Parent (). Attr ("id") + 'hide');});}). )}); If you use the following code, do the other function within the toggle (), then it works?! But then I have no show / hidden variables. $ (this) .find ('.-Hide-close'). Click (function () {$ (this) .siblings ('.dragbox-content') toggle (function () {warning ($ (this) .Parent (). Attr ("id") + 'Show') ;})}}) .end ()}); Thanks in advance for any help, hopefully this is really something simple, I just can not see! : You can use $ (this) .is (": visible") Under the function, to see if its

opencv - Blob ID matching over multiple frames in C++ (image analysis) -

I am working on a Blob mailing and tracking library in C ++. I currently use < Strong> OpenCV and am trying to match Blob's position in a new frame by checking the position, velocity and size of Blob. It works quite well and I am getting a high blob match rate (9 5% or more). Occasionally out of photos or new blobs appear. Now I need to give matching blobs to the same ID, as it was before. I'm thinking that there are general or commonly used techniques to do this, or even some keywords that I can use on Google. Thanks I think you Register your blobs in binary image, fill each blob with just a different color / id, and overlapping blobs between the frame with the same ID.

TemplateBinding Height To owner height WPF -

I want to set the height of the window's template at the height of the owner if I have 1280 and 1024 resolutions in my main window It seems to get 1024 height and set it to the border in the template. How can I get the main window height? It's a little hard to understand what you want here. Maybe your code will help I'm assuming, because you're talking about a template, you're making a control, what exactly does the height need? I would think that the easiest thing to do is to set the default vertical alignment in Stretch, and do not worry about the actual height. If you need the height, you can subscribe to the size of your control changed event and get the value of the actual high property. If you use FindAncestor in the relative source bond, you can also get the height of a container window.

python - Get number of results from Django's raw() query function -

I am using a raw query and I'm having trouble finding out how much results it gives. Is there any way? Edit . Count () does not work. Returns the returns: There is no attribute 'counts' in the 'RawQuerySet' object Looks like you're talking about raw () queryet method It gives a query like any other, of course, you can call .count () , as if you can call on another ORM query. Edit shows what happens when you do not check as you notice, .raw () returns a RawQuerySet In which there is no counting method - nor does it support len () The only way to get the length is to repeat through the query and count them: sum (As result result 1)

c# - Track and identify users with Memcached -

I have a social network website that includes thousands of users so far I have a classic to store user details in session object The method is used. Now, I want to upgrade it, so it will work against the memcatch and the key value is "UserID". My question is, what is the best place to keep "User ID" so that I can use it to inquire user details with continuous makecat? I see three options: Store it in all cookies. Store it in all cookies Store it in a cookie Store it in all cookies They can also be added for added safety / robustness. The best practice is to add the cookie with the Imo ViewState.

javascript - Navigation menu -

When I mouse over the navigation menu links (about us ..), then the page leads to the left. Is this because of javascript? This scrollbar appears on the right side of the browser window It seems that there is a design error due to which content can be expanded from the menu ...

iphone - TTTabItem in three20 icon not working? -

I am trying to get TTTabItem to work with images and I dig that Can set in image file. This is my compliance: TTTabItem * tab1 = [[[tttabit alloc] initWithTitle: @ "item1"] autorelease]; Tab1.icon = @ "bundle: //icon_eat_min.png"; FilterBar.tabItems = [NSArray arrayWithObjects: tab1, zero]; [ScrollView addSubview: filterBar]; However, my icon is also not visible. I also search through this group: ... Override the round style. But I'm just wondering why you can do that which you can set and it can not work? Or I'm doing it badly. You get the tabStyle TT tabbar ttbabar * bank tabs = [[tttabstrip alloc] initwithframe: CGRactam (4, 80, 302, 40)]; [Bank tabs settab style: @ "LauncherButton image:"];

reporting services - SSRS - Oracle DB, Passing Date parameter -

Using SSRS with an Oracle Database To give a user a prompt on running a report to enter a date for the report What is the best way to add parameters to the parameters in my SSRS report is having trouble finding the right date format. Under the "Report Parameters" menu, I have set the report parameter using the datetime datatype. Keep this error "ORA-01843: Not valid one month" Thank you for your help. one OPR, AOPR, A. TransDCC, A. Choose Transaction_start_date, cast (as SD date), as SDAT, from B (A), from T (US_F.OPR_Name, ITH_F.OPR, ITH_F.ITH_RID, ITH_F.TRANSACT, Trans_Desc, TO_CHAR (ITH_F.Start_Time Transact.DESC_1, 'DD-Mon-YY') Trans_Start_Date, TO_CHAR (ITH_F.Start_Time, 'DD / YYYY Selection as DD / YYY'), substr (TO_CHAR (ITH_F.Start_Time) In 'HH24: MI'), 1,6) START_TIME, TO_CHAR (ITH_F.End_Time as 'DD-Som-YY') Trans_End_Date, as substr (TO_CHAR (ITH_F.End_Time, 'HH24: MI') , 1,6) end_time, as cast (case when

c# - Display PDF from a stream in a WebBrowser control -

How do I show a PDF document from a MemoryStream to a WebBrowser Can i > Control? I searched around and found that I can navigate just by using a PDF file: webBrowser1.Navigate (@ "C: \ Temp \ ExportedPDF PDF "); However I do not want to save the file anywhere, but I am currently leaning to using IsolatedStorage because I can not find any other way Stream in browser control.

iphone - Identifying a UISegmentedControl Inside a UITableViewCell -

I am trying to work with a section containing control in a tableview, then when a user selects an item I want to show a spinner, while some information posts a webservice The problem I have is: How do I add a representative and use the control with the referenced section, Can I set alpha or visibility? Apart from this, what is the best practice for this, I know that the tags are, but they are not sure how they work in such a situation. NSArray * segmentItems = [NSArray arrayWithObjects: @ "one", @ "two", @ "three", @ "four", @ "five", zero]; UISegmentedControl * Fractured Control = [[[UISegmentedControl alloc] initWithItems: segmentItems] maintained]; SegmentedControl.segmentedControlStyle = UISegmentedControlStyleBar; SegmentedControl.selectedSegmentIndex = -1; [Segment control add-targeted: Action for yourself: @Selector (On-Signed ControlWall) for control events: UIControlEventWalls]; SegmentedControl.frame = CGRectMake (2,

c++ - How to create a compact Qt4 vBoxLayout -

I have got a vBoxLayout that has 3 simple buttons, when I increase the size of the widget with layout, between the inter buttons Increases I want to stop this behavior and keep the button in a consistent and compact layout, regardless of the size of the parent widget. This is what I have so far received, but this vacancy, no suggestion changes? Thanks. button_layout = new QVBoxLayout; Button_layout - & gt; (0) setSpacing; Button_layout - & gt; SetContentsMargins (0,0,0,0); You would like to add an expandable spacer to the layout: button_layout = new QVBoxLayout; Button_layout - & gt; (0) setSpacing; Button_layout - & gt; SetContentsMargins (0,0,0,0); Button_layout - & gt; AddStretch (); Button_layout - & gt; AddWidget (button_1); Button_layout - & gt; AddWidget (button_2); Button_layout - & gt; AddWidget (button_3); This button is always due to being at the bottom of the widget, note that the horizontal section will still spread if your

Implementing an OpenID Provider in Perl -

It may be a shot in the dark, but I'm trying to implement OpenID provider in Perl. The document for the entire process is confusing and sparse. If someone has successfully implemented a provider in Pearl, can you paste some code snippets? So I finally suppressed OpenID installation in place and it is working very well. I think I'll expand some cubes. There are more than three states / steps in the OpenID sign-in process. This is confusing because the documentation and sample code assures you that there are three in some cases, from seven to seven, view your server log and see how many times a server and user (requesting authentication) PROVIDER (You're probably setting up.) When you are looking at only half of the interaction, it is difficult to debug something. Many providers are unfinished 2.0 using Speck. (This is slightly better.) 2.0 Speak does with different 1.0 space; The server trusts them with PROVIDER (you) Net :: Opened :: Server handles this

c# - Method returns an IDisposable - Should I dispose of the result, even if it's not assigned to anything? -

This seems like a very simple question, but I could not find a case of this special use after some searching . Suppose I have a simple method, which says, determines whether a process has been opened by some file or not. I can do this (100% is not correct, but quite well) with this: public bool isOpen (string fileName) {{file.Open (fileName, FileMode.Open , FileAccess., FileShare. Non); } Hold {// If an exception is thrown, then the file should be purchased by another process; }} (Clearly it is not the best or the right way to determine - the file. Open opens many different exceptions, with all the different meanings , But it works for this example) Now the file. Open calls a file stream , and the file stream implies the IDisposable. Normally we want to wrap any FileStream installation using any block in order to ensure that they are dealt with properly but what happens in this case where Do we really not give a return value to anything? Is it still necessary to se

jquery - How do I clear the text contents of a div in javascript? -

I am temporarily adding an element to a div, tempDiv, and link that link from a div Is added, # content has been displayed here, I need to clean the contents of tempDiv so that the links are not linked to each other, which will create the string of the URL which is not linked anywhere. $ (document) .ready (work () {$ .getJSON ("data.php", for function {data} {i = 0; i I'm going to clear the temporary content of the div You can use $ ("# tempDiv") empty () .

ruby on rails - Find tag by id using acts_as_taggable_on -

I am working on Ruby 2.3.8 and using the works_as_taggable_on plugin. This plugin generates three tables: tags (which have the ID and name of each tag) and tagging (related to tag_ids that are tagged items). Now, I want to get all the tagged items with a definitive tag_id, so I go to my announcement model (announcements are tagged items) and I would like to write something like this: def find_by_category (tag_id) announcement. Tagged_with (tag_id) #this does not exist Finally But in fact I found that the only way was: announcement. Tagged_with (tag_NAME) #this works, but I do not want to search by a name Does anyone know a method to accomplish this, or at least, this How to modify the code of the plugin? tag = ActsAsTaggableOn :: Tag.find (tag_id) declaration. Tweaked_with (tag) After one year, I hope this is useful for anyone!

TabWidget not stable at the bottom in Android? Why? -

I have set up a widget for my tab below. When I want to edit editing the keyboard will have to be raised but the tab widget comes up on the keyboard. To support multiple screens I set up Android: layout_weight = "1.0" After that, I found this problem I added my layout code below. To create TabWidget on any idea below consistently code:? & lt; XML version = "1.0" encoding = "utf-8" & gt; & Lt; TabHost xmlns: android = "Http://schemaskandroidkcom/apk/res/android" android: id = "@ android: id / tabhost" Android: Layout_width = "Fill_parent" Android: layout_height = "fill_parent" & gt ; & Lt; LinearLayout Android: Orientation = "Vertical" Android: layout_width = "fill_parent" android: layout_height = "fill_parent" & gt; & Lt; FrameLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: ID = "@Android: id / tabcontent&q

c# - It is possible to play/stop a youtube video using external software? -

It is possible to stop / prevent YouTube videos (inside a web browser like Firefox) using external software (C #) ? I think this is not allowed by the YouTube Terms of Service, but I'm not sure. In any case, if it is more than a pet project or proof of concept, then there are some ideas: I suspect that any existing library, etc ... which is B / C can be of the TOS point. Perhaps you can create it as yourself: Load a page in a web browser form control. After the page has loaded (DocumentCompleted event), search the DOM (browser.Document) for the video player element. You might search for Flash elements or some common CSS class / ID that YouTube always uses. Get the screen position of that element It is not certain how to do this, maybe you can find out? Simulate a mouse click () on the video player. Once the screen status is found, you have to click the mouse at a later time. I like the above approach because you can easily turn it off from other video sit

httpwebrequest - Flash - Uploading to and Downloading from localhost -

I have an online flash application that has the front end of the server application created in Delphi installed on the server / remote computer Can be downloaded or any individual version can be downloaded and the Flash app has indicated it to the local host to use it. However, there are problems with the use of POST and GET functions on the local host in Flash, which makes it difficult to upload the data files and download the results files. To get the difficulty of downloading results files, I am planning to serve the result file as an attachment and the file address using the Flash app external interface is the other The browser opens in the window. First of all, can it cause similar security problems? To wit. Flash will look at "localhost" in external interface calls and it will be prevented from working the way I try to use POST / GET functions with localhost? Second, it seems a bit easier to upload, I plan to do something similar, in which the use of Flash is an ext

sql - Oracle multiset, collection and records -

Can anyone tell me why records are necessary? Can not we do the same thing while using Loop in PL / SQL? Also, when a multiset record query can be used? Which type of situation and which will be the priority? Here's a great link on topic: "Set theory and multiset Union ". It performs less or less like a UNION ALL with a very significant difference: "SQL union set operator On the contrary, the collection Multistate Union operator rearranges the elements in the resulting archive.Multisette Union reserves order in each collection and simply adds the contents of the second after the first time. "

Stash only one file out of multiple files that have changed with Git? -

How do I sort out one of the more than one converted file in my branch? As described in the comments, it puts everything in the station, both are numb and unstable. After the hiding place - Index index leaves the index alone. When you pop up after hiding later, this may be the cause of merge tributes. This will hide everything that you have not added before. Just add the git to the things you want to keep, then run it. For example, if you want to divide the old change into more than one change, then git stash --keep-index You can use this process: git rebase -i & lt; Last Good Bid & gt; Mark some changes as edit . Reset git HEAD ^ git add & lt files that you want to keep in this change & gt; git stash --keep-index Fix things as needed git add Do not forget to git commit git hiding pop Required # Repeat with 5. GIT Rebase - Continue

sql - Getting "too many rows" error inside a "for" cursor loop -

I have a trigger in which there are two cursor loops, which is nested inside such other: In the internal ladder for the outer staircase in the internal ladder, in the internal loop - some calculations end loop; End loop; This is throwing the following error in any of the following: ORA-01422: more accurate fetch return than requested number of rows We Trying to determine why it's coming from an hour or more .. But has this error never happened? Besides .. I'm assuming that the internal loop automatically stops and the external loop goes to the next record every time, I hope this is correct. I know, ORA-01422 starts only when When you have a SELECT ... INTO statement in the PL / SQL block, where the selection statement gets more than 1 line, remember that a SELECT..INTO Can only get one line, if more than one row is received, then the above exception arises.

transparency - PNG composition using GD and PHP -

I'm trying to get a rectangular PNG and repeat the background and add depth using GD and it's 1 Pixels and 1 pixel right I am also trying to preserve a transparent background. I have a bunch of troubles in protecting transparency. Any help would be greatly appreciated. Thank you! $ obj = imagecreatefrompng ('rectangle.png'); $ Depth = 5; $ Obj_width = imagesx ($ obj); $ Obj_height = Images ($ obj); Image swords ($ obj, true); ($ Layer = $ depth; $ i ++) ($ layer = imagecreatefrompng ('rectangle.png'); Imagealphobalending ($ layer, wrong); Image Valvage ($ level, true) ; $ New_obj = imagecreatetruecolor ($ obj_width + $ i, $ obj_height + $ i); $ new_obj_width = imagesx ($ new_obj); $ new_obj_height = images ($ new_obj); Imagealphobalending ($ new_obj, incorrect); ImageWolf ($ new_obj, True); $ trans_color = imagecolorallocatealpha ($ new_obj, 0, 0, 0, 127); image file ($ new_obj, 0, 0, trans_color); Imagecopyresampled ($ new_obj, $ layer, $ i, $ i, 0

multithreading - FileIO out of order when using subprocesses in Python -

I am trying to generate a log file with the information I have: Class ExecThread (threading.Thread): def __init __ (auto, command): self.command = command self._lock = threading.Lock () threading.Thread. __int_de (self) def run (self): self._lock.acquire () sys.stdout.write (''. ("Executed:", self.command, '\ n'])) log_file.write ('' ( To find '*. Ive', root_dir ([self.command, '\ n'])) os.system (self.command) self._lock.release (): command = "osgconv" (command) conv_osg_thread .start command = '' .joint ([command, '', '--O output settingsfile', '', infil, '', outfile, '', 2 'and 1;]] () Conv_osg_thread.join () I'm executing the command This is the redirection in the end: "2> & 1" When I run it, I get the output of the sub-publication first message "Blow up Adit ", which is listed first! I thought lock () will fix it, but no. Please

Minimum set of Delphi 2010 files to move to a SVN repository for compiling -

We are using subversion for SCC. In our reserves, our construction environment has a great fortune so that we can examine a given version and at that time it can be reconstructed very closely for use at that time. Third Party Components VCL (including Indy) We now have the following: InnoSetup binaries < The source (of course) The Ultimate Builder Project Files The thing made for Delphi is the only thing - I'm thinking What is the minimum set of files thanks OK - I suppose I have been working on this, I would like to scan our application under a VMware guest Committee was able to, which was not established in our developer tools (Aradi studio, Eureka log etc.). Basically I have a compiler folder with these files: You only need some files. Originally these files: 02/05/2008 05:13 PM 89,088 BorDebug.dll 11/02/2009 06:02 PM 57,344 Borland.Build.Tasks.Common.dll 11/02/2009 06: 02 PM 147,456 Borland.Build.Tasks.Delphi.dll 11/02/2009 06:02 PM 49,152 Borl

How to run .net code when a user unlocks a Windows machine? -

How can I run a pure code when a user unlocks their machine? Windows version: XP and if you want to subscribe to session lock / unlock events, then this article looks right for you (for example) How does the Messenger remove your status to lock your PC). Alternatively, you can run a script on Windows 7 Unlock according to this server-facing query:

jQuery find file extension (from string) -

I was wondering if it is possible to find the file extensions based on the returned string for jQuery? A file name (string) will be passed to a function (openfile) and I wanted to do that function for different things, through which the file has been passed, it Can be image files or PDF files. function open file (file) {// if .jpg / .gif / .png do something / if Zip / .rar do something else // if .pdf do something else); I'm looking for something that will expand the file but I can not find anything.

Open cl.exe from C# application -

I need to compile the C ++ program from C ++ application. I need to open cl.exe in there Whenever I press the button anybody can give me some sample code. string filePath = "c: \ program files \ xyz \ cl.exe"; System.Diagnostics.Process.Start (filepath);

version control - Mercurial: How to set it up on my own server? -

I have a server and I want to use Mercurial to coordinate the project. Can I just do a repo, keep it on the server, and clone everyone, then push / drag it? What is a way to protect a password? Yes. The wiki is good on different mechanisms. Hgweb and hgwebdir (which I have used) are probably the easiest push to shut down by default, but can be. They are simple Python scripts that can use Apache for authentication.

java - drop down list in a text box -

I want to show the details of the student who entered the library in a text box like a mouse has been placed. Use some tooltip libraries, such as the original ootools.Tips.

c# - Moving web service references to other folder -

Is it possible to reference web service references to other folders in comparison to "service reference" without losing IDE features? I want to do ExternalWebService1 in a folder like ExternalSystem1 \ WebServices is Thing The service reference folder is a design time folder only when your website is published, the folder is usually empty, this will be true if you take it to any place. What are the benefits of growing it?

WPF/Silverlight performance while using GPU intensive applications -

I'm mixing apples and orange in this question because I'm noob in the area mentioned, so please try to understand that What i mean I have read that WPF (and Silverlight uses GPU acceleration to present itself on the screen) as a screen. If so, what happens when I have a GPU-intensive application already running (say, games in window mode), and then run the WPF / Silverlight application, in which some GPU time / Need power? Who is the highest priority? Do they start "babbling" both? Thank you! I think it would be safe to say that you have a CPU similar to intensive tasks There are problems ... it will starve other functions of processing time, yes, you can see the performance around everyone, but all depends on whatever is included.) Generally, intensive games are usually written for the use of most / all computer resources, it is expected that this is the only thing that the user is likely to do, other good application processing (i.e. less FPS ), Whe

Passing an array of data to a private function in CodeIgniter/PHP? [facepalm] -

So I thought that it should be easy, but I'm here failed'm Anaksbiai and epic (as That they say interwebs). So here's my code: function xy () {$ array ['var1'] = x; $ Array ['var2'] = y; Sampling $ this- & gt; _z; } Function _z ($ array) {$ xy = $ x $ Y; Return $ xy; } So, it seems that the simple code does not work? I know that you can pass the array and the variable can only be accessed in the scene with their array title, but why does not it work in this case? jack Because function _z is not visible It has $ this- & gt; _z ($ array); Call with . In addition, the variables that are seen and received by code ignators are also seen. It does not work in a similar manner for non-ideas, PHP will not do it for you automatically. To load a view, create a visual file in / system / application / views / and copy it to $ this- < P> I write my work as follows: function xy () {$ X = "some value"; $ Y = "some

java - Choosing a distributed shared memory solution -

I have the task of creating a prototype for the large scale Scalable Distributed Shared Memory (DSM) app. The prototype only acts as a proof-of-concept, but I want to spend my time most effectively, which will be used later in the real solution. The purpose of this solution is to take data input from an external source, brain churn it and provide results for many headquarters. Those "frontends" take data from the cache and work without additional processing. The amount of hit hits on this data can be literally millions per second. The data is very unstable; It (and does) can change very fast, however, the frontend should look at "old" data until the latest process and cached. Processing and writing are done by a single (unnecessary) node while others nodes only read data. In other words: No read-through behavior. I was looking for a solution like this specifically all does not meet our requirements which are listed below: At least Java Client API is

c# - Image Viewer application, Image processing with Display Data -

I am working on the Image Viewer application and I am planning to create WPF. My picture size is usually more than 3000x3500 After searching for the week, I received the sample code from MSDN but it has been written in the ATL COM so I can work and make image viewers as follows Planning: After reading this image, I will come down in the size of my audience, around 1000x1000 is around. Display data to this image data. After displaying this data, I will only perform this performance data. For all image processing operations, I will use this display data and when users choose to save the image, I will apply all operations to the original image data. My question is, it is ok to use and display data for initial image processing operation. Yes, this will speed things up. There are only drawbacks: To repeat the action on the actual bitmap, and User zooms on editing when the quality is lost. These are, you want to lose weight against the better performance of small bitmaps

Precompile asp.net application / webpart for WSS / SharePoint -

I have created some custom applications that run on WSS 3 using Visual Studio 2010 web application templates. When I compile the application, the assembly creates an assembly file in the Studio Bin directory, which I then copy into a production server (the second machine) with WSS 3. The compiled app del file is copied to the bin folder inside the WSS virtual directory and runs fine in it. As the project requirements / applications have increased over time, I have to face this problem now that the first hit in the assembly speeds dynamic compilation which I would like to save. > Even if the applications are going well, I would like to use the ASP precompiler on my development machine so that the page can be reducing the delay on request for the first time. I have used the following command to precompile the entire application: aspnet_precompile -v / -p PATH_TO_WEB_APPLICATION C: \ WebApp -errorstack The compile runs fine without any error and I end up with a couple .co

jquery - find() or children() to search top-level children only for a style? -

I want to know that there is a child element, in which any of the two class styles is applicable to my code like this Looks: var listOfMatchedResults = $ ("# parentList"). Find ("MyStyle1, .myStyle2"); My style is defined like this: . Parent li, .myStyle0 {} Parent li.myStyle1 {} Parent li.myStyle2 {} I do not have to cross more than one level from the level of children, such as: & lt ; Ul id = 'parentList' & gt; & Lt; Li & gt; & Lt; P & gt; Foo & lt; / P & gt; & Lt; P & gt; Grok & lt; / P & gt; & Lt; / Li & gt; & Lt; Li class = 'myStyle2' & gt; & Lt; P & gt; Here & lt; / P & gt; & Lt; P & gt; I! & Lt; / P & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; P & gt; Foo & lt; / P & gt; & Lt; P & gt; Grok & lt; / P & gt; & Lt; / Li & gt; & Lt; / Ul & gt; I do not know what () is doi

gridview - WPF layout with several fixed height parts and certain parts relative to window size -

Right now my main layout has vertically oriented stack panels and it looks like this: root StackPlan StackPanel - Fixed height 150 (horizontal orientation) StackPanel - Relative height should be on behalf of the space left on the screen (but at least 150 pixels). The teleic grid is used by visual control, if I do not specify height or maxhight teleic gridview height then it gets very big and does not fit in my window. StackPainel - Fixed height 100 (horizontal orientation) StackPanel - Relative height should be half of free space left on screen (but At least 150 pixels). The teleic grid is used by visual control, if I do not specify height or maxhight teleic gridview height then it gets very big and does not fit in my window. StackPainel - Fixed height 100 (horizontal orientation) This view should fit perfectly screen sizes available. The problem is that I do not understand how to shape some areas of the size of my scene based on the available screen size. I

php - limiting user actions by months -

Upload all uploads in mysql with my user photo information and date information. I want to restrict uploads for months Can upload 3 photos in a month. What is the best way to do this? Cheers Use: SELECT YEAR (t.ur_date_field) AS yr, as month_number, COUNT (*) as num_photos by Ur_TT Group by year (T.RU_Datafield), MONTH (T.RU_Datafield)) by order Year, month_number ... to get: yr | Month_number | Num_photos -------------------------------- 2010 1 | 2 2010 2 | 1 If there are no photos for a given month, it will not appear in an insecure form. From there, you can validate this month special.

django - Get QuerySets from Many2ManyField (include related fields) -

हे, मेरे पास एक मॉडल है जो एक बोर्ड है वर्ग बोर्ड (models.Model तो कहें कंप्यूटिंग नामक एक बोर्ड से संबंधित हो सकता है अब, कहते हैं कि मैं एक धागा असाइन करता हूं, यह एक थ्रेड ऑब्जेक्ट है वर्ग थ्रेड (models.Model): board = models.ForeignKey (बोर्ड) विंडोज़ बोर्ड में, मैं इस ऑब्जेक्ट को आसानी से प्राप्त कर सकता हूं। लेकिन मैं कंप्यूटिंग से जुड़े सभी थ्रेडों को सूचीबद्ध करना चाहता हूं थ्रेड विंडोज बोर्ड से संबंधित है, लेकिन यह कम्प्यूटिंग बोर्ड एसोसिएशन के माध्यम से। मैं कंप्यूटिंग बोर्ड पर एक क्वेरी कैसे चला सकता हूं और सब थ्रेड्स को उसके उप-बोर्डों से प्राप्त कर सकता हूं (साथ ही कोई कंप्यूटिंग धागा से संबंधित)? मैंने यह किया है, लेकिन यह बहुत कच्चा है, मैं आश्चर्य है कि अगर ऐसा करने का एक और अधिक डीजेंगो तरीका इस समय मेरे काम का यह कोड है लिस्टिंग = [] # खाली सूची Board.board_set.all () में बोर्ड: board.listing_set.all () में सूचीबद्ध होने के लिए प्रत्येक बोर्ड के लिए: # प्रत्येक बोर्ड प्रविष्टियों की लिस्टिंग प्राप्त करें। Append (लिस्टिंग)

design patterns - Implement Apect-oriented-like nested around filters with Ruby? -

I am trying to write a class that supports nested filters without starting the nested-oriented library. class Foo attr_accessor: around_filter def initialf #filters The following one wrappers are those that are interesting arguments with #vanilla do-nothing filter @around_filter = lambda {yield} # or lambda {| & Amp; Blk | Blk.call} executes the filter around the end valve @ times, though it is deeply nested, then "meti code" @ around_filter.call #meter code here puts 'end' end end # and hopefully i That's just point to the filter at the top, recurse def add_around_filter (& amp; blk) before_around_filter = @around_filter @around_filter = #? Secret code here ?? Pre_Arand_Filter End End refers to to be able to add filter to any number of targets: foo = Foo.new foo.add_around_filter 'Strawberry' yield 'blueberry' and foul puts foo.add_around_filter does puts 'orange' yield 'grapes' end foo.bar # = & gt; Orange

java - Why it is impossible to delete entries from jar file? -

It is possible to add new entries in the jar file using jar tool. It is possible to modify some entries in the Jar file using the Jar Tool. It is impossible to delete some entries from the jar file. Why? The intention of a jar file is to package a Java application here There are three possible ways you can do that. You can use Winzip or some other zip utility You can use jars with just the right entries (delete jars and redirects). You can do this programmatically (sorted ... see below) Import java.io ; Import java.util ; Import java.util.zip ; Import java.util.jar ; Public class zerupdate {/ ** * main () * / public static zero main (string [] args) throws IOException {// received the name and entry name of the name from the command line Do string string = args [0]; String filename = args [1]; // Create a file descriptor for a jar and a temporary jar file jarfile = new file (jarnname); File tempJarFile = new file (jarName + ".tmp"); // Open the jar f

How to access the selected text in a Flex TextInput control -

I am using Flashbuilder 4. I have spark text input control, and I implement a "copy" button Only copy the selected text from this control to the clipboard (like too much RBB copy) How do I do this? Thanks, Paddy Try it: < / P> var startIndex: int = Math.min (myTextInput.textDisplay.selectionActivePosition, myTextInput.textDisplay.SelectionAnchorPosition); Var endIndex: int = Math.max (myTextInput.textDisplay.selectionActivePosition, myTextInput.textDisplay.selectAnchorPosition);

java - Question on using Informa RSS Library -

I'm looking at this technology right now, but it's hard to understand, I want to < / P> And how can I do this to display its content? What will I do at such a distance URL inpFile = new URL ("feed: //images.apple.com/main/rss/hotnews/hotnews.rss "); ChannelFIFF Channel = feedparts.fr (new channel builder (), inputfile); Println (channel.getDescription ()); This creates a malformed url exeception, can someone help me ??? I have used Info, but your problem is nothing to do with the INFORMATION Your URL < Em> is is bad java.net.URL is expected of a standard URL, i.e. with a "normal" scheme like "http:". Thus, it is a barrister on the URL with the "Feed:" scheme. Try to use: url inpFile = new URL ("http://images.apple.com/main/rss/hotnews/hotnews.rss") ChannelFace = feedparts.from (New channel builder (), InpFile); In addition, if you run into problems with Infra, try the API. A while ago, I

javascript - Patterns for avoiding jQuery silent fails -

Is there any good practice to prevent your jQuery code from failing silently? For example: $ ('. It's #: my (complex selector)'). DoSomething (); I know that every time this line is executed, the intention of the selector is to match at least one element or some attributes of the elements. Is there a standard or good way to validate it? I thought of something like this: var $ matchedElements = $ ('. This #: my (complexSelector)'); If not ($ matched elements.line and lieutenant; 1) do not throw 'any matching element'; $ MatchedElements.doSomething (); Apart from this, I think the unit will be a valid option instead of messing up the test code. My question may be silly, but I wonder what is the better option than what I am currently doing or not, except maybe I am doing wrong investigation, if any element is mine Whether or it does not match the selector However, as the page grows, selectors can stop matching certain elements, and the pie

If/Then in SQL Embedded in VBA -

I have found a string in my Excel VBA: strSQL = "select * From the total (simulation id = ("& Textbox1.Text and") and Test1 = ("& amp; Example & amp;") " However, Will be 'null', which creates a query and example = zero How do I add it to either statement or something It is called and the example is zero When is the value of the example "zero"? < P> I would recommend comparing the faucet before collecting the SQL statement strSQL. If you check the value of the first instance, then you Based on that investigation, you can change your strSQL description accordingly. EDIT: In response to Daniel's first and second comments, I would still like the following if this (inline = 1) = "And example 1 is zero" if (example 2 = null) then inline: dim strSqlTai L strSqlTail = "" if (example 1 = null) then strSqlTail = "and Example 1 is tap" StrSqlTail = strSqlTail &

python - Help with pyHook error -

I am trying to create a global hotkey with pyhook in pyhook which only works by pressing the atl key. Here is the source: import pyHook import pythoncom hm = pyHook.HookManager () def OnKeyboardEvent (event): if event.Alt == 32 and event.KeyID == 49: print 'code will be here' hm.KeyDown = OnKeyboardEvent hm.HookKeyboard () pythoncom.PumpMessages () But when I execute, only works with other presses Is the second key (number 1 = 49) ... and this error two: How do I solve it? For work in the previously pressed time. Note that you need a return value on it your handler: < Pre> def OnKeyboardEvent (event): if event.Alt == 32 and event.KeyID == 49: print 'Here the code will be' # Return the correct other handlers back to the right to return the event I agree that it is unclear from the documents that it is necessary, but you need to return true or false (or possibly any integer value) with the "false" value Blocking the event (such as

user interface - Good things to know when developing a GUI architecture from scratch -

एक OOP GUI आर्किटेक्चर के निर्माण के लिए सर्वोत्तम प्रथाओं, टिप्स और सामान्य चीजें क्या हैं? < महत्वपूर्ण डिजाइन पैटर्न, जैसे कि एमवीसी और उसके घटकों जैसे प्रेक्षक के बारे में जानें।

ruby - Modifying an inherited Rails association -

I have a team class that gets from group class, both teams and groups are subscribed through a single association . However, I need to run a method because membership of a team is included but no group. I currently have something like this: class group & lt; ActiveRecord :: Base has has_many: membership, class_name = & gt; 'Connection' ,: foreign_key => 'Connectable_id' ,: as = & gt; : Connectable ,: Dependent = & gt; : Destroy the End Class Team & lt; Group has_many: membership, class_name = & gt; 'Connection' ,: foreign_key => 'Connectable_id' ,: as = & gt; : Connectable ,: Dependent = & gt; : Destroyed, after_add = & gt; : Membership_check Private def Membership Check and end Is there a way to modify the inherited association in the team so that I do not need to redefine the whole thing, Rather to add it: Try it and let me know if it works, let me think Be sure your membership_check method is

objective c - Can't find applicationSupportDirectory? -

AppDelegate पर हमेशा एक पूर्व-लिखित कार्य होता है: (NSString *) applicationSupportDirectory {NSArray * पथ = NSSearchPathForDirectoriesInDomains (NSApplicationSupportDirectory, NSUserDomainMask, हाँ); NSString * basePath = ([पथ गिनती]> 0)? [पथ ऑब्जेक्टअटइंडएक्स: 0]: एनस्टेमरेरी डायरेक्टरी (); वापसी [बेसपैथ स्ट्रिंगबैपैडिंगपाथकंपनी: @ "सिंकफ़ाइल"]; } हालांकि, मैं इस पद्धति के बाहर इस पद्धति को नहीं कॉल कर सकता हूं: id _appDelegate = (SyncFile_AppDelegate *) [[एनएसएपीसीकरण साझाअनुप्रयोग] प्रतिनिधि]; एनएसएलॉग (@ "% @", [_appDelegate applicationSupportDirectory]); कंपाइलर ने मुझे चेतावनी दी है कि यह विधि का अनुप्रयोग नहीं खोज पा रहा हैसमर्थन डायरेक्टरी ... क्या कोई जानता है कि मेरे कोड में क्या गलत है? बहुत बहुत धन्यवाद! #import को मत भूलें "SyncFile_AppDelegate.h" < / कोड>

architecture - Can I architect a web app so it can be deployed to either the cloud or a dedicated server / VPS ? How? -

Is an architecture quite versatile which can be applied to a cloud server or a dedicated (or VPS) server with a minimum change ? Obviously there will be configuration changes but I can handle the rest of the application continuously, keep a maintenance codeb. The app will be ASP.NET and / or ASP.MVC. My Dev Environment VS 2010 is. Cloud, blue, or maybe not, can be dedicated or VPS Win Server 2008. Maybe. This is not a public-facing web site. The web app that I have will be a separate deployment for each customer. Some clients will be small-scale, some would prefer to run the app on the local intranet rather than on the web. Other clients can like the cloud approach to the black box solution. The app can run for a few hours or it can run indefinitely, depending on the customer and the project. In addition to deployment scenarios, the app will be more or less similar. As you can see from the tag, I'm assuming a message-based architecture, perhaps the most versatile, but I a

android - ImageAdapter and ListView (java.lang.OutOfMemoryError: bitmap size exceeds VM budget) -

I am using ListView to display the images that I provide through an ImageAdapter class. It works great on my device (and many other devices which I have tested it), but in some way when I am using emulator and I am pressing the button up / down - I get one after 10 Getting outmare error - 15 seconds. I tried to clear the cache, cancel the cache, etc. - did not get any help. I know that this accident is very rare (I call it any "real" device), but I can see on DDS that "GC free" is getting bigger during that long press and I There can be no way to clean them. Any help would be appreciated, Tnx You should decode with the inSampleSize option to reduce memory consumption. Another option in the JudicodeBox can help you find the right sample value You should consider using the enabled option. This allows the system to free your memory to avoid out-of-the-camera.

create textbox for date field on asp.net -

I am trying to create a form that contains text boxes, and I click on it to fill a date I want to use the zone asp.net/vb using thks for all yr support You Sample code: & lt; ASP: text box id = "date1" name = "date1" runat = "server" & gt; & Lt; / ASP: text box & gt; & Lt; AjaxToolkit: MaskedAditEditor TargetControlID = "date1" mask = "99/99/9999" MessageValitatyType = "true" onfocus class = "masked edit focus" OnInvalidCssClass = "masked edit error" mask type = "date" Input Direction = "right tool" AcceptNegative = "Left" DisplayMoney = "left" error tooltip enabled = "true" /> Take a look at this demo:

Change browser proxy settings from Python? -

I wrote a program that relies on a proxy to work. Now I need a script which will check to see if the browser is set to use the correct proxy, and if not, change it to use it for me as many browsers as possible need to be implemented, but only internet Explorer, Google Chrome, Mozilla Firefox, Safari and Opera is required I do not believe that the ba How to region, but it is for a project to be working in a few days. If someone can give advice or advise, I would appreciate it! I am programming: MS Windows XP - Python 2.6 Store your system wide proxy in the Windows Registry, look in HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings You can use the Python _winreg module to change it (or just if you use Python 3). Here is a sample code winreg INTERNET_SETTINGS = winreg.OpenKey (winreg.HKEY_CURRENT_USER, r'Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings imported as', 0, winreg.KEY_ALL_ACCESS) _winreg def