instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm writing a Browser Helper Object (BHO) for Internet Explorer in C#!
I want to look for text nodes in the DOM, which requires me to traverse the whole DOM tree if I want to differentiate between text nodes and other types of nodes. This is supposedly time consuming in C#, but should be almost instantanious in C++ (?)... | stackexchange/codereview |
I have wcf client. It uses .NET 3.5.
When I compile the client I get two files:
client.exe and
client.exe.config.
The second file contains configuration for the wcf client.
In my case I need to prevent the user sitting on the computer to see the urls and change some other parameters from the config file.
So the requ... | stackexchange/codereview |
Could you please suggest any available app for sending & managing emails in django?
| stackexchange/codereview |
Hello
Does anybody know of any examples of a Google Web Took (GWT) - based Create Read Update and Delete application.
That is, an application which uses the GWT to manipulate and display the contents of a database.
Thanks
| stackexchange/codereview |
I need to support some legacy code on a server where I need to be on the latest stable PHP version at all times. I can't possibly update the code base every time I upgrade so I'm wondering if there is a way to run this specific site with an older version of PHP than the one installed.
Example: I'm running PHP 5.3.3 and... | stackexchange/codereview |
My website files are located with the folder structure as such:
* Webroot
** mydomain
** sharedimages
In IIS, my website is setup with www.mydomain.com pointing to Webroot->mydomain as it's home directory.
In my site, I need to somehow display images located in the 'sharedimages' folder.
Obviously though, I ... | stackexchange/codereview |
Hello im trying to use random integer range and the values that i get is out ouf the ones that i set.
for example:
sw $a0, 0($s0)
li $a0, 1000
li $a1, 3500
li $v0, 42 #random
So i just want it to be random numbers between 1000-3500 but it gives me any random number.
Can you please help me to understand where my mi... | stackexchange/codereview |
I'm taking an Algorithms class and the latest homework is really stumping me. Essentially, the assignment is to implement a version of merge sort that doesn't allocate as much temporary memory as the implementation in CLRS. I'm supposed to do this by creating only 1 temp array at the beginning, and put all the temp stu... | stackexchange/codereview |
I've got combobox binded to string[].
I haven't got clear combobox items. But I want measure my dropown items.
How can I get width of items in combobox at runtime. I need this to manage width of my combo.
| stackexchange/codereview |
I have a .NET 4 WinForms app that uses the ADO.NET Entity Framework. Some code that was working perfectly has decided to stop working and although I've tried to figure out what changed that could cause this, I am stumped. This code looks perfectly functional to me and WAS working as intended.
Anyone have any ideas? Her... | stackexchange/codereview |
can any one help me in understanding CoreTelephony framework by telling among any one given below
any simple apps example that is using core-telephony framework
i am able to add core-telephony framework but not able to import any header file of it
although they exist in frameworks that i have added
any help will b... | stackexchange/codereview |
I know I can "restart" my rand calls by calling srand with a seed, but surely this would affect future calls to rand by other library methods, including cryptographic methods?
How can I repeat my randomness in certain places and still ensure that the rest of my code isn't affected?
| stackexchange/codereview |
Similarly to this question regarding an earlier Spring version, what are the minimum dependencies required for an application to use Spring 3.0 dependency injection only? The application context will be configured by XML only. Spring depends on a logging framework, so assume I already include these JARs for logging:
... | stackexchange/codereview |
I have a GUI built with Java's Swing. I have a JPanel that holds all of my controls:
JPanel rightSidePanel = new JPanel(new GridBagLayout());
rightSidePanel.add(forwardKinematics, new GridBagConstraints());
This works fine. However, I would like to add a tabbed control. Unfortunately, adding the tabs breaks th... | stackexchange/codereview |
I have time like this in the database
[open_time] => 10:00:00
[close_time] => 23:00:00
I want to convert it into readable form like 10:00am 11:00pm
I tried this:
$open = date("g:s a",$time['open_time']);
$close = date("g:sa",$time['close_time']);
I'm getting the following error:
A no... | stackexchange/codereview |
i am going to start a speech to text app in iphone and i need a start up for this can i have some open source or else to start with.
and i also need to know how to make speech to text more accurate almost upto 80% accuracy the list of helpful libraries and helpful examples are welcome ,
thanx in advance
| stackexchange/codereview |
At the moment, I'm doing stuff like the following, which is getting tedious:
run_once = 0
while 1:
if run_once == 0:
myFunction()
run_once = 1:
I'm guessing there is some more accepted way of handling this stuff?
What I'm looking for is having a function execute once, on demand. For example, at the... | stackexchange/codereview |
I thought I'd give Helios a try, so I grabbed the latest Java EE install from http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliosr. Note, both OSX 32bit and 64bit exhibit the same symptoms.
So from a fresh install I run Helios (it launches fine), then the problem comes when I try running an... | stackexchange/codereview |
Ok, trying to debug another problem I have, I decided to make sure my texture was rendering properly in my fragment shader. But, it doesn't. All I get is a gray color across my whole cylinder. If I comment out "setShaders()" the texture is applied properly in the fixed function pipeline.
All I'm doing in my fragment sh... | stackexchange/codereview |
Has anyone deployed a corporate application in OSGi and found it useful?
I can see the benefits, forced modularity, good dependency definitions etc. But these seem to be mainly build related improvements.
Has anyone found it useful to dynamically replace an existing module? We tend to split our application by process a... | stackexchange/codereview |
I'm obviously missing something here. Same project I've been working on for a number of days. Stepping through it bit by bit, seemed to be working fine. I added in a portion of the main() function to actually create the comparison lists, and suddenly starts throwing out cannot pop from empty list error at me, even thro... | stackexchange/codereview |
I configure ssl on jetty. I am using this code:
import org.mortbay.jetty.security.SslSocketConnector;
.
.
.
SslSocketConnector sslConnector = new SslSocketConnector();
sslConnector.setPort(8054);
sslConnector.setMaxIdleTime(30000);
sslConnector.setKeystore("path to keystore...");
sslConnector.setPassword("blabla");
ss... | stackexchange/codereview |
Below is a very crude start to a thumb template that eventually might look like a respectable popup window. Obviously the user can drag it around from any location therein. Is there any way to make it so it can only be dragged from the top AliceBlue border? Put another way, it is possible to disable dragging from th... | stackexchange/codereview |
What can I do to improve large switches and if-elses speed manually? I will probably need some kind of hash or lookup table.
I'm working with gcc and C code, I doubt that gcc has any inbuilt optimizations for this.
Edit:
My switch code is what every switch looks like, do something based on if a particular int is some v... | stackexchange/codereview |
This question combines two topics I don't fully understand
Reading through a paper about async in F#, I came across the topic of Agents/MailboxProcessors, which can be used to implement reactive state machines. Could the new async/await functionality in C#5 be used to implement something similar in C#, or is there alre... | stackexchange/codereview |
I read an article about the getattr function, but I still can't understand what it's for.
The only thing I understand about getattr() is that getattr(li, "pop") is the same as calling li.pop.
When and how do I use this exactly? The book said something about using it to get a reference to a function whose name isn't kno... | stackexchange/codereview |
I'm developing a small Android database app. Associated with the records in the database is a number of images (the image resolution will probably same as the screen on the device), there could be up to 20 images per record. Where would be the best place to store the images. I'm thinking either in the database itsel... | stackexchange/codereview |
Is the following usage of "this" to refer to an instance variable in the current class acceptable? In PHP this is how you would have to do it, but I noticed in Java you can just call the variable by name directly.
I personally find "this.variable" to be more understandable but I don't want to develop bad coding habits ... | stackexchange/codereview |
Hey guys,
I searched the last 4 hours to solve this issue, I wasn't able to do so, so I finally decided to post the question here.
2 Problems,
first:
Everything added, implemented like described in the manual, testAds work fine (a month ago, also real ads did fine - without a change -at least one, i realized) BUT no re... | stackexchange/codereview |
[myArray enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
[[myTreeNode mutableChildNodes] addObject:[NSTreeNode treeNodeWithRepresentedObject:obj]];
//myTreeNode is an NSTreeNode
}];
Is it ok to create objects from within a block?
| stackexchange/codereview |
I'm new to this, so here goes..
I'm having a problem with displaying images in uitableview, that are downloaded from a mysql database. Here's what I'm doing:
converting images using UIImagePNGRepresentation.
uploading to MYSQL database via webservice.
So far so good..
The images are downloaded from MYSQL using JSON.
NS... | stackexchange/codereview |
Hello guys
I have a question is there a limited number of ajax requests per page because i created this chat program with several ajax requests (with jquery)but it is causing a problem of slowness that every time i try to write a message a number of letters are missing.
Could this a problem of the requests, the functio... | stackexchange/codereview |
What is a quick way to remove conflict markers from source code?
I have just merged some changes, and now I have a lot of files in conflict.
I started to manually remove them. However, this would take too much of my time.
Is there a way git can automate this?
I just want to keep all HEAD's and discard all the rest.
<<... | stackexchange/codereview |
I need to make a number validation for specified string. The problem is, the string could be a large number, larger than any numeric type in C# can represent, so I can't use TryParse functions, because they will give only information about whether they can convert to those types.
It should take into account -/+, separa... | stackexchange/codereview |
I've looked for this but no luck so far. I have two tables in mysql, they are configured as parent-child. The parent table has a field of type auto_increment, and the child has a field that references the autoincrement column in the parent. When I do inserts into the parent table everything goes fine. But when I do ins... | stackexchange/codereview |
I'm trying to stream a AAC+ shoutcast URL like this one http://live7.avf.ch:8000/ipmusicaacplus32 with flash AS3 but it won't work. If I put a .m4a file instead of the streaming URL it works.
Any idea why the shoutcast URL doesn't work?
var connect_nc:NetConnection = new NetConnection();
connect_nc.connect(null);
var s... | stackexchange/codereview |
I have what amounts to a menu page in my Silverlight application. It has some HyperlinkButtons in a StackPanel. The hyperlinks are mapped to other page Uris in the app using a navigation frame with a UriMapper. It all appears within the LayoutRoot Grid of the menu page. I'd rather have the UriMapping be available t... | stackexchange/codereview |
I'm writing my first rails app & want to get into some good habits from the start. The table in question is to be to hold employee data, one of the fields being the manager's ID. To reflect the hierarchical structure, I'm thinking of using acts_as_tree, so the parent_id would be the manager's id field (right?). If w... | stackexchange/codereview |
The error is shown at select when i write next LINQ query:
DataTable dtbl = //...
int count = (from p in dtbl select p.RecordID).Max();
please help me out.
| stackexchange/codereview |
This seems like a huge secret among programmers, nobody wants to share their codes for this. Why?
I can't find a working FPS limiter that could limit FPS at least to 60 without using v-sync.
And I want, of course, do it the right way. So i haven't made own yet, because they all say it took them a year to learn all the ... | stackexchange/codereview |
I'm currently making a IRC bot in Java (I know, there are frameworks out there) and I'm trying to have it connect to multiple servers. The problem I'm having with this is not the connecting part, I'm just running my Connect class in x amount of threads. Each thread will connect the bot to the server/port specified. Now... | stackexchange/codereview |
I am having a very strange problem, when I use CSS :hover in a td in a static HTML file, it works fine (see the navigation bar on http://www.nutricioncelular.es/REGISTRATE.html)
When I use it in a CodeIgniter view however, (code is the same, see http://www.nutricioncelular.es/index.php) the red color on td background d... | stackexchange/codereview |
Anyone know how to get a database total filesize for sqlite? Alternatively if its only possible to get a table size I'd like to know how to get multiple tables sizes in query if possible.
| stackexchange/codereview |
i have a problem with a json response of an HttpPost , the resposnse contains character like & hellip; and this cause to generate an exception while creating the jsonobject or a jsonarray.
Anyone knows how decode it? i have to add an header in the request?
thanks a lot.
edit:
i already used log cat and this is the exce... | stackexchange/codereview |
I'm currently working on a new site. I'm just a few pages deep and they all use <img>s. I was thinking about it and decided to look into using a sprite sheet for all of the button images and such and then just using CSS to render the appropriate images. I wanted to see what everyone thought about this. Is it worth the ... | stackexchange/codereview |
I have the following C# code and I have no idea why it's not working (I'm getting a NullReferenceException error). If I define Recipe as new List() everything starts working OK.
foreach (XElement element in document.Descendants("vegetables"))
{
VegetablesList = (
from vegetables in e... | stackexchange/codereview |
I want to return JSON from a PHP script.
Do I just echo the result? Do I have to set the Content-Type header?
| stackexchange/codereview |
with other IDE, you can pass parameter to the program via the IDE
(it save times instead of typing hello.c parameter1 parameter2 in the shell)
Is there any way to pass parameters to the program trhough the Xcode IDE instead of just clicking on "RUN" then "CONSOLE" (which provide no arguments to the program)
Thanks
| stackexchange/codereview |
this is my register method on controller to register a new user.
function register() {
$config_rules = array(
array(
'field' => 'txtEmail',
'label' => 'Email',
'rules' => 'required|valid_email'
),
array(
'field' => ... | stackexchange/codereview |
$mw->Checkbutton(-text => "FAU_GEN1.1 ", -command => sub{faugen1=1} )->pack;
This command creates a check button at the centre. How do I shift it to a certain position ?
| stackexchange/codereview |
I've got this problems n till now i could not find the answer.
I create an custom cart application, and the problem occur when I'm trying to solve the final page. This cart model like a wizard, it means there are pages to be passed before getting to the last (Cart) page.
The problem here is, every value which is checke... | stackexchange/codereview |
im having issue with getting position of an element. there are 4divs with position relative. but and float is left. when im trying to get the left position on an element it returns null. in jquery it returns 0. can some one help me please.
Thanks,
Dakshina.
| stackexchange/codereview |
We've currently got an issue where we're receiving a lot of bounced e-mails (from an auto generated e-mail) back from people where a specified e-mail address is not valid (failure notice). I need to identify certain messages in the mailbox and respond automatically to them - as a newbie to Powershell I'm struggling a ... | stackexchange/codereview |
HTTP Post may have multiple params such as:
http://example.com/controller/ (while params=({'country':'US'},{'city':'NYC'})
I am developing a web spider with Python, I face a problem how to track difference with same url with different params. Now I can load the content, but I have no idea how to store the post params i... | stackexchange/codereview |
After answering Zend_Cache: After loading cached data, character encoding seems messed up
I use it to change the PHP's internal encoding , its originally ISO-8859-1,
so I need to change the encoding of every non English input value, but using it I force PHP to convert every value to UTF-8, as you might see in the quest... | stackexchange/codereview |
As I know, the tracing GC can't avoid thread blocking during complete GC.
I had used XNA+C#, and GC time were impossible to remove. So I switched to lower level language C, but I realized I need scripting language. I'm considering Lua, but I'm worrying about Lua's GC mechanism. Lua is using incremental tracing GC, and ... | stackexchange/codereview |
Possible Duplicate:
How to remove nested parentheses in LISP
This is my second quick-and-silly question about LISP, but I am kind of stuck. I need to access all the nodes in a list with several levels. I need something like:
>> (get-symbols '(A (B (C D) E )))
(A B C D E)
I don't care about the order. How would you ... | stackexchange/codereview |
I'm using SVG together with jQuery in my Mvc Application. I draw a series of rectangles on my page and what I would like to do is attach a click or mouseover event for each rectangle, for say, popup an alert box.
I've tried something like this, so far:
$("rect[id='Y6']").attr('onclick', function() { alert("Hello!") });... | stackexchange/codereview |
How can I test that resource (file based cache for caching output of a webapp in Perl) behaves sanely under concurrent access to said shared resource?
I wrote a simple file-based cache, written in Perl, which uses locking to serialize write access, i.e. to have only one process that (re)generates cache entry. This c... | stackexchange/codereview |
I need an EditText with a fixed Suffix. I'm using a TextWatcher to catch the onTextChanged Event, but if I change the Text again by adding my suffix it causes a stackoverflow exception caused by an infinite recursion.
msgtextview.addTextChangedListener(new TextWatcher() {
public void afterTextChanged(Editable... | stackexchange/codereview |
I am parsing this feed http://www.sixapart.com/labs/update/developers/ with nokogiri and then running some regex on the contents of some tags. The content is UTF-8 mostly, but is occasionally corrupt. However, for my case I don't really care and just need to pass the right parts of the content through, so I'm happy t... | stackexchange/codereview |
I working on a sample problem of over-ridding hashCode and equals method but getting an error: "No enclosing instance of type CustomHashCodeExample is accessible. Must qualify the allocation with an enclosing instance of type CustomHashCodeExample (e.g. x.new A() where x is an instance of CustomHashCodeExample)."
I wro... | stackexchange/codereview |
Hi I am getting this error in my SSIS packages on alternate days
An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available.The AcquireConnection method call to the connection manager "" failed with error code 0xC0202009.
Symbolic Name: DTS_E_OLEDBERROR The hexadecimal value for this error numb... | stackexchange/codereview |
is it possible at all to get the position indexes after and before the selected word to store at new array?
| stackexchange/codereview |
Application deals with strings that represent decimals that come from different cultures.
For example "1.1 and "1,1" is the same value.
I played with Decimal.TryParse flags combinations but couldn't achieve the result I want. "1,1" became "11" or "0" after all.
Is it possible to convert such strings to decimal in on... | stackexchange/codereview |
I am writing some data to XML file...but when I open it all the values are in a single line...how can write it in readable format?ie each node in new line and indentation?
FileStream fs = new FileStream("myfile.xml", FileMode.Create);
XmlWriter w = XmlWriter.Create(fs);
w.WriteStartDocument();
w.WriteStartElement("my... | stackexchange/codereview |
I would like to do a series of get requests, and then preform some action after all of the get requests have finished. Below is a starting point on the code I have, but since the get request is asynchronous, the "do some action after all getJSON requests finish" executes right away.
What is the proper/best way of going... | stackexchange/codereview |
I came across JGo Java library.
I need something similar but for free and open source. Does anyone has any suggestions ?
[Any non-Microsoft programming language libraries too will do]
| stackexchange/codereview |
I'm starting a new LOB application with Silverlight v4 and WCF Ria Services. The idea is to use Prism v4, that includes MVVM, MEF and Unity.
Can I use all together these "technologies": which scenario of architecture can be imagined?
Makes sense to write a skeleton to build such kind of application that can be reused? ... | stackexchange/codereview |
I was able to attach a filter to the GraphTable (which is extended from the JTable). I was trying out a sample filter which filters all the rows starting with the letter "A".
final GraphTable<Composite, ?> leftTable =
(GraphTable<Composite, ?>) newMapPanel.getLeft();
final RowSorter<TableModel> sorte... | stackexchange/codereview |
Can any one please tell me how can I display a count of the processes on my system in a form like count process_name
| stackexchange/codereview |
I'm creating a system where users can write their current status and other users can comment.
If anyone has commented on a user's status the user will get notified, but I'm having an issue coding this behavior.
My desired behavior is this: if i have one comment on my status (by one user, of course):
echo "user has comm... | stackexchange/codereview |
How can Seam be configured to use different security-constraints for different web-resource-collections?
In web.xml I included a sections like
<security-constraint>
<web-resource-collection>
<web-resource-name>AdminPages</web-resource-name>
<url-pattern>/secure/*</url-pattern>
</web-resource-co... | stackexchange/codereview |
I've never messed with AppleScript so this is only a concept to me. Can this work?
Bungie, the game designer, is hosting a ton of PNGs for Halo Reach in systematically named files and directories. IE:
http://www.bungie.net/images/reachstats/commendations/onyx/onyx_large_precision_multiplayer.png
Change two instances o... | stackexchange/codereview |
I have a VB2005 winforms application that will loads city data from my database table. This is to ensure that the user enters the correct city spelling, in order to receive an accurate quote. Currently, there are about 150K cities that are being loaded to the dropdown listbox on page load. It takes about 30-40 seconds ... | stackexchange/codereview |
I am trying to pass a SqlParameter to a SqlDataSource.
The SqlDataSource has a condition ...Where A.PERS_LNAME = @PERS_LNAME
Now coming to configuring SqlDataSource, I click on 'Configure Data Source' and reach till the 'Define Parameters' step.
I selected 'Parameter Source' = Control, but I don't see the <asp:Table>... | stackexchange/codereview |
I've got a model that uploads both images and pdfs to Amazon S3 - the images work, the pdfs don't.
This is what my model looks like:
validates_attachment_content_type :photo, :content_type => ['image/jpeg', 'image/png', 'image/gif']
has_attached_file :pdf,
:storage => :s3,
:s3_credentials => "#{::Rails.root.to_... | stackexchange/codereview |
I've tried to debug sample ASP.NET and ASP.NET MVC applications in MonoDevelop 2.4 (on Mono 2.8 on Windows 7) but breakpoints doesn't work.
If debugging MVC Application MonoDevelop prints the following into the output:
Mono.Debugger.Soft.VMDisconnectedException: An exception of type "Mono.Debugger.Soft.VMDisconnectedEx... | stackexchange/codereview |
I need to deliever an SSRS report via subscription to a SharePoint document library. Setting it up in integrated mode is not an option.
I have tried to use WebDAV interface to SharePoint, but for some unknown reason, I'm getting an access denied. I attempted to run the SSRS Service as a network user which has access ... | stackexchange/codereview |
Say I get {1,2} from function f(a,b) (it doesnt matter what f is/does), and I want to store it into int s[2]. How would I do it? It seems that I can't just do int s[2] = f(a,b), and I can't separate the output of f, since there is no variable to get the values from. f(a,b)[0] does not work.
| stackexchange/codereview |
I have a csv file with addresses that include ',', empty space, numbers. I have two other files with city and zip codes. I want to read the address file and extract the city name and zip codes. As you will see below the addresses have no easy pattern and is randomly sprinkled with ',' spaces etc.Here is an example.
A... | stackexchange/codereview |
Please note that this question is about CGLayer (which you typically use to draw offscreen), it is not about CALayer.
In iOS, what's the correct code to save a CGLayer as a PNG file? Thanks!
Again, that's CGLayer, not CALayer.
Note that you CAN NOT use UIGraphicsGetImageFromCurrentImageContext.
(From the documentation,... | stackexchange/codereview |
Is it possible to pass flashvars to standalone flash player via the commandline? Among other reasons, I want to run some unit tests from the command line.
I have done some Google searches, the question has been asked before but no answer that I can find.
| stackexchange/codereview |
I understand if .NET rounds 2.5 to 2 using banker's rounding. But, how this could be:
decimal point;
point =51 * 70 / 100;
Math.Round(point,0, MidPointRounding.AwayFromZero);
rounds to 35?
How can I make all .5's round to upper integer even if it's odd?
| stackexchange/codereview |
I'm looking for a PropertyGrid-like control for Adobe Flex, or perhaps the easiest way to create one. The main two things it should do in addition to a normal property grid are displaying categories and having different kind of editor controls to edit the data in one column.
So basically I'm looking for a control to ed... | stackexchange/codereview |
what is the difference between prefetch distance and degree of prefetching?
| stackexchange/codereview |
how can i access elements(like lblMessage) of master page in a page that use this masterpage? that mean i want to see elemens of masterpage in intellisense of my page.
| stackexchange/codereview |
I spend a large amount of my time writing code dealing with images. I would like to pick up the photoshop SDK so I can write photoshop plugins to sell, but I don't own photoshop or photoshop elements. Is photoshop elements sufficient to buy in order to write photoshop plugins, and if so, how recent a version do I need?... | stackexchange/codereview |
Fogbugz has a very nice implementation of keyboard shortcuts.
You hit CTRL+; and the next key you hit will correspond to a user interface element on the current page.
This neatly avoids conflicting with existing browser keyboard shortcuts (as would be the case it you simply tried to add CTRL+A, CTRL+B.. style shortcuts... | stackexchange/codereview |
I want to copy one file from system1 to system2. both these system are in the same network. the file is present in a shared folder in system1. i have a username and password to access that location. how can i write a javacode to perform this?
| stackexchange/codereview |
my goal is to select items from a table and append those items into another table located on a remote database on the same server. All columns in both tables match up and are identical. In this case,
I have the tsql:
INSERT INTO db1.dbo.tblitems
SELECT *
FROM db2.dbo.tblitems i2
WHERE i2 = 'impor... | stackexchange/codereview |
I'm performing array calculations that are taking a long time to complete. I'd like to optimize my formulas some more. All of the formulas are of the same nature - they perform some high-level function (Average, Slope, Min, Max) across a column of values. However, not all cells in a column are included in the array.... | stackexchange/codereview |
My app has a feature like the BlackBerry Stopwatch application:
A label displaying the time, updated every 100 milliseconds.
I've used a separate thread for a Timer which schedules a TimerTask to update the label.
Everything works fine, but I've noticed the the stopwatch in my app runs a little bit slower than the bu... | stackexchange/codereview |
At the risk of sounding like a first-time programmer, I am asking the all-too-ubiquitous question regarding the "Null Pointer" monster. Here is a code segment:
public class pixel
{
private String type = "empty";
private void Type(String t){type = t;}
private String Type(){if(type!=null)return type; else r... | stackexchange/codereview |
i would like to use multiple filter options for all columns with using select form object.
When a columns filter selected, other select object options may filled to this selection.
Clearly, i want to filter jqrid columns as same excel filter feature.
I use php for server side.
Thank your very much for your help and su... | stackexchange/codereview |
Assembly info: Using Visual Studio 2010 to write inline assembly embedded into C
Hello,
I am trying to write into an array of chars in C and trying to mimic the action of this C code:
resNum[posNum3] = currNum3 + '0';
currently this is what i have:
mov ebx, posNum3;
mov resNum[ebx], edx; //edx is currNum3
add resNum... | stackexchange/codereview |
I have a plan to develop a publically accessible interface that will allow users to push git repositories to a server and have the server compile the latex sources in the repository and return the generated file(s). What I am wondering are what security issues I might need to be aware of?
The plan so far is:
Use a se... | stackexchange/codereview |
i am trying to replicate this jcrop demo. Everything works fine except, my original pictures are very large so, as per the manual, i am resizing them on my page like this:
jQuery('#cropbox').Jcrop({
onChange: showPreview,
onSelect: showPreview,
bgColor: 'white',
aspectR... | stackexchange/codereview |
I have created non-binary tree in order to load xml data in it and be used later for dialogue system.I want to implement the dialogue systems like in fallout where every answer can contain 4 different nodes with another answers.So far i created xml with the sentences
<Dialogue>
<Node>Hello,what do you want?</Node>
<Lea... | stackexchange/codereview |
objective c question, I have an pointer NSObject *abc;
I haven't alloc and init it in the init method.
So, do I need to do this in the method?
-(void)someThingElse{
if(abc != nil){
[abc release];
abc = nil;
}
abc = [[NSObject alloc] init];
}
Is my flow right? thank you.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.