instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Sample code: m1.pm my $a; my $b; sub init { $a = shift; $b = shift; } sub printab { print "a = -$a-\n"; print "b = -$b-\n"; } 1; m2.pm my $a; my $b; sub init { $a = shift; $b = shift; } 1; test.pl use strict; use warnings; use m1; use m2; init('hello', 'world'); printab(); Run: $ p...
stackexchange/codereview
I have a need to manually set which part of a Parent/Child association between LinqToSql objects gets marked with the DataMember attribute. Currently it appears that the DBML designer always chooses the Child property to have the DataMember attribute and I cannot figure out how to force it the other way. I need this to...
stackexchange/codereview
I'm building a small search class that uses predicatebuilder to get some results: here is my query: var results = (from u in db.users join p in db.profiles on u.userId equals p.UserID select new SearchResult { Profile = p, User = u }).AsQueryable().Where(predicate); Results become an enum...
stackexchange/codereview
Can u please tell me how to extract a date from UIDatePicker, i have extracted the month but i am not able to extract the date,Please help me out Thank You
stackexchange/codereview
I am going to use subsonic 3 in a large enterprise winform application. what i saw in my personal tests is that subsonic cannot handle complex type references well. for example if we have an ADDRESS complex type in PERSON object , as far as i saw subsonic just created the PERSON table and is not caring about the Addre...
stackexchange/codereview
I have a software and at instruction I ordered Operators to backup software data(SQLServer2000 locally) regularly . But the operator didn't and by curious she restored database by the First backup (7 months earlier) . Now we have lost all software data ( database) . such a disaster . For more information software use...
stackexchange/codereview
When I rotate and scale a pdf, the text header is disappearing but the graphics are fine: pdfContent.AddTemplate( page, 0, -pScaleHeight, pScaleWidth, 0, 0, PageSize.LETTER.Height); How do I retain the header text?
stackexchange/codereview
I found this old thread (from over a year ago), which explains how come R doesn't support a multi-line comments (like /* comment */ of PHP, for example). I am wondering if this has been resolved in the past year, or if there are other alternatives? (For example, in notepad++ with npptor, you can mark a bunch of lines...
stackexchange/codereview
With PHP, how can I test that an uploaded file is a valid gif, jpg, or png image?
stackexchange/codereview
I have two classes: public class Article { private ISet<IdentNumber> identNumbers = new HashedSet<IdentNumber>(); public virtual int ArticleId { get; set; } public virtual string ArticleNumber { get; set; } private virtual ISet<IdentNumber> IdentNumbers public virtual void AddIdentNumber(IdentNu...
stackexchange/codereview
I have monthly view calendar, i am looking for any weekly and daily view calendar(php based).
stackexchange/codereview
Is it possible to ask Mockolate to dispatch binding events? For example, given this class: class Person { [Bindable] public var name:String; } I'd like the mock: var mockPerson:Person = nice(Person); To dispatch a propertyChangeEvent when the name field is change.
stackexchange/codereview
I have been searching all over the Internet, but I can't find a way to get the RMI code to behave the way I want (like an RPC call). Java: 1.5 I am trying to set up a client/server RMI call - the client should call the "square()" method on the server, the server squares the number that's passed, and returns it. Durin...
stackexchange/codereview
I have altered a template file in: app/design/adminhtml/default/default/template/sales/order/shipment/create/tracking.phtml However i'd like to save this file with these new changes into a new file and leave tracking.phtml in its stock standard form and somehow redirect the block to the location of the new file and use...
stackexchange/codereview
My and a friend are working on a 2D game where the graphics will be .svg files and we will scale them appropriately either by rasterizing them first, or rendering them directly on a surface (which still would require rasterization at some point). The problem is, I've been looking all day to find a library that will al...
stackexchange/codereview
I'm trying to configure logging for my web application (WAR), in log4j.properties: log4j.rootCategory=WARN, RF log4j.appender.RF=org.apache.log4j.RollingFileAppender log4j.appender.RF.File=???/my-app.log What file path I should specify for my-app.log? Where to keep this file? Currently I'm deploying my application to ...
stackexchange/codereview
When Im using a file field and browsing an image by its full path say F:\Images\me.gif. how can i fetch this full path while submitting the form containing it by using php or javascript? Thanxx in advance..
stackexchange/codereview
i have a winform app that contains a form1 and the program.cs file. in program.cs i initialize form1 and besides that, i have a server included. My question is : how can i stop the threads when i close the form? here is part of my program.cs file : public void start() { this.tcpListener = new TcpLis...
stackexchange/codereview
How to fix the position/layout of a ImageButton/Button/ImageView relative to the background? I'd tried something like this: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/backgrou...
stackexchange/codereview
I have a 16x16 transparent png and I did convert -rotate -45 a.png b.png This rotated it and created a new image b.png which is of size 22x22 and which when I use against a background shows the original image (16x16) rotated with the underlying background but the new filling that came about shows up with a white backg...
stackexchange/codereview
Here's the scenario. I have a series of commits in branch my_new_branch I want to push this branch up to the remote repo as a different name and track it. If I do: git push origin my_new_branch:different_name it pushes the branch up fine. But if I stay in my_new_branch and make another commit, if I just do git push ...
stackexchange/codereview
I am using SQL Server 2008, R2. Have a master table (table A), and am trying to update it with values from a temp table (Table B). SQL Server is erroring out, saying that the subquery returned more than one value, however I don't see how this is possible since the value returned by the subquery is the primary key of T...
stackexchange/codereview
I am developing an android application and i am using fbconnect android for connect face book,It is working fine for login and post comment in facebook's wall,but i want to display successful message, when i posted commented in facebook wall.How to do for that. Thanks in Advance
stackexchange/codereview
In a Rails application using prototype, I have the following (simplified) code in my view (Edit: replaced with actual HTML output): <textarea cols="34" id="note" name="note" rows="5"></textarea> <a href="#" onclick="$('note').update('test note'); return false;">copy note</a> This works fine on a fresh page visit and d...
stackexchange/codereview
i want to add some text fields and the buttons to the popover view ... how to add those and i hav to read the text added into text field by user later ... ....should i need seperate view controller class to control popover view or can i control with existed one which calls popover view.... any help Appreciated..
stackexchange/codereview
I created an application using UITableView. I parsing the data from URL and listed in UITableView. But in UITableView, the first the data only displayed again and again. I don't know why this problem occurred. My code is as below: -(UITableViewCell *)tableView:(UITableView *)tableView1 cellForRowAtIndexPath:(NSIndexPat...
stackexchange/codereview
I am using Steak and Capybara to do my integration tests. I also would like to test the serialization output (webservices using XML and JSON format) of my models. The problem is that JSON is only available by using a XML HTTP Request. So Capybara's visit method does not work. It also seems that I don't have access to x...
stackexchange/codereview
How do I display an image from a mysql blob field in symfony? Now it's only echo the text 'Array'. Is it possible just to add a new property to the indexSuccess.php like <img src="<?php echo $persons->getPhoto('[property]') ?>" /> or <img src="<?php echo $persons->getPhoto()->[property] ?>" /> to print it correctly?
stackexchange/codereview
I created a custom timer job and deployed it into my development farm (MOSS 2007). The job runs fine. The thins is that after I deployed it to the QA farm. The status of the job says succeeded in central admin, but nothing happens. I added extra logging and nothing is being logged. I thought it was something with that ...
stackexchange/codereview
Without having to resort to a library, I would like to know if (not when) the content of the contenteditable element below has been deleted. <span contenteditable id=foo>tell me when this string is deleted</span>
stackexchange/codereview
Which are MVVM pattern features and extensions? As I have noticed there are many MVVM frameworks out there, and all share the same concept, even though there are some differences. I won’t ask what the differences are, however I would like to create a general list of key features/extensions for MVVM pattern that will pr...
stackexchange/codereview
For my unit testing, I need to fake a Repository. I have easily been able to fake all the methods except for the Find method which takes in a Linq Expression delegate as a parameter. My fake repository code is listed below (unnecessary code removed). The code I have tried using is shown in the Find method. The comp...
stackexchange/codereview
I'm using the lightbox on my product pages on a Danish site ( I have language packs installed for Joomla and Virtuemart) however all text output for the Lightbox plugin is in English. I thought there might be a language file for the Lightbox however I've been unable to locate one. Furthermore I've taken a look through ...
stackexchange/codereview
I know there is a attribute called "update", I can use it like this, update="another component's id", but this doesn't work when they are in different <h:form> tags. For example, the code like this, <ui:composition> <ui:define name=""> <div> <h:form> <p:panel header=""> ...
stackexchange/codereview
I'm wondering if CakePHP 1.3 has a convention for how you should find the last row added, so that you can redirect to a view of that record. At the minute the user would create a new bill by going to "/bills/add" and filling in the form. On completion I'd like to send them to "/bills/view/[id of the row they just added...
stackexchange/codereview
I am simply trying to create a layout where there are multiple TextViews (and ultimately an EditText) stacked vertically in the activity. However, the only thing displayed is my top title bar and the first TextView (with the "Name" text). Why won't anything else show up? Here is my code: <?xml version="1.0" encoding="u...
stackexchange/codereview
I have this: pm.php?v=unread Now in unread, you can filter too by pressing Messages or Invites, and the links look like this: <a href="?f=msgs">Msgs</a> | <a href="?f=invites">Inv.</a> If you are inside pm.php?v=unread, and press on Msgs, it will turn out as pm.php?f=msgs. And i wish it to be pm.php?v=unread&f=msgs ...
stackexchange/codereview
How can I tell GCC to unroll a particular loop? I have used the CUDA SDK where loops can be unrolled manually using #pragma unroll. Is there a similar feature for gcc? I googled a bit but could not find anything.
stackexchange/codereview
I am using asp.net 4 routing and im enjoying it so far. I have one problem only with my javascript files. I am using a masterpage to add my css and javascript. The css is working fine however the javascript is not. My links from my masterpage look like this <meta http-equiv="Content-Type" content="text/html; charset=...
stackexchange/codereview
I'd like to display a red border around my masked text box when the user enters incorrect values, but there isn't a border setting for a masked text box. Does anyone have any workarounds for this? As always, thanks for any help.
stackexchange/codereview
I have the following snippet of code: - (void)loadView { self.view = [[UILabel alloc] initWithFrame:CGRectMake(20.0, 20.0, 40.0, 40.0)]; self.view.backgroundColor = [UIColor blackColor]; } If I run the snippet in a project created using the 'view-based application' in the main view controller everything works ...
stackexchange/codereview
How do you effectively search among many fields in a model? # user.rb model def self.search(search, page) paginate :per_page => 20, :page => page, :conditions => ['name like ? OR notes like ? OR code like ? OR city like ? OR state like ?, "%#{search}%","%#{search}%","%#{search}%","%#{search}%","%#{sear...
stackexchange/codereview
Is there a way to bookmark pages in a PDF document? For instance, in PDF documentation of a well known commercial database I very often have to navigate my favorite pages. I'd like to bookmark these, so I can reach them with one click. The pre-generated bookmarks in these documents are not useable like personal bookmar...
stackexchange/codereview
Lets say you have data SS= SSliteral Value and data Value= SSint Int Now lets say you have n which is of type SS. You want to get the Int value of SS, how would you go about doing so?
stackexchange/codereview
I am trying to call PhoneFactory.getDefaultPhone from a new application so that I can access its invokeOemRilRaw* functions. But it gives me a "java.lang.RuntimeException: PhoneFactory.getDefaultPhone must be called from Looper thread" error. Is this possible ? Or is this function dedicated for the PhoneApp only ?...
stackexchange/codereview
I have a variable as such: var is_last = $('.paging a:last').attr('rel'); this returns '-400' which is correct. However, i need to add 200 to this so the answer is '-200' if i do this: var is_last = $('.paging a:last').attr('rel')+200; the variable is now '-400200' How can i pass the variable as a value? A.
stackexchange/codereview
All, I have a list of objects which I have serialized to an XML document using XmlSerializer. However I would like to wrap the whole result into two tags: <message> <!-My Serialized content goes here--> </message> Do I need to open it as an XML Document and Add a new root element or is there another way of doing it ?...
stackexchange/codereview
I've written a simple script to parse XML chat logs using the BeautifulSoup module. The standard soup.prettify() works ok except chat logs have a lot of fluff in them. You can see both the script code and some of the XML input file I'm working with below: Code import sys from BeautifulSoup import BeautifulSoup as Soup ...
stackexchange/codereview
I have the following issue: I want to redirect a non-canonical url to the canonical one, but maintaning the friendly url rewriting. In my .htaccess I have the following: RewriteEngine On #Protect some directories RewriteRule ^(system|modules|application) - [F,L] #Force Using Canonical Name RewriteCond %{HTTP_HOST} !...
stackexchange/codereview
I have code in my iPhone app to draw a pie chart in a UIView. All is great but I need to be able to use a chalk-like texture to draw the outlines and then to fill in the different colours of the pie chart. Here are extracts from the existing code for each area: Drawing the circle around the pie chart: CGContextRef ctx ...
stackexchange/codereview
I have one bit of code inside RootViewController.m: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSManagedObject *selectedObject = [[self fetchedResultsController] objectAtIndexPath:indexPath]; BlogRssParser *blogRss = [[BlogRssParser alloc] init]; blogRss.terms = [[...
stackexchange/codereview
I have directory containing FastCGI projects, to be more specific different versions of the same project. For example, there are ver1 and ver2 directories located at /some/dir/project/ and I want them to be ver1.project.example.com and ver2.project.example.com respectively. How should I do it with nginx without creatin...
stackexchange/codereview
i have a mySql database, and it has an field for each entry called xml, which contains XML. i would like to know if there is syntax to select xml values like normal fields. for example if i wanted to select all entries with the date of 11/21/2010 i try something like this, but the syntax is wrong, since i don't know ho...
stackexchange/codereview
I'm gathering light statistics of EXIF data for a large collection of photos and I'm trying to find the simplest way (i.e. performance doesn't matter) of translating Exposure Time values to/from usable data. There is (as far as I can find) no standard for what values camera manufacturers might use i.e. I can't just sca...
stackexchange/codereview
query: load data infile 'systemmessage.txt' ignore into table systemmessage (message) lines starting by 'a,' terminated by '\0' ignore 1 lines gives me a syntax error near 'lines starting by'. If I remove the 'starting by' part, the error is now with 'terminated by'. If I remove that too, the error is with 'ignore 1 li...
stackexchange/codereview
What is the C# equivalent for MFC's CString?
stackexchange/codereview
I wrote visualforce page that you can send email. It works fine in English. But when I typed Japanese in email body section and send it, my email inbox has question marks instead of Japanese. body text in gmail shows up in all ? ?????????????????????????? I think I need to encode the string? But how to do it in Apex ...
stackexchange/codereview
I need to create a table with 5 rows and 5 columns with numbers from 1 to 25 filling up the cells. On Mouse over the table row multiply the number inside the cell with 2 and on mouse out divide the number by 2 using 'each' functionality. Can anyone please help?
stackexchange/codereview
So, using Selenium, I want to test links on a page and see if they open a new window. They are NOT javascript links, just a basic href "target=_blank". I want to make sure the newly opened window actually loaded a page. I can do all the scripting to get the link clicked, but when i test for page Title, I get the page ...
stackexchange/codereview
I'm trying to automate packaging of the Chrome extension on Windows and according to the documentation, it is this command: [path]\chrome.exe --pack-extension=c:\myext --pack-extension-key=c:\myext.pem --no-message-box However this command results in a new browser window and no action is performed. I tried other switc...
stackexchange/codereview
Note: This question can also be found on the WiX mailing list. I need to be able to check for the existence of an IIS7 website based on the website's description. If the website does not exist I need to cancel the installation. If the website exists I want to continue the installation. I also need to be able to save th...
stackexchange/codereview
I am working in webkit with Eclipse CDT as IDE, there are some classes under #if ENABLE(VIDEO) but eclipse does not index it. It thinks that they are unused blocks, is there any way by which I can tell eclipse to index everything?
stackexchange/codereview
I have some great troubles overriding some functions in an external App that I use SIMBL to hook in to. In this app, there is a class - let's call it "AppClass". In this class there is a function, -(void)doSomething; I got this from class-dumping the Binary. the whole interface is defined as: @interface AppClass : NSO...
stackexchange/codereview
Is there some limits for number of tables inside DB? Is there some limits for number of tables inside the schema?
stackexchange/codereview
I have a webservice method which needs to accept SOAP as input parameter. I've worked webservices between .NET clients but I've never worked using raw SOAP so I don't know what to do. The format of the input like this: <?xml version="1.0" encoding="utf-8"?> <S:Envelope xmlns:S = "http://schemas.xmlsoap.org/soap/envelop...
stackexchange/codereview
I use RVM and have some legacy projects where I use Ruby 1.8.7, rails 2.3.x, rspec 1.3.0 and rspec-rails 1.3.2. But after installing Ruby 1.9.2 and some gems rvm is messing up the Gem paths for 1.9.2 and my 1.8.7 gemset: When I run my specs with rake I get the following error: "\"/home/vermelho/.rvm/gems/ruby-1.8.7-p30...
stackexchange/codereview
I would like to intercept the arrow keys on the java command line to move a character inside the shell!
stackexchange/codereview
I have multithreaded operation running, each one append some info to my log file. The problem is, sometimes log file is locked for editing and at the same time is accessed by other thread, which throws an exception. How can i make sure the log is properly written? here are the snippet try { File.AppendAllText(fileN...
stackexchange/codereview
I have entered a value to my database as $1000000000. it stored in Database also its looks like as same. when retrieve it from using the DB. Its converted to $1e+09 automatically. how to restrict it. thanks in advance.
stackexchange/codereview
$(function () { if($('body').find('#slideshow')) { $('body').find('.topBox').addClass('home'); } }); I mean it works, but if i take out #slideshow it will still add the class? I tried else remove class.
stackexchange/codereview
I am trying to use Django's generic views to make a user registration page. I have the following code in my app's urls.py from django.conf.urls.defaults import * from models import Ticket urlpatterns = patterns('', (r'^new/$', 'django.views.generic.create_update.create_object', { 'model': User } ), ) Now when I g...
stackexchange/codereview
How can i change the title of javascript alert popup ?
stackexchange/codereview
how to run J2me Apps on iphone ? Anyone can help me ? If J2me Apps now can run on Iphone ? or is never ?
stackexchange/codereview
Call this from a QWidget: Parser->xmlParser(_layout, xmlPath, comingFrom, mapCount);, but get two "No matching function for call to..." errors. No matching function for call to QMap<QMap<QString, QString>, int>::insert No matching function for call to QList<QMap<QString, QString>>::append parser.cpp #include "parser....
stackexchange/codereview
Is it possible to put UpdatePanel on just one of Gridview Columns? Thanks.
stackexchange/codereview
This is an interview question. "How would you determine if someone has won a game of tic-tac-toe on a board of any size?" I heard the algorithm complexity was O(1). Does it make sense ? Can anybody explain the algorithm ?
stackexchange/codereview
Some of our advertisers require us to serve their ads from their server using embedded JavaScript tags so that they can track impressions and clicks. My question is, how do WE track the clicks they have had on their ads, so we can tell how their campaign is going?
stackexchange/codereview
When I run my app targeted to .Net 3.5 it has massive memory leaks. 50mb every time I assign a UserControl to a local ref. I only ever create one instance of each UserControl. If I compile and run the same code targeted to .Net 4.0 everything runs fine hovering around the 50mb mark. Is this a known isue with 3.5? I.e. ...
stackexchange/codereview
Is it possible to simplfy these RewriteRules? I've hundreds of similar entries in my .htaccess file and it seems not to be the best way to set a 410 Header. RewriteRule ^pageID_9363511.html - [G] RewriteRule ^pageID_9363511_2.html - [G] RewriteRule ^ci_8819019/thumb_11725326.JPG - [G] … … Thank you
stackexchange/codereview
I am trying to convert an image to an icon. My function is: private Icon GenerateIcon(int width, int height) { using (Bitmap icon = _backingImage.GetThumbnailImage(width, height, () => false, System.IntPtr.Zero) as Bitmap) using(MemoryStream imgStream = new MemoryStream()) { icon.Save(imgStream, Sys...
stackexchange/codereview
When I run a query which returns millions of rows from within Sql Management tools it looks like the query executes instantly. There is virtually no execution time as far as I can tell. What makes the query take time to complete is returning all the rows. This got me thinking I've done a good job! But not so fast... As...
stackexchange/codereview
I have the following simple path. But everytime in Expression Blend I try and set a translate transform to its image brush the image disappears. Ideally the fill should be none. I need to dynamicly set the x and y of the image within the brush if possible. If you have done this in C# that would be fine as well. Or...
stackexchange/codereview
Is there any easy way in python to accomplish what the match function does in R? what match in R does is that it returns a vector of the positions of (first) matches of its first argument in its second. For example, the following R snippet. > a <- c(5,4,3,2,1) > b <- c(2,3) > match(a,b) [1] NA NA 2 1 NA Translate ...
stackexchange/codereview
We have an application where the timing is critical. We're using joda to do time conversions and storing all data in UTC time. We've been in production for a while and everthing has been be perfect BUT... Now we notice that events occuring a few hours before the time change are already converted too early! In fact...
stackexchange/codereview
i like to be able to watch video streaming with my application im doing in Qt first i checked vlc , but its GPL , and also i don't need all its option then i saw it is using live555 that is LGPL for streaming , my Question can i use this library in mt Qt application ? and how
stackexchange/codereview
I was wondering if it was possible to extend classes, e.g. UIView or UITextView with categories and have the extension picked up by Interface Builder? Let's assume we want to add a previous and next outlet to each UITextView, ideally one would write the category to extend the UITextView and have Interface Builder pick ...
stackexchange/codereview
when I load the touch Facebook login page in the webview, I want that the email field to be set to a value and it can't be modified and to accomplish that I have inserted a JavaScript code in the webview disabling that element. All works fine until I want to click the login button because the page refreshes instead of ...
stackexchange/codereview
I am trying to grab the first item in a set but none of the examples i have seen on traversing really fit the format I am using. Any help would be greatly appreciated. function popagateDegreeUpwards(obj, sectionNum, compLev, counter) { var ddl = $(obj); var oneTierUpPnl = ddl.parent('.Section' + (sectionNum - 1...
stackexchange/codereview
I am Thomas. And this is my first post! I have downloaded MAMP and created a very simple html form which references a very simple php file. I have put the php file into MAMP's htdocs folder, and linked it to the html document accordingly. I do not know where to put the html file. When I use google chrome, hitting the s...
stackexchange/codereview
When the mouse hovers over each column I'd like the tooltip to indicate whether that column is sortable. I am able to change the title attribute with something like this: $("#List .ui-th-column").each(function(i) { var isSortable = i % 2; $(this).attr('title', isSortable ? "Not Sortable" : "Click header to s...
stackexchange/codereview
Gurus, I have coded for my client a PHP script that performs some extensive data munging on text files he creates. Code is complete and I have now to automate the script. Problem is that it seems to only run manually. I won't run as CRON job. This is what I have tried with "#!/usr/bin/php -q" in the header of my scrip...
stackexchange/codereview
say I have a function: public List<Car> GetFourWheelDrives() { return dataContext.Cars.Where(c => c.IsFourWheelDrive == true).ToList(); } Firstly it's kind of obvious what I'm trying to do here. Any suggestions on how I'm doing this? Any improvements? So now I want to unit test this. Well is it a unit test? A unit ...
stackexchange/codereview
I'm using a C++ library in two different projects. One is an unmanaged C++ project for testing purposes where the library is included as a static library. The second is a C# project (for the front end) which uses the library as a DLL. Is there an easy way to switch between the two settings (static vs. dynamic library, ...
stackexchange/codereview
I want to change the screen orientation from portrait to landscape and vice versa when the user rotates his Android mobile phone clockwise/anticlockwise. Can anyone help me how to achieve this? I do not know what event is fired when the user rotates his Android mobile phone. For instance, when the user touches the butt...
stackexchange/codereview
How do you define a multi-line inline template? For example, this grid has an inline template (the format parameter of the last column). What is the syntax to have multiple lines of html in the inline template? @model List<Employee> @{ View.Title = "Employee List"; } @{ var grid = new WebGrid(source: Mo...
stackexchange/codereview
I thought .net had some kind of easy conversion method to use for converting an int into a byte array? I did a quick search and all solutions are bit masking/shifting one byte at a time, like "the good ol days". Is there not a ToByteArray() method somewhere?
stackexchange/codereview
I just switched my App to run on MVC3 and the Razor view engine, and now I'm getting a JavaScript error. The thing is, nothing has changed on the JavaScript side of things... it worked before. Here's the code <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script> <scri...
stackexchange/codereview
How can I detect a known image or pattern within an image so that I can replace it with my own text? Input option 1 (detect aaa and bbb separately): Input option 2 (detect red value and blue value separately): Output:
stackexchange/codereview
I'm wondering is there any way i could get UserName or UserId for current User from LoginName control in ASP.NET ?
stackexchange/codereview
I am trying to install the spree gem using the following instructions http://spreecommerce.com/resources/quick-start The install worked fine, but trying to create an application doesn't resolve bash: spree: command not found PATH is /Users/sandbox1/.rvm/gems/ruby-1.9.2-p0/bin:/Users/sandbox1/.rvm/gems/ruby-1.9.2-p0@g...
stackexchange/codereview