Search Results

Search found 62161 results on 2487 pages for 'set difference'.

Page 120/2487 | < Previous Page | 116 117 118 119 120 121 122 123 124 125 126 127  | Next Page >

  • set timeout to http response read method in python

    - by nirtayeb
    Hi, I'm building a download manager in python for fun, and sometimes the connection to the server is still on but the server doesn't send me data, so read method (of HTTPResponse) block me forever. This happens, for example, when I download from a server, which located outside of my country, that limit the bandwidth to other countries. How can I set a timeout for the read method (2 minutes for example)? Thanks, Nir.

    Read the article

  • How to set a sorting mode in Open Dialog

    - by Serg
    A user can manually sort files in a standard Windows Open Dialog (in "Details" view mode) by Name, Date or Size by clicking on the corresponding column header. How to set a sorting mode in Open Dialog (TOpenDialog class in Delphi) programmatically in application so that the dialog opens with a preferred sorting?

    Read the article

  • How to set Accept-Language header on request from applet

    - by Jo
    Hi, I'm not familiar with Java but I need to make a request to a remote webservice from within my applet. The webservice (.Net 1.1) uses HttpContext.Current.Request.UserLanguages[0] to determine the language to use. But the value of this member is alway null. So is there a way to pass the Accept-Language header along with something like "en-GB" set?

    Read the article

  • Wordpress - Set post_date

    - by danit
    I'm trying to set the post_date of a blog post to Wordpress via XMLRPC. I'm sending the data as a string: $pubdate = '2010-04-08 13:46:43'; 'post_date'=>$pubdate, It appears 'post_date' is correct? I also found this post losely related to the issue: http://wordpress.org/support/topic/330597 Can anyone suggest how I would post the date as: dateTime.iso8601

    Read the article

  • get a set of files that have been modified after a certain date

    - by jcollum
    Does anyone have a handy powershell script that gets a set of files from TFS based on a modification date? I'd like to say "give me all the files in this folder (or subfolder) that were modified after X/Y/ZZZZ" and dump those files to a folder other than the folder they would normally go to. I know enough powershell to hack about and get this done, eventually, but I'm hoping to avoid that.

    Read the article

  • Set dropDownList to contain one value only, mvc3

    - by ParPar
    I have this in my controller: ViewBag.PriceListId = new SelectList(m_db.PriceLists, "Id", "Name", us.PriceListId); It contains two values now, but I want to enable the user to choose only the second value, and just if he does something else - allow him choose one of the both values. How do I omit the first value, and add and set him to default after that? Shoud I do it in my controller or use jquery? Thank in advance.

    Read the article

  • How to set a keybinding which is valid in all modes in Emacs

    - by AnotherEmacsLearner
    Hi, I've configured my emacs to use M-j as backward-char by (global-set-key (kbd "M-j") 'backward-char) ; was indent-new-comment-line in my .emacs file. This works fine in many modes (text/org/lisp). But in c++-mode & php-mode it is bound to the default c-indent-new-comment-line How can I bind M-j to use backward-char in these modes too. And in general for ALL modes. Thanks, AnotherEmacsLearner

    Read the article

  • How do i set and get UIButtons' tag?

    - by Sam Jarman
    How do i set a tag for a button programmatically? I later want to compare to tags for a conclusion ive tried this -(IBAction)buttonPressed:(id)sender{ NSLog(@"%d", [sender tag]); } but that just crashes the app.... :( any other ideas? Cheers Guys Sam

    Read the article

  • Set Masterpage from Global.asax in ASP.NET

    - by StefanE
    Hi, I want to set the Masterpage property in Global.asax. This is what I have done but I get a NullReferenceException on the first line. Any ideas how to do this? protected void Application_PreSendRequestContent(Object sender, EventArgs e) { System.Web.UI.Page page = System.Web.HttpContext.Current.Handler as System.Web.UI.Page; if (Session["lang"] == "eng") { page.MasterPageFile = "SideMasterPageEng.master"; } }

    Read the article

  • Programmatically set ICQ status

    - by Kai
    I'd like to edit/set icq status with a c# app when a certain action occurs. I know there's an API that seems much too oversized for that. Can someone suggest a better way e.g. manipulating a registry value or something? How would you do this?

    Read the article

  • Set brightness, contrass on selected image

    - by Viral
    hi, I want to set brightness and contrast on the image that is selected from the photo library of iphone, is there any way to do the same using/not using open GLES. I've got some code from the developer.apple.com but that is for a single image and i can't use images from photo library, do any one know please let me know how to this. regards viral.

    Read the article

  • Native SQL - How to set the schema and database names

    - by icelobber
    Im using Native SQL from ABAP language. The query to get data is something like this SELECT COUNT(ROWID) FROM <SCHEMANAME>.<TABLENAME>;@<DATABASENAME> INTO :localvariable I want to somehow set the schemaname and database name as default so that i do not need to use them in the SELECTs later. Then i can only use the table name in the SELECT. thanks !!

    Read the article

  • k-combinations of a set of integers in ascending size order

    - by Adamski
    Programming challenge: Given a set of integers [1, 2, 3, 4, 5] I would like to generate all possible k-combinations in ascending size order in Java; e.g. [1], [2], [3], [4], [5], [1, 2], [1, 3] ... [1, 2, 3, 4, 5] It is fairly easy to produce a recursive solution that generates all combinations and then sort them afterwards but I imagine there's a more efficient way that removes the need for the additional sort.

    Read the article

< Previous Page | 116 117 118 119 120 121 122 123 124 125 126 127  | Next Page >