instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I want to write a compiler in C. Whats basics do I have to learn for creating a compiler?
stackexchange/codereview
I'm building an application with a form that I'd like to populate with questions from a database table. Is it possible to do this in the Netbeans GUI designer so that each question is inserted into the label of a checkbox element? My initial idea of how to do this would be to get a result set back from the database and...
stackexchange/codereview
I want to debug my PhoneGap app in Xcode, but its Console can not show javascript errors.
stackexchange/codereview
I have two UIViewControllers A and B and they are added as subviews in the AppDelegate with B on top of A. When a UIButton on B is tapped B slides off to the left with the following code: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.5]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut...
stackexchange/codereview
I'm writing C# addin, and I have a problem with appointments. Let's say that I'm delegated user, so I have two calendars in my outlook, on is mine default calendar, and one calendar of my delegator. When I click on my calendar or on delegator calendar, appointment is opened. My question is how to determine from which c...
stackexchange/codereview
I’m about to start work on an OpenRasta project (an xml over http web service). OpenRasta looks great but unfortunately worked examples seem few and far between on the internet. Looking at the test side of the project, if my handlers are returning strongly typed objects (not OperationResult), i.e.: public class PersonH...
stackexchange/codereview
my widget has children widgets which can appear and disappear sometimes. Now after hiding one of child I call adjustSize() to resize the main widget to possible minimum. How to automatically call adjustSize() when showing/hiding children in a layout? I tried setting sizePolicy to QSizePolicy::Minimum but this doesn't h...
stackexchange/codereview
I am reading the MCTS Self-Paced Training Kit (Exam 70-536): Microsoft .NET Framework—Application Development Foundation, Second Edition eBook. Now I am finishing off the threading chapter (nr. 7). In the questions at the end of lesson 2, the is one question (nr. 2) that asks: "You are writing a method that can be run ...
stackexchange/codereview
Im trying to set the availability of an event i import into the iphone calendar with my app. Im using this code: [event1 setAvailability:EKEventAvailabilityFree]; When i sync my iphone to my iCal i check the availability of the event, and it says "Busy". Xcode do ask for an integer, but there is none for the free opti...
stackexchange/codereview
I have an array $product_array, and when I use print_r($product_array);. The array shows like this Array ( [0] => Array ( [ID] => P00100 [NAME] => Edina [PRICE] => $20.00 ) [1] => Array ( [ID] => P00101 [NAME] => Richfield ...
stackexchange/codereview
Possible Duplicate: When to use struct in C#? Hi, I am creating an application that has a class in C# that is purely for holding variables, it does nothing else but set and get these variables. I was wondering, for efficiency and good coding practice, if I should convert this class to a struct so that it is being us...
stackexchange/codereview
Currently I want to make wrapper accessor class in multithreaded environment. The purpose of the class is simple - Grab a lock on its construction and release a lock on its destruction. Other than that, it's identical to a normal pointer. Moreover, I want to prevent it from being created on heap area to ensure that the...
stackexchange/codereview
Here's my scenario: say a GPS device is in a car, how can I (e.g. a remote Silverlight client) communicate with that GPS device to track it via a map, e.g. Bing Maps? Is there a way for a GPS devices to 'push' messages to my Silverlight application or vice versa the GPS devices (maybe WP7 device) push notifications to...
stackexchange/codereview
What is the best way to randomize part of the array in Javascript For example, if I have 100 items in the array, what is the fast and efficient way of randomizing set of every 10 times. Items between 0 and 9 is randomize within data items[0] to items[9]. Items between 10 to 19 are randomize within data items[10] to ite...
stackexchange/codereview
How can I implement following in ASP.NET MVC application: user opens intranet website user is silently authenticated if possible if NTLM authentication didn't worked out, show login form to user user indicate login password and select domain from list of predefined domains user is authenticated in code using AD I kno...
stackexchange/codereview
I really can't figure out, what's wrong with this code: This is my manifest.json file: { "name": "Test!", "version": "1.0", "description": "Testing this", "content_scripts": [ { "js": [ "jquery-1.4.2.min.js", "parser.js" ], "matches": [ "file:///*/*" ] } ], "permissions"...
stackexchange/codereview
I'm having the following problem with a JFileChooser: I create a save dialog and then when I'm trying to save a file, I'm entering a file name into the field and click "Save". Suppose that the directory, which I try to save my file to, contains a subdirectory, which is named exactly like the entered name. In this case ...
stackexchange/codereview
I am not talking about performance or price. I am talking about popularity. Which is the most popular O/R-Mapper for .Net as of 2010? Which would be the most popular O/R-Mapper for .Net for years to come?
stackexchange/codereview
In Flex I can create an ItemRenderer to represent each item in the Lists DataProvider but how do I access the instance of the ItemRenderer via the DataProviders Object? Something like myList.getItemRenderer(dp.getItemAt(10));
stackexchange/codereview
Have anyone found any solution for cloning the "Instance name"? Here is what i mean. Draw a random shape using flash not the actionscript Convert it to "Symbol" Assign the instance name to "cloneMe" now try to clone it The code should be something like this. var newClone:MovieClip = cloneMe.copy() newClone.x=100 new...
stackexchange/codereview
I often need to augment a object with a property for instance. Until now (tired of it ;) and it's ugly too) I have done it this way: var someListOfObjects = ...; var objectsWithMyProperty = from o in someListOfObjects select new { ...
stackexchange/codereview
I have a gridview which I load with data on click of a button. For some reason the paging did not work. The paging number shows up but clicking on page # 2, 3 or 4 does not take you anywhere. the grid just disappears on clicking them. right after that when i click the button to generate the grid, the grid came up this ...
stackexchange/codereview
I want to check if an object is in a Queue before I enqueue it. If don't explicitly define an EqualityComparer, what does the Contains() function compare? If it compares property values, that's perfect. If it compares to see if a reference to that object exists in the Queue then that defeats what I'm trying to accompli...
stackexchange/codereview
I have a large XML document (50G+) to process. Loading this to normal dom (saxon) require more than 160G. Not that much RAM or swap space. Is there any library that provides h a disk based DOM tree? Any thing for Java?
stackexchange/codereview
I have a Datepicker using jqueryui DatePicker. The behavior requirement is: A User can store a Birthdate for a friend. The User should be able to store a year if known, or select "N/A". If "N/A" is selected, Store the year 1900 in the database and only display the day and month in an input field to the User. The dro...
stackexchange/codereview
I am trying to recreate the "Styles" section of the Office ribbon: http://www.winsupersite.com/images/reviews/office2007_b2_06.jpg I like how it starts out as only one row, then you can scroll through the rows, then click the arrow to expand all into a table like above. Does anyone have any ideas on how to recreate thi...
stackexchange/codereview
I am new to iPhone apps and objective c and I cannot figure out what is wrong with my method the general idea is that it goes to a plist which contain latitudes and longitudes, takes the data stored in the array that the user enters in a text field, and then outputs a pin at that location. Any suggestions would be grea...
stackexchange/codereview
Can we create array of generic interface in java? interface Sample<T>{} in other class Sample<T> s[] = new Sample[2] ; // for this it shows warning Sample<T> s[] = new Sample<T>[2];// for this it shows error
stackexchange/codereview
I am trying to embed video files (wmv, mpg, avi, mov, etc.) dynamically by creating embed elements in javascript. The problem I am running in to is this has not been very reliable across all browsers and even if it does work, there is no guarantee that the end user has the required plugin to play the video. Ideally, I ...
stackexchange/codereview
I am trying to integrate ICEpdf viewer into an existing Java Swing application. The requirements are that I want to eliminate the top and bottom tool bars and the scroll bar, which I have already done. The problem is that I also don't want it to have that gray area around the pdf document. I want it to show up purely...
stackexchange/codereview
A friend of mine is trying to fix up a custom http server in C++ written for windows to work in Linux. I tried to help him, but all I found seemed too obvious. The app creates a thread for every time a request comes in. The thread serves the request and ends. After some number of requests (something over 300) new threa...
stackexchange/codereview
I have a bunch of aspx (asp.net) and html pages. The site is active past 2 years and gets decent traffic. Now all this while, I have not taken care of SEO. So my pages do not have meta tags, description or H1, H2 and so on. Now I plan to add them to my pages and do this the right way. My question in any way will this ...
stackexchange/codereview
I am creating table with Wicket's AjaxFallbackDefaultDataTable and using JQuery tablesorter plugin(http://tablesorter.com) for sorting columns. Sorting works fine for first time when I load page, but when I click on any pagination link on the table, sorting is not working. Basically wicket is replacing entire table whe...
stackexchange/codereview
I was discussing this with some friends and we began to wonder about this. Could someone gain access to URLs or other values that are contained in the actual objective-c code after they purchase your app? Our initial feeling was no, but I wondered if anyone out there had definitive knowledge one way or the other? I do ...
stackexchange/codereview
I'm trying to load images (pdfs and Word documents) from a memory stream so I can manipulate them before they get added to a pdf. Whenever I try and load a bitmap or a GIF I get one of the dreaded GDI+ errors. This call... System.Drawing.Bitmap myImage = System.Drawing.Image.FromStream(docStream); Generates this...
stackexchange/codereview
I have done a web project ( using C# + SQL CE + ASP.NET )where it does few manupulation with .sdf file and results are displaye via ASP.net page . While i started working I hardcoded the path of the connection string and worked in my system . Now I want this database to be residing inside my server page. How do i get...
stackexchange/codereview
I have two different tableviews, one needs to be grouped by region, one needs to be listed alphabetically. I am using an SQLite database. The grouped tableview needs to be grouped by a column in the database called Region. The alphabetic view uses a column of data called hotSpgsName. Someone told me to use a NSDictiona...
stackexchange/codereview
In Visual Studio 2005, I can't seem to get the Intellisense menu to pop up at all when I click CTRL+Space. This seems to be limited to VB.NET files. I have tried creating new Visual C# and C# web projects, and it works fine there. There also doesn't seem to be a problem in things like CSS files in VB.NET projects. But ...
stackexchange/codereview
The . character in a php regex accepts all characters, except a newline. What can I use to accept ALL characters, including newlines?
stackexchange/codereview
Lets say I have an xml file called test1.xml in String xmlFile = "test1.xml" format. How can I get the R.id.test1 value of it?
stackexchange/codereview
In windows APIs and various other libraries where I have seen multiple entry points to methods I have noticed the use of the Ex abbreviation in scenarios such as MyApiCall and MyApiCallEx. My assumption is that this stands for Extension or Extra could someone please confirm? Any history on why Ex was chosen rather then...
stackexchange/codereview
I am using two calls setScore which is going in the init method and UpdateScore when an object is destroyed. When I run the program, I get a crash as soon as UpdateScore is called. Anyone see errors with my code? Thank you very much. In my .h file I have CCLabel *score; and NSString *text; declared for global use. -(vo...
stackexchange/codereview
I am working on windows application using c# and MySQL. I inserted new record by reading text file into MySQL database, Database having no primary key but combination of four columns we can consider as component of primary key (but actually database having no primary key). I know how to add and update record using Data...
stackexchange/codereview
Can we get email address using: users.getStandardinfo? Please help me on this. Thank you
stackexchange/codereview
I'm trying to read my Apple Safari history with c#, which is stored in a plist file, however I always get an error and I'm not sure what the correct way is to do it. The code I tried to execute is this: XmlDocument xmd = new XmlDocument(); xmd.LoadXml(@"C:\Users\Oran\AppData\Roaming\AppleComputer\Safari\History.plist")...
stackexchange/codereview
How to Resolve following Error in .net Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page.
stackexchange/codereview
Blackberry UI components look so poor after seeing the iPhone, Android and Windows Phone 7 platforms. Are there any third-party UI component libraries for BlackBerry?
stackexchange/codereview
For example, what piece of code is considered better styled? If I show my code to a professional developer and ask if my code is good or not, will using the second style be probably considered as a (minor, but...) minus or a plus to my code quality? I myself tend to like the second style but would prefer to comply to t...
stackexchange/codereview
I have paper_clip installed on my Rails 3 app, and can upload a file - wow that was fun and easy! Challenge now is, allowing a user to upload multiple objects. Whether it be clicking select fileS and being able to select more than one. Or clicking a more button and getting another file upload button. I can't find any ...
stackexchange/codereview
Not sure I'm designing this correctly (guidence is appreciated!), but I have a search view which is called from many places. Search screen has has it's own ViewModel. When a user selects something from the search screen (after searching :), I need to send the selection to whatever view requested the search to take pl...
stackexchange/codereview
For my java console application, I need to call a set of functions with user given arguments. My operations O1, O2, .. O5 are defined as an enum as enum Operations {O1, O2, O3, O4, O5}; I need to read user input args[0] and call function F1, F2,...F5. For example user is going to give: >java MyApp O1 5 6 For this I...
stackexchange/codereview
am new to iphone technology and i have been allocated on a project where i will be using an API of facebook so i have downloaded the facebook api from this link http://github.com/facebook/facebook-ios-sdk and i read its documentation where i got confused this is what i want to do: 1) The image from the UIImageView must...
stackexchange/codereview
I have the below code only a part of it is shown here and I am checking if a the type of file. struct stat *buf /* just to show the type buf is*/ switch (buf.st_mode & S_IFMT) { case S_IFBLK: printf(" block device\n"); break; case S_IFCHR: printf(" character device\n"); break; case ...
stackexchange/codereview
The function below works in a console application but it's not working in my asp.net web site. I am getting an error: The remote certificate is invalid according to the validation procedure. public static void SendEmail(MailMessage mm) { SmtpClient smtp = new SmtpClient(); smtp.Host = "smtp.gmail.com"; smtp...
stackexchange/codereview
I got strange problem with setting up a confirmation box on user exit. Here's the code: function closeIt() { var message = "Click 'Cancel' right now!"; evt=(typeof evt == 'undefined') ? window.event:evt; evt ? evt.returnValue = message:null; return message; } window.onbeforeunload = clos...
stackexchange/codereview
I'm trying to set up a tab host as an element of a layout. All the examples I've seen show the TabHost by itself in the view. The examples work fine, but when trying to make it part of another layout it doesn't seem to work. I haven't found any documentation specifying one way or another. Something like this works (No...
stackexchange/codereview
As a hobby, I'm developing a 2D game. I've got some basic collision detection implemented using a separating axis method. When two objects collide, I project one of them out of collision along the axis that has the least amount of overlap. The problem I'm encountering is that when an object is moving fairly quickly the...
stackexchange/codereview
I'm having a troubling problem testing some code for and Android app. My app has two parts, and activity where the user changes some settings, and a broadcast receiver that responds to SMS messages, both in the same package. Here's the problem, I first implemented some simple code to test out the broadcast receiver an...
stackexchange/codereview
Here I write camera snapshot on the db. `private SQLiteDatabase db; // SOME CODE HERE /// InputStream is =new ByteArrayInputStream(data); BufferedInputStream bis = new BufferedInputStream(is,128); ByteArrayBuffer baf = new ByteArrayBuffer(128); int current = 0; while ((current = bis.read()) != -1) { baf.append((b...
stackexchange/codereview
I would like to crate a web-solution for price matching, a solution similar to Pricerunner. My question is what tool would be best to use? I would prefer Flex or Flash Builder with java back-end but is it the best?
stackexchange/codereview
I am working on one module where I need to pick image from photo library and draw on view.but whenever I pick the large scale images it always return me 640 *480 scaled image and because of that small image is displayed. I have made AllowEditing ON. can anyone help me to find the resolution of original image,so that I ...
stackexchange/codereview
I'm using the jstl c taglib in a web application which I deployed on Tomcat 6.0.26. I need to run this web application on Tomcat 5.0.28... the problem is that the jstl tags are not being interpreted. For example, I'm getting ${status.errorMessage} written on my login page whereas this should be empty unless the passwor...
stackexchange/codereview
Hi everyone I am working on a game and I have run into a really weird issue and was hoping to get some help. Basically sometimes the text is a bit long to show in one textbox so I wanted it to break down a string and store the undisplayed text in a string to be used in the next message box. So when I use this code.. NS...
stackexchange/codereview
When I see a field:value pair as "name":"foo" and "name":foo what is the difference between the two? Are both the values supposed to be strings? And what about "age":3 and "age":"3" Is the first one an integer? I am confused. Thanks.
stackexchange/codereview
I have tried the below code for laoding the inline file in drupal db $sql = "LOAD DATA INFILE '".db_escape_string($this->file_name). "' INTO TABLE `".$this->table_name. "` FIELDS TERMINATED BY '".db_escape_string($this->field_separate_char). "' OPTIONALLY ENCLOSED BY '".db_escape_string($thi...
stackexchange/codereview
Can anybody tell me how to stop dragging / resizing the events where event.id > 100? Only those events should be non draggable. Updated with Code Sample: eventRender: function(event, element) { if (event.id > 100) { event.disableDragging(); event.disableResizing(); } element.qtip({ ...
stackexchange/codereview
Let's assume there is a DIV element and it has CSS background-image property. I want to get urldata(base64) of the background image with Javascript. I can get urldata of IMG elements but how about this one ? Thanks.
stackexchange/codereview
I recently moved a ColdFusion site from one domain to the other with no issue (practically) besides one which I am having some trouble figuring out. I am a LAMP developer / designer and CF is a bit foreign to me so pardon my ignorance. The site is working properly except for the store component, I am getting the fol...
stackexchange/codereview
As the title says, how do I view the SQL generated by Entity Framework from within my code? I'm running into an error where the EF is crashing because a field is generated by the database (a DateTime field), and I thought I set it to know that the store is generating it via StoreGeneratedPattern, but it's still crashin...
stackexchange/codereview
Here is a piece of code : $username="anant"; $name="ana"; echo $username; echo $name; Now if using jquery $.post() i want to retrieve $username and $name ,how would I do it ? Thanks!
stackexchange/codereview
Can we access the native email client from an iPhone web app, or a BlackBerry web app?
stackexchange/codereview
The default implementation on Stream creates a new single-byte array and then calls Read. While this is formally correct, it is inefficient. Any stream with an internal buffer should override this method and provide a much more efficient version that reads the buffer directly, avoiding the extra array allocation on e...
stackexchange/codereview
In MS Word it's possible to add words to a custom dictionary so they're recognized. If a word is not recognized, Word automatically puts a red squiggly line underneath it. If you add that word to the custom dictionary, this line disappears. What I'd like to do is perform this process automatically via a macro. It appea...
stackexchange/codereview
The LOD description I've seen (for example, Wikipedia, C2 Wiki) talk about not calling methods. To quote Wikipedia: The Law of Demeter for functions requires that a method M of an object O may only invoke the methods of the following kinds of objects: - O itself - M's parameters - any objects created/instantiat...
stackexchange/codereview
I can't get before & after callbacks to work with the cycle plugin for jQuery! I'm not sure what's going wrong, i even tried using the sample code from the documentation. Here's the code: $(document).ready(function(){ function onBefore() { alert('before'); } $('.slideshow').cycle({ before: 'onBefore'...
stackexchange/codereview
I have a problem in a class of mine that uses the decorator pattern. The problem arises when the inner object uses the "this" reference in calls to other objects. This causes all calls from the object that received the "this" reference to be made directly to the inner object, without going through the outer first. Wha...
stackexchange/codereview
when i tried this: DECLARE @var nvarchar(500) collate Arabic_BIN i got that: Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'collate'. that is the full code, it works, i do not know how but the person who give it to me have used it successfully CREATE FUNCTION fn_RemoveTashkeel (@InputString nva...
stackexchange/codereview
Here is an example to use SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class - [STAThread] static void Main(string[] args) { try { SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class objBL = new SQLXMLBULKLOADLib.SQLXMLBulkLoad4Class(); objBL.ConnectionString = "Provider=sqloledb;server=serve...
stackexchange/codereview
I'm working on my first Android app and can't figure out how to get my SimpleCursorAdpater to populate the view. The cursor that I'm passing in has results in it, so the problem must be somewhere in instantiating the adapter or in binding it to the view. I'm sort of at my wits end since no exceptions are thrown and I...
stackexchange/codereview
Hi my program is supposed to display a solid red colored sphere in the center of the screen, all i am getting is the boundary of the sphere : int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA); glutInitWindowSize(800,600); glutInitWindowPosition(0,0); glutCrea...
stackexchange/codereview
I want to have dynamic spinner in android e.g one spinner for country and depending upon the value selected in Country, i want to get another spinner for states.
stackexchange/codereview
It seems that all the browsers other than Opera cache XHR requests in my Javascript program. The URL in the XHR request refers to a CGI program on the server which generates a different output everytime its called. B Is there a way in Javascript to make the browser not cache XHR requests?
stackexchange/codereview
I am using Enterprise Library.I want to map the column (of integer type) to Enum Type. Say Enum BloodGroup Type { OPositive, ONegative, ABPositive, ABNegative, BPositive, BNegative, NotSet } I am mapping Database Table's column to C# Types's (Class Employee) Properties. IRowMapper<Employ...
stackexchange/codereview
I am trying to convert a java project to a dynamic web project programmatically by adding the required project facets. Here is my code: IProjectFacet JAVA_FACET = ProjectFacetsManager.getProjectFacet("jst.java"); IProjectFacet WEB_FACET = ProjectFacetsManager.getProjectFacet("jst.web"); iFacetedProject.install...
stackexchange/codereview
I have just became a partner of a company that has a site developed in JAVA. As part of the agreement they allow me to create a section on their site (so I can take benefit of their traffic), but the development of this section needs to be as less intrusive as possible. So ideally I would like to implement an independ...
stackexchange/codereview
Need to search a string and replace value="ANYTHING" with value="", basically blank out the value. Thanks.
stackexchange/codereview
We have an app that creates text log files of requests to it. Pretty typical stuff in the log file and it is space delimited (date, time, url, http code, ip, user agent, etc). Currently, we are generating around 500k entries in the text log files per day. We're currently doing a lot of analysis via sed/awk/grep of th...
stackexchange/codereview
I just started out with Doctrine and it has been awesome so far. I have a little challenge though. class TestTable extends Doctrine_Table { public function getRecent() { return $this->createQuery('Test')->execute(); } } class Test extends Doctrine_Record { public function...
stackexchange/codereview
I hope to find an answer on how to achieve functionality I am trying to have. I have two listboxes. I generate content for them from XML. I also define UriSources in XML. I'd like to find out how to achieve a navigation by clicking any listbox item in any listbox. As a result, I need to be able to update Frame's Sourc...
stackexchange/codereview
I am trying to overload the = operator on a simple C++ class called Set that contains a dynamic array of ints. For the = operator, I first want to check for self assignment, so I wanted to compare 2 pointers to make see if they have the same memory address. Here's the code: Set& Set::operator=(const Set& setEqual) { //...
stackexchange/codereview
I am looking for a Standard Inheritance System that can work in both node.js and browsers. sys.inherits doesn't work in old browsers (Object.create). All js libraries (jquery, extjs, dojo...) have similar but diff inherit systems. (Don't know which one is good for node.js) Want to use one which is simple and may become...
stackexchange/codereview
When streetview is not available for a certain location, I would like to find the nearest possible location with streetview? The only way I could think of is. radius = 0; noOfPoints = 3; while(radius < 10 miles){ radius = radius + 0.2 miles points = calculate 4 * noOfPoints at this radius loop(points) ...
stackexchange/codereview
first of all, the question from a naive point of view: I've got a WebApplication with a URL to a product like Products?id=123. Let's say I've got an administration page reachable from Products?id=123&editable=true. If I consider that no one will ever try to enable the editable parameter, and thus don't need any further...
stackexchange/codereview
I'd like to say int x = magic(), y = moremagic(); return i => i + (x/y); and have the x be captured as a constant instead of a variable reference. The idea is that x will never change and so when the expression is later compiled, the compiler to can do constant folding and produce more efficient code -- i.e. calculat...
stackexchange/codereview
Is a cookie secure in a HTTPS connection?
stackexchange/codereview
Version 2.3.4 Let's say, I have an items table with some fields, for example: id, name, something, created_at, updated_at, is_dirty. I'm using active scaffold to display a HTML table from it. class ItemsController < ApplicationController layout 'application' active_scaffold :item do |c| c.columns = [ :id, :name...
stackexchange/codereview
In my iPhone App I need to show the videos which are in Flash format. I asked the client to change the videos in iPhone compatible format. They stored the converted the video on a server and I am able to show the video using MPMoviePlayerController. Now we need to store around 25 videos (Each around 300 MB) and access...
stackexchange/codereview
I have some price values to display in my page. I am writing a function that takes the float price and returns the formatted currency value with currency code too. like fnPrice(1001.01) should print $ 1,000.01.
stackexchange/codereview
I have a 2d array of a class. The size of array is very large (around 3000*3000) and accessing the array with ordinary row and column method is taking very much time. For this purpose, I want to use pointers to access the array. Following is my array code: Class definition: Class BoxData { Size _bound; bool _...
stackexchange/codereview
Possible Duplicates: Booleans, conditional operators and autoboxing Java, Google Collections Library; problem with AbstractIterator? The code below produces a NPE: Integer test = null; Integer test2 = true ? test : 0; System.out.println(test2); To correctly print out "null" without an exception requires this code: ...
stackexchange/codereview