instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Simple problem in Delphi. I've created a console application and I need to change the height of the console window to 80 lines, if it's less than 80 lines. This need to be done from code and is actually conditional within the code. (I.e. when an error occurs, it increases the size of the console so the whole (huge) err...
stackexchange/codereview
Whenever I try to get a bitmap I have cached from the context I am getting an argument exception. The bitmap is cast from the cached object but it's contents are corrupted. The exception is thrown on the line ImageFormat imageFormat = bitmap.RawFormat; bitmap.RawFormat' threw an exception of type 'System.ArgumentExcep...
stackexchange/codereview
I have a problem with regex, using preg_match_all(), to match something of a variable length. What I am trying to match is the traffic condition after the word 'Congestion' What I came up with is this regex pattern: Congestion\s*:\s*(?P<congestion>.*) It would however, extract the first instance all the way to the en...
stackexchange/codereview
I have 3 forms on my View. Each of these all post back to a different action. When the action is complete, I call my original Action that led the user to the page originally, but MVC is looking for a view of the postback Action. How can I get MVC to post to an action of a different name of the current view, while st...
stackexchange/codereview
I have a simple black and white only gif image (400x400px let's say). I need to get all pixels from that image and find whether they are black or white. I need to create a dictionary with the information about the pixels and their colors then. I'm pretty new to python so I am kinda struggling with this. But here goes m...
stackexchange/codereview
We recently had an issue where a ColdFusion scheduled task didn't resume after a Windows upgrade and a CF server restart. Is there a way to monitor the health of scheduled tasks and be alerted if they are not running properly? Or would I need to write a task to parse the log files for that information?
stackexchange/codereview
I have some source code I'd like to compile using the Microsoft.CSharp.CSharpCodeProvider class, and I want to include stuff that's specific to debug builds (e.g., methods marked with the [Condtional("DEBUG")] attribute). I tried setting the CompilerParameters.CompilerOptions property to "/debug", but when I ran the co...
stackexchange/codereview
In django, in TextField, how to we replace, [vimeo 123456] with <iframe src="http://player.vimeo.com/video/123456" width="400" height="225" frameborder="0"></iframe> Thank you.
stackexchange/codereview
I have a Tab Bar app. The app has 8 UITabBarItems and the More button is added automatically. I want to change the title from More to something else. I have already tried the following: tabbarController.moreNavigationController.tabBarItem.title=@"Test"; But it still displays "More". No error. No changes. How can I cha...
stackexchange/codereview
I have implemented a ListView in my Android application. I bind to this ListView using a custom subclass of the ArrayAdapter class. Inside the overridden ArrayAdapter.getView(...) method, I assign an OnClickListener. In the onClick method of the OnClickListener, I want to launch a new activity. I get the exception:...
stackexchange/codereview
When I try to update a user, let's say his account balance $this->User->id = $validUserId; $this->User->saveField('balance', 100); I get this error SQL Error: 1054: Unknown column 'User.group_id' in 'field list' with this automatically generated query druring the save process SELECT `User`.`group_id` FROM `users` AS ...
stackexchange/codereview
I am not getting any error in my application but when I run it and click on a button then jscript runtime error object reqired happens with the option of break and continue... How can it be solved??
stackexchange/codereview
If the number of conditions and actions is high (in my case, 12 conditions and 13 actions respectively!), making/maintaining a decision table with hand is proving to be really tough. The number of possible rules in the case at hand is huge (Y/N for 11 conditions and a 3-way choice for the 12th) and it's freaking me out...
stackexchange/codereview
html += "<table><tr><td> <label for='id_first_name' ><b>Timezone:</b></label> </td>"; html += '<td><select id="timezone" name="nodes" style="width:300px;margin:5px;">'; {% for tz in all_timezones %} if('{{tz}}' == 'Asia/Calcutta') html+='<option value="{{tz}}" selected>{{tz}}</option>'; else ...
stackexchange/codereview
I have a custom UIButton added as subview to a UIView subclass. In my viewController I add the custom uiview as a subview to the controller's view. Then I try to add a target to uibutton (inside viewWillLoad), but the selector is never called.
stackexchange/codereview
Let's say I have a table like so: Friend ------ Id int not null FriendName nvarchar(50) not null Phone nvarchar(50) null If I bind my DataGridView control in a Windows Forms application to an ObjectQuery<Friend>/ObjectSet<Friend>/IList<Friend> returned from an ObjectContext like so: MyFriendsGridView.DataSource = _con...
stackexchange/codereview
I'm trying to write a simple backup script in Ruby that copies a folder to a specific directory with a timestamp in its name. My code is (simplified): require 'Fileutils.rb' time = Time.now FileUtils.cp_r "C:/somefolder", "D:/somefolder_backup_#{time}" But I keep getting `fu_mkdir': Unknown error - mkdir failed (Syst...
stackexchange/codereview
I have a table being generated in an ASP.net web app. The table has 4 columns. Currently each cell of each row can be clicked to get more detailed info. However, I do not want the first and the last cell in each row to be clickable. How can I make it so that only the first second and third cell can be clicked? Below is...
stackexchange/codereview
I'm trying to open a webpage in a Silverlight App for Windows Phone 7. Is there a way to open Internet Explorer?
stackexchange/codereview
Beginning with a basic approach -- Options Menu. Question: What is the best way to capture a cancel (return) event? I.e. the user changes their mind and hits the back arrow. The issue is that I would like to unpause my an application thread. @Override public boolean onCreateOptionsMenu(Menu menu) { onPause(); M...
stackexchange/codereview
Arithmetic overflow error converting expression to data type datetime. The statement has been terminated. The culture of my site is en-gb (18/10/2010) The culture of my db server is en-us (10/18/2010) the date is stored in a param; command.Parameters.AddWithValue("@bookingdate", inputBookingDate.Text) Is there a way t...
stackexchange/codereview
I am unable to manage the RSS feeds easily due to an overwhelming number of new stories / similar news contents posted in various news sites. For subjects such as world news and business news, many of the stories are redundant, adding a burden to readers to sort out which stories they've already read. To deal with the ...
stackexchange/codereview
I have a one line EditText, when I set a long hint, the hint wraps to two lines. Can I force the EditText to be always one line tall? android:lines="1" didn't work.
stackexchange/codereview
I have a simple question. Is it possible to somehow get a log of what is taking so much time to load when starting VS2010? On a default install, starting the IDE is very quick (~1-2 s), but with a batch of extensions installed, the time taken for the IDE to launch is prohibitive of using it to "just have a peek at a fi...
stackexchange/codereview
I want to check the file extension from the string using regular expression in action script. By googling, I find this, but I'm week to regular expression. Thanks.
stackexchange/codereview
I have an MVC 2 application where the timeout is set to 2880 (minutes as I understand it, but even if it is seconds there's a problem): <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="2880" /> </authentication> Now this should then mean 48 hours, or at least 48 minutes (if the value is secon...
stackexchange/codereview
I'm only one month into my iOS development, and already have a sweet gps app running perfect on the iPhone simulator. I'm about to pay the 99 USD to be able to try out the app on my real device (iPhone 4). My question is: can I unplug the device after downloading the app. What I mean is, can I test my app unplugged fro...
stackexchange/codereview
For along time, I've been using event-driven programming for all my windows application. i.e. handle a selected index changed / Text changed etc.. events. But lately I've been using the INotifyPropertyChanged interface and ObservableCollection class to handle data changes. Do you see any possible problems that I could...
stackexchange/codereview
I have millions of Keywords in a column labeled Keyword.text. Each factor or Keyword can contains multiple words (or shall we say token). Here is an example with 4 keywords Keyword.text The quick brown fox the .8 .crazy lazy dog dog jumps over+the 9 I'd like to count the number of tokens in each Keyword, so as to obtai...
stackexchange/codereview
My problem is similar to the one in this question, but the opposite. How do I specify ":layout => false" in Rails' respond_with? The controller is sort of a file converter. It responds to many formats. One format is supposed to render an html layout showing metadata. This format need the layout to be rendered, unlike m...
stackexchange/codereview
Is it possible to control the order of namespaces in documents generated via JAXB? I know, it is not relevant to XML standards, but somehow we need to generate namespace declarations in specific order? For example, currently we have generated <rootelement a="http://www.example.com/xom" b="http://www.example.com/crops">...
stackexchange/codereview
I am working on an application to sync contacts which are large in number. The syncing takes place in a background thread with user being able to browse through the rest of the application. I am displaying the sync status in the notification bar suing the progress bar. The problem I am facing is that there are instanc...
stackexchange/codereview
I have multi-lines textbox in c# window-base application. If user click on textbox I want to get the value of selected line. Kindly guide me so that I can make it possible. Sorry for my bad english.
stackexchange/codereview
What I was trying to do was simply center a div using CSS. and I couldn't get my head around it. It simply didn't work. I used the following code: <style type="text/css"> <!-- div.test { width: 300px; margin-right: auto; margin-left: auto; border: 1px solid black; } --> </style> <div class='test'> hel...
stackexchange/codereview
So I'm writing an android app, and I have an xml parser class that parses my xml files and builds me a tree I want to reuse my xml parser code for different xml files However, having problems with getXml(resourceID) not working: public class myactivity extends Activity { public void someMethod() { Xmlparser my...
stackexchange/codereview
I have a Java application using Spring + Hibernate. I have a pretty simple transaction that just recently started to take REALLY long to execute (~25 secs) though it's not making any obscure / complex queries, and according to the log, those 25 seconds are spent within Hiberante's code. The browser just hangs there wai...
stackexchange/codereview
can anyone explain to me how to use the curly braces { } in php strings? like "this is a {$variable}" "this is a {$user -> getName($variable);} name"
stackexchange/codereview
To implement a simple protocol in python, I've used a thread to monitor acknowledgements send by the receiver. To do this, I use a thread in a function def ackListener(self): while self.waitingforack: ack = self.socket_agent.recv(4) ... exit() where self.waitingforack is a boolean I set to Fal...
stackexchange/codereview
I wrote this following java code to format the date and time in specific formats. You can see the below code at ideone . import java.util.Calendar; import java.util.GregorianCalendar; import java.text.SimpleDateFormat; class timeAndDateTransformation{ public static void main(String[] argv){ Calendar new...
stackexchange/codereview
git log has a nice --format option to specify how the output should be formatted. But git blame doesn't seem to have an equivalent, although default output of blame is not quite human-friendly. I would like to see much less. For example, instead of: 5600cab7 js/sidebar/VehicleGrid.js (Rene Saarsoo 2009-10-08 ...
stackexchange/codereview
I have been working on this plugin system. I thought I passed design and started implementing. Now I wonder if I should revisit my design. my problem is the following: Currently in my design I have: An interface class FileNameLoader for loading the names of all the shared libraries my application needs to load. i.e. L...
stackexchange/codereview
Hello I am not able to understand how to use jQuery plug-ins in cakePHP. I have one plug-in by the name "countdown". It has 2 js files, one html, one css file and a few images. If I were using regular javascript file, I'd have to give a name to my file and call it in the view or in default.ctp using the "$html->script(...
stackexchange/codereview
The last time I used a regular expression was 2 years ago and even then it wasn't something I considered to be the simplest of things! Could anybody tell me how I would go about splitting this text into three groups (qty, name, price)? 1 Corn Dog 5.00 3 Corn Dog 15.00 @ 5.00 2 Diet Cola...
stackexchange/codereview
I'd like to know if there is a way to use multiple security managers in java, and if so, how to specify them a particular .policy file? I've been looking at the java se 6 doc about Security, but couldn't find any answer there... Thanks everyone for help!
stackexchange/codereview
I wanted to do some Memory-Leak tracking on my App, but somehow I am not able to run Clang Static Analyzer because I always get an error message saying "command not found" when executing it with the terminal. There was no ".bash_profile" file on my mac, so I created one. Is there anything missing?
stackexchange/codereview
In using TestNG for my Selenium framework, the setUp method is relatively complex. There are multiple points that it can break and I would like to split it into separate steps. Ideally it would look something like this: // Does some DB stuff, logs some messages @BeforeMethod(alwaysRun = true) preTestCase // Instantia...
stackexchange/codereview
I have been writing a build system based on MSBuild, and am to the end of the project where I need to essentially run the one msbuild file 88 times by batching over three variables: Configuration = Debug; Beta; Release; Evaluation Platform = x86; x64 Language = CN; CS; DE; EN; ES; FR; IT; JP; KO; PL; TW I want to build...
stackexchange/codereview
Possible Duplicate: ConnectionString For Getting An Excel File Problem hi my Dear Friends : in have an Excel File Named (a.xlsx) in A Folder Named (ExcelFiles). ExcelFiles Foldre Is in the root Of project. so my connctionstring for getting excel file data is like this : <add name="xlsx" connectionString="Provider=M...
stackexchange/codereview
My question is about two answers to another question: Using class/static methods as default parameter values within methods of the same class. I am trying to understand if there's really a difference between what the two answers do, and if so, what's the pros and cons of each. Question: how to use a class method as a ...
stackexchange/codereview
My modal view controller is not calling its dealloc method when it dismisses itself. I have presented it using : ViewController * vl = [[ViewController alloc] initWithNibName:@"ViewController" bundle:[NSBundle mainBundle]]; self.viewLink = vl; [mainMenu stop]; [mainMenu setCurrentTime:0.0]; [vl release]; [self pre...
stackexchange/codereview
I'm trying to get a list of all the appointments assigned to a resource. Resource accounts can't be logged into, so I can't impersonate the accounts. I can set up an admin account with delegate access to the resource accounts. I've done this successfully, but it isn't allowing me to retrieve the appointments. How can...
stackexchange/codereview
I modified the source code from Fred Lundh's Python Standard Library. The original source uses popen2 to communicate to subprocess, but I changed it to use subprocess.Popen() as follows. import subprocess import string class Chess: "Interface class for chesstool-compatible programs" def __init__(self, engine...
stackexchange/codereview
In FF, Opera, IE the CKEditor is working and looks great. But in Chrome and Safari it is not sizing correctly, and is extending past the container that it is inside. I assume this is because Chrome and Safari are currently the most standards compliant. See the images below. Chrome Opera I tried removing all of my CSS...
stackexchange/codereview
Is there a way python can distinguish between packets being sent ? e.g. python receives data it process data clients sends first packet client sends second packet python receives data, can i receive the first packet rather then all info in the buffer I know i can set it up up so it sends data i confirm and the client w...
stackexchange/codereview
I am using ajax UpdatePanel in my asp.net page, and I wanted to know can I auto refresh data in my gridview control?
stackexchange/codereview
It is common knowledge that Internet explorer does not support event passing to event handler functions like this one: function clickHandler(e) { // e is undefined in IE e = e || window.event; { For my surprise today, I found out that actually it does. I forgot to do this "e = e || window.event" trick in one of my...
stackexchange/codereview
I'd like to know what's the best way (read most elegant) to have a single instance of a given Window per application in WPF. I'm a newcomer to .NET and WPF and what I came up with looks pretty lame. private static readonly Object MUTEX = new Object(); private static AboutWindow INSTANCE; public static AboutWindow GetO...
stackexchange/codereview
If I create a standalone alertdialog with the builder (not connected to the activity/view) how can I keep the search button from causing the alertdialog to close? Thanks.
stackexchange/codereview
I want to write simple C++ code for adding two integers (in a command line window). How do I do this in Visual Studio 2010? (I know the code for adding the numbers.. I don't know how to prepare the files) @Armen Tsirunyan I did just that, then I added the following code to the c++ file:- #include <iostream.h> main() {...
stackexchange/codereview
I want a function to be triggered on every ajax request is sent from a document, and another function to trigger when that request is completed. This code is to be independent with the code which triggers the ajax request. I remember it can be done in prototypeJS easily, but I haven't done this in jquery. Thanks
stackexchange/codereview
Is it possible to convert a dll library back to source code? Not that I want to do this, but I need to outsource some non-critical parts of a software that I am writing, but I wouldn't want the other guys to copy everything that I have so far. The code in the respective dll is not the whole code. I have managed to incl...
stackexchange/codereview
After opening a new tab on my site, I want to move the focus to the bottom of the page on the external site. The reason for this is that the item I really want to show is at the bottom of the page (which is actually some search results). Here's the link as it currently stands: <a href="http://www.approvedworkshops.co...
stackexchange/codereview
I'm trying to use the Yahoo Social Python SDK to get a users contacts through oAuth. This is for a webapp running on App Engine. SO, I have everything set up to run through the oAuth dance, exchanging consumer keys and verifiers and all that jazz. I store the token and can reuse it to retrieve a users contacts until th...
stackexchange/codereview
I'm adding some bindable CLR properties to my ongoing WPF application in my App class and I can't compile because of this inconsistent accessibility error. Inconsistent Accessibility: Property type 'SomeProj.Error' is less accessible than property 'SomeProj.App.LatestError' To fix this error I had to change class Err...
stackexchange/codereview
I have an EntityFramework model that has User entity that has an EntityCollection of Organisations. For a particular User I am trying to write a Linq Query to return the names of the organisations that the user belongs where that query will hit the db only once. My problem is that I cannot see how to write this query w...
stackexchange/codereview
I plan to use those functions in web-environment, so my concern is if those functions can be exploited and used for executing malicious software on the server. Edit: I don't execute the result. I parse the AST tree and/or catch SyntaxError. This is the code in question: try: #compile the code and check for syntax e...
stackexchange/codereview
I have a web service I want to call: https://someserver.com/Service The service is built on a IBM WAS server in Java. It is using SSL authentication so on the WAS server a certificate was created and they sent us the public .cer file and a WSDL file. On my side I have a .net application that is set up based on the WSD...
stackexchange/codereview
I've looked all around and found nothing to help me. Why on earth can't I clone a javascript object with private members without making them quantum entangled? Just look at this code... It's a plain private property with getter and setter. Somehow if I call the public setter on one instance, the cloned one gets changed...
stackexchange/codereview
I'm implementing a netflix-like 5 star review ratings. The goal is to have a "rating" div that serves both to enter the rating by clicking on one of the stars, as well to display the current rating. I want to update the "rating" after a users enters a new rating. For now, I can add a rating and create the association t...
stackexchange/codereview
How to measure instantaneous download rate when streaming a video in silverlight ?
stackexchange/codereview
I have created a program which takes a text file full of 3 letter words and processes them, stores them in an array and then outputs to the build output in JCreator and then writes the same output to a file. Now, this program works fine, but when I print a lot of data - I get all of these blank lines inserted where the...
stackexchange/codereview
I'm trying submit some form using ajax //include jquery-1.4.2.min.js var submitForm = document.createElement("FORM"); ... jQuery.post(submitForm.getAttribute('action'), submitForm.serialize(), function(data) { bla-bla }); But there is error : "Error: submitForm.serialize is not a function" (FF) What can I do? Th...
stackexchange/codereview
How can I see what is not in the table... I know I know...can only see what is there but come on!!! So!! select * from ORDER where State IN ('MA','PA','GA','NC') So I will get MA and PA but I want to see GA and NC.... NOT IN will return NY,NJ,CT ect.... I just want to see what is in the ( )
stackexchange/codereview
I have two nested UIScrollViews: the parent limited to horizontal paging and the child limited to vertical scrolling. The content is one large view that can be freely dragged around, but snaps to one of three horizontal sections. The default behavior of the nested scroll views is to only allow scrolling in one direct...
stackexchange/codereview
For some complicated reason, I need to mark some Javascript as "special", like this: <script type="text/javascript" someattribute="special"> var special = "I'm special!"; </script> <script type="text/javascript" someattribute="special" src="special.js"> </script> Is it possible to do this in way that complies with ...
stackexchange/codereview
Let's say I need to extract all solid-brushes and linear-gradient brushes in a dictionary resource file using C#. How can I do it? Please help! This question can be extended to be more general like "How to find the multiple-lines match(es) when searching a file using C#?"
stackexchange/codereview
I need to pass a table from Access to SQL-server and execute a stored-procedure. I'm using pass-through queries in Access to do this. My pass-through query: DECLARE @MyVar TABLE { .....<variables> } INSERT INTO @MyVar SELECT * FROM [MyTable] EXEC sproc_test @Myvar My stored-procedure: ALTER PROCEDURE [dbo].[sp...
stackexchange/codereview
I have created the fallowing ListBox: <ListBox x:Name="RecentItemsListBox" Grid.Row="1" BorderThickness="0" Margin="2,0,0,0" SelectionChanged="RecentItemsListBox_SelectionChanged"> <ListBox.Resources> <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}"> ...
stackexchange/codereview
but session variables are stored at the server so how does the server keep reocrd of whose session has timed out. is any cookie used at the client side?
stackexchange/codereview
I'm in notepad++ and I need to add a / right before the closing > in the following line: <meta name="description" content="*****"> the ***** above is a bunch of text that I need left in place, and it changes from page to page, thus my need for some find / replace method that is superior to what I would normally be ca...
stackexchange/codereview
I'm trying to integration test my application with Spring TestContext framework. I have done this by extending AbstractTransactionalJUnit4SpringContextTests, as usual. However, my application has three different data sources (with names like xDataSource, yDataSource, zdataSource), så when I try to run the test, the aut...
stackexchange/codereview
I would need to parse some data that i get from JSON query. I get the data with $.getJSON(JSONquery, function(data){ $.each(data, function(i,item){ $('#output.... }); The data I get from it something like this (sorry its messy and longish): [{"name":"139930 blablabla","id":599,"contentobject_id":599,"main_node_id"...
stackexchange/codereview
I am a final year engineering student. Me and my friends have decided that our final year project would be "Simulation of Turing Machine using Template Metaprogramming". I understand what "Turing Machine" and "Template Metaprogramming" are but my question is why the simulation would be tedious if we design the Turing M...
stackexchange/codereview
I'm trying to force brackets on lists that contain only one element. I want something like this: {"id":"0","industries":[{"id":"0","name":"Technologies"}],"name":"Google Inc."} But I get: {"id":"0","industries":{"id":"0","name":"Technologies"},"name":"Google Inc."} Here is my Entity: @Entity @XmlRootElement public cla...
stackexchange/codereview
How do i set a custom background color for certain rows in a QFileSystemModel applied on a QTreeView?
stackexchange/codereview
I get an error with setPropertyToFetch. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0]' code: NSString *str; str = [NSString stringWithFormat:@"Event%d", variable]; NSString *value = [NSString string...
stackexchange/codereview
I have two DataTemplates for different cells in my Treelistview control. the templates are 90% similar. How can I reuse the identical Xaml ? <DataTemplate x:Key="@names"> <TextBlock Name="txt" Text="{Binding Names}" Style="{DynamicResource @BasicTextBlockStyle}" Foreground="{Binding Re...
stackexchange/codereview
We would like to orderBy 2 columns in the Seam EntityQuery interface as well as the JPA model. How do we do this? @Entity public class A{ @OrderBy(???) // should this be hardcoded here, is it database agnostic List<B> bobjects; } @Entity public class B { public short startTimeHrs; public short startTimeMins; }...
stackexchange/codereview
I'm new to QT and the IDE is driving me insane. I've hit this problem now and It won't go away. If I load up QT Develop and edit a file, it stars it to let me know it needs saving. If I then try to save it it warns me that the file is read only, offering me the option of "Make Writeable" why it thinks it is read onl...
stackexchange/codereview
I have to do one validation in javascript. I have text box into which user should not allow to enter value which is more that 5.00 means user can enter value which is less than 5.00. so please suggest such validation in javascript
stackexchange/codereview
I've seen some posts like this, but not exactly what I want to do. How can I extract and delete URL links, and then remove them from plain text. Example: "Hello!!, I love http://www.google.es". I want extract the "http://www.google.es", save it on a variable, and then, remove it from my text. Finally, the text has to ...
stackexchange/codereview
I have an application with the front end in Access 2007 (Access 2000 file) with the backend on SQL Server 2008. The application has been running for two years now and I have noticed that on some PCs the queries are taking forever to run while on others it runs quite fast. Each PC has its own file of Access, so they don...
stackexchange/codereview
I have a simple application which accesses cookies from a webpage using a standard NSURLConnection. The existing version of the application works fine (developed for 3.0), however, I have modified the app (making it fully iOS4 compatible) and I now recieve the following warning in the log: CFHTTPCookieGetCreateDate ...
stackexchange/codereview
I'm trying to debug a .NET 3.5, 32 bit application running on Windows 7/64 bit with WinDbg. I'd like to use psscor2, but I can't load it. I can't load sos, either. When I try to load psscor2, I get this error: > .load psscor2 The call to LoadLibrary(psscor2) failed, Win32 error 0n193 "%1 ist keine zulässige Win32-...
stackexchange/codereview
I have an application that loads two assembly dlls. First dll is a common dll and the second dll has reference to another version of the first dll. All assemblies are unsigned. App.exe --> dll1_v1.dll, dll2.dll dll2.dll --> dll1_v2.dll Both dll1_v1.dll and dll1_v2.dll have same types but different implementations. If ...
stackexchange/codereview
From what I understand, MySQL 5.1 supports server-side prepared statements. Therefore the following code should prepare the statement once, and execute it 10 times: Connection conn = ds.getConnection(); PreparedStatement stmt = conn.prepareStatement("SELECT COUNT(*) FROM users WHERE user_id=?"); for (int i=...
stackexchange/codereview
i am writing program for chat room on client side i had wirtten clientSocket = new Socket('127.0.0.1',5432); socketInputBuffer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); socketOutputBuffer = new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream())); systemBuffer = new B...
stackexchange/codereview
I am quite new to WPF and have a basic question : Assume the following is xaml declaration in my xaml file <ContentControl x:Name="interactionActivityContent" Loaded="interactionActivityContent_Loaded"> <shapes:BaseShape.DragThumbTemplate > <ControlTemplate x:Name="interactionActivityTemplate"> <Grid Allo...
stackexchange/codereview
As you knew, a iphone app has 4 directories: Application folder, Document, Library, tmp. When app is installed in the first time, I want to: Create a list of directories in Document folder Import a list of images to each that directories. I searched and found the way to create directory in Document folder by code. [[...
stackexchange/codereview
I have the following requirement for a GUI, that the user will have a number of available actions to perform. Currently, it is implemented a series of JButtons that the user presses. But the actions are a lot, and in each version more "actions" would be possibly offered. I am not sure how this is better presented/done ...
stackexchange/codereview