instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am using flexigrid in a project and I would like to be able to keep the selected rows after the grid is refreshing. I asked the same question on the flexigrid discussion board and I got this answer: Add a click handler, save the id if the row id of the row selected. On refresh completion, select the row again (if st...
stackexchange/codereview
For some reason when I put "Img/Covers/Medium/106.jpg" EDIT: <Image Grid.Column="0" Stretch="None" HorizontalAlignment="Left" Source="Img/Covers/Medium/106.jpg" Margin="7,0,0,0"></Image> As the Source for an Image, it works perfectly. But when I try to bind the Source to a property defined as such, it doesn't find i...
stackexchange/codereview
I started using symfony a few weeks ago, and there are some things that are not clear for me. My question is that how could I put a list of categories (for menu) in the main layout of an application? How can I pass a variable for this layout and where to put this variable? I don't want to put it in every module. Thanks...
stackexchange/codereview
I'm making a jquery clone for C#. Right now I've got it set up so that every method is an extension method on IEnumerable<HtmlNode> so it works well with existing projects that are already using HtmlAgilityPack. I thought I could get away without preserving state... however, then I noticed jQuery has two methods .andSe...
stackexchange/codereview
I have a web page with an applet as the only element that looks something like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>...</title> </head> <body> <applet style="padding:1px; border:1px solid gray" mayscript="m...
stackexchange/codereview
I want to populate a combo box with a list of dates from a DB. Then based on user input I want to be change the Tablix to filter on only dates later than the selected date. How can I do so? Detailed steps will be useful.
stackexchange/codereview
My goal is to sort a designer.cs' InitializeComponent()'s statements for merging. I used coco-r to set up a dependency graph. This gives me certain conditions that need to be true.(If calling a method on an object make sure that the order of the methods if the same before and after the sort.) I was curious if there a...
stackexchange/codereview
After experimenting with a handful of new addons for Firefox, I've managed to permanently foul up some settings. Using certain sites (take Netflix for example), upon clicking into a details page for a movie, I'll notice the following CSS ID #height1754 added onto the end of the URL. When I use the back button, the on...
stackexchange/codereview
HI everybody, i have a question if i have a computer run sqlite , and i want to make sqlite sync Mysql server in the external network. If the data in the sqlite have been (changed/ modified), how can I sync my MYSQL DB and sqlite so that the data in sqlite will be (changed/ modified) when the data in MYSQL DB is chan...
stackexchange/codereview
I have a tab-delimited string in the following format: string line = "D\t892270\t88418\t6\t2452927\t-99999\t-99999\t12"; What I want is to get the value of the token specified through indexToGet. I have written following LINQ query to do this which I am sure can be improved a lot but at the moment I am unable to do so...
stackexchange/codereview
I was creating a sample wherein we will be having four blocks and when someone mouseover the block it will slide up to show the content behind it and when the mouseout event occur it will slide down. This is what i did : http://jsbin.com/oluqu4 $(".garage span").hover(function(){ $(this).animate({'heigh...
stackexchange/codereview
When building a Drupal 6 site (mysql+php5), are there any reasons not to use Pressflow on the production server?
stackexchange/codereview
I want to make a copy of every record inserted in jobact to a new table jobactupdates. I am using a stored procedure for this purpose. Both tables are exactly the same and have same no of columns. When I insert data in jobact using insert query then, the stored procedure fails and show the Data Type mismatch error. ...
stackexchange/codereview
I combined org-mode with lisp-mode to achieve beautiful code folding in emacs for lisp code: lisp-orgi-mode. Basically, I use ';' instead of '*' as the heading character. For comments, I just put a space before the ';', making it ' ;' so it doesn't count as a heading... However, doing the same thing with python-mode d...
stackexchange/codereview
I have an issue with the rendering of some views (buttons and edittext) which edges are distorted (the left and right edges appear 1 px below the body of the control). Controls on my device behave like that, but not on the emulator. Does anyone know the reason of this?
stackexchange/codereview
We deploy to Artifactory an artifact that has a [filename] name that gets a time stamp applied to it by Artifactory. Later in a different trunk, its build attempts to download that artifact using the same name under which it got deployed earlier. However, because of the time stamp that Artifactory applied to the file n...
stackexchange/codereview
I've created an APEX page based on a single table, which is then called by a another APEX page with a field value to be queried. The page displays the record, which has a Primary Key consisting of 2 fields. When I use the Update/Save button, it appears not to update the data, though it does not return any errors. This ...
stackexchange/codereview
I have built an application which simulates several clients using the same RMI service. This service is then invoked concurrently by every client retrieving and uploading data to the server. My concern is if every remove invocation takes some time does the remote service implementation (jBoss 5 EJB) can handle these ca...
stackexchange/codereview
Consider the following query: SELECT domain, done FROM tasks WHERE 1 GROUP BY domain Obviously I can get it to return the max value of "done" with MAX(done), but how do i get it to return that whole row? In the situation I'm in, I have a table with the following rows: domain = somedomain.com, done = 12:27:39, somecolu...
stackexchange/codereview
Object-Relational-Mappers have been created to help applications (which think in terms of objects) deal with stored data in a more application-friendly way like every other class/object. However, I have never seen a OKM (Object-Key/Value-Mapper) for NoSQL "Key/Value" storage systems. Which seems odd because the need sh...
stackexchange/codereview
I need a way to dynamically add customizable cells in a left-to-right direction, based on a given dataset. Is there an ajax-type control that can accomplish this, or another approach? Any ideas welcome- Thanks
stackexchange/codereview
I want to take the input from a standard, off the shelf, IP based webcam - which, has yet to be decided, so the API is not yet clear - manipulate it a little and then pump it back out so that others can view my manipulated image. Given that this is a little vague, which technologies can you recommend? I am thinking to ...
stackexchange/codereview
I'll prefix this with: I don't much about SCORM. I'm the maintainer for a training video delivery platform. It shows videos but doesn't test users. Clients of the company can download SCORM modules (that is a zip) which contains a link to the video on our server. Some clients are now asking for reporting so that they k...
stackexchange/codereview
I consider myself newbie when it comes to securing my web applications. I have built a website which updates the webpages regularly through an AJAX call. The Ajax call returns a decent JSON object to be used at the client side. There is a simple problem I need to overcome: How can I prevent other people to use the sam...
stackexchange/codereview
I have some JAR file, I need to reference it from GWT Source package. How can I accomplish that? should I create module and inherit it? Thanks
stackexchange/codereview
Possible Duplicate: What is the use of a static class What are the benefits of declaring a static class? public static class MyStaticClass { } Are there any other than "it can't be instantiated"? Why else would you want a static class, for what reasons should a class be static? Is "any class should be declared as s...
stackexchange/codereview
I have set this up so I can test sites and let my client see them, the thing is I am worried about potential security to my local machine. I port forwarded port 80. What's the risk if any? Thanks, R.
stackexchange/codereview
Is it possible to provide a multiple source files each with their own destination file in a single command? That way Java won't have to load up for each file I compile. I am using SIMPLE_OPTIMIZATIONS. I know there are better ways than the one at a time,, but they all seem to require code modifications which take too m...
stackexchange/codereview
My website allows people to "sign up" for day trips. They must then pay a price based on their selection. Does paypal allow you to send your own payment values (as calculated by the amount of daytrips and the price of each one)? Is there a way to program this value? Cheers, Dan
stackexchange/codereview
Right now, I am using something like copy catfile($PATH1, "instructions.txt"), catfile($ENV{'DIRWORK'}); individually for each of the .txt files that I want to copy. This code is portable as it does not use any OS specific commands. How can I copy all the text files from $PATH1 to DIRWORK, when I do not know the indiv...
stackexchange/codereview
I have a Validity object which contains two dates, start and end. I have a UserType that I've written for this so that I can simplify the hibernate mappings for the several entities that have one. That works fine. Now I want to add a set of weekdays to Validity. The only solution I can figure out is to change each e...
stackexchange/codereview
I have a subquery problem that is causing poor performance... I was thinking that the subquery could be re-written using a join, but I'm having a hard time wrapping my head around it. The gist of the query is this: For a given combination of EmailAddress and Product, I need to get a list of the IDs that are NOT the la...
stackexchange/codereview
Can we use the old and new Facebook Javascript SDK on the same webpage? (the old Javascript SDK is used by the "Login with Facebook" and "Share" button. The new Javascript SDK is to be used by the "Like" button) The old Javascript SDK is included by Facebook's FeatureLoader.js.php xd_receiver.html docs: http://develo...
stackexchange/codereview
I am attempting to get a link to fire JQuery's .click() function so that I can call another script behind the scenes. All of the JQuery is generated dynamically by PHP. The code looks correct, but the .click is not firing. This is the code that generates the jquery: $jscript = "$(\"".$server ."Restart\").c...
stackexchange/codereview
I have been working on making our .NET application FIPS compliant, and have found that the Managed Cryptography classes (such as AESManaged) are not FIPS compliant. I have read several other articles and questions on which classes are compliant, such as When will C# AES algorithm be FIPS compliant? and http://social.ms...
stackexchange/codereview
I'm searching for a plugin or a simple way to make an image rotatable by dragging (with the mouse) a button on this image. I want to be able to save the angle rotation too. Does anyone know how to do it easily please? thanks
stackexchange/codereview
got this situation. Reports habtm users. So Im trying to paginate just the Reports that are linked to the Auth user... I read when you have a habtm relationship you have to bind the model temporarily using 'hasOne' like this: function index(){ $conditions=array('ReportsUser.user_id'=>$this->Auth->User('id'), 'ReportsUs...
stackexchange/codereview
On my django site, I decided to just use the admin templates for the UI, but I made a few tweaks like the site name, color, etc. even my custom views just extend admin/base_site.html I did this by creating templates/admin/base_site.html with the following code: {% extends "admin/base.html" %} {% load i18n %} {% block ...
stackexchange/codereview
I'm wondering if anyone has some solid advice for me. I'm trying to see if MSBuild is an appropriate tool for a client-side application (sold, commercial product). For example, if on the client machine there is .NET 4.0 and my program, I want users to be able to create screen savers and save them as an EXE. So far, all...
stackexchange/codereview
I'm trying to scrape some information from a website but can't find a solution that works for me. Every code I read on the Internet generates at least one error for me. Even the example code at their homepage generates errors for me. My code: HtmlDocument doc = new HtmlDocument(); doc.Load("https://ww...
stackexchange/codereview
Currently I am using fragment caching with an object key. And I expire the cache using Touch with updates the updated_at column and then the current cache become obsolete. And a new cache is generated the next time. <% cache do product %> The cache key for an object looks like this table_name/ID-updated_at Now I want...
stackexchange/codereview
there is a situation. For example, I am designing simple blog. There are articles and photographies. Users can add their comment to both of them. So when I write it in Java, it looks like this: public interface Commentable { ... } public class Article implements Commentable { ... } public class Photo implements Comme...
stackexchange/codereview
I am newbie in WPF. I have this problem. I binding list items do listBox. I have own style on listbox. ListBox item consist Image and textBlocks. It works good. I need make zoom on listBox item when mouse is over on this item. I try use triggers, but I don’t know how can I resize listBox item. C# code: namespace ListBo...
stackexchange/codereview
I have a weird problem with EditorFor in one of my views. The following code throws an ArgumentNullException. <%: Html.EditorFor(x => x.Name) %> However, the following code is fine. <%: Html.TextBoxFor(x => x.Name) %> Model.Name is a string variable - and it's set. EditorFor works in another view - until this view c...
stackexchange/codereview
I need to have a timer running in the background that is called by the application did enter background method. I am having some trouble. When I enter background, it doesnt do anything. Here is my code. - (void)applicationDidEnterBackground:(UIApplication *)application { bcheckingTimer = [NSTimer scheduledTimerWit...
stackexchange/codereview
I'm building a simple poker website for a demo. Anyone know where I can find a set of classes encapsulating card, deck, hand etc. ? Google is not being very helpful, (most links are to codeproject which is down until 1pm EST - I'm in Ireland). Thanks!
stackexchange/codereview
I have 2 applications(EARs) . In App1 I have a few jsps and at a point I want to save the details of a person I have a button which has a the javascript to save the details. But now I am asked to authenticate the user with another app App2. So I send a callback url from App1 so that once the user is successfully authen...
stackexchange/codereview
What I would like to do is produce a query which returns the difference between the sum of two other queries. I have tried, but I have failed. Here is what I tried: Select ((SELECT COUNT(*) as B FROM Business) - (SELECT COUNT(*) as S FROM Shusiness)) as BusMinusShus
stackexchange/codereview
I am running a wordpress if while statement and would like my items to display in a column format. I am currently using 960.gs which is your standard 960 grid system, and by default adds 10px padding to left and right, by simply passing a class of alpha or omega you can get rid of these. How do I get php to execute a s...
stackexchange/codereview
There is a memory leak happens in an application when a short lived object holds a long lived object, My question is how can we identify 1) which object lives longer and shorter, any tool which measures life of an object? 2nd Question I am constantly getting the Out of Memory Space Error and I tried increasing the He...
stackexchange/codereview
I'm trying to create a drop down menu similar to what you would see with a 'ul'. The difference being I want to do it with a table. When the page loads I have td's with their 'display' attribute equal to 'none'. This hides the td for me. The problem is in the javascript below. function displayMenuOptions() { ...
stackexchange/codereview
I have a largeish solution in Visual Studio 2008 (around 30 projects, all C# and Script#), including some test projects. When I start the application or run my tests, way to often Visual Studio rebuilds everything rather than just the changed parts and their dependencies. If I don't change anything at all, it will not ...
stackexchange/codereview
"Manage" as in, make changes to the tables. If yes, how does this work with multiple developers and multiple copies of the database (for development/production)?
stackexchange/codereview
How can I write colored text to the console with C++? That is, how can I write different text with different colors?
stackexchange/codereview
I have this code: #include <stdio.h> #include <stdlib.h> #include <signal.h> // Define the function to be called when ctrl-c (SIGINT) signal is sent to process void signal_callback_handler(int signum) { printf("Caught signal %d\n",signum); // Cleanup and close up stuff here // Terminate program exit(signu...
stackexchange/codereview
I found some objects in my C++ program can't be released due to the Signal2 of boost won't release those arguments in object created by boost::bind. Here is the code to reproduce the problem: #include <iostream> #include <string> #include <boost/bind.hpp> #include <boost/signals2.hpp> #include <boost/shared_ptr.hpp> ...
stackexchange/codereview
I am trying to locally install joomla on my laptop. I have apache2 installed and working. When I go to localhost:8080 I get to the Joomla's install page. This is what I see PHP Version >= 4.3.10 Yes - Zlib Compression Support Yes - XML Support Yes - MySQL Support No MB Language is Default Yes M...
stackexchange/codereview
on each controller call i have a code that gets some user properties from a webservice. I want to cache these for each user so i only hit the webservice once. what is the best way to cache code in a controller method so it will allow me to avoid hitting the database on every URL request but also not cache one users in...
stackexchange/codereview
I am sending data between Java and iPhone/objC clients. The Java client has an established middleware component that I am using to test integration of the new client to the middleware. I have a problem with all byte shift operations. The Java code is in production and can not be modified. Since the double seems to b...
stackexchange/codereview
How can I make the LED or trackball pulse or flash while my application is running and the screen is on ? Like when a phonecall is received for instance ? Thanks
stackexchange/codereview
I have 2 objects, AddressBook and AddressCard. The AddressCard has the properties name, email, & birthday. The AddressBook has a lookup method that takes a string as an argument, and searches each added AddressCard for a match. In this lookup method I'd like to have an NSArray of each of the fields i'd like to search i...
stackexchange/codereview
I want to Encrypt a passwords to this Syntax: CWsodEV5xi9F0D8Vxw1fSZ== I do not know what kind of this encryption for syntax please I want Encrypt & Decrypt Function! thanks
stackexchange/codereview
I need to export FLA as a sequence of PNG images using JSFL. The first problem I faced is that I cannot call document.importPublishProfileString to change current publish profile, it always fails (returns 0). Now I create a separate publish profile, removing it if already exists. I don't know why it's not mentioned in ...
stackexchange/codereview
Let me preface by saying I'm a noob to Rails and StackOverflow so please go easy on me. I'm using Rails 2.3.8 with sqlite3 on my dev box. I have created a select pulldown in a form using the following: <%= select( "communication", "gig_id", { "Add New Gig" => "new"}, {:prompt => "-- Select Gig --"}, :onchange => "togg...
stackexchange/codereview
I need to convert all paths with '\' in them to '/'. The makefile is quite long and doing this manually is impossible. Is there some way to quickly convert them? Keep in mind that a global replace is not possible because '\' is also used to denote that a command is continued on the following line.
stackexchange/codereview
Run out of ideas... I need to group all entries form database. There are fields ID, NAME, CLASS, CREATED. Output would look like this: <h2>3. Class</h2> <div class="cont"> 3rd class entries.. </div> <h2>8. Class</h2> <div class="cont"> 8th class entries.. </div> ... and more So if there are entries with class 3, t...
stackexchange/codereview
I have a simple AJAX function to send an id of an object to a php page My function looks like this: $(function(){ $("a.vote").click(function(){ //get the id the_id = $(this).attr('id'); alert(the_id); //ajax post $.ajax({ type: "POST", data: "?i...
stackexchange/codereview
There is a partial view representing pager control (very similar to this) for blog content. Code generates HTML with references and href like, "/Blog/Posts/Page/1", "/Blog/Posts/Page/2" etc. It worked absolutely fine on Cassini, but after I switched to IIS problems appeared. IIS application running in virtual folder,...
stackexchange/codereview
Why does the following query work within a Drupal Block, but not when part of a "custom content" in a pane within a Panels Page? It gives an error saying to check the syntax of the query near "AND node.type in....". Also, if I put it in a Block then display that Block inside a Panels Page, it works just fine. So while ...
stackexchange/codereview
Is there any way to receive the installation date of an Android app? Or any other suggestions on how to accomplish a 30 day free trial version?
stackexchange/codereview
What I want to do is like following. (def mystream (stream (range 100))) (take 3 mystream) ;=> (0 1 2) (take 3 mystream) ;=> (3 4 5) (first (drop 1 mystream)) ;=> 7 The stream function make sequence side-effectfull like io stream. I think this is almost impossible. Here is my attempt. (defprotocol Stream (first! [t...
stackexchange/codereview
I want to make my program initialization a bit "smarter". I have several classes which represent commands. All these classes are immutable (i.e. creating only one instance of each should be enough for the whole application). All these classes implement Command interface. I think that the fact that some classes are pl...
stackexchange/codereview
So right now I'm using the zxing barcode scanner in my app. Here is example code(generic): if(position == 0){ Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent.putExtra("SCAN_MODE", "QR_CODE_MODE"); startActivityForResult(intent, 0); } public void ...
stackexchange/codereview
I need some advise regarding approach in Java, as the delegates are bit different than .NET one. I wold like to create some interfaces that has the same name and same method name but only thing that differ them is number of parameters. Something like Actions in .NET Some code samples. What works for now is the abstrac...
stackexchange/codereview
I would like to create a linq to sql class library that I can reference in all of my custom modules for this project I am working on. Does anyone have any suggestion or examples that I may reference? I have about 3-4 custom modules requirements that all will pull data from the same set of tables. I could implement th...
stackexchange/codereview
I have a django site. a snippet of myapp/models.py looks like this: class Continent(models.Model): name = models.CharField(max_length=128, db_index=True, unique=True) class GeographicRegion(models.Model): continent = models.ForeignKey(Continent, null=False) name = models.CharField(max_length=128, null=Fa...
stackexchange/codereview
Really, wondering and don't know why, on the initial load, the "<'p'>" element that holds content is scaled up, the fontsize, if i change orientation of the device it will then adjust scaling and keep it at declared font size that originally was intended, but that initial load. any ideas why?
stackexchange/codereview
I use wchar_t for internal strings and UTF-8 for storage in files. I need to use STL to input/output text to screen and also do it by using full Lithuanian charset. It's all fine because I'm not forced to do the same for files, so the following example does the job just fine:#include <io.h> #include <fcntl.h> #include ...
stackexchange/codereview
With that command what does really happen? telnet somehost 25 Does it mean that I create a connection between my host and somehost on port 23 with telnet and that telnet of somehost forward it after to the port 25? thank your for your help! cheers Daniel
stackexchange/codereview
Can anyone help me achieve picking using the Tao framework (or OpenTK) ?
stackexchange/codereview
Surfing the MDC docs here, I've noticed there are quite a few versions of javascript (1.6 to 1.8.5). I was wondering: Is there any online reference for Browser / Javascript version supported ? Is there any practical application for the use of different javascript versions ? According to MDC you need to do something li...
stackexchange/codereview
I have two tables in SQL and I need to be able to do a join based off of the timestamp in table B that is earlier than or equal to the timestamp in table A. So, here is some fake data for two tables and the desired output: Closed Cases (Table A) | id | resolution | timestamp | ------------------------...
stackexchange/codereview
I am building a script that will, among other things, replace a pattern in an XML file with a folder path. The sed command I am trying to use is: SEDCMD="s|PATHTOEXPORT|$2|" where $2 is the command-line parameter that has the folder path in it. This is later called: sed -e $SEDCMD $FILTER > $TEMPFILTER However, on ru...
stackexchange/codereview
I would like to process the access-logs that Amazon CloudFront creates with Amazon Elastic MapReduce. I just need some simple stats on how many times different files has been loaded from cloudfront so i thought i should just write a simple PIG-script for this. The first problem i have is that cloudfront write the logs...
stackexchange/codereview
I have been using R's text mining package and its really a great tool. I have not found retrieval support or maybe there are functionalities I am missing. How can a simple VSM model be implemented using the R's text mining package?
stackexchange/codereview
I'm planning on building a web development template for a small team. I'm looking at combining Paul Irish's Boilerplate and YUI's grids. (If it helps, the group will use jQuery.) Is there any reason why this would be a bad idea?
stackexchange/codereview
I am good at database(sql) programming part but I want to move ahead into database optimization part like: where and when to indexes, how to decide which query is better than other, how to optimize database. Can you guide me some good resources or books which can lead me to this?
stackexchange/codereview
The question is not tied to a specific programming language, but rather to minimalistic code and abstraction. I have this array of 3 rows and 3 columns - imagine a board in which you'd play Tic-Tac-Toe (or naughts and crosses). When a key(on the Phone) is pressed a value of 0 or 1 is added to the array(1 for X and 0 f...
stackexchange/codereview
I am having problems with some simple testing code that does bulk downloads from one of our restful services. It appears that the low level socket is not being released by the call to Dispose. Here is the basic code; foreach(...) { using(WebClient client = new WebClient()) { string results = client.DownloadSt...
stackexchange/codereview
I'm currently designing an application using PHP and MySQL, built on the Kohana framework. I'm making use of the built in ORM and it has proved to be extremely useful. Everything works fine, but I'm very concerned with the number of queries being run on certain pages. Setting For example, there's a page on which you ca...
stackexchange/codereview
I have a Google map (v3) on my site and I want to know what scale is my current zoom. The thing is that the user can change it's zoom so the scale can change. The information I need is the actual width in kilometers of my map. I know I can use Bounds... but is there any other way? I really don't want to use Bounds. Tha...
stackexchange/codereview
I have a strange XCode project compilation issue. I have a subclass of UIViewController called HelpViewController that is created the same way as several other similar classes I have for adding to a UITabBarController. When compiling I get the error; HelpViewController undeclared (first use in this function) when I try...
stackexchange/codereview
I want to measure and analyze user movements and gestures in the UI in order to refine the application user experience. I had imagined that feature-tracking libraries (like EQATEC or Preemptive's Runtime Intelligence) would allow this. However, this does not appear to be the case. Ideally, I'd like to be able to instru...
stackexchange/codereview
I'm confused as to why this isn't working, can someone please provide some insight? I have a function who is taking in an integer value, but would like to store the upper two bits of the hex value into a byte array element. Let's say if Distance is (24,135)10 or (5E47)16 public ConfigureReportOptionsMessageData(int Dis...
stackexchange/codereview
I have a calculation algorithm in Delphi with a number of different options, and I need to try every combination of options to find an optimal solution. TMyOption = (option1, option2, option3, option4); TMyOptions = set of TMyOption; I wondered about using an Integer loop to enumerate them: for EnumerationInteger := 0...
stackexchange/codereview
For some reason I seem unable to use JSON.stringify on a DOMWindow object. For example: console.log(window.self); // Outputs a hierarchical DOMWindow object console.log(JSON.stringify(window.self)); // Outputs nothing - not even an error alert(window.self); // Alerts "[object DOMWindow]" alert(JSON.stringify(window.s...
stackexchange/codereview
When I'm back from the background, onResume() method is called. Okay. So if I want to do some special code when I'm back I can put it there. What about if I've many activities ? Do I've to duplicate that code everywhere ? Should I used the Application class and call a method in each onResume() methods ? Plus, I would n...
stackexchange/codereview
I've been playing around with ABC bytecode and was hoping someone could clear up a point of confusion for me. I have a simple flash file that places a clip on the stage and has a tiny script to update its position on each frame. The code looks something like: package { import flash.display.MovieClip; imp...
stackexchange/codereview
We currently store passwords in plain text. One of the reasons is that it is easier to troubleshoot account specific issues when we can lookup a password and log into the account. This has always bothered me, but if we start hashing passwords, what would be the best way to troubleshoot account specific issues? How i...
stackexchange/codereview
I have created a modal JDialog box with a custom drawing on it and a JButton. When I click the JButton, the JDialog box should close and a value should be returned. I have created a function in the parent JFrame called setModalPiece, which receives a value and sets it to a local JFrame variable. The problem is that th...
stackexchange/codereview