instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have several UITableViewCells which are used to choose a setting. Touching one checks it and un-checks the previously checked cell (if any). I am using the UITableViewCellStyleSubtitle cell style and have about a paragraph of text in each detailLabel. When I set the accessory to UITableviewCellAccessoryCheck my detai...
stackexchange/codereview
I'd like to simulate what WCF Data Services does with it's "$metadata" tag... that is, send a CSDL document that describes an existing set of objects that may (or may not) be part of an Entity Framework model. In fact, assume the EF is not part of this discussion... I want to create a service that inspects the type of ...
stackexchange/codereview
I've written a solution to problem using PL/SQL and SQL and I can't help thinking that it could be done 100% in SQL but am I am struggling to get started. Here is the structure of the two tables (If it helps, the scripts to create them are at the end of the question) Table t1 (primary key is both columns displayed) ID ...
stackexchange/codereview
This works within visual studio: PeliculasEntities db = new PeliculasEntities(); DetalleAlquiler detalleAlquiler = (DetalleAlquiler)db.DetalleAlquilers.FirstOrDefault(x => x.ID == 1); MessageBox.Show(detalleAlquiler.Alquiler.Cliente.Natural.Edad.ToString()); I want to retrive the same information inside of LinqPad. A...
stackexchange/codereview
with this script var d = new Date(2010, 10, 30); var e = new Date(d.getFullYear(), d.getMonth() + 3, d.getDate()); document.write(d + "<br>" + e); why 30 Nov 2010 plus 3 months equal to 2 Mar 2011? not 28 Feb 2011? 30 Nov 2010 and 23 Feb 2011 are the last day of the month. http://jsfiddle.net/jWh2M/
stackexchange/codereview
How can i know when a user is added (or deleted) to a sharepoint site or to a group in a sharepoint site? I tried to attach an SPItemEventReceiver on the user information list, but the main problem is that i can't know when a user is added (removed) from a group... What is the best approach to do that?? noting that i...
stackexchange/codereview
I have a column chart which is grouped with a CategoryAxis. My problem is that when the columns are grouped together there is no spacing/margin between the columns. I have tried to apply a style with margin on the DataPoint, but the only this that does is to move all the columns but not applying a margin on each colum...
stackexchange/codereview
My application is making call to server at regular intervals. This requires internet connection either using Wi-Fi or GPRS. This works ok when phone is waken (screen light is on). But, as soon as phone lights are off, it makes HttpWebRequest and tried to get Internet connection. Mobile starts connecting to Wi-Fi. But, ...
stackexchange/codereview
I am using ef4 code first with a generic repository. My repository has a select method that looks like this: public IEnumerable<T> Select(Func<T, bool> predicate) { return objectSet.Where(predicate); } I am calling it with the following code pushQueueRepository.Select(x => x.User.ID == user.ID && x.PageID == pageI...
stackexchange/codereview
Or should I always get my entities via service methods? Thanks
stackexchange/codereview
I write the following file temp.hs: import qualified Data.Set import System.Environment main :: IO () main = do args <- getArgs let fname = head args print (fname) It loads in ghci without errors: $ ghci GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim .....
stackexchange/codereview
I need an extention for converting ToSelectList a list of items (strings or ints) I found this: public static SelectList ToSelectList<T>(this IEnumerable<T> collection, string dataValueField, string dataTextField, string selectedValue) { return new SelectList(collection, ...
stackexchange/codereview
Based on if one field in the database is equal to something, I want to select the value of another field. I was thinking that I could use CASE THEN but I can't get it to return the value of a field. Here is what I have tried so far: SELECT LastName, CASE FirstName WHEN 'Ian' THEN JobNo END FROM Employees JobNo is the ...
stackexchange/codereview
So I am trying to have a message displayed when the input is invalid, suppose I want something other than a ToolTip, something that stays until the error is corrected. I tried having an ErrorTemplate <Style TargetType="{x:Type TextBox}"> <Setter Property="Validation.ErrorTemplate"> <Setter.Value> ...
stackexchange/codereview
Recently, I'm playing with something related to BBCode in phpBB3. When I trace back my database, the posts table and for a random post. I found that the image tag is written this way [img:fcjsgy5j]. There are 8 random characters generated between [img: ... ] for each post. [img:fcjsgy5j]http://imageurl.jpg[/img] My qu...
stackexchange/codereview
I have seen if(cond) {} elsif(cond2) {} else {} statement if(cond) unless(cond) {} But is there a statement if(cond) statement2 elsif(cond) statement3 else and if(cond) {} elsun(cond){} # un meaning else unless
stackexchange/codereview
Here is my code, from the search results page: {if $listing.SalaryType!=''&& $listing.Salary!=''}<dt>Salary:</dt> <dd>{$listing.Salary} {$listing.SalaryType}</dd>{/if} Which gives this output: It says 'Array' instead of the correct value. Any idea where I can start looking to solve this problem? Where is the 'Array' ...
stackexchange/codereview
I have a vector with raw pointers (no, I cannot use smart pointers) and I want to add items to the list in a for loop. I've made a little trial project, and I wondered if this is considered good C++ code in terms of pointer management. Please only consider raw pointer management, I am not interested in smart pointer...
stackexchange/codereview
Are there functions which would allow an OTP process to find the pid of its supervisor?
stackexchange/codereview
I tried sscanf(str, "%016llX", &int64 ); but seems not safe. Is there a fast and safe way to do the type casting? Thanks~
stackexchange/codereview
How do you know that you scrolled using the UITableViewIndex ? I have some basic info to show on my cells, and when I jump/scroll I need to retrieve info about thoses cells by a request for a group(page) of items. So in order to request only thoses I've stopped to, I need a way to know that I've stopped scrolling (I ...
stackexchange/codereview
I'm developing high-scalable application, so I decided to use Hazelcast for it. I have one frontend server, which puts messages for nodes. Every node in cluster change it's workload in background thread in distributed map, so, frontend server choose queue (every node has it's own message queue) to put message in. My qu...
stackexchange/codereview
I want to create a structure where I can "iterate" over all objects of a class (and possibly the objects of all derived classes, though this is ignored then). However it shouldn't iterate over the "parent" classes: Let's assume I have the following system: A is the base class C and D are derived from that E is derive...
stackexchange/codereview
I've found it possible to create a custom button in jQuery UI Dialog but how do I trigger some action when the button is clicked? For instance, I've created a 'Create' button. When clicked I'd like to trigger a Ajax Post request. I also have another issue. The page where the Dialog is generated is as a result of a form...
stackexchange/codereview
Is there a quick way to serialize Python data structures to JSON/XML in Pylons, like there is in Django?
stackexchange/codereview
I have to display the Category and SubCategory in the dropdownlist in hierarchy, like as follows: cat1 --cat11 ----cat111 ----cat112 ----cat113 --cat12 ----cat121 ----cat122 ----cat123 cat2 --cat21 ----cat211 ----cat212 ...
stackexchange/codereview
I'm trying to implement a decent navigation in a AJAX application. What I am doing right now is the following: Every time a user clicks an AJAX link, the corresponding call is performed and the hash is changed. Whenever a new page is loaded, I check whether the hash is present and make the corresponding AJAX call to u...
stackexchange/codereview
In my android application, there are number of images in drawable folder. In my layout there are two buttons: Back and Next buttons. On clicking next and back buttons 2 different images get loaded on the same layout(common for all images). Problem:I am able to load images on Next/Back button's click but after reaching ...
stackexchange/codereview
I'm trying to get the SIM number (ICCID, not IMSI) of my 3G Huawei E5830 modem using AT commands (also called Hayes command set). Unfortunately, it's not specified in the modem formal documentation.
stackexchange/codereview
I have a string with several lines of CSS code. I want to match all occurences of : background:url(" url "); and remove everything except the filename. Example input: background:url("http://external_link.com/images/my_suspicious_file.png"); background:url("rubish.com/images/my_suspicious_file.jpg"); background:url("re...
stackexchange/codereview
I saw a couple other questions of this nature but they didn't quite fit the bill. I am currently trying to return JSON from two different controllers. In one of my controllers, it works with no problem, but when I hit my second endpoint, I get a 406 error and I can't figure out what's wrong. Here's the controller actio...
stackexchange/codereview
I am trying to debug my application but when I start windbg with the following windbg.exe -g myapp.exe Windbg says "Debuggee not connected". Then I have to manually breaking and hit go. Then I see "windbg is running." I have to launch multiple windbg sessions so hitting break + go on each session is not my option. I a...
stackexchange/codereview
Sorry for the subjective post but I thought this was a topic worth discussing. With 4.0 WPF finally became a pretty solid platform to develop rich applications with. However, there's some things that I still find quite limiting. With v.Next approaching it might be useful to highlight what your biggest WPF gripe is (...
stackexchange/codereview
I am writing javascript code which uses jQuery and unfortunately when I create a .js file with the following: /// <reference path="jquery-1.4.2.js" /> (function($) { // use $ here })(jQuery); I don't get any intellisense for $. However I still get intellisense if I use "jQuery". This seems like an oversight to m...
stackexchange/codereview
Hi I have a web page with a fair bit of javascript on it, which is running perfectly well. I have a small panel showing my Latest Tweets from twitter.com My problem is that all the other javascript on the page it waiting for the twitter badge to go and get all the info it needs from twitters server before they render. ...
stackexchange/codereview
I have the following C Header/Code Example: Header file struct category_info { int id; const char *name; const char *description; }; DLLEXPORT void* xyz_categories_info(struct category_info **info, size_t *info_count); Example C Snippet struct category_info *catinfo; size_t catcount; size_t i; int max_name_l...
stackexchange/codereview
I have a variable called "Totaltime" in my program. I assign the variable (in seconds) as Totaltime = 3600. Now i want to reduce the time by 1 sec for each Tick event and show the reducing time in label or litera control.Can anyone please tell the C# ASP.NET coding to implement this?
stackexchange/codereview
I am trying to figure out a stored procedure that can get a the depth of a table structure. Bear in mind the table design was before my time and cannot be altered. When I say depth (to ellaborate), I mean the highest section table that has a record originating from a JobID. I am really rusty with my SQL so I am brain f...
stackexchange/codereview
I have a PHP page called test.php on which I link to a dynamic image called image.php as follows: echo "<img src=\"image.php?ID=abc&X=123\" align=\"absmiddle\" style=\"margin:5px;\"><br>"; The image file takes ID and X as GET parameters, and uses them to include an existing static image from my server. A header is sen...
stackexchange/codereview
Is there a way to use the already running ssh-agent in a bash session with net::ss::perl::agent ultimately so I don't have to setup keys again with net::ss::perl? I don't see any examples anywhere. I keep seeing a way to create a new agent but not a way to connect it to the shell? Thanks Edit: I should explain that I c...
stackexchange/codereview
I am processing 1000's of user objects in a .each loop. I want to output a puts message for feedback to the console. How can I do this, What is the Ruby modulus operator? I tried: if u.id % 100 puts u.id.to_s end
stackexchange/codereview
I was wondering which iPhone JSON library is best for serializing an object (which will later be read by a Java server). At the moment we're using TouchJSON and I've been told that it can't do serialization. Any suggestions?
stackexchange/codereview
I'm trying to get iterator for boost::fusion::map, but I'm missing something. The following works with boost::fusion::vector: typedef vector<int,char,double> vector_t; vector_t vec(20,'B',14.5); typedef result_of::begin<vector_t>::type vb; typedef result_of::end<vector_t>::type ve; vb vb_(vec); ve ve_(vec); iterator_r...
stackexchange/codereview
how to get netmask address from IP in MFC(VC++) ? Thanks.
stackexchange/codereview
I have a TCP socket server and I want to do the following w/o using SSL: On server, make RSA key pair (I know how to do this using openssl's crypto library) On server, send the public key to iphone and keep the private key. On client(iphone), want to encrypt a message using the public key, using SecKeyEncrypt. On serv...
stackexchange/codereview
In my projects i often use get params as a temporary way to test things with different values. However it seems like you cannot access get params in code igniter? I am aware I could build a param into my functions and pass the value as a url segment. But i dont want to be doing that every time I wish to test something....
stackexchange/codereview
Any C++ examples available to convert raw pixel data obtained from glReadPixels to JPEG format and back?
stackexchange/codereview
I am currently struggling with whether or not I've achieved a good level of separation, or if I've missed the point somewhere, as I am relatively new to learning the disciplined side of development... My goal when I started was to create a layer that was agnostic of any persistence mechanism - I called this data-api. I...
stackexchange/codereview
I have read through the documentation on perforce and the "branching strategy" advice as well. One thing thats left me baffled, is how a simple concern is does not seem to adequtely adressed. When I am working on a project that touches many parts of our code base , I cannot checkin my code at the end of the day without...
stackexchange/codereview
Apache Commons IO has a nice convenience method IOUtils.toString() to read an InputStream to a String. Since I am trying to move away from Apache Commons and to Guava: is there an equivalent in Guava? I looked at all classes in the com.google.common.io package and I couldn't find anything nearly as simple. Edit: I unde...
stackexchange/codereview
In my project I need to log all queries executed against my database. As an example we can use the staff user data here. In that class I have a function generating the command with the parameters as follows: Public Function SQLUpdate(ByVal conn As SqlClient.SqlConnection) As SqlClient.SqlCommand Implements IDbConnected...
stackexchange/codereview
The website is having auto-refresh.When an user login with the same username that is logged in already somewhere,how to logout the previous login?How to give a relogin page in the first browser window? Please provide some code snippets.... Thanks in advance....
stackexchange/codereview
I've created custom membership provider and it is more convenient for me to operate on MembershipUser.ProviderUserKey rather than UserName. So, to retrieve ProviderUserKey I perform such code: if (User.Identity.IsAuthenticated) { int UserID = (int)Membership.GetUser(User.Identity.Name).ProviderUserKey; } However, wh...
stackexchange/codereview
Hey! I've finally started feeling comfortable using jQuery, so now I'm trying to improve the I write my code. Is there anyone who could help me make this code more efficient? $("a.more_info").toggle(function(){       var itemid = $(this).parent().parent().parent().parent().attr('id');       var itemid_hash = "#" + item...
stackexchange/codereview
I have an ItemsControl that is bound to a datasource and generates several containers. I am using code to ensure that only one of the containers is visible at any given time. The containers use a TemplateSelector so the content of each container is different (which rules out finding the control by name). I would li...
stackexchange/codereview
is it possible to obtain the instance name of a class from the class without having to manually pass the instance name as a string parameter to the class constructor? //Create New SizeClass var big:SizeClass = new SizeClass(); //------------- package { public class SizeClass { public function SizeClass() ...
stackexchange/codereview
Hi i'm not able to test this on the server, but if folder date(Y) does not exist, is this coding write for it to be created. or do I have to do mkdir("/o_rec/" . date(Y) by itself first? Will supporting subfolders all be created if not present if(!is_dir("/o_rec/" . date(Y) . "/" . date(m) . "/" . $id)) { mkdir("/...
stackexchange/codereview
Because of the layers of standards, the include files for c++ are a rats nest. I was trying to figure out what __isnan actually calls, and couldn't find anywhere with an actual definition. So I just compiled with -S to see the assembly, and if I write: #include <ieee754.h> void f(double x) { if (__isinf(x) ... i...
stackexchange/codereview
Let's say I have this storyboard: <Storyboard x:Key="sbScale"> <DoubleAnimation Duration="0:0:0.5" Storyboard.TargetProperty="LayoutTransform.ScaleX" To="2.0"/> </Storyboard> If I need to use the same constant 2.0 many times, I can replace it with Double object: xmlns:sys="clr-namespace:System;assemb...
stackexchange/codereview
I'd seen Entity Attribute Value in lots of contexts before I actually learnt what its name was. Its that technique that often crops up when instead of storing data in database columns you 'flip it' and have a table with Entity, Attrbute, Value columns and each piece of data becomes a row in that table. Sometimes its al...
stackexchange/codereview
Is there a way to use JavaScript to "remove" a script tag from the DOM BEFORE the script tag gets a chance to execute.
stackexchange/codereview
what is the best practice for serving images from a different sub-domain(like media.host.com) in cakePHP? Should I put the images in the img folder provided by cakephp and make this folder the document root of the sub-domain, or is there a better way of doing this? Roland.
stackexchange/codereview
I have a LINQ statement which is working great... its part of select here it is select new { Net = (System.Double?) ((from m0 in MOVTOS where m0.DocumentType == "NET" && m0.ClientCode == c.ClientCode group m0 by new { 0.ClientCode } into g select new { Expr1 = (System.Double)g....
stackexchange/codereview
I am wondering whether the Florida State University implementation of the pthread standard is, by any chance, able to handle the recursive mutexes. Unfortunately the documentation about the FSU implementation is rather poor, and it does not mention of the possibility or not to declare a mutex as recursive. Trying to de...
stackexchange/codereview
Several lines of code are worth a thousand words: I have three simple files: header.h, main.cpp, other.cpp // header.h #pragma once inline const int& GetConst() { static int n = 0; return n; } const int& r = GetConst(); // main.cpp #include "header.h" int main() { return 0; } // other.cpp #inc...
stackexchange/codereview
Totally new to Cake. I have this table named Content and another one named ContentMeta (related via content_id). Each entry in Content has a corresponding ContentMeta. When I add new content, this is the code I'm using to add a new entry to ContentMeta: if( !empty( $this->data ) ) { // Save Content $this->Content->c...
stackexchange/codereview
I am currently using component maps like this: public class UserMapping { public UserMapping() { Id(c => c.Id).GeneratedBy.HiLo("100"); Map(c => c.UserName); Component(c => c.Country, CountryComponentMapping.Map); } } public sealed class CountryComponentM...
stackexchange/codereview
I've just found the C5 library for .Net. I would like to 'install' it in a way that I can easily add a reference to it from all my c# projects. I found some information pointing to the global assembly cache. However I'm worried that the binary will only run on my machine. How do I know if VS includes the C5 .dll in my ...
stackexchange/codereview
At the moment i have several catalina bases configured with the following directories, conf logs server webapps work The bin, lib and common directories are all still in $CATALINA_HOME. I now need to add a setenv.sh file in the bin directory but i dont want it to be used by all the catalina bases. To do thi...
stackexchange/codereview
I have a task which I need to run in the background in my Android app. It reads data over the network and populates a database. It can take several minutes to run. Once it's started, it needs to complete successfully without interruption. (Otherwise I'll end up with a broken half-populated database.) I realise I can ne...
stackexchange/codereview
The website in question is DCWB Forgot to outline problem Basically everything looks fine in FF, but when I look at it in IE most of the DIV's are postioned wrong. * Could anyone help with this problem please? body { background-color:#000; font-size:8px; font-family:Arial, Helvetica, sans-serif; font-si...
stackexchange/codereview
Saw some JS notation today that I've never seen before, bear with me if it is something common that everyone knows. var cookiepath = cookiepath || ''; Now, is this just saying, if a variable named cookiepath already exists, set it to cookiepath or if it doesn't, set it to ''?
stackexchange/codereview
I have a PHP website and I would like to execute a very long Python script in background (300 MB memory and 100 seconds). The process communication is done via database: when the Python script finishes its job, it updates a field in database and then the website renders some graphics, based on the results of the Python...
stackexchange/codereview
Considering following struct and template function, does each use of the function with a different value for "num" build a new instance of the function or since const numbers<num> & nums parameter is a reference and would be implemented as a pointer all uses with different values for "num" can be directed to one instan...
stackexchange/codereview
I need a quick help: I have a CSS like this: #ranking li span.awa { //Something } And HTML like this: <span class=\"awa\"> <div > <a href=''> <img src=''> </a> </div> </span> Now i don't know...
stackexchange/codereview
I'm just curious, wouldn't it be more convinient to allow interfaces to contain implementations of static methods? Such methods could contain short commonly used(by this interface implementors) logic.
stackexchange/codereview
My terminal emulator is configured for Unicode character encoding and my .vimrc contains the line set encoding=utf-8 but when I try pasting the word "café" into vim, it comes out as "café". I can make an "é" in vim by typing Ctrl-vu followed by the 4-character code point (00e9) but I'd like the ability to paste it in...
stackexchange/codereview
I've a text file containing large number of queries. I want to get all the distinct tables used in the entire file in all the queries. The table name can come after a 'from' or 'join'. How can i extract them by doing a regex match. Can anyone suggest a regular expression to get the matches?
stackexchange/codereview
The situation I am in is that I have written a perl script which uses the CPAN library XML::Simple and tested in an environment which has the ability to install the necessary CPAN library. However the environment which the script must be run in does not have the permissions to install CPAN libraries. I was wondering i...
stackexchange/codereview
Is there a way to have a variable sized padding in printf? I have an integer which says how large the padding is: void foo(int paddingSize) { printf("%...MyText", paddingSize); } This should print out ### MyText where the paddingSize should decide the number of '#' symbols.
stackexchange/codereview
I wish the first time anyone loads my application to have it start at the preferences view i have and every other time to start at the main view. I could not find a way to detect if this is the first time the application is run. any ideas? - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:...
stackexchange/codereview
How can I copy the layout of a form to a form in another project?
stackexchange/codereview
I've started working on project with a plugin host and several plugins, where plugins can depend on each other. Consequence is that one gem has a dependency on one or two others, where features may be evolving in parallel. What is the best way to manage this? Main options I've seen: Build and install gems; seems a l...
stackexchange/codereview
A usual way to vertically center some inline text or image is #one-div { font: 16px/16px Verdana, Arial, sans-serif } #one-div * { vertical-align: middle } with the HTML of <div id="one-div"> hello <span>world</span> try <a href="http://www.google.com">more</a> <span><span><span>see</span></span></span> <...
stackexchange/codereview
I'm using Eclipse for debugging on an embedded CPU that has a painful quirk: when it tries to access a memory region that is unimplemented, the CPU hangs. Occasionally when debugging, the debugger tries to follow a bad address and hangs the CPU. Is there any way to tell GDB that it must never try to read memory from, ...
stackexchange/codereview
In the foreach below, I need to parse the $node.TextContent for the keyword and wrap bold tags around it. Is this possible with DOM? How? $myContent ="<h1>This word should not be replaced: TEST</h1>. But this one should be replaced: test"; $dom = new DOMDocument; $dom->loadHTML(strtolower($myContent)); $xPath = new DO...
stackexchange/codereview
Hello all I am trying to use fusion charts in Codeigniter. I just followed the instruction from http://www.ikawka.com/2008/12/fusion-chart/comment-page-1/ I see the error "FusionCharts is not defined" in firebug. On the view page I only see "Chart." Plugin folder has the file named fusion_pi.php <?php if (!defin...
stackexchange/codereview
My application starts with a bunch of text input fields, and I want that when starting up the the application. The virtual keyboard isn't open, but opens only when I click on one of the textinput fields. How do I do this?
stackexchange/codereview
Webserver(Apache2/ngnix) + PHP(fastcgi) + MySQL The above combination is common. How about using C++ instead of PHP? As there is a C++ driver for MySQL, so database connection won't be a big problem. But how to implement the fastcgi in C++? Is looking at php-fpm a good starting point? Anyone with similar experience pl...
stackexchange/codereview
Is it at all possible to get 2 Android handsets to see each other using the wireless interface? I'm not talking full-blown access-point mode. It would be cool if both devices could be actively looking for networks / devices whilst at the same time being 'discoverable' to other devices. Is this possible in any way? Than...
stackexchange/codereview
<!doctype html> <html> <head> <title>page</title> <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> </head> <body> <script> functio...
stackexchange/codereview
I am trying to return a varchar from stored procedure with the following code: Dim uname As SqlCommand = New SqlCommand("userName", uconnect) uname.CommandType = CommandType.StoredProcedure Dim outVal As SqlParameter = uname.Parameters.Add("userName", SqlDbType.VarChar) uname.Parameters.AddWithValue("userID", userLog) ...
stackexchange/codereview
The documentation here states that developers must call the EndExecuteNonQuery method to finish the operation. I have not been able to find a good reason as to why this is, or what the results of not calling EndExecuteNonQuery are. Any insight as to what will happen if it is not called? I don't want to block on i...
stackexchange/codereview
I read about implicit conversions being done between different value class types. The book "Programming in Scala" states: [...] an instance of class scala.Int is automatically widened (by an implicit conversion) to an instance of class scala.Long when required. (Ch. 11.1 - Scala's Hierarchy) What does "required" mean...
stackexchange/codereview
I have a view that creates a new core data managed object, and fills in all the required properties and also allows optional ones. I originally had a "Done" button on the top left, and when that was pressed, I validated the object then saved and removed the view. Now I have an edit/done type setup on the top right, so ...
stackexchange/codereview
It is possible to do logrotate without restarting nginx (just send USR1 signal to nginx it will do the job). I wonder it is possible for my rails app (nginx passenger). It's not worth to restart my rails apps just to do a logrotate.
stackexchange/codereview
I am using cakephp and pippoacl plugin and I simply cannot add a new role. What I modify in the plugin is to make the submit using ajax, something like this in my view (add.ctp): <?php echo $ajax->submit( 'submit', array( 'url' => array('controller' => 'roles', 'action' => 'add'), ...
stackexchange/codereview
I am currently wanting to run a SQL statement that will filter my database but it accesses multiple tables. From the other examples I have read on this website, they all use foreign keys not on the primary key; however, that is my current setup. I am having two issues, the first being the SQL filter. These are my mo...
stackexchange/codereview
Here's what I want the program to do: Read a text file (the text file contains random search criteria like "sunflower seeds", "chrome water faucets", etc) to retrieve a search phrase. Submit the search phrase to Google and retrieve the first four URLs. Retrieve the Google Page Rank of each of the returned URLs. Bein...
stackexchange/codereview
I need to retain upto 17 decimal places. What is the appropriate precision with Decimal in SQL server 2005 ?
stackexchange/codereview