instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
If I have a 4 byte address stored in char address[4] and the contents are: address[0] = '\x80'; address[1] = '\xAB'; address[2] = '\x0A'; address[3] = '\x1C'; // all together: 80 AB 0A 1C I want to convert it to a character array that looks like "128.171.10.28", since 80 in hex is 128, AB in hex is 171 and so on. How...
stackexchange/codereview
Is there an easy way to do this? In Python, I created a script to get a "square box" from an image...based on the center. However, that killed some of my brain cells. Is there an easy way to do this for a 3x2 (3 width, 2 height), based on the center? This is my "square box" script, but I don't feel like modifying it f...
stackexchange/codereview
From the outside of a control, is it possible to find out what stage of the Page LifeCycle (Init, Load, PreRender etc), a particular control or page is up to? For example, in pseudo code: if myControl.CurrentLifeCycle == Lifecycle.Init { do something }
stackexchange/codereview
I am preparing to write a platform independent socket protocol. After some initial research protobuf seems the way to go. I am new to protobuf and I can't seem to figure out one specific issue. My requirements are: Completely platform independent client; C# server; Async message communication; Work from a .proto file ...
stackexchange/codereview
Why does the following code: pointcut callsToList() : call(* List.*(..)); before(List l) : callsToList() && target(l) { System.out.println("cool"); } generates the following warning: advice defined in org.eclipse.ajdt.examples.ListAdvice has not been applied [Xlint:adviceDidNotMatch] I am working with in...
stackexchange/codereview
is it possible to create a 'select in'-query with the hibernate critiria api ? Example : I have two tables in a 1:n relation, company and department select * from company c where c.id in (select company_id from department d where d.departmentname = 'HR' and d.location = 'xyz')
stackexchange/codereview
I need to add objects selected by UIImagePickerController into an NSMutabeArray, the code goes as: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissModalViewControllerAnimated:YES]; if(![imagesArray containsObject:[info objectF...
stackexchange/codereview
In my project, there is a UILabel with text. The font size is 16pt. The text contents are changed depending on different cases. I hope it can automatically adjust the width of UILabel to fit the total width of texts without stretching. Is it possible?
stackexchange/codereview
I have a report with a tablix. In the Tablix I have 2 Column Groups, the first level in the Column Groups is "Continent" and the second level is "Country". Now the users want to have different background colors depending on the value in the "Continent" group so that all Asian Countries are green and all European Countr...
stackexchange/codereview
It’s always pleasing when a piece of software works the way you want to, but as long as I don’t understand precisely why (or how) it works I consider that a big problem. I made an ICMP listener to compensate for a flaw in the ’UdpClient’ class, that will not return appropriate ICMP messages resulting from requests made...
stackexchange/codereview
(3).constructor is Number, but "constructor" in (3) is TypeError, why?
stackexchange/codereview
Please, Help me... public class TestActivity extends PreferenceActivity { /********/ mTestPref = findPreference("test_preference"); mTestPref.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference)...
stackexchange/codereview
So, I'm struggling a bit with my programming project. I have a object that stores player information, name, wins, losses. I proceed to use that object in another object (a bracket) that sets the values of the player information, after each loop it copies the player object to a NSMutable in the bracket class. Within th...
stackexchange/codereview
I have a menu built with jquery from apycom.com that I am trying to center. The menu items are from a cms and dynamically created when the page loads. So this means that the menu isn't a fixed width. I have tried several methods using just css, but without having a width set for the menu, they don't want to work. I hav...
stackexchange/codereview
I found this on MSDN: On 32-bit Windows platforms, the operating system automatically fixes kernel-mode memory alignment faults and makes them invisible to the application. It does this for the calling process and any descendant processes. This feature, which often dramatically reduces performance, has not been im...
stackexchange/codereview
When implementing the weak-reference and/or thread synchronization pattern for delegates, are there guidelines and or anti-patterns as to where the logic should be implemented? Consider that the class WindowA wants to subscribe to an event on DataB, where DataB is a long-lived instance which is modified on many (non-UI...
stackexchange/codereview
Seems that pycairo was branched to py2cairo for 2.x versions back in May. There are no pip or easy_install installation options for py2cairo. I've grabbed the latest py2cairo tar, as well as the cairo 1.8.10 package which is registered as a dependency. When I try to configure cairo first, it errors out at the end that ...
stackexchange/codereview
I have configured an ASP.NET application as follows: <customErrors mode="RemoteOnly" defaultRedirect="~/Error.aspx"/> When I browse to the ~/Error.aspx file the server returns 200 and the page is rendered. But if the user is redirected to the error page a querystring is appended to the path: /Error.aspx?aspxerrorpath=...
stackexchange/codereview
class A{ A(int i){ } } A obj=new A(1); while creating Object if i pass positive numbers object must be created. A obj=new A(-1); If negetive numbers are passed it object must not be created. How to adjsut the constructor to do this
stackexchange/codereview
There are several questions about zooming and panning with jQuery, but they all (as far as I can tell) have to do with hooking up the zooming or panning to user behavior, such as mousing or using a slider. I'm interested in something different: any advice on making the panning happen automatically? The sort of thing I...
stackexchange/codereview
I want to tweak the main config file for web matrix. I thought I found it in C:\Program Files (x86)\Microsoft WebMatrix\config\applicationHost.config but changing the file and restarting WebMatrix has no effect. Where can I find the file that it's using?
stackexchange/codereview
I'm using the Google Maps generator to create a few maps for a client. The maps embeded on the site are a bit small (255x176), so map real state is crucial. I've already removed the balloon, but can't find a way to remove the "Earth" view button from it (all newly generated maps come with it now, 4 views in total). The...
stackexchange/codereview
I want to convert my .NET Website that is currently in .NET Framework version 3.5 SP 1 to 4.0. Now you get a conversion wizard when you open a VS 2008 solution in VS 2010. The wizard will convert the solution to 2010 and at the same time can convert the projects to .NET 4.0. I already converted my solution to VS 2010 b...
stackexchange/codereview
I was reading a job listing that said: MUST have prior experience on large scale websites What is the definition of a large scale website? Is it defined by a certain number of pages in a site or traffic perhaps? What is a large scale website as referred to in the job listing? * EDIT * This is the full job listing ...
stackexchange/codereview
Now that i learned how to pass values to an SWF object via flashvars, could you please guide me how can i pass values from a querystring to javascript? What do i mean? In the following example i hard-code the xml file to load in the SWF object. <script type="text/javascript"> var so = new SWFObject("preview.swf", "...
stackexchange/codereview
Is there a limit in Delphi to the number of items you can have in an enumerated type? I need to create an enumerated type that might have several hundred items, and want to make sure there is not a limit at 255 items for example. type TMyType = (mtOne, mtTwo, mtThree, ..., mtThreeHundred);
stackexchange/codereview
Hello I have a problem. I know how to calculate moving average last 3 months using oracle analytic functions... but my situatiion is a little different Month-----ProductType-----Sales----------Average(HAVE TO FIND THIS) 1---------A---------------10 1---------B---------------12 1---------C---------------17 2---------A-...
stackexchange/codereview
Given a street, city, lat/long, and zip, how do you create an anchor link to a Google Map? Following a Gmap result, I tried to mimic the link it gave. So far, I have tried: $street = str_replace(' ', '+', $location['street']); $street = str_replace('#', '%23', $street); $city = str_replace(' ', '+', $location['city']);...
stackexchange/codereview
Which databases are supported by PHP? I know PHP supports MySQL, but does it also support other databases like MS SQL Server, Oracle, etc?
stackexchange/codereview
What's the easiest way, given a Type object, to test to see whether it is actually a list of objects? I.e. Array or IEnumerable/IEnumerable<>.
stackexchange/codereview
From what I'm reading, this is the sort of thing that is meant to be done with a division operator, but apparently that is not implemented in MySQL. Basically, my setup is a table with two columns where keys are listed multiple times with different listings in the second column, e.g. PID | GID A1 | G1 A1 | G2 A2 | ...
stackexchange/codereview
I don't usually code in Java, but recently I started not having a choice. I might have some major misunderstanding of how to properly use HashSet. So it might be possible something I did is just plain wrong. However I'm grateful for any help, you might offer. So the actual problem: In a small program I was writing, I w...
stackexchange/codereview
I am new to jquery and I am having problems trying to retrieve an item from the database and display the results. I am using codeigniter php. What i am trying to do is this. I do a search, the search returns a list of posible results which is displayed in a div called venue_description. Onclick of one of the items from...
stackexchange/codereview
I'm working on a Cocoa application into which I'd like to allow Mail messages to be dropped. If I include public.plain-text in my Info.plist Document Types, I can drop a Mail message on the icon in the Dock and get a file path like this from the application:openFiles: delegate method: "/Users/smokris/Library/Caches/Tem...
stackexchange/codereview
Do async operations with callbacks increase the stack size? I don't have enough knowledge of javascript interpreters or the proper tools to figure this out. My goto tool is the firebug console and it shows that the stack size is not increasing but I could be looking at it wrong. So does anyone know?
stackexchange/codereview
How can I prove that n! is not in O(n^p) for any constant natural number p? And is (n k)(n choose k) in O(n^p), for all k?
stackexchange/codereview
I'm writing FBML code for my tab on my fan page and I want the visitors see only an image on that Welcome Tab since they click "Like" button on top of the page, just next to page name. When users like my page, then I'll show a content in that tab. I'm trying to do something like this: http://www.facebook.com/901Tequila...
stackexchange/codereview
A few users have been asking me Android lock screen widgets for my app - I believe they want a widget that stays on their lock screens and allows them to interact with the app. I haven't been able to find any official documentation for this - the only thing I found was apps that will take home screen widgets and put th...
stackexchange/codereview
Can anyone explain regular expression text substitutions when the regular expression is held in a variable? I'm trying to process some text, Clearcase config specs actually, and substitute text as I go. The rules for the substitution are held in an array of hashes that have the regular expression to match and the tex...
stackexchange/codereview
I'm trying to update a field which contains HTML and I want to find all the rows that have forms in them and remove the form tags and anything in between them, however I'm running into problems with my select and the regex. SELECT * FROM db.table WHERE body REGEXP "<form[^>].+?>.+?</form>"; and the error I get says: '...
stackexchange/codereview
I am making a CMS which can be extended by third-party developers. In the past I have had problems with newbie developers ignoring security all together. When they put their modules on my website, they are potentially compromising users websites. I want to create a globals object. This will overwrite all globals with a...
stackexchange/codereview
since I like 0 objective c syntax, I heard u can mix objective c and c++. So u will use objective c for UI and c++ for the application. Can i have a code example of how to do this? I mean, on a button click even can i call a c++ method? How can I interact between c++ and objective c? This may be usefull for an evantua...
stackexchange/codereview
I want to put an animated progress bar in an NSMenuItem custom view. This is demonstrated in Apple's MenuItemView sample, but it doesn't animate (at least not in 10.5, and the sample is apparently from 10.4). I have tried setting a timer that calls setNeedsDisplay:YES, scheduled as NSEventTrackingRunLoopMode like the d...
stackexchange/codereview
Caveat: I realize this is potentially a server configuration question, but I thought there might be a programmatic answer, which is why I am posting here... Running PHP on Apache, our users were able to issue multiple concurrent requests (from different tabs in the same browser, for example). Since moving to FastCGI u...
stackexchange/codereview
In another thread I introduced some techniques we would use for Model-Driven-Development in C++ once C++11 features, in particular user-defined literals, are available. I just revised the plans for GCC 4.5 and even 4.6 and it shows that this particular feature is not supported. Anyway, do you know if I even have any co...
stackexchange/codereview
Do I need some special DOCTYPE when I want to use CSS3 ? I have div with dashed border and I want to set border-image (only can with CSS3), but when I set border-image:url(.., nothing happens.
stackexchange/codereview
How do you check that data.results in the following is not empty before trying to perform actions on it? $.getJSON(myurl, function(data) { // if data.results is not empty // { // console.log(data.results.size); // } });
stackexchange/codereview
When I use the stock Blackberry simulator, the screen seems to NOT repaint when I interact with the virtual device. I have to minimize/restore the simulator app for the screen to get repainted, but it should have repainted on its own. This only happens on my Windows 7 machine, any ideas?
stackexchange/codereview
I want to set the Column width of XamDataGrid in XAML. There is no Width Property available like <ip:Field Label="Name" ........... Width="60"/> Here is my sample code. <ip:XamDataGrid Name="PatientsList" DataSource="{Binding PatientsList}" SelectedItemsChanged="PatientsListSelectedItemsChanged" ...
stackexchange/codereview
I was looking at the Golden 7 Restful Actions viz. Index New Delete Update Create Edit Show Now, I'm totally confused and not really sure if all of these are exclusive? For instance, what is the difference between Index and Show, New and Create or Edit and Update? Are they essentially the same? Does that mean, we have...
stackexchange/codereview
Is it possible to get the text area of a NumericUpDown control? I'm looking to get it's size so that I can mask it with a panel. I don't want the user to be able to edit AND select the text. Is this possible? Or is there another way of covering up the text in the text box? Thanks.
stackexchange/codereview
I am trying to use this solution to access items inside a telerik menu item: ascx code: <asp:Label ID="DivLeave" runat="server"></asp:Label> In the ascx.cs file I run this code to disable the asp label RadMenuItem expenses = RadMenu1.FindItemByText("Expenses"); Label DivLeave = (Label)expenses.FindControl(...
stackexchange/codereview
I’m sorry if the title isn’t clear, but this is a weird problem. I git checkout to my "stage" branch and git pull to get my partner’s latest changes (which he pushed last night to the "stage" branch on the remote repository), and sure enough, they merge to my local "stage" branch. git log <branch> shows five commits he...
stackexchange/codereview
The creative team wants to be able to use Zotonic to manage images used outside of the main website. In order to do this they are currently linking to images as follows: <img src="http://example.com/media/inline/2010/10/29/image.jpg" /> This has a huge flaw. Every time an one of these images is replaced in Zotonic t...
stackexchange/codereview
I can't find a good answer to this simple question: Where can I add my i18n files in a GWT project ? I see two solutions: - create a module and add all i18n files for this module in this module - create a complete different structure to put all i18n files (no matter what module) in the same directory (and so, easy to c...
stackexchange/codereview
How do I replace multiple consecutive newlines with one newline. There could be up to 20 newlines next to each other. For example James said hello\n\n\n\n Test\n Test two\n\n Should end up as: James said hello\n Test\n Test two\n
stackexchange/codereview
If I have defined all the digits in a Prolog database, such as dig(0), dig(1), ..., dig(9). What query can I use for Prolog to return the largest digit -- in this case, 9? I tried something like: ?- dig(N), dig(M), N > M. But that just returns the first possibility, not the largest number.
stackexchange/codereview
Hallo all, I'm looking for some good library, that works with bitsets or bitarrays. Anybody knows something better (or not worse in all cases) then boost::dynamic_bitset? No matter if the library is open source or commercial. In my project it is a common task to store and work with large bit masks, that contain less nu...
stackexchange/codereview
I have a piece of code that 'updates' an entry in the database by first cascade deleting it, and then replacing it with a new object, because I had a lot of problems trying to update it normally. This hack worked fine, until I started using some ManyToMany relations. This is the relation that is giving problems: @ManyT...
stackexchange/codereview
I'm getting an odd compilation error in an ASP.NET MVC 2 application using VB.NET: Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30456: 'Title'...
stackexchange/codereview
I'm workin with PHP imap and Gmail. I want to show the content of an email in a webpage. However when I get the check the code, it has -break lines everywhere -"=3D" characters in all the source. Is there a way to get the mail body for a webpage? Example: width: 24px; padding: 0pt;">&#160;</td> <td style...
stackexchange/codereview
I'm having a lot of trouble with what seems like a very simple thing. I cannot update a UILabel programmatically from a Navigation-based iOS App. I don't want to use a button as this label is designed to report the status of an external system, and should update on launch. There is no need to make the user go though th...
stackexchange/codereview
So I'm new to programming and I'm trying to learn JS with the book Eloquent Javascript. So far so good, until I reached an example with the following code function makeAddFunction(amount) { function add(number) { return number + amount; } return add; } var addTwo = makeAddFunction(2); var addFive = makeAddFu...
stackexchange/codereview
I am trying to get more performance out of c# GDI+ DrawLines function. When I run a profiler on the the code I see that almost half of the time spend in the DrawLines function is preparing the point array to be send over to the native GDI+ dll. This seems like a big overhead and I am wondering if anyone could come up w...
stackexchange/codereview
I have a class that contains only fields and no methods, like this: class Request(object): def __init__(self, environ): self.environ = environ self.request_method = environ.get('REQUEST_METHOD', None) self.url_scheme = environ.get('wsgi.url_scheme', None) self.request_uri = wsgiref....
stackexchange/codereview
I have a problem with the below one. This Javascript:void(0) is stopping me from showing the page securely with https. What is it actually? I have no idea about javascript. Please help me out! Thanks alot! var clear="js/clear.gif"; //path to clear.gif document.write('<script type="text/javascript" id="ct" defer="defe...
stackexchange/codereview
We have a multi services application. We have moved a method that involves a DB access to a separate component that is exposed by a WCF endpoint. We have more than one service that need to use this method. The dilemma is what to use: A WCF call to the method. Call directly to the method, resolved by our DI engine. Th...
stackexchange/codereview
I have custom post type items in my theme. They represent projects in portfolio. I have a custom field checkbox that sets the option "Featured" for every single project. So, when the project is featured, it's being shown on the main page of the site. If the "Featured" checkbox is unset, the project is visible only on t...
stackexchange/codereview
Sorry for my bad English. I'm from Germany and have some problems with parsing my xml file. I use the latest version of the iOS SDK, including Xcode. Parsing my xml file causes a well known error, called "Requesting for member 'Slices' in something not a structure or union" Seems that I have forgotten something, initia...
stackexchange/codereview
I need to submit just one input field value to a cgi script via a web form. I've added a couple of extra form controls (a check box and radio buttons) which manipulate the input value depending on the states selected. When the form is submitted, the extra form field values are submitted as well which breaks the cgi...
stackexchange/codereview
I have a pointer that is pointing to the start of an array, but I need to check that it is unallocated. I thought of dereferencing the pointer and checking if NULL but that leads to a type error. Can anyone see what I'm doing wrong? int mydispose(int *array){ int i = 0; if(*array == NULL){ return 1...
stackexchange/codereview
I have a SQL table with indexes containing leads to call. About 30 users will be calling these leads. To be sure that there is no two users calling the same lead, the system has to be instant. So I would like to go this way: Set the table to the right index Scan the table for a lead I can call (there are conditions),...
stackexchange/codereview
Say I have the following tables: GearType : snowboard/helmet/shoes/whatever GearModel : which describes the manufacturer, size, and GearType Gear : represents a physical instance of a gear, belongs to a GearModel and describes its barcode, number of times it has been worn... Member : a person who may be assigned a Gea...
stackexchange/codereview
I am trying to set the workbook theme using VBA code. ActiveWorkbook.ApplyTheme("C:\Users\Chris\AppData\Roaming\Microsoft\Templates\Document Themes\MyTheme.thmx") This works but I don't know how to create a path to the "Document themes" folder which will for work all users? Thanks Chris
stackexchange/codereview
I have a database with a gazillion entities, I watched Tim Heuer's video about Silverlight & RIA Services, and he explained how to generate a DomainService. My question is, should I use many domain services for each entity or merge them all along with all their queries into one big DomainService?
stackexchange/codereview
I want to add multiple background image using css for my site.I use this code. #container{ margin:0 auto; width:1154px; background:url(../img/background-top-new.jpg) no-repeat, url(../img/background-middle.jpg) repeat-y; height:auto; } I face this problem in ie. If you have any solution for this problem pleas...
stackexchange/codereview
Is it possible to add 'To...' 'Outlook.OlkTextBox' OlkTextBox control at my WinForm (form region), so it will work like outlook build-in (I don't want to create my own copy of outlook address email input)? If yes, could you somebody post a code sample? Thanks! P.S. Microsoft Office Outlook Text Box Control equals Outlo...
stackexchange/codereview
First, I developed a Java EE application with a Adobe Flex frontend and I used BlazeDS. So I had in the Java backend this structure: IServiceX -> ServiceImplX -> IDaoX -> DaoImplX So the frontend called a service like "addUser(User u)". The service implementation calls the Dao interface which implements a Dao to a data...
stackexchange/codereview
I have tried to convert an ascii string to an escaped pseudo unicode escaped string using python, but failed so far. What I want to do: Convert ASCII 'a' to ASCII String "<U0061>" I can convert "a" with unicode('a'), but can not safe the numerical value of a in an ascii string. How can I do that?
stackexchange/codereview
I have been searching for an answer to this but cannot find a simple example to help me understand. I am writing win form app in c# that wraps up a bunch of command line tools used for video encoding. I have a method called encodefiles i want to run this method in a thread so that the UI can still operate. Once the thr...
stackexchange/codereview
how generate PDF document with MYSQL query more than 15 fields with wrap text? I have generated PDF with fpdf option. but I have created only 8 fields with nowrap text. so any one please solve the solutions. thanks. For example. I have created with nowrap text. $pdf=new PDF(); $pdf->AddPage(); $pdf->SetFont('Arial','B'...
stackexchange/codereview
I'm curious if anyone else has had similar experiences with WPF ItemsControls (ListView, ListBox, etc), and hopefully some advice for me. :) Just a regular ListBox, with say... 300-500 items (with or without databinding, made no obvious difference), with virtualizing enabled, when I click and drag the scrollbar "thumb"...
stackexchange/codereview
I'm trying to make the font on a LabelField the same size as the built-in digital clock on the Storm and Torch. No matter what I set the size too, it seems to only goto a certain size and it will no longer increase. How do I increase the font size / label width? // set up custom font for timer label if (FontManag...
stackexchange/codereview
I think that seem is more good performance , but have not use in app. I have use the kit in a test app, but I found the code seem is not good, some exception does handle , the test app crashed like when connect failed, I have to modify the core code of the kit to solve such problem. I am not sure whether the lib code ...
stackexchange/codereview
I am working on a class project and I've run into a problem I can't figure out. I have a feeling it's actually pretty easy, but I've been working on stuff so long I can't think straight anymore. I have a login page that allows a user to login and pass 2 data items to the next page using Context.Items and Server.Transfe...
stackexchange/codereview
Possible Duplicate: About password hashing system on client side I have to secure the passwords of my web site users. What I did was use MD5 encryption hashing in server side. But the problem is the passwords remain in plain text until it arrives at the server, which means that the password can be captured using tr...
stackexchange/codereview
On reading the man page for git cherry-pick, my understanding is that it takes just the changes introduced by one commit, and you can then apply these changes pretty much anywhere. So let's say I have a file that I build up over 4 commits like so: line from commit 1 line from commit 2 line from commit 3 line from commi...
stackexchange/codereview
I want to store blog and its tags as separate documents. Blog post should have tag_ids field and tag shouldn't have blog_posts_ids field. Mongoid provides many to many relations out of the box, but it requires both documents of many to many relation to have _ids field. class BlogPost include Mongoid::Document field...
stackexchange/codereview
Here's a somewhat general computer question. I've always been able to follow the LOGIC of programming, but when I go to code something, I always find that I don't know some method or another to get what I need to get done. When I see it, I always think, "OF COURSE!". How do you go about finding relevant methods for yo...
stackexchange/codereview
How do you get a program to print with a printer in java? I'm trying to get together a board game for my friends and I to play but the mechanics of it requires that a new deck of cards be created for every game.
stackexchange/codereview
I am trying to learn XML by reading from W3schools. I am already at the DTD chapter but I would like to try the samples there. Thru search here at SO, I found out regarding this free tool XML editor called Greg XML Editor My problem is that when I tried to include the Document Type Declaration at the xml file. It is ...
stackexchange/codereview
I have a public method which calls several other private methods, repeatedly. These private methods accept one or more parameters (most of them are strings) and have a return type. All of these parameters are value type parameters. I would like to know if I can improve the performance of my ASP.NET application my conve...
stackexchange/codereview
I have a CSV file and want to generate dumps of the data for sqlite, mysql, postgres, oracle, and mssql. Is there a common API (ideally Python based) to do this? I could use an ORM to insert the data into each database and then export dumps, however that would require installing each database. It also seems a waste of ...
stackexchange/codereview
Is it possible to create chained methods that are asynchronous like this in node.js File.create('file.jpg').rename('renamed.jpg').append('Hello World') That is to say non-blocking.
stackexchange/codereview
I have a document in mongodb with 2 level deep nested array of objects that I need to update, something like this: { id: 1, items: [ { id: 2, blocks: [ { id: 3 txt: 'hello' } ] } ] } ...
stackexchange/codereview
Hello I google d a lot but i could not find a tutorial for web app if some one can provide me the with tutorial it would be a great help. During my search i found this site http://www.iwebkit.net but could not get the idea i want is basic idea for web app with tutorial . The website provides info about some iwebkit f...
stackexchange/codereview
Can you please suggest me, best way to show pdf files in iphone since i had used UIWebview, it took 3 - 4 mins to render in webview. Also i faced _WebtryThreadLock error. Srini
stackexchange/codereview
I want to read the last n lines of a very big file without reading the whole file into any buffer/memory area using Java. I looked around the JDK APIs and Apache Commons I/O and am not able to locate one which is suitable for this purpose. I was thinking of the way tail or less does it in UNIX. I don't think they load ...
stackexchange/codereview
I have a network drive (for instance, G: on Server A). And I am trying to map an additional network drive (H:) to a new server (Server B). I tried the net use command, giving to rise to error 1219 on Window XP. net use h: \\ServerB\docs /user:ServerB\user Password I am connecting the network drive of Server A using S...
stackexchange/codereview
I just started learning node.js. I have following (server) sample: var app = require("express").createServer(); app.listen(80); function fail(req, res, next) { setTimeout(next, 10); } function success() { return function(req, res, next) { setTimeout(next, 10); }; } app.get("/success0", success(), function(req, re...
stackexchange/codereview