instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I wonder why putting a comma at the end of a single element is legal in a JavaScript array: var array = [ 'foo', // no error in IDE ] while putting it at the end of a single element in an object is illegal (at least my IDE - WebStorm - is flagging about an error): var object = { 'foo': 'bar', // error in IDE }...
stackexchange/codereview
Dump of assembler code for function phase_1: 0x08048bcc <phase_1+0>: push %ebp 0x08048bcd <phase_1+1>: mov %esp,%ebp 0x08048bcf <phase_1+3>: sub $0x10,%esp 0x08048bd2 <phase_1+6>: push $0x8049808 0x08048bd7 <phase_1+11>: pushl 0x8(%ebp) 0x08048bda <phase_1+14>: call 0x8048f9c(strings_not_equa...
stackexchange/codereview
Just been looking at the way I am structuring my classes and wondering it there is a better way. I have forms which pass the information through to the process class. This class just forwards everything onto my main class which then does the work. When the work is done, it then passes the information through to the dat...
stackexchange/codereview
Given an array map with size of 256, what is the best way to initialize it so that each element is false? bool map[256]; for (int i=0; i<256; i++) { map[i] = false; } Thank you
stackexchange/codereview
I can do something like this: $(document).ready(function(){ $(".schedule_link").colorbox({width:"95%", innerHeight:344, iframe:true}); }); to attach the colorbox to a link ... <a class='schedule_link' href="index.html">Schedules</a> ... but what is the syntax to attach it to an imagemap like this? <map name="myma...
stackexchange/codereview
My whole idea is a little more complex, but just to break things down so they're simple and to the point here...I have a button on a widget that i need to open the "places" activity in the official facebook app. Here's the code i'm using: Intent PlacesIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY...
stackexchange/codereview
I have a typical HABTM relationship between members (actual members of our organization, not all have online accounts) and users (online accounts). I have an edit users page for site administrators where multiple members can be assigned to users. There are too many members to reasonably use checkboxes or a multi-select...
stackexchange/codereview
I have a page form, where i want the user to add nested forms by clicking on a remote link ('add photo', f. ex). Upon clicking the button I inject the nested forms with RJS. The injected forms are remote forms, but after injection the forms have no javascript events attached so they just submit with http to the control...
stackexchange/codereview
I am building a model which keeps track of posts that a given user has read (in Rails 3). The table that tracks this is 'readings.' a reading belongs_to both :user and :post, both of which has_many :readings. When a user sees a post, it is marked as read, and a 'reading' is created with the user_id and post_id. Thi...
stackexchange/codereview
For a "hello world" type xml document: <?xml version="1.0" encoding="UTF-8"?> <!-- see http://www.w3.org/TR/REC-xml-names/ --> <bk:book xmlns:bk="urn:loc.gov:books" xmlns:isbn="urn:ISBN:0-395-36341-6"> <bk:title>Cheaper by the Dozen</bk:title> <isbn:number>1568491379</isbn:number> </bk:book> you can arbitrarily de...
stackexchange/codereview
I have been a Windows user for many years but the other day, I made the switch to Mac. I use Eclipse on Windows to do my Java projects for University, and having imported these into Eclipse on OSX Leopard, I get all sorts of errors, on programs that worked fine before. Any suggestions, as I am new to the Mac platform a...
stackexchange/codereview
I'm trying to figure out when [NSView setNeedsDisplay] is called for a particular object. I want to set a breakpoint on it that fires only when the self pointer refers to the object I care about. The method is called probably hundreds of times around the time it's called for my object, so something like a breakpoint co...
stackexchange/codereview
I try to make a connection between arduino and Flex 4.0, I added the JSON lib and also as3corelib.swc to Flex. When I run the Flex file the connection between PC to arduino is working (I can see it in SERPROXY window) and also I don't have any problems in Flex window, I added the SWF file of Flex to the list at //htt...
stackexchange/codereview
our workgroup is slowly trying a little bit of OpenCl in a side project. So far 'everybody' is working on NVIDIA Quadro FX 580. Now we are planning to buy new computers for new colleages and instead of the FX 580 we could buy ATI FirePro V4800 instead, which costs only 15Eur more and give us 1Gig instead of 512Gig of R...
stackexchange/codereview
I'm studying ML in class and I've run into a homework problem I am stuck on. I've spent all day yesterday searching but made little progress and we did not talk about this in class, so I am hoping you guys can help me. We are given: datatype which = STRING of string | INT of int Part 1. We are told we need to create a...
stackexchange/codereview
Can we submit different apps with the same name for different regions? For example, for a MNC, can we submit an app for say US, and a different app (for the same company - so same name) - for say UK? I searched in the net, but couldnt find any link relevant to this.
stackexchange/codereview
My HTC Wildfire does not support Arabic and Hindi Unicode characters, however it supports Chinese. Arabic and Hindi characters are displayed as boxes. I have written an application that uses Google's translation service.
stackexchange/codereview
if we want to access a sharepoint list and get data in a item we can access like this: foreach (SPListItem item in itemcoll) { string modified = item["Modified"].ToString(); } Similarly, to access a Sharepoint Group SPGroup programmatically, how to do this? I want the modified column v...
stackexchange/codereview
I all, I have a requirement where I have to write a web part that configurable to all users. Each user can able to modify the web part and personalise it based on there preference. So when next time he gets login he will see configutation settings set by him...! Any help will be appriciable !!! Thanks in Advance! Sachi...
stackexchange/codereview
I am trying to send an object over tcpclient from the server to a client and i get an error . First, here is the pack class : [Serializable()] public class pack { public int a; } here is the server's sending code(it's namespace is WindowsFormsApplication1) : pack pachet = new pack()...
stackexchange/codereview
Today, I want to measure the Wi-Fi signal quality. So I download the Wi-Fi Analyzer app, and I install it on the emulator,but it showed that the Wi-Fi has not been turned on. Thus I turn it on, but it still shows errors. I tried several times but it is still not working. Any ideas?
stackexchange/codereview
I've been working on this issue for a couple days and have read several posts here, but I can't get my implementation to work. I am calling the powershell script during the Commit custom action. When I get to the pipeline.Invoke() method, I get an exception that says the entire script "is not recognized as the name of ...
stackexchange/codereview
I've written a PHP script that takes in two CSV files, processes them and returns an HTML table. I developed it on my MacBook running on Apache. When I uploaded the script to our production server, it began having problems. Production is an Ubuntu 10.04 LTS running nginx that forwards requests to Apache/PHP. I added so...
stackexchange/codereview
So I've got three tables (well, 2 tables and 1 mapping table) as follows: dbo.Catalog CatalogID // int [not null] autoincrement PK dbo.Product ProductID // int [not null] autoincrement PK dbo.CatalogProductMap CatalogID // int [not null] PK ProductID // int [not null] PK I have checkboxes on a page for...
stackexchange/codereview
Is there something like a placeholder for a control in silverlight? If I have a dynamically created control in my view-model how can I bind it to some element in Xaml? Is it the right way to achieve that: <ContentControl Content="{Binding MyControl}"></ContentControl>
stackexchange/codereview
Yes im having a issue i thought i didn't have. When you submit it runs a javascript function, that runs an ajax call. This function have this right under it´s name(first line in the function): $('#submitWall').attr('disabled', true); This works very well, but not so well for the faster humans...I tried to click/press...
stackexchange/codereview
I can't for the life of me figure out what the problem with this code is. The animation itself works fine: if (!list.is(':animated')) { list.animate( {"top": "+="+item_size}, {queue:false, duration:speed}, function() { alert(); } ); // end of animate function } //en...
stackexchange/codereview
I'm new to WPF applications and I am dealing with an app that is storing some simple variables in settings.settings via the grid GUI in Visual Studio. The problem is that somehow two boolean variables have been set to true, and I can't seem to reset them. If I go back to the setting GUI, I can see that the value is set...
stackexchange/codereview
We are using list-editable list to edit some fields of our model in the change list itself. However, we currently need to hook the save button of the change list to do some stuff on the changed models. Is there a hook for that? Thanks,
stackexchange/codereview
This question... Check iOS version at runtime? ...received an answer explaining how to test if a class supports a method. (Over time, Apple may have added methods that the class, as presented in an old iOS, would not have. Rather than test for the iOS version, just test the class directly.) Can the same thing be done f...
stackexchange/codereview
I'm using the latest NMG version 2.0 RC1 to generate Fluent mappings for an Oracle 10g database. Unfortunately it is detecting multiple instances of many of the database columns, so my output includes up to 5 definitions for each column, all with the same name. I am working with hundreds of tables, so I really do not ...
stackexchange/codereview
I am trying to call wmisetbrightness, but it takes two inputs. How do I pass more than one input to ExecMethod? Code snippet below is obviously wrong. // set up to call the WmiSetBrightness Method BSTR MethodName = SysAllocString(L"WmiSetBrightness"); BSTR ClassName = SysAllocString(L"WmiMonitorBrightnessMethods"); IW...
stackexchange/codereview
I have a BGL graph and want to create a spanning tree using BGL. Starting from a specified vertex, I want to add the shortest edge to my graph which connects with this vertex. From there on, I want to always pick the shortest edge which connects with the graph which exists thus far. So, I want to add the constraint tha...
stackexchange/codereview
I'll try and explain this the best I can. I have an array called $linkSets, and it has array entires that look like: <string>,<integer> <string>,<integer> <string>,<integer> I also have a priority list, that goes in this order: 22 -> 18 -> 35 -> 34. I would like to check each integer in the $linkSets array, and get th...
stackexchange/codereview
I have a question about templates. I would like to have a templated class that contains, say, an array of either float's or double's. I can write a clone() function that duplicates it. No problem. However, I would like to have another function called cast() that does a translation back and forth between double and floa...
stackexchange/codereview
I have the code class ogre { public: int health; bool isalive; string name; }; int fight() { cout << "You're now fighting an ogre!" << endl; ogre ogre; player player; int ogredamage; int playerdamage; srand(time(NULL)); ogre.name = "Fernando Fleshcarver"; ...
stackexchange/codereview
In my table, I have taken capacity in this form. `capacity DECL(3,0) UNSIGNED Is it correct??I am not sure if the above method is correct to do it in this way? if I have to do it with PreparedStatement, how would it work?
stackexchange/codereview
string[] userIds = userList.Split(','); // is an array of integers IList<User> users = (from user in this.repository.Users where userIds.Contains(user.Id.ToString()) select user).ToList(); the above query gives System.NotSupportedException: LINQ to Entities does not recognize ...
stackexchange/codereview
I have a csv file with some junk at the beginning of the file. How do I get rid of it? sh-3.2# more data_combined.csv 84252,1,A ROSEAL The file should start with the number 842...
stackexchange/codereview
My program should do the following: User enters a string: University of the Cordilleras User enters the substring: er Program outputs the substring-count: 2 (University of the Cordilleras) I should not use .str, but create my own method.
stackexchange/codereview
I was wondering if one method is better than the other when it comes to getting the timestamp of the date today. Which is better? $timestamp = strtotime("now"); or $date_today = date("Y-m-d H:i:s"); $timestamp = strtotime($date_today); Is there even a difference? Thanks!!!!
stackexchange/codereview
I am troubled with this issue of horizontal scrollbar not apprearing in my Panel. My application is put up as 6 panels in column layout. Each panel is 250px in width. The issue is that the 6th panel gets displayed under the 5th panel rather than on its side!! How do I display the last panel on the right side rather th...
stackexchange/codereview
Any tutorials/exmaples or sample code available to convert opengl raw images (raw pixel data obtained from glReadPixels from an opengl 3d scene) into mp4 or avi format using ffmpeg libraries? Appreciate any help. Thanks in advance. EDIT: I want to generate and stream the video dynamically from these images. Is this pos...
stackexchange/codereview
There is similar question to this one here but I guess that by this one I'll get some results and provide added value. As a SDK developer/provider, I am guessing what to write in the documentation and what the documentation for the SDK should look like. Unavoidable sections that come to mind are: whole class referenc...
stackexchange/codereview
We have Lotus Notes based application, which is accessed by several users. We communicate with our users by using mailboxes which reside on Domino server. With mailboxes migrating from Lotus notes to Microsoft exchange. What are possible ways to continue communications categories mentioned below: 1) Send normal email ...
stackexchange/codereview
username@servername Tue Nov 02 22:08:28 ~/public_html/IDM_app $ sudo aptitude install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done The following NEW packages will be in...
stackexchange/codereview
I have two dictionaries {key1:[list_of_objects ], {key2:[list_of_objects ]} e.g dict1 = {key1:['a', 'b', 'c', 'd' ], key2: ['f', 'g', 'h' ] } dict2 = {key1:['a', 'b', 'c', 'd'], key2: ['f', 'g', 'h', 'i' ] } For eack key in both dict1 and dict2, i want to compare the items in the lists. i.e compare each value in di...
stackexchange/codereview
I have a prob where my "mark" that comes with TChart hide behind the bar...I added the marks and it draws itself behind the bars. Any way to bring it in front? i hope anyone can help me..thanks
stackexchange/codereview
hey guys, i love the jquery toggle function. however currently i'm facing a little issue where i don't know how to solve it in the best way. i'm having a div called #searchbox which is depending on a user-setting either hidden or visible. a toggle function that is triggered if i click on a button, should .slideDown() t...
stackexchange/codereview
If I use JPA (EclipseLink) to create tables a String type results in a varchar2(255). How could I tell JPA (via Annotation) to create a varchar2(20) attribute. If I have a List JPA creates a BLOB(4000) but I would like a varchar2 (my serialized object's string is short) How is this possible? Do I have to do it by hand...
stackexchange/codereview
Why does the code below return 11 with this :- @myarray = ("Rohan"); Explaination i got was :- The expression $scalar x $num_times, on the other hand, returns a string containing $num_times copies of $scalar concatenated together string-wise. So it should give 10 not 11 ... code is as below :- print "test:\n"; @myar...
stackexchange/codereview
Hey guys, I am trying to find a way to generate a UID to be placed in a URL. Right now I am looking at ways to create a UID's without using a sequential index from a db. This is what I have come up with. As far as I can tell this should only create duplicates if they are both created in the same 1/10000th of a second. ...
stackexchange/codereview
I have a nib file that contains the view at 320 wide for portrait mode and it works fine. cell.selectedBackgroundView = aView I set the auto resize mask to allow the tableview to expand in landscape mode like so: setAutoresizingMask:UIViewAutoresizingFlexibleWidth]; but this does not expand the highlight view that rema...
stackexchange/codereview
I realize that Javascript does not have classes and is not built to have classical OOP inheritance. But I find such patterns so useful that I wanted to build a simple way to model that kind of behavior, ideally while leveraging the best parts of Javascript's flexibility. What are the pros and cons of the following appr...
stackexchange/codereview
I'm trying to make a post-commit script that will, when I push changes to the server, will update the "staging" (where the client does actually have access). But the problem is that when the post-commit is called (I sudo su'ed to the svn user) and it gets: [svn@beautifulserver.com: / ]# svn update /home/my-beautiful-ho...
stackexchange/codereview
I have the following class definition and it needs a copy constructor so deep copies are made to copy the raw pointers. Can anybody advice on how to best do this? Using xerces-c++ for XML class XMLDocument { private: typedef std::vector<XML::XMLNode> v_nodes; public: XMLDocument::XMLDocument(); XMLDocument::...
stackexchange/codereview
How do i read the following file which has columns of data with header and space or tab delimited, in Haskell 98. How can i access each element in the input file for example if this 4 by 7 matrix, accessing [1][2] gives YR. Also how to get the difference in dates in Haskell 98 ID YR MO DA YrM MoM DaM 100 2010 2 20 201...
stackexchange/codereview
I have a Drupal website and I want to add a page in the admin menu with a form that will generate reports, based on the users that answer some enigma, and allow data extraction. How should I proceed to create the form and make the requests? Should I install a module like CCK to create the form and then use another modu...
stackexchange/codereview
im making a site that need to have random videos load on the front page. i have couple of swfs on the root, and i made a .swf named random that will load on the main page (uploaded in same folder with the swfs) and hopefully it will load one of the movies at a time. No luck so far. this is the code i use stop(); v...
stackexchange/codereview
Anyone know how I can write an LDAP query to determine what roles exist on a Windows machine (which may or may not be on a domain)? I would like to do this in Ruby, although if it's only possible to do in .NET, that is a possibility.
stackexchange/codereview
When i use ajax to load a page, i am trying to use a flash or text to show a page is loading. The code below works fine on Firefox and Chrome, not with IE. I dont know the problem. It seems the class dont stop at all. This is my Jquery script $(document).ready(function(){ $.ajaxSetup({cache: false}); $demo='tse'; $(...
stackexchange/codereview
I'm currently writing a program to upload video files from iphone photo album to server. I'm able to obtain the Asset from the library but how do I convert it to byte array. I already know how to upload file from application folder using NSStream. i'm juz puzzled how do up you upload asset to the server? do I convert i...
stackexchange/codereview
I've created an SQLite3 database in a Cocoa Objective-C project. The data comprises strings of Japanese characters so I need the database to be saved in UTF-8 format. How do I tell SQLite3 to adopt the UTF-8 encoding? Or is SQLite3 intelligent enough to set this once it has received a UTF-8 encoded string?
stackexchange/codereview
I'm facing a confusing problem. If you create a table like the following, you'll get an error: CREATE TABLE t ( a NVARCHAR(100) SPARSE NULL UNIQUE ) Msg 1919, Level 16, State 2, Line 1 Column 'a' in table 't' is of a type that is invalid for use as a key column in an index. Msg 1750, Level 16, State ...
stackexchange/codereview
As iPhone has a copy past feature for text, with a nice redo handler by shaking the phone, Im wondering whether I can use this feature to redo a button touch action who was touched mistakenly by the user. Any idea? Markus
stackexchange/codereview
I have made a program in Java that calculates powers of two, but it seems very inefficient. For smaller powers (2^4000, say), it does it in less than a second. However, I am looking at calculating 2^43112609, which is one greater than the largest known prime number. With over 12 million digits, it will take a very long...
stackexchange/codereview
I would like to display my wall (of my facebook) on my website. But, I would also like to add a like box next to it. It seems, however, that I cannot have both, because: It seems that, once the user logs in (after pressing the LIKE button), my website looses the login and my wall can't display the information anymore....
stackexchange/codereview
I would like to know how to detect and differentiate between touches in a multi-touch view. I have read about a "hash" code, but I don't understand how to use it. I want to know when two of my Sprites are touched at the same time, like as if pressing a chord on two keys of a piano. [EDIT] Here is an example of what I...
stackexchange/codereview
I'm trying to test my function "def" in a python shell, but when i paste it in there are errors. It seems not to like it when i have multiple return statements inside one "def". For example: def foo(): valid = True if valid: return True return False Does anyone know why? thanks!
stackexchange/codereview
OK, I'm actually calling some java middleware that returns a captcha image. The captcha image loads in the page on page load simply with: <a href="#" id="ci"><img id="stickyImg" src="stickyImg" /></a> I want to reload the captcha image onclick of the current captcha image. I've tried a few things but am not getting an...
stackexchange/codereview
I'm not sure if this is the right forum or not, since I have no idea what's causing this problem. I have a WPF application that was compiled into a setup project. After building the setup project, there are two files: setup.exe and [Program Name].msi. I put both files in the same directory in an ASP.NET website, ser...
stackexchange/codereview
I want to force push, for example, my tag 1.0.0 to my remote master branch. I'm now doing the following: git push production +1.0.0:master I want to force the push, because all I care about is that the code inside the 1.0.0 tag is pushed to the master branch on the remote repository. What am I doing wrong? Update #1 W...
stackexchange/codereview
Problem: I don't know the simplest way to allow a single web viewer to update data in a text file on a server. (ie. only 1 person will be changing the data.) Objective: To make a prototype web application just one person needs to input in the start and end dates of new assignments and locations of staff and the whole c...
stackexchange/codereview
I'm trying out an example of using Domain Events to notify of when something has happened in a system (borrowed from here and here). I'm really close to getting the code working how I want, however, I've hit a bit of a brick wall. Here is my DomainEvents class: public static class DomainEvents { [ThreadSta...
stackexchange/codereview
I need to get a List of 10 consecutive database records from a random offset in the database each time. The problem I see with this is overlapping the end boundary. For example: Let's say my database only contains 20 records. If I choose a random offset between 1 and 20 to start my read of 10 consecutive records and th...
stackexchange/codereview
I am developing a javascript filtering of some results and have some difficulties.. Here is the problem... Suppose that we have some criteria Manufacter (Trusardi, Calvin Kein, Armani...) Color (red, blue, black...) OtherFeatures (goretex, blah, blah...) Each feature is displayed as a checkbox... The problem...
stackexchange/codereview
I'm using the android emulator without the UI and the keyboard command for "Home" is the Home key but my macbook doesn't have a home key. Does anybody know what the command is?
stackexchange/codereview
I have a php script run as a cron job that executes a set of simple tasks that loops for each user in the database and takes about 30 mins to complete. This process starts over every hour and needs to be as fast and efficient as possible. The problem Im having, is like with any server script, execution time varies and...
stackexchange/codereview
Why I get this error?: Strict Standards: Non-static method Hello_Misc::fix_protocol() should not be called statically, assuming $this from incompatible context in test.php on line 834 line 834: $this->my_url = Hello_Misc::fix_protocol($my, 1); I am using latest version of PHP (>= 5.1.3) but in previous version (<= 5...
stackexchange/codereview
I'm writing a social networking app that has contacts sync functionality. I have working code (from an example I found here) that inserts contacts on v2.x in a sync adapter. However, the Motorola Blur software doesn't recognize 2.x contacts (I'm using a 2.2 Moto build on a Droid X). Blur uses the contacts 1.x API, ...
stackexchange/codereview
I have been having trouble adding a hidden zend form element. when i invoke addElements the form fails and prints the following error to the page. but only when i try and add $formContactID and $formCustomerID. Fatal error: Call to a member function getOrder() on a non-object in /home/coder123/public_html/wms2/library...
stackexchange/codereview
I want to move data from these old tables restaurant_id | restaurant_nm | more data bar_id | bar_nm | more data To venue_id | venue_nm I'll add field venue_id to the old tables Then I want to run a query similar to this: INSERT INTO `venue` (SELECT null, `restaurant_nm` FROM `restaurant`) However, while do the cop...
stackexchange/codereview
I am implementing an embedded browser in my app, and because it has to be compatible with OS 4.0, BrowserContent is my only choice. When opening a HTTPS page the screen is blank, but this problem doesn't occur when a BrowserSession is used. So I put a println after the BrowserContent part, and it doesn't show up in t...
stackexchange/codereview
How can I create a simple xml file and store it in my system?
stackexchange/codereview
I want to generate all the sublists of a given list with the given property that they have a certain length mentioned as argument and also they have as a containing element a given element which is passed as a parameter. I have managed to do this but with the help of two predicates, and in terms of optimality is very s...
stackexchange/codereview
I had a UIViewController which I was presenting using the UIModalTransitionStyleFlipHorizontal style. I changed the view to a UITableView with a UITableViewController. Now I cannot set the transition style. I get a build error at the line setting the transition style... error: accessing unknown 'setModalTransitionStyl...
stackexchange/codereview
Spring provides a JAX-WS exporter class which creates a simple httpserver which is provided by jdk6. Is there a possibility to receive the current webserver context within spring and publish the WS through this context? SimpleHttpServerJaxWsServiceExporter has a server property in best case I would like to define my se...
stackexchange/codereview
I am getting the dynamic value from a web server like article desc, date,title etc. For one value article id, desc display in one webview. I am using array of webview. My requirement is that if the user clicks the first webview, I have to pass the first article id to another activity. Can anybody tell me how to pass a...
stackexchange/codereview
Does full or simple backup back up the database schema? that is in following scenario: 1. do full backup 2. add some tables and columns in some table; drop some tables and some columns in some table 3. do restore with the full backup file 4. does that schema get back to the state it backup?
stackexchange/codereview
I'm little bit fed up with the device back button functionality. I have two activities. From 1st I go to 2nd and display one item through array in ListView and when I presses the back button i came back to 1st activity. when I again go to 2nd activity to display the item once again it showing me the previous items at 1...
stackexchange/codereview
so I have this... < input type="checkbox" id="chvre" value="1"/> Here, it makes sense that the id value is in quotes, as it would be a string identifier. But what about the type value? Isn't checkbox a type, like String and Boolean? Why do I keep seeing these supposedly non-literals between double quotes? Is it bad pra...
stackexchange/codereview
I have added a custom dialog in the start stage of my VS2008 created msi installer to allow user choose if he/she wants to update the database or not. But if database is NOT installed yet, that dialog doesn't make sense. So I want to search the database frist, if there is no database installed, that dialog should be ig...
stackexchange/codereview
How can I convert a color in RGB format into a color name? Examples: (0, 0, 255) -> "blue" (255, 0, 0) -> "red" (128, 128, 128) -> "grey"
stackexchange/codereview
I use this code in my program to load a properties file: Properties properties = new Properties(); URL url = new App().getClass().getResource(PROPERTIES_FILE); properties.load(url.openStream()); The code runs fine in Eclipse. Then I package the program into a JAR named MyProgram.jar, and run it, I got a NullPointerExc...
stackexchange/codereview
I`m doing some exercise on XV6 that is mini OS for education. I want to make some patch to boot the OS from USB port. Should i put the MBR on the USB disk? But as i know , the first sector of USB disk flash is saving some information about bad block. Wat shoud i do? :( I know the usb core is big program, if i want to b...
stackexchange/codereview
This involves javascript in an HTML form. The problem I am having is populating a field in the same form based on user input of another field. WHen the user inputs a letter grade (Either A, B, or C) I am trying to get the percentage field to update to either 100 or 75 depending on the letter grade (A & B = 100, C=75). ...
stackexchange/codereview
HTML <select class="selectAddress" name="select2" size="4" multiple="multiple"> <option>address 1</option> <option>address 2</option> <option>address3, some city, uk</option> <option>address4, some city, uk</option> <option>address4, some city, uk</option> </select> <p id="chosenAddress01" class="r...
stackexchange/codereview
Android 2.3 is coming out soon. I was curious if anyone knew if android 2.3 will have support for adhoc networking without rooting or at least support it better with rooting? The list of stuff added for 2.3 just said bug fixes, i was wondering if anyone knew what bugs they were fixing or had a link to a list. Thanks
stackexchange/codereview
I am building a macro to chart reports created by COGNOS. Unfortunatly these reports are supplied by another team. The data for the charts comes as Excel but the headers might be changed each report and the number of data sources also change. What this means is that in one week the data for monday to friday might inclu...
stackexchange/codereview
I insert a birth date through a text field into a table. Here I need a mysql query which checks the current month and current date with any of the dates matching in database. No need to check the year because this is meant for displaying an alert on birthday, Can any one have the idea of the SQL Query to do this in a s...
stackexchange/codereview