instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Why does the date 2010-10-11 24:00:00 give me a MySQL warning? The data is then not written to the database. Warning: #1264 Out of range value adjusted for column 'date' at row 1
stackexchange/codereview
I'm currently busy making a Python ORM which gets all of its information from a RDBMS via introspection (I would go with XRecord if I was happy with it in other respects) — meaning, the end-user only tells which tables/views to look at, and the ORM does everything else automatically (if it makes you actually write some...
stackexchange/codereview
I have an design idea about the appearence of a small program , which is basically a windows form with a combo and one button.What i would like to do is the following.When i click on the .exe of the program to start it , i would like to have an non-standart start up of the window.To be more specific i will give you an ...
stackexchange/codereview
For some sort of reason, which I can't seem to spot, this fails and I get a #Name? error. When I tried to do this, I use pretty much the same code in another place in my form; the only difference is the "cbo" and the names of my txt and alike. Private Sub cboVarenummer_AfterUpdate() Dim LSQLVareNavn As String L...
stackexchange/codereview
In GWT apparently you have to use some Flash-component to alter the clipboard. Since I don't want to use Flash, but I do want to copy and paste text from my application, I would like to set text selected if someone clicks on it. The only thing the user has to do is to type Ctrl-C/Ctrl-V to copy and paste (in Windows). ...
stackexchange/codereview
I record a history of all changes to some entities and am about to implement a mechanism similar to Envers to take care of this automatically. My question is whether to use Hibernate interceptors or their event system? It seems like interceptors is a little simpler and does all I need. And Hibernate's own documentati...
stackexchange/codereview
i have a problem with the method "[NSStrng stringWithContentOfURL:url]"; all things worked so fine until i change my url from a web address to an ip address with which i got an empty string. Did you have a solution or an idea? Thks
stackexchange/codereview
I've started to play around with some 3d modelers a while ago. Now I'm curious: How can I bring such an 3D model to the iPhone or iPad, so that I can see it on screen and maybe even rotate it with gestures? 1) What's the best file format for the 3D models? 2) How would I load a particular 3D model file into openGL ES a...
stackexchange/codereview
I have a subclass of NSObject, it is a singleton which loads a list of images into memory, either from hard drive or downloads them from the internet. I want to release the images stored in memory if the app recieves a low memory message, like in a UIViewController. (it then gets the images from hard drive when it next...
stackexchange/codereview
My Java web application submits an AJAX request that returns JSON such: {'value': 'aériennes'} When 'aériennes' is displayed in the webpage, it appears as 'a�riennes', so I guess there's some kind of character encoding problem. The AJAX response headers include Content-Type application/json which doesn't appear to...
stackexchange/codereview
...when a job is still being executed when its next execution time occurs? For example, if I have a job that occurs every 30 seconds, and after the 30 seconds it is still operating, would the next instance come into play or would it wait?
stackexchange/codereview
So... I will have a project which will be tested on Win 7 and some Linux server. It will be a web service that will use HSQLDB, Hibernate, Spring, Blaze DS and Flash (Flex RIA) as front end. I need to implement into it some image filtering\editing functionality which will be implemented in cross-platform C++ code (It ...
stackexchange/codereview
I have a blog-style app that allows users to tag each post with topics. I keep this data in three separate tables: posts (for the actual blog posts), topics (for the various tags), and posts_topics (a table that stores the relationships between the two). In order to keep the MVC structure (I'm using Codeigniter) as cl...
stackexchange/codereview
Hey there, I can't figure out how to make Jython realize that the pixel is either (0,0,0) or (255,255,255). Basically I'm just trying to convert all white pixels to black and vice versa. Here's what i have sofar :S def changeBlackWhite(picture): for x in range(getWidth(picture)): for y in range(getHeight(pi...
stackexchange/codereview
I'm working with a legacy application with surprise surprise, next to no useful documentation on naming convensions or over all data structure. There are similarly named tables in the database with one of them ending in HX. Does this hold any significance in anyones database experience? The data seems to be replicated ...
stackexchange/codereview
What is the problem? It says me that Invalid block tag: 'endfor'. {%else%} <ol id="sortable" name="plst{{first_list.pk}}"> {% for item in playlist %} <li id="item{{item.pk}}" media="{{item.media.pk}}" class="holderPlace" title="{{item.media.name}}"><span> {{item.media.name|custom_slice:30}} </span> {%if...
stackexchange/codereview
Hey there! now first of all some might want to shout that there are hundreds of topics on this - and its true - but not for my special case...so please help me :) I'll place the example code first so you get your own view of it before you read my explanation: class cls1 { cls2.listadd("bla"); } class cls2 { pu...
stackexchange/codereview
I consider myself an experienced programmer and understand the basic concept of dependency injection. On the other hand, most of my experience is in writing relatively low-level, one-man number crunching code. I have no experience whatsoever working on large enterprise projects. Given this background, I can't for the...
stackexchange/codereview
This should be really simple. How do I apply a ControlTemplate to a Thumb in XAML? <UserControl.Resources> <ControlTemplate x:Key="temp"> <Ellipse Width="60" Height="30" Fill="Black"/> </ControlTemplate> </UserControl.Resources> <Grid x:Name="LayoutRoot" Background="White"> <TextBlock>Not Dragged</...
stackexchange/codereview
I have a xml file like this one: <root> <image size = "small">www.linktosmallimage.jpg</image> <image size = "large">www.linktolargeimage.jpg</image> </root> Im extracting the first link in this way: foreach (XmlElement x in xmlSource.SelectNodes("/root")) { string s = x.SelectSingleNode("imag...
stackexchange/codereview
Why is this code resulting in a compiler error? #include <iostream> #include <algorithm> using namespace std; class X { public: void Print(int x) { cout << x << endl; } }; int main() { X x; mem_fun_ref<void, X, int>(&X::Print) p; }; Error main.cpp:18: error: expected ...
stackexchange/codereview
I am getting difficulty debugging my custom IIS module written in C++, using VS 2010. The problem is that IIS worker process (w3wp.exe) starts too quickly and there is no way to catch it at the beginning in VS "attach to process" dialog. Is there a good skill to do this? Thanks.
stackexchange/codereview
In Software Architecture - Foundations, Theory and Practice, I can find definitions for both. The problem is that I don't get what each one of them means in plain English: Architectural Pattern An Architectural Pattern is a named collection of architectural design decisions that are applicable to a recurring design pr...
stackexchange/codereview
I have one mysql table with results assigned a category id, and a seperate table that lists all of the categories by name with their respective id's. All of the results are grouped by their id's and the id is displayed as the heading. How do I display the id as its respective name from the other database? Here is the ...
stackexchange/codereview
I'm utilizing WMI on a remote machine using .NET's ManagementObject and similar classes. Everything works great. But I have a concern about my app opening too many unsecapp connections every time form starts. Connections are establish and not closed for a long time. What this app approximately does is subscribes to s...
stackexchange/codereview
I'm developing some (wordpress) plugins and I'm planning to have a license fee for whoever want's to use it. Therefor I need a way to make sure that this plugin is not uploaded to a server where anyone can download it and use it for free. So I was thinking of using an API key. Valid API key = user can use the plugin. I...
stackexchange/codereview
I have created a Lua table in C, but I'm not sure how to push that table onto the top of a stack so I can pass it to a Lua function. Does anyone know how to do this? This is my current code: lua_createtable(state, libraries.size(), 0); int table_index = lua_gettop(state); for (int i = 0; i < libraries.size(); i++) { ...
stackexchange/codereview
When using Alt-Insert to insert a dependency into the POM, the Artifact Search is always completely blank regardless of what I search for. I tried to add repo1 to Settings->Maven->Repository Services, it says "no repository found." I find that hard to believe. I've also tried to "update" my local repository but that ...
stackexchange/codereview
When I was reading about DLLs on StackOverflow I came across the term "Native DLLs" a lot of times. I found questions regarding them but I couldn't understand what a "Native DLL" actually is. What is a native DLL?
stackexchange/codereview
I would like to manipulate the content of a textfield/wygwam-field in expression-engine. For example, when someone uploads an mp3-file with the file-uploading-tool, I would like to convert the link into a flash-embed that calls an mp3-flashplayer. Another example is that whenever someone posts a link to a vimeo-video I...
stackexchange/codereview
I've seen some neat splash screens like VS 2010, Adobe products, etc. I know in VS.NET you can set a transparency color, etc. but I have never been able to make one look nice that didn't have some type of jagged edges or color issues on the edges. For example, I could create a black circle with magenta as the transpa...
stackexchange/codereview
I wrote this today and I'm ashamed. What do I need to do to make this chaotic stuff more accurate and readable amongst others? switch ((RequestReportsCalculatingStoredProcedures.RequestReportStoredProcedureType)Enum.Parse(typeof(RequestReportsCalculatingStoredProcedures.RequestReportStoredProcedureType), ihdType.Value)...
stackexchange/codereview
I have a web application with several different top-level directories, and some of the pages with different directories have the same name - for example: foo/ search.aspx list.aspx bar/ search.aspx list.aspx baz/ search.aspx list.aspx etc. The problem is that the class names for the code-behind files con...
stackexchange/codereview
So here it is that BlazeDS will totally play on GAE BlazeDS Version: 3.2.0.3978 Status: COMPATIBLE To workaround an EMFException thrown by flex.messaging.io.amf.AbstractAmfInput, follow Martin Zoldano's workarounds at http://martinzoldano.blogspot.com/2009/04/appengine-adobe-blazeds-fix.html. You will need...
stackexchange/codereview
Below are the first five rows of the imported data in R: data[1:5,] user event_date day_of_week 1 00002781A2ADA816CDB0D138146BD63323CCDAB2 2010-09-04 Saturday 2 00002D2354C7080C0868CB0E18C46157CA9F0FD4 2010-09-04 Saturday 3 00002D2354C7080C0868CB0E18C46157CA9F0FD4 2010-09-07 Tuesday 4 00002D2354C7080C0868...
stackexchange/codereview
Iam adding objects to NSMutableArray and displaying the value in UITableView. Only the first object of the NSMutableArray is getting displayed.Where am i going wrong? My Code snippet: -(IBAction) segmentedControlIndexChanged:(id)sender { int selectedSegment = ((UISegmentedControl*) sender).selectedSegmentIndex; switc...
stackexchange/codereview
How does one sort a list in Erlang depending on a tag for each element? If I have a process which loops and receives a single value from multiple processes and then I want to arrange the list according to the tag(which is an index) as an element is received. How does one do this without using BIFs? I currently do the f...
stackexchange/codereview
I have a form that lets me create new blog posts and I'd like to be able to create new categories from the same form. I have a habtm relationship between posts and categories, which is why I'm having trouble with this. I have the following 2 models: class Post < ActiveRecord::Base has_and_belongs_to_many :categories ...
stackexchange/codereview
I need to store the input from a user into an array of strings. #include <stdlib.h> #include <stdio.h> #include <string.h> char *history[10] = {0}; int main (void) { char input[256]; input = "input"; strcpy(history[0], input); return (EXIT_SUCCESS); } Running it on the terminal I get a Segmentat...
stackexchange/codereview
I'm trying to implement Jcrop with a list of images. At the moment, when you click the link to crop, a lightbox loads an ajax call with the image and all the cropping tools and everything is working great. I've tested across several images in the db and all looks good. however, once I crop the image and the lightbox cl...
stackexchange/codereview
i have a simple Java off-line application that it has to show and control a movie .... What is the package and classes that contain the methods that do such tasks?! i expect the existence like the following methods : 1) void PlayMovie(); // to play the movie... 2) void PlayMovie(int Time); // to play the movie starting...
stackexchange/codereview
My Activity locks its orientation by using setRequestedOrientation(). However, once this is set to something other than ActivityInfo.SCREEN_ORIENTATION_SENSOR, onConfigurationChange() is no longer called (since it is not changing anymore) when the user rotates their device. Is there a way, after the orientation is set...
stackexchange/codereview
This is weird. http://elektrikhost.com On page load, or the index page the search bar shrinks. Click about-us and it grows back. How can I fix this?
stackexchange/codereview
I have a DataTemplate that needs to set the IsSelected property on an ItemsControl's container (such as TreeViewItem, ListViewItem or ComboBoxItem). However, it doesn't know the type of the container until it's passed in to it. Since IsSelected isn't part of a common base class or interface, nor is it a common depend...
stackexchange/codereview
I'm trying to pass my app's EventBus to a widget declared in a UiBinder via its constructor. I'm using the @UiConstructor annotation to mark a constructor that accepts the EventBus, but I don't know how to actually reference the object from my ui.xml code. That is, I need something like WidgetThatNeedsAnEventBus.java ...
stackexchange/codereview
I am using MsBuild 4.0 in code, like so: var globalProperties = new Dictionary<string, string>(); var buildRequest = new BuildRequestData(solutionPathAbsolute, globalProperties, null, new string[] { "Build" }, null); var pc = new ProjectCollection(); var result = BuildManager.DefaultBuildManager.Build(new BuildPar...
stackexchange/codereview
I am currently planning a project in which revision safety of the database data is important. This means: we want to be able to proof that the data in the database was not tempered with since it was imported - no user changed the value, no db admin logged into the database and changed it. What is the best way to achiev...
stackexchange/codereview
I have a nested form that is based on the following model -- A lesson has many questions, each question has many answers, and answers belong to users. I am developing a nested form, so that a new user can review the questions and post answers. If a user has entered answers in the past, I want those to show up; otherwi...
stackexchange/codereview
I would like to create unique value generator that would work like this: I have 8 places for chars and it would create values like this: 00000001 . 0000000z . 00000010 . 0000001z etc. so it would create values from 00000001 to zzzzzzzz. I have only 8 places because this is the size of the field in the database and I ca...
stackexchange/codereview
I'm working on a mp4 container parser but I'm going crazy trying to recognize the audio codecs of the streams. I used both QtAtomViewer and AtomicParsley but when I find the atom: trak->mdia->minf->stbl->stsd I get always "mp4a" even if the mp4 file has an mp3 stream. Should I look for an ".mp3" fourcc? I attach two di...
stackexchange/codereview
I am trying to use FullDebugMode(fastmm4) to have a detailed report of memory leaks. While I can get this work succesfully in a dummy application that creates and doesn't free a TStringList I cannot in another application. In both projects the dpr is like this: {$DEFINE FullDebugMode} {$DEFINE LogMemoryLeakDetailToFile...
stackexchange/codereview
Here (and not only there) people are using the following code to handle an error from sp_xml_preparedocument EXEC @err = sp_xml_preparedocument @hdoc OUTPUT, @xmlDoc SELECT @err = @@error + coalesce(@err, 4711) Are there any reasons for this? And what does 4711 mean in this context?
stackexchange/codereview
I'm using ASP.net/C# and trying to build an image gallery. My images are stored as byte data in the database and im using an axd file like so, getDocument.axd?attachmentID= X, to set an Image object which is then added to the aspx page on page load. In IE most of the images are rendered to the page however certain imag...
stackexchange/codereview
I am aware of setting breakpoint base on function name in WinDBG using bp, bm commands is there a way to set break point break on source code line number say <some command> 20 means it should set breakpoint at line 20 Thanks in advance
stackexchange/codereview
I need to convert a GIF image to Jpeg image using C programming language. I searched the web, but I didn't find an example which could help me. Any suggestion are appreciated! EDIT: I want to do this using an cross-platform open-source library like SDL.
stackexchange/codereview
I'm using Sphinx to create the documentation of my project. I want to use the extension sphinx.ext.pngmath and with this little test: Returns the indefinite integral of the polynomial *poly*: .. math:: \int p(x)dx I got the error: WARNING: inline latex u'\\int p(x)dx\n\n': latex exited with error: ...
stackexchange/codereview
Let's have this code : class student :IComparable , IComparable<student> { public string name = ""; public override string ToString() { return name; } #region IComparable Members public int CompareTo(object obj) { if (this.name.Equals(((student)obj).name ) ) ...
stackexchange/codereview
The man page for pthreads mentions: POSIX.1 also requires that threads share a range of other attributes (i.e., these attributes are process-wide rather than per-thread): ... - signal dispositions ... What do "signal dispositions" mean?
stackexchange/codereview
HI, I have a JavaScript program that's written with object literal syntax: var MyJsProgram = { someVar: value1, somevar2: value2, init : function() { //do some initialisation }, libraryFunction : function() { }, getStyle : function() { }, extend : function() { } }...
stackexchange/codereview
What is the equivalent of assertLessThan in simpletest?
stackexchange/codereview
I'm looking for a way to optimize one SQL query that I have. I'm trying to get how many poems with a certain genre. Query looks like this: SELECT COUNT(*) FROM `poems` WHERE `id` IN ( SELECT `poem_id` FROM `poems_genres` WHERE `genre_title` = 'd...
stackexchange/codereview
The problem, which exists in both Firefox and Chrome, is that I have a canvas with a solid background, and a div with a solid background color/image. The div is margined up over top of the canvas. The div does not display over the canvas. An interesting note is that if there is text inside the div it will properly get ...
stackexchange/codereview
Are there any consequences to not declaring variables at the start of the class declaration. I mean, I always do it because it is just neater and nicer, but my latest project is huge, and I have added loads of vars without declaration in the heat of the moment without consequence. I am now about to go and add them all ...
stackexchange/codereview
So I know I can add a filepath to a file element type using Watir, but is it possible to open up the file explorer to select a file to upload? Or is the only way to just enter the path using .file_fields?
stackexchange/codereview
I'm using ASP.NET MVC 2 and playing around with iCal Events. I Generated my own .ics file and with Thunderbird I subscribe to that Calendar. Every time I change an Event in Thunderbird, it's fires a PUT and a PROPFIND methods. In the PUT it sends the calendar file modified. How can I get that in an Action? my curren...
stackexchange/codereview
New to Perl and new to ClearQuest Perl API both. I am trying to clear some values from a CQ form. I am able to clear values by simply setting the value to "" but it doesn't work on lists. Any idea how this can be done? # following doesn't work on lists. What to do? $entity->SetFieldValue("Foo_List", ""); # foll...
stackexchange/codereview
This is a very basic question, and if what I am thinking of doing is complicated/involved, then I don't expect you to go into detail... I've read that this may involve structs or hash or some other scary procedure I've not gotten to yet. If so, I'm sure it'll get me soon. Working on learning classes, methods, and retur...
stackexchange/codereview
Hi in one of xhtml page containing select box having more that 10000 option list I am facing one issue select box opening at slow speed in firefox3.5 working fine in IE 7/8 When I remove this class .ui-widget :active { outline: none; } from JQuery UI CSS its started to work fine in Firefox 3.5. Any idea for this beha...
stackexchange/codereview
What is the difference between specialization and instantiation in context of C++ templates. From what I have read so far the following is what I have understood about specialization and instantiation. template <typename T> struct Struct { T x; }; template<> struct Struct <int> //specialization { //code }; ...
stackexchange/codereview
This isn't actually a question, it's a problem which I couldn't find any help on, so I thought I'd post the solution I eventually found in case someone else encounters it. The problem was with an XML-typed column in a TVP parameter I was passing to a SQL Server 2008 stored proc. When I called ExecuteNonQuery() I got a...
stackexchange/codereview
I am somewhat of a novice and am seeking some help. I am working in Visual Studios 2010 and have my solution that has my project that I am currently working on. Specifically I am working on a Win32 Project. I don't know if that is important to know or not. I have made a file/folder structure in the directory I am worki...
stackexchange/codereview
I am trying to write a jQuery plugin. For simplicity let's say that my code is $.fn.myplugin = function() { return this.each(function() { $('a.mypluginToken').live('click', function(){}) } } As per above code every single time $('a').myplugin is called, a binding is done for 'click' event because of 'live'. I ...
stackexchange/codereview
code hinting doesn't seem to work for my Flash CS5. I already tried increasing the code hint cache size, but it still doesn't do anything. Any suggestions? TIA Steven
stackexchange/codereview
If I have an NSArray (or mutable array) with several dictionary objects (each dictionary is a Person) like this: [ { forename: chris, surname: smith, age: 22 } { forename: paul, surname: smith, age: 24 } { forename: dave, surname: jones, age: 21 } { forename: alan, surname: jones, age: 26 } { forename: cecil,...
stackexchange/codereview
An Android Application that I created for a client some months ago has the ability to email a link to a PDF with a ton of text in it. The client now wants that text to go directly in the email, in HTML form (with links, bullets, etc). Using Android's Mail Intent, I am trying to send this long string over the EXTRA_MES...
stackexchange/codereview
One of the design sessions from Google I/O this year showcased this app as an example of putting their design principles to good use. They said it would be open sourced but I'm having trouble finding it.
stackexchange/codereview
I've subclasses UIControl and in it I am sending: [self sendActionsForControlEvents:UIControlEventValueChanged]; When I create an instance of the object, I add a target as follows: [starView addTarget:self action:@selector(starRatingChanged:) forControlEvents:UIControlEventValueChanged]; The view shows up fine, and w...
stackexchange/codereview
I needn't use the QT's dlls and I want to use libs, when I run exe.How can I do this?
stackexchange/codereview
I have a listbox on my form that looks like this: <ListBox Name="lbResults" SelectionChanged="lbResults_SelectionChanged"/> I am binding the following collection to it: ObservableCollection<Hand> oHands = new ObservableCollection<Hand>(); using the following code: lbResults.DataContext = oHands; Binding binding = new...
stackexchange/codereview
Please suggest me where i can put my uninstallation password code in android application. So that at the time of uninstall the application ,The application manager should ask me to insert password to uninstall the application.
stackexchange/codereview
I am trying to create a gradient drawable to depict a ratio of something. As a general example, lets say you were looking at a listview containing a fleet of cars. The background could be a fuel gauge - I don't want a smooth, wide transition. I want a very tight transition, and I want to be able to set where that tr...
stackexchange/codereview
I'm attempting to build a web app and I've run into a bit of a wall. I'm not asking for anyone to hold my hand through making this, just some advice and a push in the right direction. So, I'm trying to build an app that uses the Google Maps API to display a map of local parks near you and allow people to post pickup ga...
stackexchange/codereview
I have dynamically created DataGridView control on form, with DataSource specified as: ((DataGridView)createdControl).DataSource = (IList)(p.GetValue(editedClient, null)); where IList is defined as generic collection for following class: public class CDocumentOperation { [DisplayName(@"Time")] ...
stackexchange/codereview
I was convinced (until I just tried it a moment ago) that it was possible to instantiate an associative container with array style notation. For example, std::set< int > _set = { 2, 3, 5 }; This isn't the case but I am wondering if there is any other way of bulk initialising a container in the constructor like this?
stackexchange/codereview
I have to perform a FFT for a .wav file in an iPhone application. I have seen FFT algorithms out there, but how would I go about parsing a WAV file and using in such an algorithm? Should I convert the WAV file to NSData or something else? Has anyone successfully performed a FFT of a WAV file in the iPhone before? I t...
stackexchange/codereview
I'm working on a program using a SQL database (I use SQLite). What my program does is the following: Creates the tables in the database if they don't exist (on startup) Executes SQL queries (SELECT, UPDATE, DELETE) - decided by the user from the interface What I saw doing this is that there is a lot of redundancy. I ...
stackexchange/codereview
I'm looking at using ivysvn to help us use a local ivy repository in our svn repository. I found this tutorial which I found easy to follow, and almost works, except for 3 points: The tutorial has a blank username and password. How can I get this to work with our SVN repository (which does not allow anonymous commits)...
stackexchange/codereview
I have the Seam session-scoped component, CustomIdentity which overrides the standard Seam Identity (also session-scoped). The extended CustomIdentity has a property @Out(required=false, scope=ScopeType.SESSION)private User user In the overriden login() I define a User object, populated with information from the Prin...
stackexchange/codereview
What free tools can I use to debug multithreaded programs created using the pthread library in Linux? (Besides pen & paper, of course...) The usual way of printing debug messages isn't working out very well.
stackexchange/codereview
I have a multi window application, which fills the entire screen, I want it to be usable on all screen sizes, so I would like to resize it according to the screen size. How can I solve this?
stackexchange/codereview
I have an array with configuration tree: $cfg = array('global' => array( 'project' => 'foo', 'base_url' => '/path/', 'charset' => 'utf-8', 'timezone' => 'Europe/Lisbon', 'environment' => 'development'), //... ); I need to insert an element into the tree (or possibly chan...
stackexchange/codereview
I have a variable whose value is the same as an ID on the page. When I do this: var foo = 'value'; $('#' + foo).thing(); it doesn't work. But this does work: var foo = 'value'; var bar = '#' + foo; //'#value'; $(bar).thing(); How can I build that selector in a single line? Creating extra single-use variables seems wa...
stackexchange/codereview
I have this code that reads from marks.txt file. #include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main () { string name,result; int number1; ifstream myfile ("marks.txt"); if (myfile.is_open()) { while ( !myfile.eof() ) { getline (myfile,name,...
stackexchange/codereview
I ask because if you create a new WPF project in VS 2008 the default generated code is: public partial class Window1 : Window { public Window1() { InitializeComponent(); } } However, commenting out the call to InitializeComponent does not prevent the application running. Why is this?
stackexchange/codereview
Is there function reference integrated in PHPStorm/WebStorm ? I mean like when i point my cursor on some php function , then I press e.g. F1 and it will show me function details (parameters, usage...) on separate page. Is this integrated in phpstorm/webstorm ?
stackexchange/codereview
when i try to start my java based server there is a message that says the port is already in use... And all my java web servers are stopped... So if anyone can help me i will appreciate it...
stackexchange/codereview
Is it possible to set the result from a prepared statement into a variable? I am trying to create the following stored procedure but it is failing: ERROR 1064 (42000) at line 31: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'stmt...
stackexchange/codereview
how do you make ctags account for class in c++? when i jump to a tag of a function i get to the same name of the function but in a wrong class. B b; b.init(); and there are A::init() {} B::init() {} i put the cursor on init of b.init() and the jump is to A::init() {} instead of B::init() {}. Note, i didn't use a and b ...
stackexchange/codereview
I'm new, so links and images are here Hi, I'm likely making a silly mistake... hoping to find out what that is. I'd like to use a few of the standard menu icons (ic_menu_refresh, etc.) in my app's Options Menu. And I'd like to set the icons in the xml file for the menu. I read in a few places that I can use the followi...
stackexchange/codereview
In my aspx page i am having a checkbox list ..It has binded values from a table.. I need to validate the checkbox list ..I tried the following script var checkBoxCount = 0; var elements = document.getElementById('<%=ChkBoxList.ClientID%>'); for(i=0; i<elements.length;i++) { if...
stackexchange/codereview