instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I want to show a list of options to the user when he/she clicks on an inputText component. I need to call a bean method by JavaScript using onclick attribute in IceFaces. <ice:inputText id="inputText1" partialSubmit="true" value="" onclick="" /> How can I achieve this?
stackexchange/codereview
This is what i have so far <?php $_SESSION['name'] = $_POST['name']; $_SESSION['topic'] = $_POST['topic']; $_SESSION['message'] = $_POST['message']; $_SESSION['size'] = $_POST['size']; $_SESSION['deadline'] = $_POST['deadline']; $_SESSION['typeformat'] = $_POST['typeformat']; $_SESSION['stylereport'] = $_POST['stylerep...
stackexchange/codereview
In the below code,On click Details link the div should show up in an iframe with scroll bar and click on the link again the iframe and the div should not ne show.How to do this <script> function toggle(div) { } </script> <a href="#" onclick=toggle("div0");>Details </a><Name: Sal <div id="div0" style="display...
stackexchange/codereview
Consider: #include <iostream> using namespace std; struct A { virtual void f() { cout << "A::f" << endl; } virtual void f() const { cout << "A::f const" << endl; } }; struct B : public A {}; struct C : public A { virtual void f() { cout << "C::f" << endl; } }; int main() { const B b; b.f(); // prin...
stackexchange/codereview
As part of code cleanup, and migrating to new test framework, I need to delete constructor which has argument 'String name' from all the test classes(Almost 1000+ *.java files). For example , the part shown in comment need to be deleted. class A extends TestCase{ //This need to be deleted. public A(String name){...
stackexchange/codereview
I have some question about the privacy issues using Google Analytics. I've heard that Analytics saves the collected IP-adresses indefinitely. Is this true? Is IPs the only thing that is saved indefinitely? If true, is there anyway to prevent this (from our side, not the users) ? Can you elaborate about why and your sou...
stackexchange/codereview
So two months ago I migrated our codebase in SVN into Git with the complete changeset history. Immediately after that, we tagged a new release and continued working. So while we've continued working in the new tag, some people have continued fixing bugs in the old tag in SVN and now I'd like to pull all those changes i...
stackexchange/codereview
I am trying to remove server Signature from Wordpress blog. I am using this setting for .htaccess: ServerSignature Off but I see X-Powered-By has gone and not this ServerSignature: *Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod...
stackexchange/codereview
I have a variable result with the following XML: <Properties> <Property> <Name>Title</Name> </Property> </Properties> I'm then using jQuery 1.4.3 with each(): $('Property', result).each(function () { var name = $('Name', this).text(); alert("Name: " + name); }); For some reason this code isn't...
stackexchange/codereview
Some thoughts about writing custom html helpers. In our project everywhere you can find the html helpers used like this. @Html.TextBoxFor(m => m.ApplicationSettings.ApplicationName, new { @class = "inp" }) We append the css class "inp" to almost every input type. So what I'm doing is that Im creating extended html hel...
stackexchange/codereview
I am using database table as data source for my dropdown list. How do I add an extra item in my dropdown list for example "select state". currently my code is: dropdownlist1.datasource=dt; dropdownlist1.datavaluefield="countryid"; dropdownlist1.datatextfield="countryname"; dt is a datatable , "countryid" & "countrynam...
stackexchange/codereview
I developing an AIR application in Flex that would be dealing with playing different SWFs. I am finding some issues as these SWFs that I am playing are heavy. I find that the animation is not smooth and is causing the graph of CPU usage to go high (my be because single thread architecture of Flex). I am therefore plann...
stackexchange/codereview
This might be very simple but I am new to MFC. I have a messagebox: MessageBox("Do You Want to Save the Configuration Changes","NDS",1); which have Ok and Cancel option. I want to write my code on click of OK
stackexchange/codereview
I'm using NSIS to generate a Windows' installer for my application. I'd like a multi-lingual installer. I'm using LangString for specifying strings. However, the documentation doesn't seem to say how one should encode a non-ASCII character. For example, to use the German word "benötigt" (where the 'o' has an umlaut)...
stackexchange/codereview
In the absence of a Maven plugin for Sahi, what's the easiest way to run Sahi tests from Hudson?
stackexchange/codereview
I have a table with one field of enum type. I execute the following query using pg_query INSERT INTO users (email, facebook_id, first_name, middle_name, last_name, birth_date, password, gender, school_id, timezone, email_verified, role_id) VALUES ('robert@1599309412.com', NULL, 'Robert', '', 'George', '1984-05-20', 'So...
stackexchange/codereview
Assume the following class definitions. public enum ContentType { Playlist, Audio, Video, Picture } public interface IDataProvider { string Name { get; } } public class ProviderList : List<IDataProvider> { } public class MainViewModel { ...
stackexchange/codereview
What may be the disadvantages of enable content expiration in IIS 6 ?
stackexchange/codereview
I'm moving back from Python to C++ for my next project. I know why I shouldn't and I know why I should. Never mind that debate. C++ conventionForVariablesIsCamelCaseAndI'mHavingTroubleAcceptingIt as, at_least_for_my_eyes_it's_less_readable_than_the_lower_case_underscored_convention. Did any of you encounter an article ...
stackexchange/codereview
The NativeProcess is having a big issue which would hang/sudden stop response after 1-2 mins of running. I wonder if anyone else encounter the same issue? I have tested on Windows 7 (64bit). If there any way to launch an exe and release the Nativeprocess handler from monitoring the process or other method will be appre...
stackexchange/codereview
I have one logical question. I have collection of employee objects There are 3 filter criteria conditions which have handle For e.g. Employee name, Office name, salary. Now these filter criteria should match like (Employee name AND/OR Office name AND/OR salary) So here I have to write (2 raise n) -1 if conditions to h...
stackexchange/codereview
How to change my_stock verbose_name? models.py: class Book(models.Model): name = models.CharField(u"Нэр", max_length=200) stock = models.IntegerField() @property def my_stock(self): return self.stock admin.py: class BookAdmin(admin.ModelAdmin): list_display = ('name', 'my_stock') sear...
stackexchange/codereview
I have a very similar problem to Mr. Limpens, with one major different: I do include the test_unit railtie into my application.rb. From my application.rb: require File.expand_path('../boot', __FILE__) # Pick the frameworks you want: ...
stackexchange/codereview
I know you can write apps in c, c++, and java. However I have heard that android also supports scheme, python, lua, and others but never could find it verified or an actual list.
stackexchange/codereview
Here is the situation. I have a htmlselect control that when loaded needs to be initially enabled or disabled based upon something that is true or not from the database query. Then I need the user to be able to click on a checkbox to disable or enable the same htmlselect control, ALL without a postback. Is this possibl...
stackexchange/codereview
I'm working on java... I want to know how to convert array of byte into BigInteger. Actually i used md5's digest method which returned me array of byte which i want to convert into Biginteger.
stackexchange/codereview
I was thinking whether the question belongs here or on SO. 4 days ago I created a question from command line ok but the hook (git) on SO. So far no answer. To make it quick and simple.... I want to fire 'post receive' when somebody does push to my remote repository. The hook will fetch the new stuff into another repo...
stackexchange/codereview
I need to use the following very often diff <filename.c> standard How can I have an alias (adiff) for it so that I would do adiff filename.c and it would expand to diff filename.c standard
stackexchange/codereview
Is there any way of executing code on Tomcat 6 when the application get stopped/unloaded ? (I am trying to deregister the MySQL driver by hand due to memory leaks problem). Thanks in advance
stackexchange/codereview
I'm new to Perl so this maybe a very stupid question but I couldn't find out :( If I have: $stringA =~ /regex/; $stringB =~ m/regex/; From my test, $stringA = $stringB. Is there any difference between them? Thanks.
stackexchange/codereview
I am new to C++ programming and haven't done anything in a week, so I was messing around with things I know thus far to see if I have to go over things again. However, I ran into an issue with bools (haven't really used them before). Source: #include "stdafx.h" #include <iostream> using namespace std; int main() { ...
stackexchange/codereview
My Query: EXPLAIN EXTENDED SELECT `artwork`.`id` , `artwork`.`added` FROM `artwork` ORDER BY `artwork`.`added` DESC LIMIT 0 , 6 When I added an index on "added" to avoid using filesort and use index instead the output of explained went from id select_type table type possible_keys key key_len ref rows filtered E...
stackexchange/codereview
Well I have a concern, well talking to people on IRC Channel as well as seeing discussions on various android forums, I have been inclined towards the point that some of the android devices are vulnerable to outside intrusion because of some defects in Android OS (particularly because its open source and everyone is co...
stackexchange/codereview
Possible Duplicate: How to calculate the date difference between 2 dates using php date1=2010-11-10 09:49:54; date2=2010-11-10 09:49:54; How do I get difference between these two dates in PHP?
stackexchange/codereview
I am using SystemState.PhoneIncomingCall to intercept missed calls. The problem is, if I have multiple missed calls, I get notification only for the first missed call and not for the rest. The rest of notifications are invoked when user views call history. How can I get notification for all missed calls at the time of ...
stackexchange/codereview
Anyone ever transferred large files with it? What is the main advantage over ftp and other methods? Speed? or slicing
stackexchange/codereview
I've been getting used to Vim/MacVim for the last few weeks. One of main problems I seem to be having is when I scroll around using the mouse (especially when I'm trying to select large portions of text) the text insertion cursor moves too and doesn't stay where it was (like in TextMate for example). This means I've se...
stackexchange/codereview
I use the regular expression: ^(GIR 0AA)|(((A[BL]|B[ABDHLNRSTX]?|C[ABFHMORTVW]|D[ADEGHLNTY]|E[HNX]?|F[KY]|G[LUY]?|H[ADGPRSUX]|I[GMPV]|JE|K[ATWY]|L[ADELNSU]?|M[EKL]?|N[EGNPRW]?|O[LX]|P[AEHLOR]|R[GHM]|S[AEGKLMNOPRSTY]?|T[ADFNQRSW]|UB|W[ADFNRSV]|YO|ZE)[1-9]?[0-9]|((E|N|NW|SE|SW|W)1|EC[1-4]|WC[12])[A-HJKMNPR-Y]|(SW|W)([2-9...
stackexchange/codereview
I'd like to reproduce the following chunk of vbscript using C#. sURL = "https://server/service.dll" sXML = "<request version=""1.0""><ticket>generated ticket</ticket></request>" dim winHTTPReq: Set winHTTPReq = CreateObject("WinHttp.WinHttpRequest.5.1") winHttpReq.Open "POST", sURL, false winHTTPReq.SetRequestHeader "C...
stackexchange/codereview
I am trying this, but it doesn't seem to work: users = User.find() This page doesn't seem to tell me how to do this? I'm sure I am missing something here!
stackexchange/codereview
I couldnt understand what is causing this error: ERROR>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator ERROR>Caused by: java.lang.ClassNotFoundException: org.apache.log4j.PropertyConfigurator Already got the log4j-1.2.8.jar everywhere in the project but I couldnt make ...
stackexchange/codereview
I saved some html pages in sdcard. so , i want to display those pages through webview . can any help to do this task ? Thanking you , Srinivas
stackexchange/codereview
From the performance point of view, what is the fastest way to get a file from web. Webclient, httpwebrequest etc?
stackexchange/codereview
I have projects in C++, Java and Python. Projects in C++ export SWIG interfaces so they can be used by Java and Python projects. My question is: what building mechanism can I use to manage dependencies and build these projects? I have used SCons and GYP. They are fairly easy to use and allow plugins (code-generators, c...
stackexchange/codereview
I am trying to do ajax call with jquery. But URL is an URL without extension. i.e. http://xyz.com/atom/home If I save it locally. with home.xml it works perfectly. But if it is without extension. It doesn't work. Is there a reason why? Or is there a way to fix it? I do not have control to the URL that I am calling. $.a...
stackexchange/codereview
Currently in my Rails2 app I'm using BackgroundRb for job queuing and scheduling. However, I've known for a while that because there doesn't appear to be much (any?) activity on maintaining the library the time was coming to replace it with something different. With the advent of Rails 3 it appears that time is finally...
stackexchange/codereview
Can some explain how to properly subclass a UIViewController and then load it into the window without using a nib. Do i need to set the view and when do I do it? loadView? My app crashes when I use my customUIViewController sub-class. Everything loads up find until I click a button and it compains about "Bad Access" ...
stackexchange/codereview
I want to get only the visible part of the window in windows, as a region. Want to get only the area that is seen by the user. Programmatically, of course. Here is an example. I have the following window composition: +------------------------------------------+ | | | ...
stackexchange/codereview
I'm working on a CMS that can run either with or without https enabled on the webserver. I'd like to be able to detect whether https is enabled or not, so that I can act accordingly (for example, display some https-related options to the administrator, and redirect to https for administrator logins). I'm not looking fo...
stackexchange/codereview
I had this happen a couple of times now, and I am not 100% sure of why. I have a normal textbox (code below) <input id="ddBox" type="text" /><span id="ddButton"></span><div id="dropDown"></div> which is inside a floating div (jquery dialog to be precise). in every single browser (including IE), but chrome I can selec...
stackexchange/codereview
I try to read a csv file. my fifth record contans a date: 03/11/2008 This is a piece of my code: [FieldConverter(ConverterKind.Date, "dd/MM/yyyy")] public DateTime datum_5; My code crashs on this: Result[] results= (Result[])engine.ReadFile(@"..\Data\expo.txt"); And with this exception: Line: 1. Column: 41. ...
stackexchange/codereview
I have a custom object (DataPointCollection) with two Integer properties and a Guid property. I want that object to generate a HashCode so that no two objects with the same values in those properties are added to a HashSet. I know I need to override the GetHashCode() method, but how do I do generate a hash code to acco...
stackexchange/codereview
There is a section of code from a learning resource that I am studying. I've come across a good bit of syntax pertaining to arrays and I would be grateful if somebody could explain them to me. 1) AudioBufferList *bufferList; bufferList = (AudioBufferList *) malloc ( ...
stackexchange/codereview
I am developing an application to list out all the remote device file in my android app through bluetooth connectivity.One my devices is paired with the remote device how can i list out all the files from the remote device.And I am trying with OBEX.Is there any easiest way to do that.
stackexchange/codereview
Folks, If I call the LINQ Where extension method, does it take advantage of the sorting in SortedDictionary or does it traverse each KVP and make the comparison? Is there an advantage to using SortedDictionary for the search-by-criteria scenario? Thanks!
stackexchange/codereview
Can someone explain why this does not work ? StringTemplate query = new StringTemplate("hello " + "$if(param==\"val1\")$" + " it works! " + "$endif$ " + "world"); query.setAttribute("param", "val1"); System.out.println("result: ...
stackexchange/codereview
I'm quite new at Rails but can find my way around for the time being. We are working on moving our old legacy PHP app to rails3. There is a Management system which handles transactions/contact/reports. Then a few extra 'modules' such as: Campaigns, Events, etc. Should we create three separate rails apps and connect the...
stackexchange/codereview
i have implemented adwhirl to show adds in my app. and it is working fine in portait mode. when i change the oreintation to landscape mode the add is displaying but width is not fill parent(not showing on the whole screen). it is showing in the middle. i didn't found any solution for the same..pls help me in this case....
stackexchange/codereview
How can we use OCR web service in android application I have use this webservice. How can i pass data using soap base web service and get response back. How can i pass request for nested XML tags ? http://www.ocrwebservice.com/services/OCRWebService.asmx?op=OCRWebServiceRecognize Please help..
stackexchange/codereview
Say I have the following objects: List<Track> Tracks; class Track { public string Artist { get; set; } public string Title { get; set; } public FileInfo SourceFile { get; set;} //... constructor etc } if I set a data gridview's datasource to Tracks (the list), it displays the full path of the Fil...
stackexchange/codereview
I am getting the following error in my joomla site, pleas help PHP Warning: session_start() [function.session-start]: Node no longer exists in D:\Domains\xxxxxxxxxxxxxxxx.com\www\libraries\joomla\session\session.php on line 423 PHP Warning: session_write_close() [function.session-write-close]: Node no longer exists i...
stackexchange/codereview
I was wondering if I have web address of a photo, can I save a copy of it on my website using paperclip? If so how?
stackexchange/codereview
I want to create singleton class that read request name values from the XML configuration file only one time and store values into an memory, but i am confused how to design my XML configuration file which full fill my requirement. my designed XML file: <?xml version="1.0"?> <config> <Reque...
stackexchange/codereview
I have two options: public class SyntaxException extends RuntimeException { private String msg; public SyntaxException(String m) { this.msg = m; } public String getMessage() { return "Invalid syntax: " + this.msg; } } and public class SyntaxException extends RuntimeException { public SyntaxExceptio...
stackexchange/codereview
What library can I use to enable face detection on iPhone? I just need detection, not recognition. Is there something else than OpenCV?
stackexchange/codereview
I'm trying to write to a log file inside a transaction so that the log survives even if the transaction is rolled back. --start code begin tran insert [something] into dbo.logtable [[main code here]] rollback commit -- end code You could say just do the log before the transaction starts but that is not as easy because ...
stackexchange/codereview
I run this on HM NIS Edit which work but when I launch using a EXE. The script is able to launch but my Jar is not functioning 10 out of 10. Did anyone come across the same issue? Could it be (java.exe*32) has to do with it? On W7 64bit: !define S_NAME "dev" Name "${S_NAME}" OutFile "${S_NAME}.exe" #!include FileFunc....
stackexchange/codereview
I have a course catalogue and am trying to include pre-requisits. A course has 0 to n pre-requisits and a course can be the pre-quesit for 0 to n courses. The course class is as follows class Course(models.Model): class Meta: ordering = ['course_code', 'title'] course_id = models.AutoField(primary_key=T...
stackexchange/codereview
I've got an architecture question here that I'm struggling with. Site design would have a user karma/rating/points system quite similar to how it's done here on stackoverflow. Things like comments, new posts, etc would give a user's ratings a boost of some sort. Similarly, things like up-votes on certain content woul...
stackexchange/codereview
I'd like to use NSPredicate to match NSString but I'm having trouble getting started. My goal is to match certain NSStrings that contain the formats of. be--- be-tt -----g If anyone has simple examples that would be greatly appreciated.
stackexchange/codereview
I wrote a program in Android for setting different kinds of images as my background image, but it is not working with svg files. I am not getting any errors, it is not displaying any image and I'm getting a blank screen in my emulator when using svg files. Can any one suggest how to read and display svg files in Androi...
stackexchange/codereview
Is there any programming language that allows Names to include white spaces ? (By names, I intend variables, methods, field, etc.)
stackexchange/codereview
Background on the control I have a control that replaces the paradigm of using a select box of possible actions along with a "do it" button. It's basically a div with an unordered list inside that contains asp.net buttons. My Issue The parent control setup so that I can add child controls to a collection from the aspx ...
stackexchange/codereview
I have a query expression which I am binding to a GridView in Page_Load. The data I want to capture in the SelectedIndexChaned event is in a BoundField defined thus: <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" Visible="False" /> If I set Visible="Tru...
stackexchange/codereview
I need to dispay three divs alternatively inside a while loop. The first div has the class name box-hdr5 and the second div is box-hdr4 Is there any way to do so? Please give me some idea.
stackexchange/codereview
When a user registers, if there is an error, after submitting the page refreshes and you see the error message about why the form wasn't submitted to the DB. But in this form, the values from the orig form are gone, yet they seem to be in memory bec if you click refresh you can resubmit, so the values are there. Why i...
stackexchange/codereview
From the picture above, I would conclude that Java EE 6 architecture is an 3 tier architecture. What I dont understand is what exactly is the client tier? Isn't the UI code suppose to be the client tier. JSF handle the UI of the application, shouldn't JSF be at the client tier? Java EE 6 utilizes 3-tiers architecture...
stackexchange/codereview
I'm curious as to the performance benefits of using hasEventListener() over blindly dispatching an event? For example, I see in the Flex framework code snippets such as the following: // from ArrayList.setItemAt() var hasCollectionListener:Boolean = hasEventListener(CollectionEvent.COLLECTION_CHANGE); if (hasCollection...
stackexchange/codereview
$table = "alabama"; $sql = "SELECT distinct zip FROM {$table} where zip is not null order by zip;"; $sql .= "SELECT distinct city FROM {$table} where city is not null order by city;"; $sql .= "SELECT distinct county FROM {$table} where county is not null order by county;"; $mysqli = new MySQLI('host','user','pass','d...
stackexchange/codereview
Can anyone tell me the way for getting the UDID number of an iPhone programmatically .I found some private framework like IOKit i dont want to use this.
stackexchange/codereview
I am building an application which triggers an alarm via AlarmManager. I would like to be able to call the Alarm via it's own non-activity class, but since I am not extending Activity, I don't appear to have any 'context'. This concept confuses me, and I've read the sdk docs. How would I go about using: alarmTest = (A...
stackexchange/codereview
I need to insert some details into a database and get the auto_incremented ID of the record that has just been inserted into the database in the same function. Firstly i use the controller to tell the model to insert all the data using the following: $this->client->add_new_client(); Then straight after that i need to ...
stackexchange/codereview
I've got a 32 bit and a 64 bit .NET assembly from a supplier. They have the exact same interfaces in them (same classes, same methods, etc.) For some reason, I can never run one type on the other platform. What I've been doing thus far is simply to remove the references and then recompile as appropriate. Is there a sim...
stackexchange/codereview
I am programming a sip application for Android. During a call I must record the microphone input and play the incoming audio. There must be an optional using of speakerphone. It must be Android 1.5+ (1.5, 1.6, 2.0, 2.1, 2.2, future versions) compatible and device portable. OK. So I am using AudioTrack to play incoming ...
stackexchange/codereview
I'm working on having a multi-select list where you can have items selected and then click an "Up" or "Down" button that will allow you to reorder those items within the list. I've got a simple self-contained example: <html> <head> <title>Example</title> <script src="https://www.google.com/jsapi"></scri...
stackexchange/codereview
I am designing a wordpress page and wish to add a html/php widget to the sidebar so that it automatically works out the time of the day and check whether that time the store is open or closed. Can anyone help?
stackexchange/codereview
this is my second question related to ads, i'm really sorry, I've searched the whole web for the last 2 weeks now, didn't find a solution, maybe together we find something :=) With the use of Adwhirl SDK I'm n*ot able* to display ads from any other ad network than AdMob. Google Adsense gets this Error, Millenial Netwo...
stackexchange/codereview
I am writing an activity that speaks to the user and I'd really like to block on TextToSpeech initialization - or else time out. How can I get my thread to wait? I tried: while (! mIsTtsReady || i>limit) try { Thread.sleep(100); i++; ... }; along with: @Override public void OnInit() { mIsTtsReady = true; } // T...
stackexchange/codereview
How does one avoid memory leaks in a relationship like this? @class Node; @interface Node : NSObject { Node *parent; Node *child; id object; } -(id)initWithObject:(id)anObject; -(id)object; -(void)setChild:(Node *)aNode; -(void)setParent:(Node *)aNode; @end @implementation Node -(id)initWithObject:(id)anObj...
stackexchange/codereview
I tried googling this quite a bit, but all the articles are from early 09 where things were much different. Seeing currently hardware and stuff, whats the battery life like when using XMPP on Android as a service? Edit: I am currently using the ASmack library.
stackexchange/codereview
I have a task to develop a rails application following the model for routing. I need to have PageController and Page model. Page urls must be like /contacts, /shipping, /some_page. Also i need have CatalogController and Category model. Categories urls must be like /laptops, /smartphones/android. And it will be Products...
stackexchange/codereview
I see JQuery plug-ins and other javascript library documents set up like this: (function($,window,undefined){ ...plug-in code... }); Why is it necessary to wrap the script in a function, and what args does can that function receive?
stackexchange/codereview
I'm having problems getting the y axis on a horizontal barplot() within the plotting region. See this example, I thought that using ylim and/or yaxp would stop this going off the plotting region, but it doesn't seem to work. I've tried to reproduce the set up I've got: x <- matrix(abs(rnorm(34)), nrow = 34, ncol = 3) ...
stackexchange/codereview
This is what comes up! 2010-11-08 16:37:54.269 Vampire Quiz Final[5492:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x7619c40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.' *** Call stack at first throw: ( 0 Cor...
stackexchange/codereview
I've not done any thread programming before, so i wanted to ask you guys for some design suggestions and also about stuffs i should be aware of about thread programming. Environment: MFC/C++, VS2005 Problem: I have a vendor library running threads to poll data and receive reports from devices. Number of threads can rea...
stackexchange/codereview
why this does't work? and how can I fixed it? <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("button").unbind("click"); $("div").show().fadeOut("s...
stackexchange/codereview
I am not confident my framerate code is correct, and I have not been able to find exact examples of what I am looking for. Essentially I have subclassed java.awt.Component, and inside the paint(Graphics) method I call my calculateFrameRate() function, which is shown below. I don't do any incremental drawing in update(...
stackexchange/codereview
I am having one requirement in MVC 2.0 and asp.net. i am using one partial user control view and using that i want to upload multiple files. but how to post the form without using input button type='submit'. i have to use only button type=button and have to post the form so that i can get uploaded files in the controll...
stackexchange/codereview
I am trying to write VB code that would allow Access to recognize the computer ID of the person opening the database, open a form, and filter to the records assigned to the user. Does anyone know how to accomplish that?
stackexchange/codereview
I'm stumped on this one, or just to late at night to be thinking logically ;-0 I have a database for movies and each movie has a start and end date to them. I have no problem querying the db to get the movie name and start, end dates.. my problem is that the movie can have more than one person associated with it, or th...
stackexchange/codereview