instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm having to knock up a web page with a very specific layout. There's a fixed container, which is the entire browser window with an effective margin of 20px, and then two panels within that container. Both panels must consume the entire width of the container. Panel 2 must be positioned at the bottom of the container...
stackexchange/codereview
So we all know that the documentation for Kohana 3 is absolutely horrible. So how can I construct the following query, where I have a "Player" and "Dragon" model? SELECT * FROM `dragons` JOIN `players` ON (`dragons`.`player_id` = `players`.`player_id`) WHERE `uid` IN (1,2,3) ORDER BY `dragons`.`id` ASC I can use ORM::...
stackexchange/codereview
By default the resources command generates the url for new action as {model}/new. Sending a path_names = {} hash doesn't change the base {model} according to the documentation. How would I go about routing /submit to posts#new action?
stackexchange/codereview
im getting these two errors 1>c:\users\owner\documents\visual studio 2010\projects\monopoly\monopoly\xfileentity.cpp(376): error C3490: 'pDrawMesh' cannot be modified because it is being accessed through a const object IntelliSense: expression must be a modifiable lvalue i declared pDrawMesh in my class than used it...
stackexchange/codereview
I have searched SO for relevant posts but unable to find a working solution. To simplify the issue, I have a default.aspx with with scriptmanager, as follows <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods=true></asp:ScriptManager> <div> Th...
stackexchange/codereview
I want to do something like this: SELECT a.*, (SELECT COUNT(*) FROM b where b.col1 = a.col2) as count FROM a is it possible using propel criteria or not?
stackexchange/codereview
Here are two simple classes to illustrate my question: class Widget { private int _widgetID; public int WidgetID { get { return _widgetID; } set { _widgetID = value; } } private int _categoryID; public int CategoryID { get { return _categoryID; } set { _categ...
stackexchange/codereview
In our app, customers put in their own unique API credentials for Authorize.Net. So basically, each customer account has a different Login ID and Transaction Key, as supplied by Authorize.Net. We're a shopping cart type product. We have problems with customers entering the wrong thing or not copy/pasting the Login Id...
stackexchange/codereview
I'm trying to create a regular expression that matches when the string starts with 1 or more alpha characters followed by exactly 1 ? and ending with 1 or more alpha characters What I have so far is [A-Za-z]+\?{1}[A-Za-z]+ but this is causing my program to crash. Any ideas? Thanks for any responses. UPDATED Here is th...
stackexchange/codereview
I have read this somewhere: Most mobile operators encrypt all mobile communication data, including SMS messages In GSM, messages are encrypted using A5/1 but even when encrypted, the data held by SMS is readable for the operator. Mobile phone operators have the ability to filter and modify short messages during deliver...
stackexchange/codereview
I'm trying to forge an IGMPv2 Membership Request packet and send it on a RAW socket. The RFC 3376 states: IGMP messages are encapsulated in IPv4 datagrams, with an IP protocol number of 2. Every IGMP message described in this document is sent with an IP Time-to-Live of 1, IP Precedence of Internetwork Control (e.g., T...
stackexchange/codereview
I'm experiencing a really strange glitch in my ipad app. It's super simple: I just use the "touchesMoved" handler to draw a line between two points. Since I would like lines to stay on screen, I'm not calling "glClear" in my draw function, but for some reason some of the lines just drop out, and it appears completely r...
stackexchange/codereview
I tried googling for this without much success, so I thought I would come here. I am using Red Gate's .NET Reflector to explore some assemblies. Is there any way to limit the search to particular assemblies or namespaces? For example, if I search for "table", I get a whole heap of results such as the IFormattable in th...
stackexchange/codereview
Is there a tool out there (preferably web-based) which would automatically detect commits to a BitBucket repository, and at that time, copy all files in the repository to a web-server via FTP? I basically want a quick and painless way (if one exists) to set up continuous integration between my BitBucket repository and ...
stackexchange/codereview
I am stuck with one of the algorithm homework problem. Can anyone give me some hint to solve it? Here is the question: Consider a chain structured computation represented by a weighted graph G = (V;E) where V = {v1; v2; ... ; vn} and E = {(vi; vi+1) such that 1<= i <= n-1. We are also given a chain-structure m identica...
stackexchange/codereview
I've got a swipe listener, based on SimpleOnGestureListener that works very well, as long as I attach it to a button like so: final GestureDetector detector = new GestureDetector(MyGestureListener()); View.OnTouchListener listener = new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent e) { ...
stackexchange/codereview
I'm using the SimpleDom library and need help with the sortedxpath function. Here's the XML <cal> <entry entry_id="1"> <entry_date year="1980" month="10" day="12" /> <entry_title>John Bday</entry_title> </entry> <entry entry_id="2"> <entry_date year="1980" month="10" day="10" /> <entry_title>Peter Bday</entr...
stackexchange/codereview
I am trying to create a session explicitly like this UserSession.create(@user, true) but the session is not getting created, current_user is nil. But when I do this, I get < #UserSession: {:unauthorized_record=>""}>us = UserSession.create(@user, true) RAILS_DEFAULT_LOGGER.info(us.inspect) #=> UserSession: {:unauthorize...
stackexchange/codereview
I'm new to python. I want to create controlled script executed from /etc/init.d command like /etc/init.d something start/stop/restart Any advise appreciated.
stackexchange/codereview
This screen is so useful in development. Is there a way to have all query windows behave like this one? It seems special and is only invoked if you select the "Edit Top 200 Rows" option.
stackexchange/codereview
Still coming from C++ I find it cumbersome to create many small helper classes and objects. Mostly because I have to have one file per class. I basically have a class like this: public class mySimpleClass { public float[] numbers = new float[ 4 ]; } And then I have this class: public class myNotSoSimpleClass { ...
stackexchange/codereview
I will be happy to know if there is any available tool which can generate data records based to a specific schema rules. At this moment I work with CakePHP and I'm new to mysql workbench, but i have no problem if there is a tool which can generate some data and export it to xml or something else.
stackexchange/codereview
They say that a protocol is a method, but it's different from a method. So exactly, what does it do and what is the difference between a method and a protocol?
stackexchange/codereview
I reluctantly adopted a data mapper approach for my current project but I've been left a little confused. Business Model A worker has a name, a set of working hours, and a cost. Data Model A worker is made up of a labour type and a working pattern (three different tables). The cost of the worker is calculated based on...
stackexchange/codereview
I am writing a basic genetic algorithm(string evolver) implementation in C . It takes a few inputs like reference string and population size and returns generations required to evolve . Can someone suggest an API /framework that would help me run this code again and again , with several inputs , collect the data and ...
stackexchange/codereview
I'm struggling to get a design like I put in this image in CSS. I'm using wordpress, and my theme just adds a full image to the top, I would like to make the most of space. http://antinovaordemmundial.com/test/header.png I have already all the buttons as single images (at this point I prefered to not to use sprites) an...
stackexchange/codereview
Ive been trying to get an example Web Service working using SpringWS and Tomcat5.5 Ive followed examples such as: 1)http://justcompiled.blogspot.com/2010/09/building-...eb-service-with-spring-ws.html 2)http://jamesbnuzzo.wordpress.com/2009/04/14/spring...s-with-jaxb-maven-amp-eclipse/ The latter has an ZIP file whi...
stackexchange/codereview
I've read Apple's "Your first iOS application" guide and everything there seems crystal clear to me. However, when I try to understand how View-based iOS application template provided in XCode works, I run into some interesting conundrums. I understand that the application gets the main nib file name (usually, the Main...
stackexchange/codereview
I have recently started using Boost in my C++ projects and noticed a quite a huge delay before the compulation even starts (when I hit the re-build I have to wait for 5 minutes for compilation to start). I have run the Filemon and it shown me that all that time the Visual Studio was idle devenv.exe was probing thru Boo...
stackexchange/codereview
I have a couple of mysqli questions. First. I know I can make groups into an array. I was just wondering if there was a way to get a row from the groups object without making it into an array? $groups = $this->db->query("SELECT id, name FROM groups"); ... <select name="group"> <?php while($group = $groups->fetch_ob...
stackexchange/codereview
Is there an Python API from which if we input the ipadress, will we be able to know the location and place of the access
stackexchange/codereview
I'm on Rails 2.3.5 and trying to figure out the syntax for selecting on certain columns with eager loading. For example, class Organizer < ActiveRecord::Base has_many :events end class Event < ActiveRecord::Base belongs_to :organizer has_many :bookings end class Booking < ActiveRecord::Base belongs_to :event end ...
stackexchange/codereview
What is the character to use to Place a 'return' in a string resource? IE: In the value of a string, '/' means there is no space before the words in the string....Is there a char to use that puts in a return so I can have the string displayed in multiple paragraphs?
stackexchange/codereview
I've implemented a directory walking algorithm for the Windows Shell using IShellItem, IShellFolder, IStorage, IStream, etc. All is well and good. I can even walk inside shell namespace extensions (e.g. .zip) files. However, I have problems extracting (regular) file sizes when files are being used by some other program...
stackexchange/codereview
I'm working on an app where a user can upload and download information. The information is downloaded in such a way that when it's downloaded, it's ordered according to when it was submitted. What I'd like is for the user to be able to reorganize the table view, save the order to a preference file (all ready working...
stackexchange/codereview
In WorkflowInvoker.Invoke Method (Activity, IDictionary) The second parameter takes the arguments for the activity (first parameter). Does it just takes "InArguments" or is there a way can I set any public property of the activity? Specificly if my custom activity has properties that require activities as arguments(I....
stackexchange/codereview
I've been through all SharePoints posts all over the interwebs and I can't find anything to point me in the right direction. I'm developing a web part, that should, in theory re-render the contents of web parts situated within a given zone, into itself. Lot of words, let me explain a bit more. I have a zone, for exampl...
stackexchange/codereview
Is there a C# equivalent of Java's LineNumberReader? i.e. a StreamReader.ReadLine() which kept count of the line number. Or is the only way to achieve this by creating a custom subclass of StreamReader, and implement the necessary counting in an overridden method?
stackexchange/codereview
I'm working on a 3D Spaceship game with XNA 3.1 I tried to separate my painting code from the game logic (altought XNA makes this almost). I'm using a special static class that paints my models on screen... the main Game class uses this code at painting: protected override void Draw(GameTime gameTime) { gra...
stackexchange/codereview
I'm trying to pass multiple values from PHP into my javascript function. The function is simple right now, just trying to show a popup with the values: <script type="text/javascript"> function showMapsInfo(name, ctr) { alert('Info = '+name +' '+ctr); }//function showMapsInfo </scrip...
stackexchange/codereview
i want to add WYSIWYG HTML editor to my Java program. my idea is to do Something like this but not with python - with Java. i know about couple of options and their problems : HTMLEditorKit - not sophisticated enough. JWebpane - fairy tale. QtWebKit - not open source. JWebEngine - not open source. metaphaseeditor - t...
stackexchange/codereview
I am new to ZF, so my question might look newbish and I apologize in advance if its already answered. The sequence in which ZF execute a complete process is 1. routeStartup 2. process route 3. routeShutdown 4. dispatchLoopStartup 5. preDispatch 6. dispatch process starts 7. controller's init method 8. controller's he...
stackexchange/codereview
Using a custom sensor that I built, I collected pressure sensor information of a the human gait cycle (how the pressure varies when a person walks) from a person's right foot. One of the things I want to do is break up each signal into individual steps taken by the right foot. I have a couple of sensors on the sole of ...
stackexchange/codereview
How can one identify whether some code (a serv-let or a simple class) is running on Google App Engine run-time (Java) so that one can decide whether to utilize app engine's specific libraries or not? Is there some reliable runtime enviroment ID for that?
stackexchange/codereview
num = input () fact = 0 while fact != num: fact = fact + 1 rem = num % fact if rem == 0: print fact
stackexchange/codereview
I have a function that I want to be able to allow passing in either a regular javascript DOM element object or a jQuery object. If its not yet a jQuery object I will then make it one. Does anyone know of a very reliable way to detect this. function functionName(elm){ //Detect if elm is not a jquery object in conditi...
stackexchange/codereview
Are there any C# libraries out there that provide the same kind of functionality google does when you type in a query such as "13 miles 743 yards in meters" it will return "21 600 meters" (for example). What I want to be able to do is give a function the string part 13 miles 743 yards and it spits back an int/double wi...
stackexchange/codereview
I would like to identify if an email address comes from a public provider or is from an established business. I consider public email addresses to be things such as: Open email service providers, such as gmail, hotmail and yahoo. Anonymization services, such as mailinator or dispostable. I'm aware that there is no fo...
stackexchange/codereview
I have a simple const method that wants to generate a random number int Object::const_method() const { std::tr1::uniform_int<int> uni(0,100); // do some calculation return result; } This results in your standard (if templafied) const violation error /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../i...
stackexchange/codereview
I have a database table like this Port Code | Country |Port_Name -------------------------------------- 1234 | Australia | port1 2345 | India | Mumbai 2341 | Australia | port2 ... The table consists of around 12000 entries.I need to auto-complete as the user enter's the query.Now ...
stackexchange/codereview
I would like to convert 14.4689 or 13.3616 to binary data (bits) in php. How Can I do this? Thanks for helping Stephane
stackexchange/codereview
I’m just starting to explore asp mvc and jquery. I have a simple form that has 2 fields, a Date and an Amount. The behaviour I am trying to achieve is that when the form is submitted, if the record doesn't already exist in my database then add the item. If it does already exist then warn and ask the user for confirmati...
stackexchange/codereview
i want to play audio and video file using flash player in GWT...how can we integrate that player in GWT...
stackexchange/codereview
I am spawning my server each time whenever a client connects. But if the client is running considerable time with server i.e multiple times, regularly I am getting the *" Error in process <0.111.0> with exit value: {function_clause,[{inet,tcp_close,[[]]},{run_server,function,8}]}".* I think it is from inet options.......
stackexchange/codereview
I am working on a site where I need to import data from a remote MS SQL Server database into a MySQL database on a Unix server via PHP. Thanks to answers to this post, I was able to get everything up and running on my dev environment (Mac OS X 10.6). Now, however, I'm trying to get my server environment set up, which...
stackexchange/codereview
I don't like SSIS graphics interface. Is it possible to program Emacs so that I can create SSIS packages from Emacs? If yes, where should I start?
stackexchange/codereview
is it possible to call a test script into a seperate test script? eg. I create 10 test scripts and instead of copying them and harnessing, I want to just call them let's say by their filenames on a separate script. Can anyone teach me how to do it
stackexchange/codereview
I've read that table joins are usually more efficient over sub queries, is this true? Will SQL Server 2005 and/or 2008 convert the sub query to a table join if it thinks it would be better?(Considering it uses a declarative language rather than an imperative one). Regardless of the size of the tables i'm working with, ...
stackexchange/codereview
function genEnemy(a) { //javascript:alert(en[0]+'\n'+genEnemy(en[0])+'\n'+en[0]) with (Math) { a[1]=round(a[1]*(.5+random())) a[2]=round(a[2]*(1+random())) for (var b=0;b<5;b++) a[3][b]=round(a[3][b]*(a[3][b]/2+random()*a[3][b]/10)) for (var b=0;b<a[4].length;b++) random()<it[a[4][b]][3]/10?a[4][b]=0:0 } r...
stackexchange/codereview
I've been trying to do some testing with the HTTP.sys / HttpListener on my workstation and it seems that there is some limit in place that prevents more that 1000 concurrent connections. Does anyone have any more information about this? (As 1k seems a little to clean to be a coincidence). I've tried to find any thread ...
stackexchange/codereview
i need to sort a large XML file and i've been reading that placing each of the elements into an array is the way to sort the data using Array's sortOn() method. i'm concerned about speed. perhaps storing them into a Vector.< XML > instead of an Array will offer a slight increase in speed, or not, but is this approach ...
stackexchange/codereview
I have developed a tool that creates a thumbnail of a webpage according to how the user visualizes it in his browser. I would like to generate the thumbnail only once if all users see the same content. However, if content is customized or private (e.g. facebook home), the generated thumbnail will only be available for ...
stackexchange/codereview
I am trying to write some simple data to External storage using the following code. I am missing something here but not sure what. Thanks RobD public class TimeCard extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super....
stackexchange/codereview
I need example code for android (java): I have a view with a button When the user clics the button, I want a new view to be opened I want a mapview in the new opened view
stackexchange/codereview
I am having some trouble using the custom number format feature in Excel to display US Treasury futures quotes. The format by which they are displayed in is: 121'167 Which is equivalent to 121 + 16.75/32 If the last digit is a 5, as in 121'165, then it is equivalent to 121 + 16.5/32 If the last digit is a 2, as in 121'...
stackexchange/codereview
I'm trying to diagnose some memory issues in our J2EE server. I've setup jconsole on our live server and I'm trying to monitor the status of the tomcat server through it. I've a quick question about the Threads tab in jconsole. I can see a thread named Finalizer in the threads list. The 'Total blocked' number in this t...
stackexchange/codereview
Hi I am new to Django and working on Pootle project. I would like to sort by Overall completion by default in the pootle index page. for example, http://pootle.locamotion.org/ lists the languages and sorted by names. you can click sort buttons to see sort by completion. but I would like to show this list sorted by co...
stackexchange/codereview
I'm attempting to write an ActiveRecord-esque bit of code in Obj-C, and encountered the following situation: I'm trying to create a static class variable in a base class that gets the inheriting class's name and converts into the table name with pluralization and some other formatting operations. I know that for an ins...
stackexchange/codereview
When calling on a new instance of an object for a class I've created, my one instance of the class is just being overwritten. Why could this be? Example is below. My class is defined as follows: class my_class: attribute = "" examples = [] children = [] d = {} def __init__(self, attribute, e): ...
stackexchange/codereview
Hey, I'm trying to create an installer for multiple games, from one server computer which individual computers then execute. E.g. BF 1942, WC3, BF2, DOW. However i need to be able to select which applications to Install, which is a simple check box. I only have a limited knowledge of c#. What is the best way of going a...
stackexchange/codereview
I have created a .htaccess and .htpasswd files, and stored them in the folder I want to protect and when I navigated to that folder, I was asked for the username and passowrd (stored in the .htpasswd file) after entering the username and password, I got a 500 Internal server error. I have used the files on both localho...
stackexchange/codereview
I'm struggling with my app that launches multiple instances of the same Activity using the same intent. My main activity is of class type A and it does a startActivity() of two children that are of the same class type B. So we have B1 and B2 launched. If B1 and B2 are both paused (by pushing back button and making sure...
stackexchange/codereview
I did a small app to make shipping bills, where a user enters the information they want and can either Preview (a form with a ReportViewer control is opening up) or Print direclty. The reportviewer uses a Local report embedded into the application. Example Here : https://i.stack.imgur.com/z90z8.jpg I have tried the app...
stackexchange/codereview
I'm setting up a public-facing website with 4 levels of navigation. There is a fixed top level navigation that breaks things into section. The second level of navigation is a horizontal menu. The 3rd and 4th levels are displayed in a tree menu. Should this be set up in lists, or in subsites? I understand that you can n...
stackexchange/codereview
I have a LEFT JOIN select statement that retrieves values from 2 tables: tableA and tableB. The syntax is as follows: SELECT tableA.first, tableA.middle, tableA.last, tableB.full FROM tableA LEFT JOIN tableB ON tableB.full LIKE concat('%',tableA.middle,'%'); What is the best type of index to have for this statmen...
stackexchange/codereview
I am iterating through a large list of objects (1503) and calling a save method on a ServiceProxy I have written. The service proxy uses the new networking stack in Silverlight 4 to call BeginGetRequestStream to start the process of asynchronously sending my objects to an azure REST service I have written for saving o...
stackexchange/codereview
I'd like to use the "logging" module in Python to write errors to a log file. However, I want the file to only be created when there are errors. I use the following code: import logging f = 'test.conf' logger = logging.getLogger("test_logger") logger.setLevel(logging.INFO) ch_file = logging.FileHandler("test_logger...
stackexchange/codereview
yesterday I got some help here to get the regular expression right to accept the input such as, Plymouth, United Kingdom but I realised that I should accept such input below as well, Plymouth, Devon, United Kingdom so I added another expression in the code below and now it cannot accept either of the condition above!...
stackexchange/codereview
So, according to SAS books, you do: PROC IMPORT DATAFILE="filename" | TABLE="tablename" OUT=SAS-data-set <DBMS=identifier><REPLACE>; for data files, and you use INFILE to read raw data files... So what exactly is "raw data files"? Are CSV files data files or "raw data files"? Are space-separated text files data files...
stackexchange/codereview
How does one create the game "area" for a scroller game? How does one then put various obstacles with collision detection along this scrolled environment. I want to try out a project which will allow the user to scroll to a certain direction in order to progress through the game. How does one map the objects within ...
stackexchange/codereview
I have a process in SAS that creates a .csv. I have another process in Python that waits until the file exists and then does something with that file. I want to make sure that the Python process doesn't start doing its thing until SAS is done writing the file. I thought I would just have SAS create the .csv and the...
stackexchange/codereview
I downloaded sts and installed the grails/groovy plugins which is fine, but I can not use the JavaScript functionality like jumping through classes and functions in the JavaScript editor. When I click command and on the functions name, I get a dialog saying "you have to make this a JavaScript project etc." :( :( intell...
stackexchange/codereview
I have a file that contains a bunch of links: <a href="http://site1.com">site 1</a> <a href="http://site2.com">site 2</a> <a href="http://site3.com">site 3</a> I want to get the URL to a link with specific text. For example, search for "site 2" and get back "http://site2.com" I tried this: preg_match("/.*?[Hh][Rr][Ee...
stackexchange/codereview
I have a proprty o type "Observable collection"...when i add an item it's not geeting reflected in UI ...what am doing wrong...? <ComboBox Grid.Column="0" Grid.Row="3" Width="120" SelectedIndex="0" Margin="5,0,0,0" HorizontalAlignment="Left" ItemsSource="{Binding AllPlaces}" DisplayMemberPath="PlaceName" SelectedIte...
stackexchange/codereview
I have added a new entity to our edmx. We have the ..dataaccess.g.cs file that is generated. This generated file does not seem to show the new entity I created, even when I delete it and rebuild our Entity project. I need this because it is a navigation property that we need to be able to access. any thoughts would be ...
stackexchange/codereview
I need to match simple some simple glob patterns that include only * and ?. It occurred to me that I could transform the input pattern into a regexp - the only problem is I'm not familiar with regexp enough to know the replacements. Essentially, I need an implementation for: std::string getRexExpForGlob(const std::stri...
stackexchange/codereview
I currently use a the databse to store my messages but I guess there should be a better way any idea can help me ? I mean thoese messages I provide for user in the UI, Example : "Data Saved Successfully" or "Are You Sure to delete?"
stackexchange/codereview
I have an SQL Function that takes a String, a DATE and another string. EXEC dbo.ReplaceString 'You ve been subscribed to the ##company## newsletter.', NOW,'BIG DEES' CREATE Function [dbo].[ReplaceString] ( @main_message As Varchar(500), @date_sent As DateTime, @company As Va...
stackexchange/codereview
I have searched high and low for a solution. I have both linecache19 and ruby_core_source installed. Neither of these commands will work: gem install ruby-debug19 gem install ruby-debug19 -- --with-ruby-include=/Users/benjohnson/.rvm/src/ruby-1.9.1-p378 Here is the error I keep getting: Building native extensions. Th...
stackexchange/codereview
Hi I'm having a hard time figuring how to just display simple text in a Cocos2D game. I know how to write code to show pictures and to change the current picture but that's it. Can anyone help me with this? Also I know making a text field requires UITextField but where exactly would I implement the code for that? I hav...
stackexchange/codereview
I have been looking everywhere to find out how to catch a base fault contract type in c#. I would like to have all my fault contracts inherit from one class and have one catch(FaultException fex) in the MVC controller. DataContracts [DataContract] public class BaseClass1 { } [DataContract] public class Class2 : Base...
stackexchange/codereview
I'm trying to parse xml from SharePoint service (lists) using jquery. I have XMLHttpRequest object xData which contains responseXML property, which is IXMLDOMDocument2. xData.responseText has following value: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/...
stackexchange/codereview
I have been using the devise gem for rails and I have facebook login system working. My problem is that there is so much going on in the background that I find it difficult to customize this. For example how do I change the path to the page the user is redirects to after the first time facevbook login, not the usual fa...
stackexchange/codereview
Hi I play with GWT in the weekends, and I really like what i've seen so far. I have 2 questions: I don't really understand the execution model of my app. I think that's because I don't know javascript. I'm assuming that there is only one logical thread from the browser running the javascript and it is the same thre...
stackexchange/codereview
I am having the code like this When the checkbox is clicked I want to highlight that row.I don't want to use id for a table. Because I am having lot of tables in the same format and I want to apply the css when checkbox is clicked by using single Jquery function.How can I achieve this?
stackexchange/codereview
If I have a random, 16 character long, alphanumeric salt (varying case) that is generated and stored per user, do I need a site wide salt as well? In other words, is this good? sha1($user_salt . $password) should I do this instead? sha1($user_salt . $password . $site_salt) Also, At the moment, I have an encrypted coo...
stackexchange/codereview
This question is sort of an extension of what was brought up in this discussion: How to programmatically list all controllers in Rails It seems most of the solutions for listing out an application's controllers and actions makes use of importing and parsing #{RAILS_ROOT}/app/controllers. I've been building and making u...
stackexchange/codereview
Good evening everyone! I'm stuck with my selfmade accordion again. I've got an Accordion, with basically looks like this: <dl> <dt> <a href></a> </dt> <dd> Text </dd> <dt> <a href></a> </dt> <dd> Text </dd> <dt> <a href></a> </dt> <dd> Text </dd> <dt> <a href></a> </dt> <dd> Text </dd> <dt> <a href></a> </dt> <dd>...
stackexchange/codereview
Is there are way to change the Firefox Proxy settings from a Python script?
stackexchange/codereview
I am new to programming in general. I'm writing a program that takes a command line argument and a input string once started. It can convert to pig latin, undo the pig latin, or do rot13. I have all of my functions working flawlessly but I need help parsing the input string as all the functions can only do one word at ...
stackexchange/codereview