instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm planning to release an alpha version of my freeware-closed source software shortly(It's an authoring tool written in C#), do I have to use .net obfuscator? Generally i wouldn't like for people to effortlessly browse the code and - most importantly - modify it. (I'm afraid, i'm not ready to opensource it at this poi...
stackexchange/codereview
Hi I am new to RRD and plotting graph with it. I am trying to plot a graph with following RRDs::graph ($wwwDir."graphs\\2mtotal$rrdname.png", "-l 0", "-w 500", "-h 200", "-v Size", "-s now-5184000" , "--base", "1024", "-x", "DAY:1:WEEK:1:WEEK:1:0:%d/%m", "-e now", "--title=$rrdheading" , "DEF:DriveCap=D...
stackexchange/codereview
Our rather large C++ code base has a different debug flag for each module. These are currently defined in the code like so: #ifdef A_DEBUG {foo foo} #endif However, we have more than one of these flags. So while clearmake -C gnu TESTFLAG=-DA_DEBUG works just great on one flag, I would love to be able to compile ...
stackexchange/codereview
I have a slider and I want to call a specific function only when the interaction is complete. The idea is to call a function after 500ms (and not before). If the slider continues to move then the call is canceled. In other words, if the slider "rests" for more than 500ms than the function is call. Thanks Update #sl...
stackexchange/codereview
I am trying to use PostgreSQL triggers in my rails app. So I tried using this migration where execution of triggers is supposedly easy: -- class AddTriggersToProducts < ActiveRecord::Migration def self.up table :products execute %q{ create trigger trig1 before insert on products for each row b...
stackexchange/codereview
<a href="../../App_Data/form.xml">Download Sample Form </a> Why is this link not working?
stackexchange/codereview
Environment: Grails-1.3.4, Ubuntu 9.10, Intellij 9.0.3, JVM 1.6 I'm getting the below stack trace using WSClient while trying to interact with a SOAP 1.2 server. I was able to get the wsclient example application working. Changing the URL to the other server throws the exception during initialization. Any ideas? I did...
stackexchange/codereview
Hello all I am developing a software that uses amazon simple queue service and just want to know if there is any gui available to help me easily check the status of some queues, is there any out there? Many thanks, Thiago
stackexchange/codereview
I'm trying give a variable a value within XSL:for-each and access the variable after the XSL:for-loop has ended (or even after it's moved to the next XSL:for-each). I've tried using both global and local variables but they don't seem to work. Is this possible? If not, is there another way around the problem? -Hammer
stackexchange/codereview
I have created a module with several different controllers and therefore different pages. I want to have a default sidebar on each of my own pages but not the rest of the site. when i use the <default></default> it obviously propogates throughout the entire site. When i try <mymodule_default></mymodule_default> nothing...
stackexchange/codereview
I've got three database projects. I'd like to have the base project contain common tables and other common objects. And then, I'd like to have the other two projects contain version specific objects that will work with different versions of an application, in other words, depending on the version of the application I w...
stackexchange/codereview
Is there a possibility to wrap checkboxes and radio buttons together in a unordered list ? When not, How I can display them vertically ? I know this is layout related, but still a programming question.
stackexchange/codereview
I am trying to extract the value from in File.txt : 116206K->13056K(118080K), 0.0879950 secs][Tenured:274796K->68056K(274892K), 0.2713740 secs] 377579K->68056K(392972K), [Perm :17698K->17604K(17920K)], 0.3604630 secs] I have try to extract cat File.txt | grep 'Perm '| cut -d',' -f3|cut -d'(' -f2 |cut -d')'...
stackexchange/codereview
Is it possible to create a folder into a photo album where i can save my UIImage? I use - UIImageWriteToSavedPhotosAlbum but i can't chose the specific Photo Album
stackexchange/codereview
How do I achieve it? I have a module named "tooltip" which has a "fade" function which in turn uses a global "element" variable. That variable is a reference to an element of the DOM. I want to update it from another module named "lightbox" so I could just let the "fade" function handle the fade-in effect. All my modu...
stackexchange/codereview
I have the following code: from Tkinter import * master = Tk() canvas = Canvas(master, width=640, height=480, bd=0) canvas.pack() line_coords = (3, 3, 3, 100) canvas.create_line(*line_coords, fill='red') mainloop() This will draw a line in the top-left corner. Why is it that if I change line_coords to (2, 2, 2, 100...
stackexchange/codereview
I can't seem to debug the tomcat application through Eclipse. I've set CATALINA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n and then I run bin/catalina.sh, where I see output saying it's listening for dt_socket on port 8000. But whenever I try to connect to port 8000 in Eclipse (by add...
stackexchange/codereview
I sort of understand the concept of pathfinding and how a program looks for point B from point A in the most efficient manner and vaguely familiar with the concept of A*. But what if, instead of trying to find a way through the maze, you're trying to find the longest corridor in closed off maze where the corridor can n...
stackexchange/codereview
I have a table in SQLite 3: CREATE TABLE foo ( bar TEXT ); It always has 0 or 1 rows. I want to write a query which updates the row if there is 1 row and adds the row if there are 0. What is the cleanest way to do it?
stackexchange/codereview
How can i make a call from iphone application with out quitting the application in iphone 4?
stackexchange/codereview
this is a Django related question. I have an invoice that I have created from a database which displays the information. Now I want to know is if I can send these details to an email address. I have tried looking at this page at http://docs.djangoproject.com/en/dev/topics/email/, but I don't know if I am looking for th...
stackexchange/codereview
I don't usually get involved with MDX if I dont have to, but.... I have a cube with simple fact table linked to a time dimension (with date,month,year columns and so on) and I want to be able for a given day of the month calculate the month to date total for that day. In SQL it would be a doddle, however I'm not sure o...
stackexchange/codereview
I've got this javascript: <a href="javascript:addtext('q');">q</a> When it is clicked it writes text on a textarea. I went through the encoding and found can do things like this: This will add a " " (Space) <a href="javascript:addtext('%20');">Space</a> And this will add an "á" <a href="javascript:addtext('&aacute;')...
stackexchange/codereview
I'm creating an application and I've been under the assumption that when a control is bound to a member in the view-model (i.e. a TextBox to a string field) the string is updated whenever the user changes the information in the textbox and no later. But what I've found is that the string is updated when the textbox is ...
stackexchange/codereview
I have a need to handle various rar/zip files, in Objective-C. Ideally I'd like to be as flexible as possible in terms of rar/zip versions. I'd also like to be able to only extract certain files from the rar/zip files, after pulling out a list of the file contents. If that wasn't enough, I'd like to be able to access a...
stackexchange/codereview
I have an array of objects that I want to compare to a target object. I want to return the number of objects that exactly match the target object. Here is my count method: public int countMatchingGhosts(Ghost target) { int count=0; for (int i=0;i<ghosts.length;i++){ if (ghosts[i].equals(targ...
stackexchange/codereview
Are there any performance bottlenecks in template inheritance?
stackexchange/codereview
Is it possible to integrate data from ESRI with Mapstraction. Do anyone got any idea in this area.
stackexchange/codereview
I have this method which receives a path through a TCHAR szFileName[] variable, which contains something like C:\app\...\Failed\ I'd like to sort through it so I can verify if the name of the last folder on that path is in fact, "Failed" I thought that using something like this would work: std::wstring Path = szFileNam...
stackexchange/codereview
SO has lot many questions of this type but not able to find correct solution. May be I am missing anything. I am struggling from last few days for finding better option for Chat service. Following thing I have to keep in mind before using any option.. It should be OS independent Installation should be easy Opensource ...
stackexchange/codereview
I have two arrays one like 1 | 1st name 2 | 2nd name 3 | 3rd name 4 | 4th name and one like 1st name 2nd name 3rd name 4th name 5th name 6th name 7th name Basically I want to intersect these arrays I need to interesect these arrays so I end up with the second array being just 5th name 6th name 7th name How woul...
stackexchange/codereview
This is rather queer. I can't set any value to a variable if it is named 's' in an interactive session: (setq s 'foo) => foo s => nil Why? Update 1: Here is the output from describe-variable on s: s is void as a variable. Documentation: Not documented as a variable. Why is it that s is kept void in emacs lisp as a ...
stackexchange/codereview
Can you get signal strength measurements of Mobile Networks in iOS and/or Android? On developer.apple.com I have found CoreWLANWirelessManager sample code for OSX, that shows how to get measurements for WiFi networks.
stackexchange/codereview
It'a a well-known fact that UML does not Turing complete (in contrast to usual programming languages). But it seems to me UML is even more flexible than traditional languages. I can't imagine a problem you can describe by means of such language as C++ (f.e) but at the same time can't describe by means of UML. Quite the...
stackexchange/codereview
i am having an output xml which looks something like this, <?xml version="1.0"?> <root> <apple><apple1>A</apple1></apple> <ball><ball1>B</ball1></ball> <cat><cat1>C</cat1></cat> <dog><dog1>D</dog1></dog> <ele><ele1>E</ele1></ele> <root> i am using NSXmlParser, i m confused, is tgis a gud xml st...
stackexchange/codereview
I came across this question on an interview website - We are given 4 numbers say n1, n2, n3, n4. We can place them in any order and we can use the mathematical operators +, -, *, / in between them to have the final result as 24. Write an algorithm for this - it will take 4 numbers and return false or true whether f...
stackexchange/codereview
We are developing an application that needs to be executing on a periodical basis (e.g. daily, or weekly depending on config). This application needs to consume existing WCF Services but this application itself does not expose any methods for others to consume. What would be the most suitable (and future-proof) techno...
stackexchange/codereview
For novice users, they may not know to Tap and hold an a button or UI element. Is there any good way of hinting that there is a "Tap and Hold" action under a visual item?
stackexchange/codereview
What is the emacs equivalent of vi's dd? I want to delete the current line. Tried CTRL + k but it only deletes from current position.
stackexchange/codereview
I have a client that wants to store data in a MySQL database with multiple languages (English, French etc) and be able to retrieve the data (in the same specified language). ie: we have an English description of a product (varchar), which we intend to rewrite in French, and then on the server side find the description ...
stackexchange/codereview
I need a small linux Text only version bootable installed on a partition of my hardrive, How can I customize a Linux version like redhat, debian, puppy etc. Please suggest some suitable distribution?
stackexchange/codereview
I have an app written with GWT and GAE where every supported city has its own app. Clearly this is not the best way to manage the map so I want to merge them all into one app. Currently my app is at the urls sub1.myapp.com, sub2.myapp.com, sub3.myapp.com, etc, and I want them to be at myapp.com/sub1 ,myapp.com/sub2, ...
stackexchange/codereview
Suppose you have the code of a Cocoa app which logs its own messages through NSlogs and printfs to the Console output. My goal is to redirect all this output into a separate NSWindow in a NSView. How can I achieve this in a way that minimizes the amount of code to rewrite makes it possible to revert back maximizes the...
stackexchange/codereview
I have a list of objects, the number of objects is random. I would like to ask the efficient code to group the objects in the way that every group has 4 objects (the last group has less than/equal to 4 objects). I need first to know the number of groups, then for each group, I will loop through the objects.
stackexchange/codereview
I am creating a C program that is called from a shell script when a specific event is occurring. The C program gets an argument from the shell script like this: > ./c-program.bin HELLO Now the C program is running until it recieves a specific character as an argument. The problem is that if a second event occurs, and ...
stackexchange/codereview
In Highcharts I want to change the default starting point from 0 to 1 is where can i find the option to change I have only data points so that are plotted on y axis and the x axis simply contain the default numbers ie 0,1,2, etc.. i want to change the starting point from 0 to 1 thanks in advance
stackexchange/codereview
I am trying to make an app for authenticating user with their facebook account in python. App opens the facebook login page in web browser. After user logs in, facebook redirects it to thei dummy success page. At that moment i need to capture that redirect url in my app. I am not able to catch that URL. I am opening f...
stackexchange/codereview
I embed a SVG(with adobe svg viewer) in html and browse in IE, and I add mouse listener on the svg element, but I always catch the event after other HTML elements, how to make the SVG element capture mouse event at first in IE, so that I can decide whether to cancel the event <html> <head> <meta http-equiv="Con...
stackexchange/codereview
I'm working on a network application for my class. Basically I have to write java and jsp to make a site that gives the .jsp output below (which is preceded by a .jsp page that asks for the balance, rate, and period). I'm writing the java for it now and I'm trying to make a html table with the Java class. The problem...
stackexchange/codereview
Here is the code I'm calling PropertyInfo targetColumn; targetColumn = targetType.GetProperty("CtrId"); Here is the Class using System; using System.Runtime.Serialization; using System.Xml.Serialization; namespace JCDCHelper.CV { [DataContract, Serializable] public class CenterAllActiveCV ...
stackexchange/codereview
I get this error from silverlight: Operation named 'GetRssFeed' does not conform to the required signature. Return types must be an entity, collection of entities, or one of the predefined serializable types. This is my domainservice class: // TODO: Create methods containing your application logic. [EnableClientAcc...
stackexchange/codereview
Im trying to build an authenticating api with rest and also post a large object. Im talking about posting number of items such as some information about a car and its owner and store the information at a db level. is rest the way to go with this or use soap ? and if so any ideas how i can post json objects ? Much appre...
stackexchange/codereview
I'm looking for a Python (<3) validation API something like Java's Bean Validation or Spring validation. I'm not looking for a library that is limited to form validation, since I want to validate domain objects. Do you know a Python API for validating of domain objects?
stackexchange/codereview
I'm running emacs on a terminal mode (no window system) emacs -nw. I've few global keys defined in emacs like C-; C-x C-/ C-, etc.. These control keys aren't taken for account in -nw mode. Any work around or solution please ?..
stackexchange/codereview
I am new to Java and I referred regarding my question on the Net but not quite Satisfied. I want to know what the "Utility Class" in Java is? Can anybody please tell me with an Example. Thanks, david
stackexchange/codereview
Hi I'm new to ajax. I'm working on visual studio 2005. I install the ajax Min4setup and I add the control toolkit to the controls toolbar. I created a new website Ajax-Enabled then I add the existing items (all the page) from the old web site to the new one. I wrote the code below in the page.aspx and the other code ...
stackexchange/codereview
I need to format the followin string name[Name], emloyeeno[Employee Number], joindate[Date Of Join:dd MMM yyyy], email[EMail] as name, employeeno, joindate, email I'm trying to use a regular expression to resolve this, I best I could come up with is /\[.*]/g But it is not resolving the problem, I've a sample crea...
stackexchange/codereview
I have a user on website A and I need to log him to website B (not under my control) but without jeopardizing his password on website B. Website B doesn't have an API which is what's making this more complicated than should be. My first option is to render my own form on website A, user enters his website B password i...
stackexchange/codereview
The below code is used in an iPad app to send an HTTP request to a Node.js web server, which produces the following error, but works fine w/ a regular HTML+browser form. The server is Node.js + formidable which has a multipart parser that only dies on this line of code with this error: message: parser error, 0 of 291...
stackexchange/codereview
I converted an older Access app to 2007, and now the date formatting in editable textboxes is not working. The format I'm using is mm/dd/yy, but the date is displaying with a 4-digit year. I've tried other formats just for testing, eg mmm/d/yy - they display correctly except for the year which insists on being 4 digits...
stackexchange/codereview
what are the advantages of validation on the client side using a client side script such as Javascript? thanks
stackexchange/codereview
Can someone show an example on how to create an NSEvent that simulates pressing return?
stackexchange/codereview
I need to present the output on the form in rows and columns. Is there a control to make that task easier? I am using visual studio 2010 and coding in C#.
stackexchange/codereview
i know this might seem straightforward, but i can't solve it, im trying to make the whole list item linkable, rather than just the word home the html code: <a href="#page1"><li class="current">Home</li></a> p.s. when you hover the li, background color changes, so i want that whole list item to be hyperlinked, if you g...
stackexchange/codereview
So here is my HTML: <a href="#/" class="next openModalBox lessOpacity">Posunúť sa dopredu</a> <div id="modalBoxContent"> <p style="font-size: .8em; text-align: center;"> Úspešne ste absolvovali študijnú časť školenia. Pre ukončenie školenia je potrebné úspešne absolvovať <a href="/index/index" class="ac...
stackexchange/codereview
I was advised to use this code to make my method execute after a definite period of time, i modified it a bit and now I have: private Handler mHandler = new Handler(); private Runnable mUpdateTimeTask = new Runnable() { public void run() { final long start = mStartTime; // Get the difference in ms ...
stackexchange/codereview
I am noticing that the closeclick event on InfoWindow is being called prior to InfoWindow display in Google Maps V3. Has anyone else seen this? Bug? My misunderstanding of design? Consider the simple example: <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="tex...
stackexchange/codereview
This website lists over 250 courses in one list. I want to get the name of each course and insert that into my mysql database using php. The courses are listed like this: <td> computer science</td> <td> media studeies</td> … Is there a way to do that in PHP, instead of me having a mad data entry nightmare?
stackexchange/codereview
Actually i have to write "(Ft³)" on label from resource file. When i write in string as hard code "ft\u00B3" then its convert on label as "Ft³", but i want to access from resource file. so please help......... thnx
stackexchange/codereview
ok, so I have an object like: var myobject = { "field_1": "lorem ipsum", "field_2": 1, "field_2": 2, "field_2": 6 }; as you see there are duplicate names in the object, but with different values. If i go through it like (using jQuery): $.each(myobject, function(key, value) { console.log(key); console...
stackexchange/codereview
While isolating reference (islands of isolating) a class objects say like the below code public class Island { Island i; public static void main(String [] args) { Island i2 = new Island(); Island i3 = new Island(); Island i4 = new Island(); i2.i = i3; // i2 refers to i3 i...
stackexchange/codereview
I am trying to debug a service in VS 2005 running. Service is running under SYSTEM username. I have opened VS as administrator. The error I am getting is: Unable to attach the process. The system cannot find the file specified I am running on Windows Vista.
stackexchange/codereview
I wrote the following code in python self._job = None #slider def sliderCallback(self): if self._job: And I get this error message AttributeError: 'str' object has no attribute '_job' why ? I thought I have initialized the variable before... Update Same issue with Timer variable import Tkinter as tk import vtk fr...
stackexchange/codereview
I need to read the image from document folder and prepare UIImage out of that. but when I call this function everytime memory get increasing and for large scale image this scale is large. following is same code -(UIImage*) GetSavedImageWithName:(NSString*) aFileName { NSArray *paths = NSSearchPathForDirectoriesInD...
stackexchange/codereview
This cites for_each as follows: template<class InputIterator, class Function> Function for_each(InputIterator first, InputIterator last, Function f); I have a collection std::list<std::string>, and a function void Do(std::string) works fine when given to for_each along with the iterators. But if I supply a functio...
stackexchange/codereview
My current method to add the rows together is like so: $totalxp = $row['Attackxp'] + $row['Defencexp'] + $row['Strengthxp'] + $row['Hitpointsxp'] + $row['Rangedxp'] + $row['Prayerxp'] + $row['Magicxp'] + $row['Cookingxp'] + $row['Woodcuttingxp'] + $row['Fletchingxp'] + $row['Fishingxp'] + $row['Firemakingxp'] + $row['C...
stackexchange/codereview
According to REST philosophy, a PUT operation should (taken from Wikipedia): PUT http://example.com/resources/142 Update the address member of the collection, or if it doesn't exist, create it. NHibernate seems to have two ways of dealing with entity IDs: Auto-generate an ID, regardless of what value the user set. ...
stackexchange/codereview
I have an Android view that I am detecting a fling gesture on to perform an operation, and I want to write some tests to verify that the gesture is working correctly. I have tried TouchUtils.dragViewTo and TouchUtils.drag (with a very small number of steps) but neither of these seem to trigger the event. Is there a wa...
stackexchange/codereview
I'm writing a synchronizer software which will take all changes in one DB and synchronize them to another DB. To this end I've added in my table T two columns: alter table T add LastUpdate rowversion, LastSync binary(8) not null default 0 Now I can easily select all rows that have changed since the last synchronizatio...
stackexchange/codereview
I can upload a video to my drupal instance, but when I try to view the video I don't have rights to do so. I discovered that the IIS_IUSR doesn't have Read & Execute rights on the video even though the IIS_IUSR does on the containing directory. IIS_IUSR has Read & Execute, List folder contents, and Read rights to the d...
stackexchange/codereview
I want to redirect from a link in a JSF page, how can I do it? In HTML I can use <a> tag for this. But in JSF I use <h:outputLink> or <h:commandLink> as they can be conditionally rendered. I want redirect link to other page in same application or to an external URL. How can I do it with JSF? How can I use action in <h:...
stackexchange/codereview
I have taken out some functions from a source file into another since I want to use them also in other files. The current structure is as follows utils/extFuncs.h #ifndef _extFuncs_h #define _extFuncs_h inline int someFunction (float v); #endif utils/extFuncs.cpp #include "utils/extFuncs.h" inline int someFunction (fl...
stackexchange/codereview
This is a task I have and I am a little unsure about the way to go about achieving this. So I thought the best approach would be to ask other professionals for their thoughts. Basically, I will be storing a load of transactions/triggers for numerous affiliates in a database. Then using a widows service I am going to go...
stackexchange/codereview
What would be the mechanism behind twitter iPad application? I feel its having split viewcontroller, viewcontrollers with animation and gesture controls, or there may be scrollviews for endless scrolling. How can I develop same UI for my application?
stackexchange/codereview
I'm using MonoDevelop on Mac OS X Snow Leopard to develop an ASP.NET MVC Application. I have tested it on Visual Studio 2008 on Windows 7 and it worked fine, but when compiling it on MonoDevelop it throws the error: The type or namespace name 'Objects' does not exist in the namespace 'System.Data' under this line: publ...
stackexchange/codereview
I have 3 threads (A, B, C) that i just can't make them work how i want them to. ALL these 3 threads share a reference to the same object - K. What i'm trying to do, is to start all 3 up, then at some point in time when thread A arrives in a certain state, pause threads B and C, until A executes some method work() and w...
stackexchange/codereview
When you 'like' a page of a web site and you have the right meta tags, Facebook will essentially create a FB Page for that liked page. This gives you a way to update all fans of that page. To do it, you have to be listed as the admin of that page. It's all explained rather well here: http://blog.roost.com/2010/07/23/l...
stackexchange/codereview
I am doing research about integrating a product into Dynamics Great Plains. I have worked with Dynamics CRM before but not with Great Plains. I have heard that GP is a different animal than CRM, even though they share the same "Dynamics" prefix, where do the similarities end, and where do the differences begin? Has...
stackexchange/codereview
I am trying to solve the readers-writers problem with writer preference in Java using multi-threading. The following is a stripped down version of what my code does. Will it work? public PriorityQueue<myClass> pq; public void foo(){ myClass obj = new myClass(); pq.add(obj); obj.wait(); //Actual code } p...
stackexchange/codereview
I have a TextView in a ScrollView with a specific background image. My problem is that if the text is longer than one line, the TextView will stretch as much as the screen allows it. I would like the text view's sizes to remain the same (the sizes of the background) <ScrollView android:id="@+id/description" android...
stackexchange/codereview
Say, I build a dynamic map in WPF. I need to represent in this map locations(say, cities). The representation of a city is simple: a dot (circle or image) and the text. Both text and dot image are customizable. What would you recommend using as a CityControl in WPF? Examples: A UserControl having an <Ellipse>(or ...
stackexchange/codereview
I need to put double quotes in configuration property Property1 <Seection Name Propety1="" .../>
stackexchange/codereview
How can I simulate an OnDestroy event for a TFrame in Delphi? I naively added a constructor and destructor to my frame, thinking that is what TForm does: TframeEditCustomer = class(TFrame) ... public constructor Create(AOwner: TComponent); override; destructor Destroy; override; ... end; constructor TframeEd...
stackexchange/codereview
I just want to make SELECT/INSERT into a remote database, I think it should be easy but I can't find a way. I only find people that say I have to make a webservice or something like that, but that is another world for me, and I can't put a webservice in the database host. Is there a normal way to do it without a webser...
stackexchange/codereview
Hey all. I'm creating an application that is going to be generating and storing millions of images. Before I start on this, I'm wondering if anyone knows if it's better to generate more folders and only keep a few files in each, or should I use a few folders and fill them up with lots of files? The generator will be ...
stackexchange/codereview
When do we use AtomicReference? Is it needed to create objects in all multithreaded programs? Provide a simple example where AtomicReference should be used.
stackexchange/codereview
I'm trying to build some sort of webservice on google apps. Now the problem is, I need to get data from a website (HTML Scraping). The request looks like : URL url = new URL(p_url); con = (HttpURLConnection) url.openConnection(); InputStreamReader in = new InputStreamReader(con.getInputStream()); BufferedReader reader...
stackexchange/codereview
I would like to initilize some elements of an struct and array in C++. In C you can do: unsigned char array[30] = {[1] = 4, [20] = 4}; struct mystruct { int i; int j; } struct mystruct e = {.j = 2}; But I cannot do it in C++. Is there any way to implement this kind of designated initializers?
stackexchange/codereview
I am selecting data from database and in while loop, i want it store all data in one variable. How to do that? The variable selectAnswer is string array type . I used this code but this give error. Modify this code. string selectAnswer[] = new string[]; while (rdr.Read()) { selectAnswer[] = rdr[0].ToString(); } ...
stackexchange/codereview
We currently work on multiple branches of our web application. The VCS of choice is SVN. We have: v1: /trunk, live application, bugfixing v2: /branches/1, additional features, without trunk bugfixes There are more steps planned. The current plan is to have a stable and client accepted v1 and then merge v2 into v1. At...
stackexchange/codereview