instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
How to copy a file from Linux System to Windows system using Java program? Thanks for your help. I want to copy file from linux : /inet/apps/test.java to windows System1: C:\apps\test We can use following program to copy public static void copyFiles(String fromFile, String toFile ){ FileInputStream from = nul...
stackexchange/codereview
I want to know what executables a script launches and in what order (and trace those executables recursively). For example, let's say I have a bash script here (called abc.sh): #!/bin/bash ls gcc I'd like to run this script with a "trace/log command" and get something like this: abc.sh -- ls |-- gcc -- cpp ...
stackexchange/codereview
I'm new to SVN and am trying to find a workflow / SVN structure for my team that is as painless as possible. Currently we have a SVN repo set up for internal use where we store code for development projects. This seems to be working well, but it gets tricky when projects require external libraries to work that are also...
stackexchange/codereview
I'm using setNeedsDisplayInRect: as much as possible in my UIView subclass, but I don't know what to do in drawRect:. What is the best way to detect which parts of the UIView have to be drawn? Right now I've divided my UIView into several CGRect's. For each CGRect I'm calling CGRectContainsRect() to check whether that ...
stackexchange/codereview
I have multiple reports all of which require the same footer (company address, VAT no etc). Is there a simple way to write this information once and apply it to all of my reports? I thought I could do this with a simple subreport but this just seems to copy the subreport to the main report and any changes in the 'foote...
stackexchange/codereview
I am using jQuery UI tabs, but I am having an issue. My javascript code: $(function() { $("#tabs").tabs(); }); My HTML: <div class="demo"> <div id="tabs"> <ul> <li><a href="#tabs-1">Eat</a></li> </ul> <div id="tabs-1"> tab 1 </div> <div id="tabs-2"> tab 2 </div> <di...
stackexchange/codereview
We are migrating to a new Android developer account and I was wondering if anyone had any suggestions about the best way to transition apps to the new account. From what I can find, the only suggestions I've seen were to publish an update to the old app notifying the user of the new updated app. This requires us to pub...
stackexchange/codereview
A UIAlertView is displayed if an error occurs. But in the meantime the view on which the UIAlertView were called has been dismissed (and therefore released). If the user clicks on OK the app crashes because a message to a released instance is sent. This will cause your app crashing: UIAlertView *alertView = [[UIAlertVi...
stackexchange/codereview
function successfullySaved() { document.getElementById("successfullySaved").value.focus(); } this function doesnt wrk.. should i try with using scrollBottom? plz suggest me code so that the succesful msg(comes into pic only onclick of Save button in my case) which is getting displayed at the bottom of the page shd re...
stackexchange/codereview
I'm looking for a simplest (and fastest) example of TCP socket programming for windows, c or c++, whichever can get it accomplished faster, sending trival data, for example 1 byte, or several bytes, but in one packet. It's for research purposes. I googled and found several examples, however every single of out them loo...
stackexchange/codereview
I've noticed that in my Core Data data model, some entities are (in the top-left panel) have a class of 'NSManagedObject' and some are named after a class (Person, Company etc). There doesn't seem to be any logic in whether the entity has a class of NSManagedObject of Person etc. And my code seems to work ok. So I'm wo...
stackexchange/codereview
As far as I understand there are two ways to get Shibboleth attributes: they are either available on $_SERVER or inside the HTTP header response (of the provider) In the later case, how can I make them available to the application? Even if I catch them once and try to inject them in the server environment with pute...
stackexchange/codereview
I'm trying to learn Ruby on Rails and wanted to follow Apple's example: http://developer.apple.com/tools/developonrailsleopard.html It requires Ruby 1.8.6 and Rails 2.0.2 My machines is already updated to 1.9.1. I wanted to use rvm to install 1.8.6 but it failed during make with the following log: [2010-10-20 10:43:31]...
stackexchange/codereview
I would like to use Charles web proxy to work with the Android emulator in Windows. I've successfully set up charles and have started the emulator with the command line: emulator -http-proxy 127.0.0.1:8888 @NexusOne I can see traffic coming from the android emulator in Charles, but the problem is that I'm developing ...
stackexchange/codereview
Does anyone know how to resize and move an Image with ObjectHandles I need it to be as simple as possible. Thank you!
stackexchange/codereview
I read recently, in an article on game programming written in 1996, that using global variables is faster than passing parameters. Was this ever true, and if so, is this still true today?
stackexchange/codereview
trying to learn ruby on rails at the moment and currently learning about testing. The tutorial I'm following uses rspec, so I ran the commands: sudo gem install rspec sudo gem install rspec-rails script/generate rspec only to get an error message "Couldn't find 'rspec' generator". I've searched for an answer on this t...
stackexchange/codereview
EF + WCF Ria Service: Suppose I have entity People, because it is a partial class, so I can extend it to add a method to it: partial class People{ static string GetMyString(){ //...... return string; } } then at client side, I want to method GetMyString available for entity People. what's the best way t...
stackexchange/codereview
I have been trying to close the window on button click but am unable to do so. I have added javascript window.close() added on the code behind page on button click event all in vain. Language c# or vb.net
stackexchange/codereview
I want to marshal null objects as null in the JSON representation. But, right now, Am not seeing the element in the JSON if the object is null. Example: @XmlAccessType(FIELD) @XmlType(name="foo" propOrder={"foo"} class foo{ @XmlElement private Integer foo; private Integer another_foo; .. getter() setter() ...
stackexchange/codereview
I'm trying to create clipping paths for shapes, such as circles, polygons, etc. I'm actually trying to make the clipping path follow the line of the shape. I've tried the below in Expression Blend, what am I missing? What I'm really trying to do here is have the user trace shapes with an InkPresenter, and have it erro...
stackexchange/codereview
I'm creating a C Lexical analyzer using python as part of developing a parser.Here in my code i have written some methods for identifying keywords,numbers,operators etc. No error is shown after compiling. While executing i could input a .c file.My output should list all the keywords,identifiers etc in the input file. B...
stackexchange/codereview
I'm currently working on a closed-source commercial web-project which uses MariaDB as the database. I wonder about the licensing of MariaDB. Do we have to get a license to use it with our commercial project? On the website, they mention the "GNU General Public License, version 2". What exactly does that mean? http://kb...
stackexchange/codereview
I have a table which represents the scores and id's of users who have played a flash game. I want to return the amount of times the average user has tried the game- every time they complete a "try" the score and id of the user is input into the mysql table. The structure is - id int(11) score int(...
stackexchange/codereview
Can anyone suggest a PHP IDE (preferably built in Cocoa/ Objective-C, not Java) that also has native support or an excellent plugin for Git? I am currently using NetBeans but I am not happy with the speed and the patchy Git plugin. I have previously used Zend Studio for a long time but that had stability issues.
stackexchange/codereview
void main() { char buffer[40]; float x=1.2f,y=.2f; printf("%f",(x/y)); printf( "\n%s\n", gcvt( x/y, 30, buffer ) ); } The second printf gives result as 6.0000001490116102.I expected the answer to be 6.0000...full zeros.
stackexchange/codereview
Is there any way to have MySQL order results by how close they 'sound' to a search term? I'm trying to order fields that contain user input of city names. Variations and misspellings exist, and I'd like to show the 'closest' matches at the top. I know soundex may not be the best algorithm for this, but if it (or anothe...
stackexchange/codereview
I get a build failure due to a post build event failure when building Notepad++ in VS 2010. Here's the message from Output window: PostBuildEvent: The system cannot find the file specified. The system cannot find the file specified. The system cannot find the file specified. C:\Program Files\MSBuild\Microso...
stackexchange/codereview
Assuming I have <ul class="myList verticalList"> how can I change the value of verticalList using jquery?
stackexchange/codereview
I am trying to delay the loading of images using plain JS. my method to do this is by giving empty src field for the image and inserting the image url into a temp attribute called "lang" as used in the example below. ie > <img lang="logo.gif"> instead <img src="logo.gif">. When pressing a button the js below is initiat...
stackexchange/codereview
Backstory At work where we're planning on deprecating a Natural Key column in one of our primary tables. The project consists of 100+ applications that link to this table/column; 400+ stored procedures that reference this column directly; and a vast array of common tables between these applications that also reference ...
stackexchange/codereview
I wondered how you would go about tokenizing strings in English (or other western languages) if whitespaces were removed? The inspiration for the question is the Sheep Man character in the Murakami novel 'Dance Dance Dance' In the novel, the Sheep Man is translated as saying things like: "likewesaid, we'lldowhatwecan....
stackexchange/codereview
Is it possible to schedule an event in python without multithreading? I am trying to obtain something like scheduling a function to execute every x seconds.
stackexchange/codereview
For a couple of reaons we have a project-commons.jar located in the lib directory of our ear. project.ear project-web.war project-ejb.jar lib project-commons.jar Currently if I annotate a class that is placed in project-commons.jar as the @Name("authenticator") @Scope(ScopeType.APPLICATION) SEAM reports a ...
stackexchange/codereview
I am trying to develop a webapp in which multiple users can login to the system, a number of users (4-5) belong to a group. I wish to integrate SVN in this webapp so that all members of the group can have access to their workspace. The webserver is running IIS with php module and mySQL. I need to know how feasible is t...
stackexchange/codereview
I need to send and Email when Any Message occurs I am trying to logg the errors once I logged it I need to send the Email to them.. Thanks
stackexchange/codereview
I'm writing a C++ application using ncurses in Eclipse CDT however I can't run/debug my app in eclipse because the console in eclipse does not work with curses. My app runs fine if I run it from a terminal but I just added some new code and now I'm getting a segmentation fault so I'd like to use the debugger in eclipse...
stackexchange/codereview
Is there any way to use text messages to CRUD data in a Rails app? For instance, a user would send a text message to a specific number and the Rails app could use that data in any way. Just wondering if there's a solution out there.
stackexchange/codereview
Is it evil to serialize struct objects using memcpy? In one of my projects I am doing the following: I memcpy a struct object, base64 encode it, and write it to file. I do the inverse when parsing the data. It seems to work OK, but in certain situations (for example when using the WINDOWPLACEMENT for the HWND of Windo...
stackexchange/codereview
I'm building a solution where a servlet on tomcat6 handles input from another machine by providing a jsp web page. I'd also like the same servlet to communicate with an applet on the same machine to show some results and perform a few tasks. I'm able to connect from the applet to the servlet using a URLConnection but w...
stackexchange/codereview
I'm either looking for an algorithm or a suggestion to improve my code to generate a list of random numbers that their sum equals some arbitrary number. With my code below, it'll always be biased as the first numbers will tend to be higher. Is there a way to have the number selection more efficient? #!/usr/bin/python...
stackexchange/codereview
How can I count the amount of spaces at the start of a string in Perl? I now have: $temp = rtrim($line[0]); $count = ($temp =~ tr/^ //); But that gives me the count of all spaces.
stackexchange/codereview
Hopefully, this isn't a loaded question. I'm a longtime user of hg, and it's meeting our needs quite well. Lately I have been working with a consultant and he keeps going on about 'managing several repos and pushing/pulling/merging them is easier' than hg. More specifically, I believe he means that pushing changes t...
stackexchange/codereview
I have about 10 text boxes on a form that are actually used for display not entry. They are are named txt_001_Name, txt_002_Title, etc..what kind of loop is used for this. What kind of VBA should I use to actually loop through the names of the text boxes? So if I was to debug.print it would look like: txt_001_Title txt...
stackexchange/codereview
I am working on an iframe based Facebook applicaton. I am able to use FB.Canvas.setAutoResize(); to let the iframe "stretch" the page so there's no scroll bar for the iframe. The page may be 2-3 page-length in height. I can scroll down the page using the windows scroll bar. The issue is when I am at the bottom of t...
stackexchange/codereview
If just to see how a program behave, an hg up -r 1000 is done, while the current revision is 1020. Then some changes are made to 2 files, and accidentally, the files are committed. So now there are changes made from revision 1000 to 1020, and also some changes that is from 1000 directly to 1021... In this case, how s...
stackexchange/codereview
The key reason this works is that for_each () doesn’t actually assume its third argument to be a function. It simply assumes that its third argument is something that can be called with an appropriate argument. A suitably defined object serves as well as – and often better than – a function. For example,...
stackexchange/codereview
Basically, I am trying to write a benchmark application to test the responsiveness of different Android devices' touchscreens. I figured the best way to go about doing this is to write an application that counts the number of samples returned from the touchscreen whenever it is touched. Unfortunately, I have no idea ...
stackexchange/codereview
Every shop at which I've worked has had their own cobbled-together, haphazard, poorly understood and poorly maintained method for updating production databases. I've never seen a consistent method for doing this. So, in the most recent versions of SQL Server, what is the best practice for updating schema changes and mi...
stackexchange/codereview
I'm working on a little widget that will allow to embed like an iframe (but with a jQuery plugin) a part of my website. I've successfully made a search.php API that produces in JSONP what I need to retrieve. It works! (thx to this community ;) ). I had difficulties to understand and use right callback request to allow ...
stackexchange/codereview
i am trying to debug my application and i have used the following code... but whenever i try to debug the application i get the above error.... Error 1 Deployment and/or registration failed with error: 0x8973190e. Error writing file '\Windows\NETCFv35.wm.ARMV4I.cab'. Error 0x80070070: There is not enough spa...
stackexchange/codereview
I've just started looking into Twig and I'm wondering how I would accomplish the following. I have a variable $logged_in that I need to have access to in every single page on my site, I was hoping that rather than passing this to the twig renderer every single time in the data array, there would be a way for me to decl...
stackexchange/codereview
With a loop I add UIImageView to a UIScrollView i need to add an extra parameter addTarget so when i click i can log the index. [imageButton addTarget:self action:@selector(buttonPushed:) forControlEvents:UIControlEventTouchUpInside]; -(IBaction) buttonPushed: (int) index { NSLog(@"%d",index); } How do i ...
stackexchange/codereview
Problem: I can't access the count of items in a SelectList I have an HtmlHelper method that returns a SelectList: public static SelectList FilterSelectList(this HtmlHelper helper, List<Stuff> eList, string dept) { List<Stuff> returnList = new List<Stuff>(); //Do Stuff return new SelectList(returnList, "ID", "N...
stackexchange/codereview
I'm trying to add sorting of a gridview using the tablesorter plugin. However, the gridview does not render the THEAD and TBODY tags. Is there a way to get it to add them?
stackexchange/codereview
I'm currently running multiple mysql queries but want to just run one and loop through it. How can I improve this? $query = mysql_query("SELECT productid, code, size, quantity, sizechart, rprice, price, weight FROM inventory WHERE code = '$productcode1'"); while ($rows1 = mysql_fetch_array($query)) { $produc...
stackexchange/codereview
I am wondering if some of you are aware of the architectural approaches taken by the Wave team to build its GWT web client? Since i am trying to optimize performance of one GWT app designed for mobiles, it is hard not to admire its speedy credentials :) Is Wave not using GWT-RPC to get regular updates from server? Fi...
stackexchange/codereview
I am using xsl to convert data from xml into C++ code. I am running into problems when I have <= or >= in the xml file that needs to be converted to C++ code. For example if I have (in .xml file) <Check>max(x,y) <= 20 </Check> and the .xsl file is if(<xsl:value-of select="Check"/>") { ... } But this does not c...
stackexchange/codereview
I need to send XML response from my GAE servlet. What I already have is: - An instance of org.w3c.dom.Document populated with data - HttpServletResponse (that gives me either a PrintWriter or a ServletOutputStream) If XMLSerializer were whitelisted in GAE, I could finish the work. ..but it's not. My question is: How to...
stackexchange/codereview
I have basically to select all employee from companies which are being passed so a variable - CompanyListIds - Contains list of all company ids.. var result=DataContext.Employee(e=>e.CompanyId==companyId).ToList(); The above is a query I have for selecting from one company, now how would I modify it to compare with ...
stackexchange/codereview
I'm attempting to design an algorithm that does the following. Input: I've a set of keys (total n) that are mapped to set of properties. The properties contain the weight for each property and the value for the property. Output: Identify a set of keys that are qualified (total k) based on the set of properties and ...
stackexchange/codereview
Hi all I want to serve some static html pages in codeigniter context. I dont want to bypass the index.php file in the base_url. But when I user the call to the HTML file, it dispays the 404 error page. I appreciate any help for this topic from guys who already solving this problem . Thanks for all in advance I want to ...
stackexchange/codereview
I wish to know that If protocol family AF_INET is used for local communication (IPC) in windows systems. (with loopback interface) will it be able to give performance same as AF_UNIX in unix. I tried for Named pipe in windows but it doesn't seems to me working for my case. AF_INET when used it will go through the TCP/I...
stackexchange/codereview
my problem is blocked VSTO word 2007 addin. Once the addin breaks down, in non-debug mode, its unable to reenable it from word (set its status from inactive to active). The only way to do this is to recompile the plugin. I tried with LoadBehaviour=3 (word sets this value immediately into 0, after its run). There ae no ...
stackexchange/codereview
I've got a Map<String, Person> (actually I'm using a more complex POJO but simplifying it for the sake of my question) Person looks like : class Person { String name; Integer age; //accessors } How can I iterate through this map, printing out the key, then the person name, then the person age such as : System...
stackexchange/codereview
I have done a datagrid in flex and would like to embed it in an asp page. How do i go about that?Thank you.
stackexchange/codereview
How to make only certain IP addresses allowed to access my website. Currently I'm using wordpress. I want to make it so that if the user IP is not on the list the page will redirect to another site. Please help me.
stackexchange/codereview
If it must implement with AIDL? And please kindly provide an example, thanks. EDIT: There are several solutions, Does anyone know which is better?
stackexchange/codereview
I would like to have an IFRAME dynamically sized using the following CSS: #myiframe { position: absolute; top: 0; bottom: 0; left: 0; right: 0; } However, no browser seems to support this. In good browsers I could wrap the IFRAME in a DIV with the quoted CSS style and set the height & width of the ...
stackexchange/codereview
According to msdn in Silverlight images are hit testable over their image/media display areas, basically their Height and Width. Transparent / full alpha pixels in the image file are still hit testable. My question is now, what is the best way to have only non-transparent pixel hit testable in images in Silverlight?
stackexchange/codereview
I have a class which accepts a stream as input (in the constructor). It surfaces content from this stream through various methods. However, I don't want my object to be responsible for closing the stream -- that should be the responsibility of the caller. I therefore need to close my StreamReader inside my class, but I...
stackexchange/codereview
Can someone tell me how to keep a footer wrap always justified to the bottom of the browser? thank you. Erik
stackexchange/codereview
I have a site that uses asp.net themes and it uses i18n. Some images are specified on resource file because they have texts on it. When I tried to add an item like this: <asp:ImageButton SkinID="ImbDisaprove" runat="server" ImageUrl="<%$ Resources:Images, Disaprove %>" /> I receive an error saying that it is not poss...
stackexchange/codereview
If I want to pass an object that was created on the main thread onto an NSOperation object, what's the standard way of doing to so that I'm not creating any memory management issues? Should I make my object's properties not have the 'nonatomic' attribute? Right now, I allocate the objects via [[[AClass alloc] init] aut...
stackexchange/codereview
Is it possible put these three framework Spring, Struts 2.0 and Hibernate in single application and how without using JPA?
stackexchange/codereview
I have a add to list button.when user clicks on button the data in text box gets added in listbox.User can not add same data. but the problem is that is user clicks add button 2-3 times with in a seconds the data is getting added 2 times in list. And if user does not clicks on button like this my javascript validation ...
stackexchange/codereview
I am trying to build a custom table view using a cell that I built in IB. I am getting a strange error: <BroadcastViewController 0x4b4f5f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key postText. Everything is wired up correctly in IB to the cell controller. Not really sure w...
stackexchange/codereview
I asked a question on SO a few hours back. How to insert an Array of field names from a form into SQL database in Codeigniter. <tr> <td><input type="text" name="user[0][name]" value=""></td> <td><input type="text" name="user[0][address]" value=""><br></td> <td><input type="text" name="user[0][age]" value=""></td> <td><...
stackexchange/codereview
I want to implement SQLite for my next project. I've done some research and I've found that PHP 5+ comes with two standard extenstions, that is: SQLite found here ( php.net/manual/en/book.sqlite.php ) SQLite3 found here ( php.net/manual/en/book.sqlite3.php ) I want to know if number '3' represents the version. If it ...
stackexchange/codereview
If an exception occurs in my WCF service, what is the best way to communicate that error to the client? Should I log it on the service and rethrow a soap exception? Or should I log it and return a user friendly message?
stackexchange/codereview
In the process of tracking down an elusive Sharepoint custom workflow problem, I cranked up the verbosity level on our sandbox MOSS server and noticed the following error message start popping up: SPSite should not be used with mixed impersonation state. If you do want to cache an SPSite created within RunWithElevated...
stackexchange/codereview
I need to create a thread safe list of items to be added to a lucene index. Is the following thread safe? public sealed class IndexQueue { static readonly IndexQueue instance = new IndexQueue(); private List<string> items = new List<string>(); private IndexQueue() { } public static IndexQueue Instance...
stackexchange/codereview
I have a simple Application built using Mono on Ubuntu that prints out the entries of a list in sequence. The code takes about 6 ms to execute on Ubuntu, however the same code takes about 40 ms to execute on windows. Is there a reason why the same application code would run faster on Ubuntu than it would using the actu...
stackexchange/codereview
I was wondering if there is any feature in Visual Studio 2008 that would show me data stored at address XY? Specifically I need to check data the pointer points to. Something like this: BYTE *pMem = (BYTE*)GlobalAlloc(GMEM_FIXED | GMEM_ZEROINIT, FileSize); <do some magic at pMem+offset1> //bug occurs, need to check dat...
stackexchange/codereview
So, I have a little problem here. Suppose I have: public class Repository<TEntity> where TEntity : class { public abstract void Add(TEntity entity); // ...and so on... } And now I want to define a contract class, like so: public class RepositoryContracts<TEntity> : Repository<TEntity> where TEntity : ...
stackexchange/codereview
Is it safe to store a password in a sessions variable? For example, usage would be in a form which is submitted to itself. For example a change classifieds page, where users first enter a password, and then if pass=ok, show the form to change the classified. All on same php-page. But Whenever a picture is uploaded in t...
stackexchange/codereview
In Silverlight, is it possible to do a "bouncing balls" style animation entirely in XAML - that is, with no code-behind at all?
stackexchange/codereview
Hi I have an image around 150px wide by 300px deep. When I roll over it I want a little image to pop up on top. When I roll off the bigger image I want the smaller one to disappear. It all works, except that if you mouseover the triggering image where the new image pops up then it appears to go into some kind of loop...
stackexchange/codereview
I am looking at ways which a developer can take advantage of implementation specific advanced features(T-SQL, PL-SQL etc) and at the same time makes it easy to migrate the ANSI compliant SQL code to a new database. By that I mean, how to efficiently abstract the ANSI compliant SQL code and move it across different data...
stackexchange/codereview
Before anyone says it, I know this isn't the way it should be done, but it's the way it was done and I'm trying to support it without rewriting it all. I can assure you this isn't the worst bit by far. The problem occurs when the application reads an entire file into a string variable. Normally this work OK because the...
stackexchange/codereview
For the hardcore C# coders here, this might seem like a completely stupid question - however, I just came across a snippet of sample code in the AWS SDK forum and was completely sideswiped by it: RunInstancesRequest runInstance = new RunInstancesRequest() .WithMinCount(1) .WithMaxCount(1) .WithImageId(Ge...
stackexchange/codereview
I am using the jQuery Drop Down Check List component: http://github.com/scottwb/jquery.ui.dropdownchecklist However, it doesn't seem that there is support to add a tooltip to such a drop down. Usually, you just add the 'title' tag for every option and a tooltip is automatically shown. However, this is not the case with...
stackexchange/codereview
I am developing a GUI with wxPython. I draw a square which represents a CD object, inside another square (also with wxPanel class), which represents CD Container Object. I want to have "delete this CD" in the right click menu of CDWindow, which will remove the CDwindow. Basically, my code looks like this (for simplic...
stackexchange/codereview
I wanted to run a jar with the following command. java -jar test.jar What I need to add to the command so that I can get jre path info which it will be running against. ANd also How can I force above jar to run against particilar jvm. Please help.
stackexchange/codereview
I'm having a problem with this query for some reason: $this->db->query("UPDATE schools SET name = '$name', pop = '$pop', details = '$details', numteachers = '$numteachers', recess = '$recess', equipment = '$equipment' WHERE id = '$schoolid'"); echo $this->db->affected_rows(); For some reason affected_rows prints 0 bu...
stackexchange/codereview
I'm having problems with OutputCaching over a WCF REST service on .NET4-IIS7. My service has a custom Authorization scheme (by implementing ServiceAuthorizationManager), one which should take place on every request, and any caching must be done after the request is authorized. So far, this seems to work, only the cachi...
stackexchange/codereview
I had a code for getting the hdd id written in vb.net Now I need to re-write the code into c#. I have converted the vb.net code to c# but it is not compiling. Below is the vb.net code Dim hdCollection As ArrayList = New ArrayList() Dim searcher As ManagementObjectSearcher = New ManagementObjectSearcher("SELECT * FROM ...
stackexchange/codereview
how to compare an adjacent array element that contains date. The thing is when i compare BOOL day = [[temp_date objectAtIndex:k] compare:[temp_date objectAtIndex:k+1]]; it throughs the following expection * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (23...
stackexchange/codereview
I have a SWF loaded via a "swfobject.embedSWF()" I use Javascript's methods to pass calls via the flash APIs: http://developer.longtailvideo.com/trac/wiki/Player4Api#Sendingevents call.player.sendEvent('LOAD', theFile) Using a XMLHttpRequest() call via GET to a PHP script I get a file url: http://xx.yy.com/protected/5...
stackexchange/codereview
I installed authlogic and created a signup mechanism.And for creating a sign in mechanism I tried to generate the session controlers as below but rails 3 throws error as follows. How do I create the user_session and proceed with authlogic in rails 3 ? :~/work_space/rails_apps/sample_authentication$ rails generate sessi...
stackexchange/codereview