instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a question about the above topic. I have a WCF service and use the Transport security model for it. But there is some mechanism related to the Thread state that I can't understand. In constructor of my service I tried to set the Thread.CurrentPrincipal but at the begin of a called method of my service the Thread...
stackexchange/codereview
Is there a reason why all sqlite3, mysql, postgres driver compiles on Mac OS X Leopard when it is Rails 2.3.8, but can't compile when it is Rails 3.x? Theoretically, isn't it just some compile flags to make them work? (They all compile on Snow Leopard with the latest Xcode, but can't compile with Leopard with a slightl...
stackexchange/codereview
How to implement Online Speech Recognition through a Web Browser Interface. Is it possible to implement this without using any Streaming Server (completely browser-based application)? Without building any own plug-ins, is it possible to implement Speech Recognition using Flash ...
stackexchange/codereview
I implemented a sevlet filter in my application, and within the filter, if I find some specific url pattern, I will use request.getSession().invalidate() to logout and clear the session, then redirect to a login page. session.invalidate(); session.setAttribute("hi", true); response.sendRedirect("login.jsp"); but I fou...
stackexchange/codereview
I want to use the strongly-typed HTML helpers in ASP.NET MVC 2 with a property of my model which is Nullable<T>. Model public class TicketFilter { public bool? IsOpen { get; set; } public TicketType? Type{ get; set; } // TicketType is an enum // ... etc ... } View (HTML) <p>Ticket status: <%: Html.RadioB...
stackexchange/codereview
I have a single view app with 5 buttons and when one of the buttons is pressed, the player slides up over the original view and begins playing the video in fullscreen (as it should). All works great with the exception of when pressing the Fullscreen/Minimize icon (the two diagonal arrows pointing to each other next to...
stackexchange/codereview
Hi i want to create an asp.net application where i need to provide specific URL for each user in my website dynamically..
stackexchange/codereview
i want to create a small c# application. there is a text box and a button in form. if anyone enter a network path for a file and press the button, then the application must copy that file to a folder within that system. How can i do this.? How to access a network path and how can i copy the file in that path to the sy...
stackexchange/codereview
This is my code of function that wants to read file: int sendByByte(int filed,int sockfd,int filesize) { int i=0; int sent=0; char buf[BUFSIZE]; while(i<filesize) { printf("fd is : %d\n",filed); printf("i: %d\n",i); int byte_read=read(filed,buf,BUFSIZE); if(byte_read == -1) { printf("MOSHKEL dar read\...
stackexchange/codereview
Is any other way to compare 2 TGUID elements, except transform them into strings (the guidtostring function) and after evaluate the expression, in Delphi 7?
stackexchange/codereview
I am trying to consume an ASMX web service from my WCF service. Here is what I did and i get the following error. "There was no endpoint listening at "http://... " that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. Please help me...
stackexchange/codereview
I'm working on an application that displays someone else's database of images. The images they have are all vector graphics and can be converted to any format, however keeping them in a vector format is good because users will probably want to zoom in closely. The question is, is there a built-in way to display a vect...
stackexchange/codereview
I am using SQLite GUI Browser to work with the database. I can't find any button to make primary key on two or more columns. How to do this?
stackexchange/codereview
Oddly I'm having a hard time finding good docs about basic error handling in rails. I'd appreciate any good links as well as thoughts on a handling errors in a really basic method like this: def self.get_record(id) People.first( :conditions => ["id = ?", id] ) end 1) I could verify that id != nil, and that it'...
stackexchange/codereview
How can I sign a managed c++ dll with a .pfx file?? Or is there a way to include the unsigned managed c++ dll in a signed c# project? I realy dont need a signed dll I just need VS to stop giving me the Error "Referenced assembly 'SlimDX' does not have a strong name." in my c# project that must be signed.
stackexchange/codereview
Recently I was hacking out some code to communicate with an external web api. The web api is a set of GET/POST operations that return Xml, called in from my application via HttpWebRequest and manipulated on my side using Linq to Xml. There is are logical groupings of api methods that form multiple services. I have cr...
stackexchange/codereview
I have an error that says "OnItemClickListener cannot be resolved to a type" when I enter this code in: package com.funkystudios.android.facts; import android.app.ListActivity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; public class activity2 extends ListActivit...
stackexchange/codereview
hi i have following code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script> ...
stackexchange/codereview
An example would be if a user sat their phone down with my application open and running but there had been no interactions with the application in the last ten minutes, the user should be logged out and have to sign in again. Is this a parameter that can be defined?
stackexchange/codereview
I can't get this to do what I want it to do! I'm trying to replace large images with smaller ones for mobile browsers. Here is the code: function js_imgs() { if (document.documentElement.clientWidth <= 600) { $("img").each(function(){ if ($(this).hasClass('big')) { var preSrc = $...
stackexchange/codereview
I have about 50.000 of records to import in a Magento store. What I have already tested: The file is about 50 MB. Splitted files API Magento Classes Splitting the file doesn't improve the speed of the importing of the products. Api are very slow. Magento Classes are slow. This is a snipped of code using the Magento C...
stackexchange/codereview
I have several tables in my database that have read-only fields that get set on Inserting and Updating, namely: AddDate (DateTime), AddUserName (string), LastModDate (DateTime), LastModUserName (string). All of the tables that have these values have been set to inherit from the following interface: public interface IUs...
stackexchange/codereview
I have an issue with an SQL Query. Lets take this example data itemID catID attrib1 attrib2 1 1 10 5 2 1 10 7 3 1 5 10 4 2 18 15 I want to return the best item for each category (with attrib1 having priority over attrib2) Obviously, S...
stackexchange/codereview
I am building an apparel catalog on the iPad. The app will contain over 2000 jpg product images at 2048 x 1536 @ 72ppi, plus 2 sizes of thumbnails for each image. The large size of the primary images is to allow for zooming in on the products at reasonable resolution. The larger thumbnails will be displayed on each pag...
stackexchange/codereview
I have 2 custom type made with CCK : Reunion Title Description Node reference to Guests (multiple) Guests Name Picture Biography In Reunion I have a multiple node reference to Guests. (I can have multiple Guest in Reunion). I would like to print (using views) like this : Reunion 1 Description of the reunion 1 ...
stackexchange/codereview
I understand how I can use a raw socket to listen to a server application and recieve information but I need an easy to access API and I am very familiar with REST. Is there a way to push (not by using long pooling) data using a WCF service? Here's my idea of how things should happen, at least at the begining: The c...
stackexchange/codereview
I need to POST data from inside a controller to a third party website and make sure they receive my website as the HTTP_REFERER. How can I do this?
stackexchange/codereview
Can I show a black style UIBarButtonItem in my view without the underneath UIToolBar? The UIToolBar always has a kind of border thing, I want the system UIBarButtonItem in black just like a black standard cancel button, but not the UIToolBar How can I do it? Thanks
stackexchange/codereview
Can I test Javascript code in GWO? For example, how would I test: $('#first_name_field').watermark('First name'); Ideally the person who tests different content doesn't have to enter lots of javascript, only the text they want to change... like "First name" above.
stackexchange/codereview
I have an application written in java that needs to find all the reachable hosts on the network. I use InetAddress.isReachable() to do this with a timeout of 2000 milliseconds. I look up the current local machine's IP address and based on that I attempt to reach the other IP addresses that end 1 - 255 missing out the l...
stackexchange/codereview
I've create the Web Part for SharePoint 2010, which contains simple custom property with PersonalizationScope.User. Web part inherited from the System.Web.UI.WebControls.WebParts.WebPart private int _mainBodyBorderWidth = 0; [Personalizable(PersonalizationScope.User), WebBrowsable(true), WebDisplayName("...
stackexchange/codereview
How to change app pool account credentials for any web application in sharepoint 2010
stackexchange/codereview
I have this program in C I wrote that reads a file line by line (each line has just one word), sorts the alphabets, and then displays the sorted word and the original word in each line. #include<stdio.h> int main() { char line[128]; int i=0; int j; int length; while(fgets(line,sizeof line,stdin) != NULL) ...
stackexchange/codereview
I have found very little on this topic. I'm trying to work out a way to synchronize pages cross-web without having to constantly reload pages to get new information, since the rate at which this would be necessary would cause the page to be outrageously slow. The flow I'm thinking is this: User A alters info displayed...
stackexchange/codereview
I have recently gotten a faulty RAM and despite already finding out this I would like to try a much easier concept - write a program that would allocate faulty regions of RAM and never release them. It might not work well if they get allocated before the program runs, but it'd be much easier to reboot on failure than t...
stackexchange/codereview
I have a hidden field on my default.aspx page. Within default.aspx page I have a user control which has a label on it. I need the label to display the value on the hidden field. How can I go about this?
stackexchange/codereview
Is there any book that shows actually when to use a particular .NET feature? For example: (1) Remoting. In which scenario to use and what are the advantages and disadvantages. (2) When to use a List and when a Dictionary. Which one is fast. etc. Edited Above are just examples. While developing which thing to use when,...
stackexchange/codereview
$a = array('matches' => array( '5' => array('weight' => 6), '15' => array('weight' => 6), ) ); $b = array('matches' => array( '25' => array('weight' => 6), '35' => array('weight' => 6), ) ); $merge = array_merge($a, $b);...
stackexchange/codereview
Ruby 1.8.7. I'm calling read on a socket which has been opened and connected with: socket = Socket.new(AF_INET, SOCK_STREAM, 0) sockaddr = Socket.sockaddr_in(mp.port, mp.ip_address.ip) begin socket.connect_nonblock(sockaddr) [...] The connection is confirmed by calling select() and then connecting a second time look...
stackexchange/codereview
Can any one provide me with a step by step how-to for getting QT to work in VS 2010? I have: Visual Studio 2010 Ultimate Windows 7 Enterprise. qt-sdk-win-opensource-2010.05 qt-vs-addin-1.1.7 I tried executing this from Visual Studio command prompt: configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-pho...
stackexchange/codereview
I have a makefile, definitions.mk, containing the following: ifneq ($(MY_VARIABLE),true) define my-function < some code defining the function) endef else define my-function < different code defining the function> endef endif Now, if MY_VARIABLE is set to false I want to include another file containing the definitio...
stackexchange/codereview
I have a game which have 5 class/level.Each class contain almost same variables.Now i want to know in which place should i declare my class variable.I have three option- 1.declaring the class variable in corresponding class .h file. 2.declaring a variable .h file(an empty .h file only for declaring variable and then im...
stackexchange/codereview
I have a bugs model which is mapped to categories. Categories can own other categories. class Bug( models.Model ): categories = models.ManyToManyField('Category') name = models.CharField( max_length=100 ) slug = models.SlugField(unique=True) summary = models.TextField() summary_markdown = models.Tex...
stackexchange/codereview
I have worked out how to add a reminder after setting a CalendarEventEntry using insertedEntry = myService.insert( postUrl, myEntry ) reminder = new Reminder() reminder.setMethod( Reminder$Method.ALERT ) //foo insertedEntry.getReminder().add( reminder ) insertedEntry.update() but if you update it becomes an EventEntr...
stackexchange/codereview
I'm using the (slightly dated) links below as a guide to learning and understanding proper use of DAOs in my web apps. http://balusc.blogspot.com/2008/07/dao-tutorial-data-layer.html http://balusc.blogspot.com/2008/07/dao-tutorial-use-in-jspservlet.html Generally speaking, is it correct to initialize a DAO in the INIT(...
stackexchange/codereview
I have a a userPanel method mapped to the /user/panel URL route: @RequestMapping(value = "/user/panel", method = RequestMethod.GET) public final String userPanel(HttpServletRequest request, ModelMap model) However, I would also like the userPanel method to handle the route /panel without creating a separate method suc...
stackexchange/codereview
I want to store two models using active record, but delete doesn't work as expected. Evaluation has id, name and description and SqlEvaluation has additional two columns of query_string and database. I want to use those two tables, and eval_typ_id is used to distinguish which subclass should be used: 1 for SqlEvaluat...
stackexchange/codereview
Is it possible to order included models? format.json { render :json => @client.to_json(:include => { :videos => { :order => 'sortorder' } }) }
stackexchange/codereview
I have a request to only have the leaf nodes of the tree have the option of being selected. This tree is being populated with the json_data plugin. Is there an option available either in the data or through the api to remove checkboxes or prevent them from being rendered?
stackexchange/codereview
I've absolutely no idea if this is possible and how it would work. is it possible to give users a phonenumber where they should send an sms to. e.g. the sms contains name some code i want to track how many sms are sent to this number. i want to read the sms text and use both nodes they weird way i imagine this: i...
stackexchange/codereview
I have a small quick and dirty app that needs to post data to asp form. I'm not a developer by trade so please don't hammer me. I have an array thats returned with two values: static public string[] get_status(string local_fname) { var dts_doc = new HtmlAgilityPack.HtmlDocument(); dts_doc.Load(local_fname); ...
stackexchange/codereview
Given the following controller: def create if @mymodel.save format.js else format.js { render :js => @mymodel.errors } end end What's the Rails way of handling a .JS error response... Do I create .js file with a different file name just for servering Errors? Do I add an IF ELSE in ...
stackexchange/codereview
I was wondering. I always do fetch and then create variables when I do loop. Is there a way to do this more efficient? Like as in automatically? Maybe something like convert_to_variable("name","description","etc") and it'll automatically set variables for me without having to do each manually? Or maybe a single comman...
stackexchange/codereview
what I'm trying to do is to automatically launch a function before going in the $.ajax({success}); method. I've this: $("body").ajaxSuccess( function(event, XMLHttpRequest, ajaxOptions) { alert("ajaxSuccess"); } ); and : $.ajax({ url: ".", success: function() { alert("success"); } )...
stackexchange/codereview
I have a code with two targets that uses functions specific to iOS 4 and others compatible with 3.0+. I would like to make a final revision on the code to see if everything is fine. In other words, to see if there's no function meant for iOS4 being called when compiling for iOS 3.x target. Is there a way to list, durin...
stackexchange/codereview
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1200000, 200, ll); My assumption is that it gets the location every 120000ms if it has changed more then 200 meters. At least this is what I am experiencing anyway....which is what I want. But what happens if the phone ends up in a metal building whe...
stackexchange/codereview
I have to run a scraping task to collect data for my App Engine (Java) app. I'm not sure which is best - scrape data in development mode and upload it to prod or scrape it while the app is running in production. Does it make a difference? Are there any difficulties with bringing large quantities of data from one envir...
stackexchange/codereview
I can't figure out how create xsl to group some nodes between other nodes. Basically, everytime I see a 'SPLIT' I have to end the div and create a new one. The xml looks like this: <data name="a" /> <data name="b" /> <data name="c" /> <data name="SPLIT" /> <data name="d" /> <data name="e" /> <data name="SPLIT" /> <dat...
stackexchange/codereview
I'm trying to figure out some layout issues with Safari Mobile 3.1.1. – I want to know whether or not I can view sites with the SDK before I commit to installing it on my Mac. My other dumb question is… does changing the user-agent string used by desktop Safari have any affect on how it renders CSS? I understood that ...
stackexchange/codereview
Anybody know how can I exclude only the first letter of a get_the_content() function in wordpress? could be a snippet like that, but it doesn't work! substr(strip_tags(get_the_content()), 1, get_the_content().length) thanks a lot in advance :)
stackexchange/codereview
Usually usage of function: my_func("test"); Whether I can use this parameter so? my_func(printf("current_count_%d",ad_id)); int my_func(const char *key)
stackexchange/codereview
I have the following helper object: LikeHelper* likeHelper = [[LikeHelper alloc]init]; likeHelper.delegate = self; [likeHelper performLike:self.messageID]; [likeHelper release];likeHelper=nil; performLike will do some NSURLConnection stuff and then tell the delegate whether or not it was successful. #pragma mark LikeH...
stackexchange/codereview
I wonder if there is a better way to put two data.frames into one, treating the rownames as if it was a column and then merge by this column with some other data.frame. I know I could do the following df1$rn <- row(df1) all <- merge(df1,df2, by.x="rn", by.y="some_column") I mean this produces redundant data (rownam...
stackexchange/codereview
I want to run a third party library (XSP in this instance) inside an app domain so I can shut it down and otherwise control its behavior. The basic process of: var child = AppDomain.CreateDomain(...) ... AppDomain.Unload(child) Doesn't work when the child app domain creates an app domain itself. When I shut down 'chi...
stackexchange/codereview
I have a QTableView which displays data from a QSqlTableModel. I want my model to check for changes when a user hits a "refresh" button but I can't find a way to update the data. I tried the reset() and update() methods on the model without any result. Is it possible to "re-read" from the database and update the model?...
stackexchange/codereview
I'm using the Default.png method to create a splashscreen. I'm using the same file for my background and the Default.png (except default.png has the 20 pixel status bar at the top). However, the iphone isn't displaying them in them the same. The Default.png is being displayed darker than the background, so it's painful...
stackexchange/codereview
I am trying to print web pages that contain external CSS references and use web fonts (I mean @font-face attribute) but in print preview the web fonts disappear. Does anyone know a solution without using the web font locally?
stackexchange/codereview
For servlet lifecycle stuff, what do you guys recommend doing in response to an exception... For example, public class Foo implements ServletContextListener { @Override public void contextInitialized(ServletContextEvent event) { try { // something nasty } catch (Exception e) { ...
stackexchange/codereview
I am struggling with a memory leak associated with a ListView. I have created the following small program which exhibits this behavior. What I do is create 2 LinearLayouts. The first has a Button and a GListView control. The code for GListView is below, but it just sub-classes ListView, and implements the ListAdapte...
stackexchange/codereview
I started with this: interface IFoo { string X { get; set; } } class C : IFoo { public void F() { } string IFoo.X { get; set; } } It compiled as I was expecting. No surprise. Then I go to this: interface IFoo { string X { get; set; } } class C : IFoo { public void F() { X = "...
stackexchange/codereview
So, I'm working inside the android framework classes (AOSP). Since I'm technically working on Cyanogenmod, I'm supposed to set the settings for my patch in an app called CMParts, which just throws the strings and ints into the system settings via Settings.System. Unfortunately, down in the framework (non application) ...
stackexchange/codereview
I have two similar classes, that simply have a string name. I wanted to add an XML adapter to the Lists so that I could get a CSV string from each of them. I tried to declare my adapter like so: public class ListXmlAdapter extends XmlAdapter<String, ArrayList<Object>> { But when I try to use this I get illegal annota...
stackexchange/codereview
My approach: <? switch($id) { case 1: ?> a lots of html stuff goes here... <? break; case 2: ?> a lots of html stuff goes here2... <? break; } ?> Is there any way to do this thing prettier? I mean more readable or something? I would really appreaciate that. (haven'...
stackexchange/codereview
I am using website application in VS2010. It populated data by reading app.config file from another library application. So I copied the connection string both in library project and in website application's Web.config. But when I run the application it throw error as "unable to auto attach aspnetdb.mdb". I did conf...
stackexchange/codereview
I need to create a new screen and I don’t know from where and how to start. These are the requirements': The screen will be separate in the middle while each side will hold few components (TextView) and will have different color. (two layouts or custom view ??) The borders of the new screen should be rounded and paddin...
stackexchange/codereview
I'm working in a disconnected scenario, but I noticed that disposing an object context does not release attached entities. As a result, subsequent operations often fail because of this. So to solve this, I detach everything myself when the object context is being disposed: public void Dispose() { // detaching is not...
stackexchange/codereview
I'm working on some applications that require very low latency and push a lot of memory and was doing some testing of how e.g. allocating a list ad-hoc vs. pre-allocating and clearing a list performs. I was expecting the test runs that pre-allocate the memory to perform a lot faster but to my surprise they're actually ...
stackexchange/codereview
I am looking for a way to create an nssearchfield that behaves as follows: user types in text based on matches an autocompletion drop-down appears the text in the search field does not autocomplete to the first item in the list The point is, my string matching searches for any substring and autocompletion in th...
stackexchange/codereview
In Python, I can use decorators to trace the function call, its variables and return values. It is very easy to use. I just wonder can C# do the same thing? I find out there is a sample code of CallTracing Attribute online. However, it didn't show the result I expected. Does C# attributes have similar concepts as pytho...
stackexchange/codereview
Is it possible for Mercurial to automatically merge all changes except for specifically nominated files? For the specific files there are some lines that may be overwritten so I want it to force a manual merge with the visual merge tool. The use-case for this is pulling from a parent repo and building a different versi...
stackexchange/codereview
I'm a complete newbie regarding network stuff, but here are two scenarios I'd like to accomplish: I have a machine running a WCF service Scenario 1: on the same machine, I have a C++ app that needs to get data from that service Scenario 2: on a different machine, I have a C++ app that needs to get data from that servi...
stackexchange/codereview
I'm trying to make a getopt command such that when I pass the "-ab" parameter to a script, that script will treat -ab as a single parameter. #!/bin/sh args=`getopt "ab":fc:d $*` set -- $args for i in $args do case "$i" in -ab) shift;echo "You typed ab $1.";shift;; -c) shift;echo "You typed a c $1";shift...
stackexchange/codereview
I'm trying to run a few test packages on my device through a shell script which runs every night and for that I need to run the adb reboot command. My problem is that the 'adb reboot' command does make the system reboot, but it never completes (I need to do a keyboard interrupt if I run it manually in order to issue an...
stackexchange/codereview
How to display tiff, png images in ASP.NET or windows application in IE browser.
stackexchange/codereview
I need to extract a list of all usernames from the user table in vBulletin of persons who were registered up to a certain date. So for example, I need all members up until 1st Oct, but after that is not required. The 'joindate' field is expressed in seconds I think. Eg. 1116022743. How can I can extract usernames on th...
stackexchange/codereview
How do you set up the Z shell such that typing cd - gives you a list of previously visited paths, and cd -1, -2, -3, etc. will then take you to the directories?
stackexchange/codereview
In sql server 2005 I need to identify all the stored procedures and triggers where a particular table name is used for ex: i want to search for "Table1" Please advise
stackexchange/codereview
I want to delete about 90% of rows from a million+ row table. Anything I can do to make this faster? e.g. if I turn on Simple Recovery Mode will this help?
stackexchange/codereview
Consider the following class template: template <class T> class MyClass { void MyFunc(); }; template <class T> void MyClass<T>::MyFunc() { //...implementation goes here } I need to add another function template MyFunc2 which accepts a template argument T2 i.e., template <class T> class MyClass { void MyFunc()...
stackexchange/codereview
I want to block alert box if it is present in code. Im using an api that tells me the search result of my website and if any user enter <script>alert('Just teasing')</script> then it shows an alert box on my page how can i stop this alert?
stackexchange/codereview
I am trying to integrate Admob to android, i end up with no success. The Document says Need to Provide DeviceID to get Ads for Real Devices.Could you please Help me about this. But I m getting ads in the Emulator by setting AdManager.TestEmulator.
stackexchange/codereview
Consider this example @Scope(ScopeType.SESSION) @Name("test") @BypassInterceptors public Class Test { @Unwrap public List<String> test() { //do a long and major calculation and return the List } } Then you have a view and you are getting your list <h:selectOneMenu value="#{someBean.text}"> <s:se...
stackexchange/codereview
Is there any way to have the width of a <fieldset> be the width of the largest field inside it?
stackexchange/codereview
I am getting a file with a faroese name and trying to save it in a PHP script: 2010_08_Útflutningur.xls In Ubuntu 10.04 LTS is saving it as : 2010_08_�tflutningur.xls (invalid encoding) I've installed and run utf8-migration-tool, but with no effect. Is this a ubuntu error that I can fix or I just have to give up and ...
stackexchange/codereview
I wrote a read more function for my front page that loads in a section of html from another file. When this section drops down the gallery enclosed within this section doesn't work. However, if you go to the single page article it works. I know it is something to do with this. I'm using this plugin but I'm unsure of h...
stackexchange/codereview
I have Book1.csv and Book2.xlsx. Book1.csv has many columns with data. Each column has unique title in first ROW. I need to find column with title “Processor Time” and copy all available data in this column to column1 in Book2.xlsx using VBscript. Please help.
stackexchange/codereview
I can't use any shortcut that has meta-shift (alt and shift) in it because ubuntu will treat it as "change keyboard layout" shortcut (I map it to alt-shift since I use the same shortcut in windows) as soon as I press m-s. In windows change keyboard layout shortcut doesn't register until you release the key so any short...
stackexchange/codereview
I created A project, and in the A project, i created a Form named bform and a user control named cComtermizedCtrl , and i compiled the project successfully ,but I coundn't find the cComtermizedCtrl control in toolbox. why?
stackexchange/codereview
In a single-threaded application I use code like this: Interface function GetNextUID : integer; Implementation function GetNextUID : integer; const cUID : integer = 0; begin inc( cUID ); result := cUID; end; This could of course be implemented as a singleton object, etc. - I'm jus...
stackexchange/codereview
I'm having problems detecting a broken socket when a broken pipe exception occurs. See the below code for an example: The Server: import errno, select, socket, time, SocketServer class MetaServer(object): def __init__(self): self.server = Server(None, Handler, bind_and_activate=False) def run(self, so...
stackexchange/codereview