instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
When you are trying to get the left value of an element, what is the difference between elem.style.left or elem.offsetLeft in javascript?
stackexchange/codereview
I need to start external executable in such way that user can interact with program that was just started. For example in OpenSuse Linux there is a package manager - Zypper. You can start zypper in command mode and give commands like install, update, remove, etc. to it. I would like to run it from Java code in a way us...
stackexchange/codereview
I've been working with Haskell's Date.Time modules to parse a date like 12-4-1999 or 1-31-1999. I tried: parseDay :: String -> Day parseDay s = readTime defaultTimeLocale "%m%d%Y" s And I think it wants my months and days to have exactly two digits instead of 1 or 2... What's the proper way to do this? Also, I'd lik...
stackexchange/codereview
Lets say that I have this code: <div id="gameFrame"> <div id="figure"></div> </div> Where the figure div is lets say a picture of a figure. How can i use jQuery in order to move the figure inside the gameFrame with the keyboard keys up down left and right?
stackexchange/codereview
i want to do something like Jar cvf file.jar *.class but i don't see a jar compiler file in my jre6 java install. is the jar something separate i'm suppose to fine and install?
stackexchange/codereview
I would like to upload some files from form to cloud server without redirecting there. So I've found this tutorial with php/ajax but a function that is not present in django is used there - move_uploaded_file. How can I achieve the same with django ? Currently I'm using a part of django-filetransfers, but after submitt...
stackexchange/codereview
When building websites I'm forever chopping up strings to make them display nicely as headings and paragraphs. I use the substr function to chop-off unwanted characters and then add in ellipses. For example: if ( strlen ( $mystring ) > 22 ) { echo substr( $mystring,0,21 ).'...'; } else { echo $mystring; } This works...
stackexchange/codereview
I have inserted some check box values in mysql database using PHP And in the below image i have fetch the values: Now i need the o/p like the below image: The values which i inserted in the database should be checked Hope now its clear. Thanks in advance..
stackexchange/codereview
I am currently trying to integrate a live search functionality in android. I use a customized Autocomplete widget. The widget itself provides me with a threshold to only start a query after a certain amount of characters have been typed in. But what I also want is that a query only starts, say if a user has stopped typ...
stackexchange/codereview
Whilst learning Objective C I've gotten used to how the @property and @synthesize works. //usual way @synthesize world; But recently I've come across practices were @synthesize is like this: //new way @synthesize world=world_; Could someone explain why this technique is used please? Thanks, Mark
stackexchange/codereview
How is it possible, that 2 ellipses with the same Radius where not (visually) with the same Radius? in the image bellow, Black and Red ellipses has the same RadiusX... but look on the picture! <GeometryDrawing Brush="Red"> <GeometryDrawing.Pen> <Pen Brush="Yellow" Thickness="1"/> </GeometryDrawing.Pen>...
stackexchange/codereview
I'm doing a proof of concept thing here and having a bit more trouble than I thought I was going to. Here is what I want to do and how I am currently doing it. I am sending my Sinatra app a json file which contains the simple message below. [ { title: "A greeting!", message: "Hello from the Ch...
stackexchange/codereview
Can you, please, tell me 1) why it is possible to assign a constructor as public for a package-visible class? For example: class TestModifiers { public TestModifiers() { } } This class can't be instantiated everywhere but in the same package. So that isn't it enough to use a package-visible modifier for a co...
stackexchange/codereview
Hi I am trying to install the PETSc package on my Ubuntu 10.04 laptop. I am trying to configure it with the external solver SuperLU. One of the instructions for the options to include while doing configure/make in the PETSc webpage is the following: --with-PACKAGENAME-include=INCLUDEPATH --with-PACKAGENAME-lib=LIBRARYL...
stackexchange/codereview
Hi Is it possible to rotate objects (or just TextBoxes) in Microsoft report? Like Vertical Text or rotating 45 degree?
stackexchange/codereview
I have the classic: WebClient webClient = new WebClient(); webClient.Headers[HttpRequestHeader.ContentType] = "application/xml"; webClient.UploadStringAsync(new Uri(inputMessage.Namespace, UriKind.Absolute), inputMessage.ToXML()); webClient.UploadStringCompleted += new UploadStringCompletedEventHand...
stackexchange/codereview
Just to make sure, that I don't miss something: Can I deploy my ready-to-be-uploaded app store signed version to my own phone again in order to make the final test? Currently I can't, catching "Entitlement error 0xE8008016". I'not appearing those problems with the AdHoc version of the app. Regards
stackexchange/codereview
I am trying to set up an AVD for a 480*854 device. The AVD seems fine but when it opens my app the SurfaceView that I create is opening at 320*480 rather than 480*854. Does anyone have any ideas as to what might be going wrong? cheers
stackexchange/codereview
I am porting some code from C# to C++. I am not sure how do I create a class like the static class in C#. // in C# public static temperatureClass{ private static int offset = 50; private static Context context; public static calculateTemperature(){ //use a; //use context; } public static Context con{ ...
stackexchange/codereview
I am looking for a decent Git library for Java for stand-alone applications. Can anyone recommend any?
stackexchange/codereview
Hello This is a general question.I want to create a simple report just some data of the client and a table with some measurements and a few photos.... As i have no experience with reporting in .NET just a little with Jasper which was confusing at me,i am wondering what is better to use from the available options for C#...
stackexchange/codereview
Is it possible to move to the next vertical tab group in Visual Studio 2008 or 2010 by using the keyboard? There are commands for moving the active window to the next or previous tab group, but I couldn't find one for moving the focus from one tab group to the next. The only workaround that I found is by using DPack's...
stackexchange/codereview
There are 2 ways to get the 3 rotation values (azimuth, pitch, roll). One is registering a listener of a type TYPE_ORIENTATION. It's the easiest way and I get a correct range of values from every rotation as the documentation says: azimuth: [0, 359] pitch: [-180, 180] roll: [-90, 90] The other one, the most precise and...
stackexchange/codereview
i want set some fields, like updateDate, createDate and deleteDate, for each my entities, so i thought to inherit my entities from a @MappedSuperClass that contains this properties. Is this a good pratice? In what way you work for this kind of request? Thanks.
stackexchange/codereview
I have a static initialization block that accesses a class through Spring. How can I ensure that the Spring Container is loaded before the static class? public class A { } public class B { static { ctx.getBean(A.class); // error if container is not ready } }
stackexchange/codereview
i have created live wallpaper in android 2.1.X , now i want to call this code in my activity so that user can set my created live wallpaper through button click just like "Set Wallpaper" button. As my livewallpaper code extends WallpaperService class so that i can't even call as an intent.
stackexchange/codereview
I am new to Android development. I am developing an app that upon receiving an SMS message with a unique string of text, the GPS is enabled and starts tracking the location of the phone. The issue I'm having is with the getSystemService() method. I receive the error "The method getSystemService(String) is undefined for...
stackexchange/codereview
Given: internal void Configure(ButtonEventArgs args, IBroker broker, FunctionEntry entry) { int phase = broker.TradingPhase; if (args.Button == ItemType.SendAutoButton) { if (phase == 1) { entr...
stackexchange/codereview
I've problem with onmouseevent for a table cell. What I'm doing is removing and creating html table cell with the help of jquery. When page loads this event fires perfectly fine. But after removing and inserting table cell again at same position does not fire the onmouseover event. Below is the code what I've done... v...
stackexchange/codereview
i am calling a web service by aspx page and wants my return output as a json format with a specific view like (grid view) in asp.net...so here is any view available in JSON which display my output like grid view..pls give me suggetion as soon as possible....thax salman ansari
stackexchange/codereview
I am working on building a web browser in Java. I have used a parser (JTIDY) to parse the HTML page into a DOM document. I know that rendering means the graphical representation of DOM document. But I don't know what the engineering process is for HTML rendering in Java. In Java there is a JEditorkit to parse and rende...
stackexchange/codereview
I trying to write a job monitor on Listview, I get information from sysjob and sysjobhistory tables in msdb database. How I know when job occur on list view? I don't understand about run_time column. I want to show last job on top line and show time when job occur as shown in picture (i have 2 job Fern and Same) Form...
stackexchange/codereview
I know a fair amount about the current javascript engines. What techniques have arisen in the intervening time? Please provide links to freely available information. edit: To clarify, I'm looking for new techniques that are being implemented or have recently been thought up for improving javascript execution speed.
stackexchange/codereview
For following HTML, I want to parse it and get following result using Nokogiri. event_name = "folk concert 2" event_link = "http://www.douban.com/event/12761580/" event_date = "20th,11,2010" I know doc.xpath('//div[@class="nof clearfix"]') could get each div element, but how should I proceed to get each attrib...
stackexchange/codereview
This is my Code. I want to uplade 3 file into my database first in View I write this : <% using (Html.BeginForm(Actionname, Controller, FormMethod.Post, new {enctype="multipart/form-data"})){%> ..... .... and this is 3 file uplaoding: <input type="file" name="files" id="FileUpload1" /> <input type="file" name="files" i...
stackexchange/codereview
create table student (spnr VARCHAR(5) PRIMARY KEY, sname VARCHAR(10), saddress VARCHAR(10), stel VARCHAR(10) ) create table course (ccode VARCHAR(5) PRIMARY KEY, cname VARCHAR(10), caddress VARCHAR(10), points int ) create table studies (id int PRIMARY KEY, spnr ...
stackexchange/codereview
I have a program working in the Android Emulator. Every now and again I have been creating a signed .apk and exporting it to my HTC Desire to test. It has all been fine. On my latest exported .apk I get the error message 'App not installed' when I try to install the .apk. It runs fine on the emulators. As I have mainly...
stackexchange/codereview
Can you please tell me why window.location.href is not working on firefox? Code: <script> function goToURL() { window.location.href('url'); } </script> What can I use instead of window.location.href as an alternative?
stackexchange/codereview
I'm trying to implement a small ASP.NET MVC site which interacts with another site. In short, sessions are managed between the main site and satellite sites through tokens in the URL. I can specify the url format but I can't remove the requirement that a session token is submitted as part of the URL. I'm trying to work...
stackexchange/codereview
I m new in iPhone development. i have a problem , i m using bluetooth connectivity in my application. it works good for message sending but when i want to send other data from other class using same session the session value does not go in next class. Can any body tell me how can i store the same session for next data ...
stackexchange/codereview
hello and hi everyone, can anyone suggest me how to use device independent pixels(dip),sip and convert px to dip with a sample code..
stackexchange/codereview
in my current scenario i can't us any server controls. there is an input type button when click on this a span should come and act as water marker giving some message when you click on the message any where a run time generated text box should come in place of span. where user can input the value and after entering if...
stackexchange/codereview
Is it possible to display the log messages (which I print using android.util.Log) on screen in an Android application? Is there any other better method to just output lines on the screen? Something like System.out.println?
stackexchange/codereview
I want to bind a dropdownlist to a database. I did the following coding but it isn't working. using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System...
stackexchange/codereview
Using: Django with Python Overall objective: Call a function which processes video conversion (internally makes a curl command to the media server) and should immediately return back to the user. Using message queue would be an overkill for the app. So I had decided to use threads, I have written a class which overwri...
stackexchange/codereview
I have two doctrine entities 'User' and 'Attribute', shown below. I need to construct a query that will retrieve all users and order them by attribute name where attribute type = x. For example, get all users and order them by 'title'. SELECT u FROM User u JOIN u.attributes a ORDER BY a.name {something??} a.type = 'tit...
stackexchange/codereview
According to the GitHub, If the app is running in a version of iOS that supports multitasking, and if the device has the Facebook app of version 3.2.3 or greater installed, the SDK attempts to open the authorization dialog withing the Facebook app. After the user grants or declines the authorization, the Facebook app ...
stackexchange/codereview
i am developing app.its having post message on facebook and twitter.i searched on net and got many example but i confused with twitter. if i am using oath authentication how should i provide login screens for clients.many example what i found just they are using consumer and secret key where i need to pass uname,pword...
stackexchange/codereview
How can we directly call UITableview in view controller classs....
stackexchange/codereview
I cannot for the heck of it find why this is throwing an error! Okay so I have a Struct that contains some objects. I then create a pointer to that struct and set the items one by one. By I keep getting an error. Here's the code: Robot.h: // Name and Animation info std::map<std::string, Ogre::AnimationState*> mAnim...
stackexchange/codereview
I am using a data grid in an ASP.NET page to display a data table. I am not using paging. If I click "update" the page reloads, changing that specific row to update mode. The problem is that I have to scroll back down to the row to enter the data. I want it to automatically jump down to that row. The same thing happe...
stackexchange/codereview
I want to find out how many x86-64 instructions are executed during a given run of a program running on Red Hat Enterprise Linux. I know I can get this information from valgrind but the slowdown is considerable. I also know that we are using Intel Core 2 Quad CPUs (model Q6700) which have hardware performance counte...
stackexchange/codereview
I have the following code For i = 1 To DepRng.Rows.Count For j = 1 To DepRng.Columns.Count DepRng.Cells(i, j) = Application.Sum(KidsRng.Row(i)) //Does not work Next j Next i Although I know is wrong, i have no idea how to get it to store in DepRng.Cells(i, j) the total sum of the whole KidsRng.Row[i...
stackexchange/codereview
i've got a utility .js file that grabs some data via Ajax. Now this utility method doesn't know who will call it. So when the Ajax async completes, it needs to send an object back to the caller. I'm not sure how to do this :( This is the code I have... function someMethod(a, b, c) { // ... stuff ... // Now fir...
stackexchange/codereview
I wanna write a program that should perform some tasks automatically if someone logs onto my server. My questions regarding this are: 1) Is there a last login record that is set right after a user logs in that I can use/monitor for my purpose? If not is there something similar I can use? 2) What's the best way to cons...
stackexchange/codereview
My app on the iPad (physical device) is crashing and I get this: Mon Nov 22 14:08:42 ianvinkipad ReportCrash[521] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/InterfaithExplorer_2010-11-22-140841_ianvinkipad.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0 Where do I go to read this report? It do...
stackexchange/codereview
When I use the UIView animation methods such as UIView beginAnimations to ramp a value over a duration, does it actually ramp the value itself so that if I get the value I see it changing over time, or does it set the value to the final value and then simply visually display it ramping? What I am seeing is that the val...
stackexchange/codereview
I am recieving following error in VS 2010. I have two Silverlight projects. one project only contains styles and other project is my application. I have referenced styles project in my application and user static resources from that project in my whole application, but I keep recieving this error in VS though everythi...
stackexchange/codereview
I am trying to compile a C program using the Intel icl compiler under MINGW/64. The program uses the following code: #include <Userenv.h> HANDLE process; HANLDE token; GetUserProfileDirectory(process, TOKEN_QUERY, &ptoken) I am using the following compile command: $ icl -g -DMINGW32 -DTESTMAIN user.c -o user -UserEnv....
stackexchange/codereview
So, does int random = (int) Math.ceil(Math.random() * 5); return a value of 0,1,2,3,4 rather than 1,2,3,4,5? I have tried to test this, but it never seems to hit 0 or 5 =x
stackexchange/codereview
I want to align data on the UITableViewCell My table displays image. after that price.... space............year.....space.........model.....space. In a single line. In tableviewcell.
stackexchange/codereview
How do you write your own custom converters and specify the conversion factor using javax.measure packages. (e.g. Pint to gallons)
stackexchange/codereview
I am using Ryan Bates' Complex Forms Deep Branch, and trying to replicate that example for a form that has two additional nested levels. SurveyName has many SurveyQuestions, which have many SurveyOptions. # application_helper (identical to deep branch) def remove_child_link(name, f) f.hidden_field(:_destroy) + link...
stackexchange/codereview
I have a C++/CLI library that I would like to use in a Silverlight application. It is supposed to be possible to write code for Silverlight in any .NET language, but so far I've only worked out how to compile C#. Silverlight does not seem to be able to use DLLs compiled for .NET. I'm using Visual Studio 2010 and Silver...
stackexchange/codereview
How do I write a function that adds a method to a class? I have: class A: def method(self): def add_member(name): self.new_method = def name...? add_member("f1") add_member("f2") In order to answer what I'm trying to do. I'm trying to factor out some pyqt slots. I want to be...
stackexchange/codereview
i want to give smaller image on top right corner of larger image which are generated dynamically. I try staticcally by giving largerimage as background image to td like <table> <tr> <td width="220px" style="background-img: url(image url); background-repeat: no-repeat; height: 150px;" valign="top"> ...
stackexchange/codereview
I'm using PartCover 4.0 (from the sourceforge page, latest dev build) with NUnit 2.5.8 on Windows 7 (x64). PartCover runs ok (using the -x86.exe), but it only shows me coverage for various NUnit packages -- not my own source-code. I originally didn't use CorFlags.exe since I didn't get the COM error; I tried it anyways...
stackexchange/codereview
What is the best way to manage property sets to apply to EJB, and easily be able to vary them between machines/environments (e.g. DEV, TEST, PROD)? For example, is there a way to configure your EJB properties on the App Server (which guarantees you can vary them by machine/environment). Specifically: 1) I have a Sin...
stackexchange/codereview
I'd like to add background grid to the center of the plot and then hide the standard gridlines. The corner points of the grid are stored in the pts data frame and I've tried using geom_tile, but it doesn't appear to use the specified points. Thanks in advance for your help. library(ggplot2) pts <- data.frame( ...
stackexchange/codereview
I currently have a listview and a folder full of XML documents. I am using a foreach() loop to go through all the XML files and load data into the listview accordingly. My question is, how do I carry on with the foreach() loop if there is an error within in (example: if one of the XML files is not completely valid, c...
stackexchange/codereview
I would like all of my users to be able to read and write to the datastore very quickly. It seems like MongoDb has blazing reads, but the writes seem like they could be very very slow if the one master db needs to be located very far away from the client. Couchdb seems that it has slow reads, but how about the writes i...
stackexchange/codereview
I want to show vertical scrollbar in <select> tag because there is more option so I need scrollbar.
stackexchange/codereview
I need your help !!!! I want to connect to sql server from a windows service, but it throw following exception : Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. My connection string is declared as follow: <add name="CoreConnectionString" connectionString="Data Source=10.10.2.102;Initial Catalog=DataBase...
stackexchange/codereview
This seems to be a reoccurring problem for me as I seem to gravitate around mobile applications the last few years. I want to authenticate and authorize mobile users in addition to web users. I need to make this seamless enough so that users can ease into having a web account without causing interruption to their data....
stackexchange/codereview
I have a pdf file which needs to be converted to postscript ( using pdf2ps ) and sent to an old ( Lanier 2145 ) printer. This file has a code at the very bottom of one of the pages, which unfortunately is being cut off. After spending a long time mucking about with CUPS trying to get it to scale, we have given up and s...
stackexchange/codereview
We have an add in for VS that currently is launched from the tools menu, the add-in consists of a a UI offering the user a few option buttons, which I now want to convert to a top-level menu that would offer the same functionality. I've read this tutorial, which helped me add a new top-level menu, but couldn't really...
stackexchange/codereview
Is it possible to pass a variable from processingjs to Javascript / jQuery for use in AJAX send to server
stackexchange/codereview
I have this on the top of a page (in MasterPage.master) <asp:Panel ID="panSearch" runat="server"> <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox> <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/images/iconSearch.gif" onclick="btnSearch_Click" /> </asp:Panel> The button keeps ge...
stackexchange/codereview
I've tried using the "grab all of the process IDs enumerated by the desktop" method, however that doesn't work. Is there a way to convert a handle to a window handle? -or- Is there a way to take a process ID and find out all of the child windows spawned by the process? I don't want to use FindWindow due to multiple p...
stackexchange/codereview
I'm in the process of applet development in which I need a simple 16 item colour chooser. Has anyone implemented something simple like this before? Any of the examples I have come across are not the most aesthetically pleasing or user friendly.... As always, help is greatly appreciated... Cheers, Slotishtype
stackexchange/codereview
Typical scenario: DB items are displaied in page http://...?item_id=467 User one day deletes the item Google or a user attempts to access http://...?item_id=467 PHP diggs into DB and sees items does not exist anymore, so now PHP must tell Google/user that item is not existing via a 404 header and page. According to ...
stackexchange/codereview
I am debugging an iPad app which background downloads data from a web service. Fully try/catch'ed. While debugging from Monotouch, after a few minutes the app on the iPad crashes. However Monotouch doesn't catch anything. In Visual Studio there is a "Break on all Errors" option in the debugger. Is there some feature in...
stackexchange/codereview
So many of us would probably start with implementing something in non-parallel way and later need to refactor the code and employ parallelism. Is there any theory or suggestion about how to find hot spot functions or pieces of code for parallelism effectively. For example, I may have the following piece of code in non-...
stackexchange/codereview
There is one page 72 in Springer book "The Future of Software Engineering" A bit confused what was a purpose to include this abstract without actual article/talk and also interested whether it exists in any format for reading ? http://books.google.com.au/books?id=WXXlTTjMRB8C&pg=PA72&lpg=PA72&dq=Design+patterns+past+p...
stackexchange/codereview
I want to do string comparison in Java and MySQL for Utf-8. How to do that I am confused. How to do that. Any suggestions please. Is it normal string comparison or anything special.
stackexchange/codereview
In my application i have three activity. In my third activity if i click home button it comes to the android home screen(application still run in background i noticed by using Log statement). If i relaunch application then it start from first activity. How can i load it from third activity? Anyone can give me your sugg...
stackexchange/codereview
I am trying to familiarize myself with the pycrypto module, but the lack of clear documentation makes things difficult. To start with, I would like to understand signing and verifying data. Could someone please provide an example for how this would be written?
stackexchange/codereview
I can't figure this out - but I'm sure someone out there can... I'm working on a new fluid width set to 100%, with min and max widths set for the content wrapper. The problem arises when the header area isn't set to overflow:hidden - a large horizontal scroll appears, even though the margin is set to auto and there sh...
stackexchange/codereview
I want to listen for continuous changes from CouchDB using jQuery - now this works: http://localhost:5984/testdb/_changes?feed=continuous which means that I get a new line of json every time there is a db update - but how do I read updates off this URL using jQuery? I tried using this but it doesn't work: $.ajax( { ...
stackexchange/codereview
This Interface at _TLB.pas file // *********************************************************************// // Interface: ITMyCOM // Flags: (256) OleAutomation // GUID: {D94769D0-F4AF-41E9-9111-4D8BC2F42D69} // *********************************************************************// ITMyCOM = interface(IUnknown) ['{D9476...
stackexchange/codereview
How can I get svn logs by date? I tried doing svn log -vr {2010-11-14}:{2010-11-15} but it only returns me 1 entry back which is commited on nov 12.
stackexchange/codereview
When I use hibernate eclipse plugin to generate java class from my table, the private field name is the same with my table name. Is there a way for me to make it to be the same with my column name instead? For example: table: User column : name (string) column : homeAddressId (fk to addressTable) The generated class r...
stackexchange/codereview
What are the differences between private cloud and public cloud ? Please define both and giving examples with usage.
stackexchange/codereview
I'm working on a school project in which we would like to analyze the content of webpages. We don't, however, want to deal with things like Nav bars and comments. If we were looking at a specific website we could make a parser to filter that sort of extraneous stuff out specifically for that site, but we are hoping wor...
stackexchange/codereview
I am struggling working with a path containing non English characters (Activestate Perl, Windows XP). How do I open, write, copy, etc. a file located in a path with let say Greek/Russian/French accented characters? Let's say the directory I want to copy my text.txt file to is: C:\Documents and Settings\στα\Desktop use ...
stackexchange/codereview
I just installed WAMP server 2.0i on my laptop which has XP SP3 newly installed a couple of days ago. However, when I try to access phpmyadmin or load the localhost page all I get is a blank page in both cases. The MySQL console works fine. WAMP used to work fine on my previous XP installation, though I am sure the OS ...
stackexchange/codereview
Can I set any sample rate I want? What are the restrictions? How about the hardware sample rate? And once that is set, what is the restriction on the internal sample rates passed between units? I'm guessing that the actual hardware rate may have to be some bit shift of 44.1KHz, and any internal sample rates must be ...
stackexchange/codereview
I am trying to export my development sqlite3 database into my test database. In order to do this I first exported my model in rails console and saved it to a file. > MyModel.all.to_yaml # this was saved to mymodels.yml Now when I run rspec it fails while trying to parse mymodels.yml. The error I get is: Failure/Err...
stackexchange/codereview
Is it possible to "wait" on a boost::condition_variable without having to acquire a mutex lock first? Failing that, can this be done using the pthread lib directly somehow? For simplicity I'd like to avoid going directly to the OS layer (such as futex on linux). But I also don't want the overhead of the mutex call. I'm...
stackexchange/codereview
I am using a fileupload control to display the contents of a text file in a textbox..if i use this <asp:FileUpload ID="txtBoxInput" runat="server" Text="Browse" /> string FilePath = txtBoxInput.PostedFile.FileName; it will get only the file name like bala.txt.i need like this D:\New Folder\bala.txt Instead of fileup...
stackexchange/codereview