instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Okay, I am stumped on this one and need some quick help. I have an ASP.NET application using Forms authentication. In my Login.aspx page, I use several images in the background for visual affect. The url's are being set using CSS styles that are defined in the file (not in a theme et al). All of the images are locat...
stackexchange/codereview
WHERE l.created_at > #{params[:daysAgo].to_i.days.ago.strftime('%Y-%m-%d')} is working correctly but WHERE l.created_at > '#{params[:daysAgo].to_i.days.ago.strftime('%Y-%m-%d 00:00')}' is not returning any rows... can anyone help.. but for date comparison we should use quotes right..??
stackexchange/codereview
When i run my silverlight 4 application, there information about session, trace information, headers collection, Server Variables etc... Dose anyone know how i can disable that? cheers.
stackexchange/codereview
I want to trace all the user defined functions that have been called (in order, and preferably with the input params). Is there a way to do this using gdb? OR is there a better free/opensource application out there to do this job? Please note that I want to print only the user defined function calls. for example: int ...
stackexchange/codereview
I have a form from my model that needs to be validated and saved making use of ManyToMany Fields. Everytime I try and save it, I get thrown back to the page, just saying this field is required My models.py class HuntingReport(models.Model): user = models.ForeignKey(User, related_name='User') outfitter = models...
stackexchange/codereview
I am java and php programmer. In java i can use static class/method so that anyone can use the same one time created class during run-time. But for php how to do it since it is script based and only run while we refreshing the page? My main objective is, I want to use syncronized class/method so that it wont clash whil...
stackexchange/codereview
I need to consume multiple web services (this is the same service hosted in multiple locations) dynamically. How can I do that? Thanks.
stackexchange/codereview
Possible Duplicate: C++ variable types limits I have a defined type that may not stay at what it is. I want to make use of the maximum value for that type as an undefined value but don't want to use something like, INT_MAX because I might later change the type to a long or something else entirely. I've seen a temp...
stackexchange/codereview
So here is the problem I am facing, I'm trying to implement a HashMap using an Id as key, and an object pointer as the value. Within each object, there are a couple of Integers, let's say they represent investment amounts in various categories defined in the object. However, I would like to be able to sort the investme...
stackexchange/codereview
I wonder if anyone is aware of any library code that has the performance characteristics provided by Loki's AssocVector (Locality of reference of the elements, lower per-element memory overhead compared to a map) but with Boost's BiMap functionality (able to query the map from both sides of the relation)? Or would usin...
stackexchange/codereview
Related directly to this post, I am having trouble implementing some sound advice given from @sean, because as you can see on this page: http://www.onestopfasteners.com.au/checkout.php - I have wrapped the form tags around the table element, but the form just doesn't seem to be working, and nothing ever gets "POST"...
stackexchange/codereview
I have a enter function which makes it so my form will submit on enter. The only problem is my form does not exist until i click a button that appends it to the body. Is there a way to make my $.Enter function live? Thanks in advance for any suggestions. //submit function function submit_chatbox(){ alert('yo'); } $.En...
stackexchange/codereview
Is it possible to read first party cookies from flash? It should be noted that we have complete access to javascript via the ExternalInterface class. So, now the question is - can we access first party cookie from javascript? Our javascript code will be loaded by a website which is not hosted by us. This makes the cook...
stackexchange/codereview
here is my code, anything wrong with it ? it doesn't seem to display list on focus, i still have to press a key before it displays list <link media="all" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/smoothness/jquery-ui.css" rel="stylesheet"/> <script type="text/javascript" src="http...
stackexchange/codereview
How to create local references created in for loop into global references? The following code wont compile: Also, in real project, the number of t's and type of t's are data driven (I'm looping through a map of maps to make decision), so I cannot specify t before starting for loop..... public class TestLocal{ pub...
stackexchange/codereview
How do I implement the Excel VLOOKUP worksheet function in Python. Any idea?
stackexchange/codereview
I'm doing research into BlazeDS , and i am trying to use the ajax-bridge to perform this trough javascript. What i'm trying to do is send an asynchronous message from the server to the client(s) On it's own, this work perfectly. However , now i'm trying to use subtopics , to be able to limit the number of clients the m...
stackexchange/codereview
Any suggestions on how one might create event bindings that would allow a user to mouse drag a window without borders, eg. a window created with overridedirect(1)? Use case: We would like to create a floating toolbar/palette window (without borders) that our users can drag around on their desktop. Here's where I'm at i...
stackexchange/codereview
I am only having this problem when running my program on a Mac; linux 64 and 32 bit are fine but on mac I get a bunch of: *** malloc[437]: error for object 0xbfffe970: Non-aligned pointer being freed (2) towards the end of execution of my program where I am freeing a bunch of pointers in a data structure. Code to lon...
stackexchange/codereview
How can one get audio input on the Android Emulator? I'm using the 2.2 SDK, and emulating on Ubuntu 10.10. I have the hw.audioinput property set to yes on my emulator, but I get the message "Recognizer not present" when I run the Voice Recognition API demo app on the emulator. On my phone, of course, it works fine. I...
stackexchange/codereview
I having a hierarchy collection object where I am trying to retrieve the last level object's property in Linq. I dont want to write a get method for every property. Not sure how to achieve it through selector Class Test { public int ID { get; set; } public int PopertyA { get; set; } public string PopertyB {...
stackexchange/codereview
I'm wondering what the best design would be for persisteing a new child entity with NHibernate without accidentally overwriting the parent in the database. The problem I have is that the child entity will look something like this: class Child { Parent Parent; // other fields } My problem is that the child h...
stackexchange/codereview
I am making an invoicing system, with the support for multiple subsidaries which each have their own set of invoice numbers, therefore i have a table with a primary key of (Subsidiary, InvoiceNo) I cannot use MySQL auto increment field, as then it will be constantly incrementing the same count for all subsidaries. I do...
stackexchange/codereview
There are a few sites out there, mint.com, swipely.com, blippy.com, that have total access to your banking and credit information. You need to give them your userid and password. Once they have that, they are able to access all of your purchase history. My question: How is this done? Is this a service being provided...
stackexchange/codereview
How to respect "Serve static content from a cookieless domain" page speed rule in IIS6?
stackexchange/codereview
I am having the following problem: public class A { public A(X, Y, Z) { ... } } public class B : A { public B(X, Y) : base(X, Y) { //i want to instantiate Z here and only then pass it to the base class! } } How can I solve this problem? Is there a way?
stackexchange/codereview
I know xcode don't have radio Button so I try to add a custom button and make it action like a radio button This is the image I use and this is the code I set to cell UIButton *but = [UIButton buttonWithType:UIButtonTypeCustom]; [but setImage:[UIImage imageNamed:@"radio-off.png"] forState:UIControlStateNormal]; [but...
stackexchange/codereview
I'm doing an eval of Deltawalker and while it seems to be a great tool, there isn't an obvious way to get it to integrate with mercurial so that I can do; hg extdiff -r some_rev -r some_other_rev Anyone know how to configure .hgrc to do that?
stackexchange/codereview
What is the difference between Eclipse for Java (EE) Developers and Eclipse Classic? Both are marked as version 3.6. Which one should I use?
stackexchange/codereview
Good morning everybody. I have a question connected with controls and event handling. Lets say I want to create a LinkButton. protected void loadLinkButton() { ContentPlaceHolder content = (ContentPlaceHolder)this.Master.FindControl("MainContent"); LinkButton lnk = new LinkButton(); lnk.ID = "lnikBtn"; ...
stackexchange/codereview
is there any shortcut or bestway to remember the precedence and order of evaluation in C beacause it plays the main role and i or (most of us) usually forgets and end up with the mess. Please Help me.... i want to give an example for this... say.. void main() { int a=1; a = a++ + ++a; printf("%d",a...
stackexchange/codereview
xsd generates [System.Xml.Serialization.XmlTextAttribute()], is it exactly equal to [XmlText] attribute? why xsd generates the simple one?
stackexchange/codereview
I have a SQL 2000 DB with and old table and a new table with combined records of over 20,000,000 records. The two tables are exactly the same, but were split due to performance issues. I am not the DB admin, I just need data out of it and have been given DBReader rights on it. OldTable: ClientID, AppID, ModTime, Event ...
stackexchange/codereview
I want to display a table in my application, it should contain name, phone no, email as the column names and the table has many rows. After that I want to capture each item on the onClick listener, please help as I am new to this development. I was stopped here, I have implemented a table but unable to capture each it...
stackexchange/codereview
I'm using Jquery in my project. Everything works good on Firefox, but on IE, I get error saying "Invalid argument","Code 0". I found that the line $(thisObj).css({'border':'1px dotted transparent;'}); is causing problem. Is there any other way to set the css ? Also, in the same project, I'm using styleSheet object. ...
stackexchange/codereview
I would like to specify the text of my contour label (instead of the value of the contour I want to put a text) I've tried: CS = contour(X, Y, Z, [0.5], linewidths=1, colors='k') plt.clabel(CS, fontsize=10, inline=1, text=r'$\alpha=0$') but it doesn't work. Any idea?
stackexchange/codereview
I want to parse an XML file and if there is a link to a video I want to show it? How can do this? Till now I know the xml test example, not more. Help me out, Thanks in advance.
stackexchange/codereview
As we know, a compiled static lib *.a adds to a project, the project should config the "other linker flag" (OTHER_LDFLAGS) to add value "-ObjC" and "-all_load". But as I see, the Google libs for iOS do NOT need that, it just simply drag in and use. Do I miss something? thanks in advanced. and sorry for my English epxre...
stackexchange/codereview
The qrefresh command in the MQ extension don't make sense to me. I'll explain my assumption: If you don't know on which revision should a certain patch be applied, it have a very little value. You just can't theoretically know what does the rejects mean. And even if there are no rejects on a certain revision, you're n...
stackexchange/codereview
I am posting data to controller like this: var postVars = new Array(); postVars[0] = key; postVars[1] = haveCredits; postVars[2] = creditsNeeded; postVars[3] = creditsLeft; //alert(postVars.join("&")); xhr.open('POST', 'ajax'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.send(postVars...
stackexchange/codereview
currently, I am using a SQLite database with some addresses and telephone numbers. All phone numbers are stored as text without the international prefix, e.g. 0123 / 4567890. Now, I would like to store them in the international format with the country prefix, +49 123 4567890 in the example above. As there are several h...
stackexchange/codereview
private void ShowIterationSelection() { IterationForm iterationForm = new IterationForm(lblProjectID.Text); iterationForm.ShowDialog(); } When I show the dialog it displays a list of iterations associated with the project using the ProjectID: public partial class IterationForm : Form { public IterationForm...
stackexchange/codereview
I have a UIView that contains your typical UITableView with a UISearchBar. It seems though the Interface Builder will not let me alter the layout as I have the need to add a button to the right of the search bar. Is there a way to do this?
stackexchange/codereview
I have a custom MKAnnotation and all the annotations are all in the right place and have followed the MKAnnotation's Protocol but i want to display the standard call out bubble when the user taps on the annotation, can I do this or do I have the implement a custom call out bubble?
stackexchange/codereview
F#'s inline functions with statically resolved generic parameters seem to be similar to C++'s templates. However, unlike C++, you need to specify the constraints - how does that work? For example, I'm trying to implement an upcasting function, but this won't work: let inline myUpcast< ^a, ^b when ^a :> ^b > (x: ^a)...
stackexchange/codereview
Is there any readable, up to date (.net 4) MSIL Reference Manual?
stackexchange/codereview
I'd appreciate it if someone would enlighten me on the following behavior -- I've captured it with a short code example: //header.h class base { public: base(int data):data1(data){} virtual int getData(){return data1;} private: int data1; }; class derived1 :public base { public: derived1(int data):base(data-1),da...
stackexchange/codereview
I have an Android activity which has a header, some title text, and then I want to dynamically generate a given number of tables. In addition, I want to be able to scroll down to view all of the tables on the activity (not scroll the individual tables). Is this possible? If so, can someone provide me with some guidance...
stackexchange/codereview
I'd like to return 410 errors at for some of my Django pages instead of returning 404s. Basically, instead of calling raise Http404('some error message'), I would like to instead call raise Http410('some error message') shortcut. I am confused because in django.http, the function Http404 is simply: class Http404(Except...
stackexchange/codereview
I'm trying to execute a few python scripts in order to manipulate some images on my website. The external program/tool is written in python and is called PHATCH. I'm under Windows and using WAMP as my web server. Executing only just one script seems to work well, but I need to execute 4 scripts at the same time (to gen...
stackexchange/codereview
Basically I need to know how to make this work. I removed one of the less than signs due to it hiding the code.: <script type = "text/javascript"> link rel="stylesheet" type="text/css" href="..\CSS\stylesheet2.css" /> </script>
stackexchange/codereview
It looks like using CouchDB with the standard web2py DAL is still a ways off: User suggestion for couchdb DAL in web2py Discussion with mdipierro almost a year ago I'm working on using CouchDB from web2py. python-couchdb looks fairly powerful and well designed but not particularly well documented. Does anybody have g...
stackexchange/codereview
A friend of mine wants me to convert his code into a doubly linked list, though I'm not familiar with it at all. I've looked up doubly linked lists but I can't tell by his code what to do with it. I'm not a master programmer. Do you have any suggestions? import java.util.Collection; import java.util.List; class Sin...
stackexchange/codereview
I have a Javascript function that fades out a standard div with a background color using jQuery fadeOut(). It works fine in Chrome & Firefox but when I try it in IE, the text fades out but the background color remains the same and just disappears without fading out once the text fade has finished. Does anyone have a so...
stackexchange/codereview
I'm writing an application which processes a lot of xml files (>1000) with deep node structures. It takes about six seconds with with woodstox (Event API) to parse a file with 22.000 Nodes. The algorithm is placed in a process with user interaction where only a few seconds response time are acceptable. So I need to imp...
stackexchange/codereview
I've just implemented OmniAuth (using Ryan Bates' Screencast http://asciicasts.com/episodes/235-omniauth-part-1) and am writing Rspec tests for the functionality and have ran into trouble testing the authentifications#create action. I'm at quite a loss as to how to test this one -- in particular how to stub the local v...
stackexchange/codereview
I'm trying to create a popup window that only appears the first time the application starts. I want it to display some text and have a button to close the popup. However, I'm having troubles getting the PopupWindow to even work. I've tried two different ways of doing it: First I have an XML file which declares the layo...
stackexchange/codereview
What is the difference between char, nchar, ntext, nvarchar, text and varchar in SQL? Is there really an application case for each of these types, or are some of them just deprecated?
stackexchange/codereview
I'm looking to internationalize strings in an Erlang web app. I came across Gettext on trapexit. Any other suggestions as to how to externalize strings in an Erlang app?
stackexchange/codereview
I'm trying to check if a file exists or not in Tcl, but I can't seem to get a true result. Even though I know it is present. while {true} { if { [file exists $file_name] == 1} { exp_send "copy file.txt destination \r" puts " File copied!" } puts "File Not copied" } I a...
stackexchange/codereview
I have the following scenario: Let's say that my "Product" table in this legacy database has a "Categories" column of type string. This column stores the category ID's separated by some sort of ascii character. For instance: "|1|" (for category 1), "|1|2|3|" (for categories 1, 2, and 3), etc. Instead of exposing a stri...
stackexchange/codereview
I'm having some trouble with VLOOKUP in my VBA. Here's an example of the code I'm using: Sub Macro15() ' ' Macro15 Macro Dim LR As Long LR = Cells(Rows.Count, "A").End(xlUp).Row Range("B1:B" & LR).FormulaR1C1 = _ "=VLOOKUP(RC[-1],'https://internal_sharepoint_address /[Vendor_Information.xlsx]Sheet1'!R3C3:R150C18,4,...
stackexchange/codereview
How can I create an interface similar like the following in Java (tweetie)? I was thinking of using a JTable with one columns and customized cell that has an image in it...not sure how to do it though.
stackexchange/codereview
I'd like to know a bit more about what is the vspace memory exactly. Running out of vspace memory when loading a lib for our android games often occurs as we tend to take as much ram as we can at the application startup. I haven't been able to find any information about it. Here`s the error message I get: 11-11 16:00:5...
stackexchange/codereview
I am developing an application using C#. I am using RadioButtonlist control inside a TreeView. I am getting collection of items from database. Based on the collection items I need to select the Radiobuttonlist items. For example from the database i got the Collection in this way: Read(R) Write(W) based on this colletio...
stackexchange/codereview
After programming for a while in C, I decided to finally start to learn C++. This is sort of bothering me, as the standard 'hello world' in C is usually ~16KB, including all of the crud your compiler throws on there. (Using stdio) However, when I create a C++ executable doing hello world, the file is ~470KB! I went ahe...
stackexchange/codereview
i have a android APP that needs a remote Database, to do INSERT's and SELECT's. I will use a webservice to comunicate with the remote database, the webservice will be installed in the server side, with the remote database, and webservice will do the SELECTS and the INSERTS and will return me XML data. But i dont know ...
stackexchange/codereview
I need to configure a specific url rewrite configuration I can't figure out. Just wonder if anybody can help I need to rewrite http://city-business.domain.com/* to htpp://city.domain.com/business/* I really hope that this is possible ... Thank you, Pavel
stackexchange/codereview
Possible Duplicate: Will web browsers cache content over https Jeff's most recent Coding Horror post Breaking the Web Cookie Jar is an eyeopening read for anyone not familiar with how a cookie works. As is typically the case with a post like this the comments are full of FUD. That said, a comment from Carl Hörberg h...
stackexchange/codereview
Open ended question (be creative!) for a real use case. Essentially I want to cat (1) an existing file (2) the output of a program and (3) a specific bit of text. Between pipes, echo and redirects, I feel like I should be able to do better than this! pandoc -t latex -o mydoc.tex mydoc.rst echo \\end{document} > footer....
stackexchange/codereview
I am building a game in Flash. I am building a web application in Rails. What I want to do is have Flash be the UI for the game but have Rails serve up all the data, AS3 just communicate with Rails and have Rails manage the data and database etc. I'm just starting this so I'm looking for resources where people have tak...
stackexchange/codereview
I have a program in which I need to calculate several times the Levenshtein distance between pairs of words (one of them fixed), and several times may range from about 1000 to 120000 for every fixed word. Since I want to optimize this program as much as I can I thought about implementing these calculations in assembly....
stackexchange/codereview
I would like to set level logging to DEBUG in tomcat but in console nevertheless only INFO and WARN output. Could anybody tell me what's wrong? My C:\tomcat\logging.properties: # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # ...
stackexchange/codereview
I'm porting an iPhone app to Mac OS X. This code was being used successfully on the iPhone: - (void) moveTiles:(NSArray*)tilesToMove { [UIView beginAnimations:@"tileMovement" context:nil]; [UIView setAnimationDuration:0.1]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@sele...
stackexchange/codereview
I am having a weird situation where a Service that is created is stopping - sometimes. I have a entry Activity A that starts a service using bindService // if we now have an IP address then bind ourselves to the MessageService bindService(new Intent(this, MessagingService.class), onMessageService, ...
stackexchange/codereview
How to delete lines if they begin with a "#" character using Perl regular expressions? For example (need to delete the following examples) line="#a" line=" #a" line="# a" line=" # a" ... the required syntax $line =~ s/......../.. or skip loop if line begins with "#" from my code: open my $IN ,'<', $file ...
stackexchange/codereview
I suspect I must be missing something very elementary but I can't seem to access Scala fields from Java code: package test; class TestScala (myNumber : Int){ val myNum : Int = myNumber; } package test; import test.TestScala; public class TestJava { public static void main(String[] args) { TestScala...
stackexchange/codereview
I am getting the following exception in my ASP.net project Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The request fail...
stackexchange/codereview
I have installed Ruby 1.9.2 from source. But it seems there is some trouble recognizing the bundler gem which I have already installed. My /etc/environment file: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ruby/bin" It looks like my gems are in /usr/local/ruby/gems/1.9.1...
stackexchange/codereview
I used a linear gradient image for a background and in Photoshop (and everything else) it looks nice and smooth but when I displayed it in the emulator is was banded! What's worse, it's banded on my actual phone - a Droid Incredible. I'm running 2.2 both in emulation and on the phone. Here's a sample - original o...
stackexchange/codereview
I would like to include only certain form fields when submitting a form with jQuery. For instance, I would like to ignore all fields that have the disabled attribute... maybe something like this: $('#my_button').click(function() { if($('input').hasAttr('disabled') { //ignore this form field when submitting...
stackexchange/codereview
I have a main branch master that contains the stable code. Each time I want to build something new I get checkout -b 'development', add the new code, then merge it back into the master and delete the development branch. However, is this creating a larger repo database than just keeping the development branch and mergin...
stackexchange/codereview
Ok, in my PM income list I have this: $queryIn = "SELECT * FROM users_pm_in WHERE uID = '$USER' "; Take's all queries and shows them. Now everytime user creates a PM, he creates a "dialog_id" number. If the recipient respond to the user´s PM, the recipient´s PM will also have that number in dialog_id. So, that's why I...
stackexchange/codereview
We just started on a project to develop a web portal using .NET 3.5 and MSSQL 2008. A question was raised on which is the sensible choice to handle data access which involves tens of thousands of records up to hundreds of thousands? I saw a table somewhere that compared ADO.NET, EF and LINQ to SQL and it seemed like LI...
stackexchange/codereview
I have a file that looks like this: AE United Arab Emirates AG Antigua & Barbuda AN Netherlands Antilles AS American Samoa BA Bosnia and Herzegovina BF Burkina Faso BN Brunei Darussalam And I 'd like to invert the order, printing first everything except $1 and then $1: United Arab Emirates AE How can I do the ...
stackexchange/codereview
I'm sure there is no definitive way to guard against viruses but I was wondering if there are any defensive mechanisms that can be put in place when writing a local desktop application to reinforce defenses against viruses. Specifically, I am writing a small WPF accounting application that connects to a SQL Express dat...
stackexchange/codereview
Each XML web service should use a unique namespace so that client applications can distinguish it from other services on the web. Which namespace is used to identify a service: one set via ServiceContractAttribute.Namespace or via ServiceBehaviorAttribute.Namespace or...? My guess would be one set via ServiceBehaviorA...
stackexchange/codereview
How can I have more options to answer this? while [ "$yn" != "Yes" ]; do echo "Please enter your Host Name" read hname echo "You have entered $hname, is this correct? (Yes or No)" read yn done sh runscript.sh Would like to answer with "Yes" "yes" "Y" or "y", how can this be done? Thanks in Advance, Joe
stackexchange/codereview
Using a library like ASM or cglib, is there a way to add bytecode instructions to a class to execute code whenever the value of a class field is set? For example, let’s say I have this class: public class Person { bool dirty; public String name; public Date birthDate; public double ...
stackexchange/codereview
I am trying to look at some vba code, and it says "project is unviewable". Why is this, and how do I change it? Details: XLS file extension File created Monday, October 14, 1996 6:33:28 PM What the code does is disable any passwords on VBA Projects so you can look at it. You click on a button on the sheet, and it open...
stackexchange/codereview
at the moment i am trying to write a unreal amount of data out to files, basically i generate a new struct of data and write it out to file untill the file becomes 1gb big and this occurs for 6 files of 1gb each, the structs are small. 8 bytes long with two 2 variables id and amount when i generate my data, the struct...
stackexchange/codereview
I have an several controllers where I want every ActionResult to return the same viewdata. In this case, I know I will always need basic product and employee information. Right now I've been doing something like this: public ActionResult ProductBacklog(int id) { PopulateGlobalData(id); // do some other thi...
stackexchange/codereview
Long title, hope it makes sense. Can't seem to figure out how I would implement this. Or if my approach is even somewhat on track with best practices for this kinda stuff b/c i'm still working on mvvm and probably not using it correctly yet. I have a simple viewmodel in an application i'm working on and it contains two...
stackexchange/codereview
I want to start developing some tools that let me communicate between my phone and computer via bluetooth, and I want to use Python for it. I installed the python bluetooth module (PyBluez), but it does not detect my built in BT adapter (I'm on a Toshiba Satellite A300). import bluetooth nearby_devices = bluetooth.disc...
stackexchange/codereview
I've got a User model. The app has registered users and registered artists. A user can be identified as an artist or a registered user through the Roles model. In my account page, I've got a notification section. User notifications are difference from Artist notifications. For example. A registered artist can set the ...
stackexchange/codereview
I have written a program for generating subset sum which might be used in this problem which states: Suppose, you have 3 $1-coins, 2 $2-coins, 3 $5-coins, 1 $10-coin, there are 4 ways to obtain $10 from those coins. If there are n1 $X1 coins, n2 $X2 coins.... nm $Xm coins, how many ways can we obtain $X fro...
stackexchange/codereview
I wonder how can I download/save/write a file from my server to a client's computer using flash or flex. An example of what I'm looking for is avilable on http://www.flexdownloads.com Sign up Sign in Click on the ("FREE") button placed on the right of the page. (the orange button) Choose any product (won't cost...
stackexchange/codereview
I am using hibernate's timestamp method to update the last_modified value whenever my row in the table is updated. Like this: <timestamp name="lastModified" column="last_modified" /> I am using postgres db. When Hibernate updates the row, does it fire an SQL with now() or the plan vanilla date? The reason is that I wa...
stackexchange/codereview
alright i have a div #pagecontainer which loads another php page page_$var.php into it and $var is the page number, i need to get the url query string variables but i cant seem to retrieve them from the newly page. example: loc=3&option=5 i just cant grab that inside the new page
stackexchange/codereview
I created an SSIS package so I can import data from a legacy FoxPro database at scheduled intervals. A copy of the FoxPro databaseis installed for several customers. Overall, the package is working very well and accomplishing all that I need. However, I have one annoying situation where at least one customer (maybe mor...
stackexchange/codereview