instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I see a command in environment.rb that says
config.gem 'thoughtbot-paperclip', :lib => 'paperclip', :source => 'http://gems.github.com'
If I wanted to manually do it, it would be
gem install thoughtbot-papperclip --source http://gems.github.com
Where does the lib fit in to the command line gem call?
| stackexchange/codereview |
I have implemented scrollable extjs tab panel in our product. But I also need to support accesskey functionality. For example, an "Alt + P" keystroke will open up one of tab. Does anyone have any experience about implementing this?
| stackexchange/codereview |
I have an navigation-based app with three view controllers. The first has categories of information, the second has a list of items from that category and the third has detail on a specific item.
I populate view controllers 1 and 2 using an NSXMLParser which gets called on viewWillAppear. In the forward (VC1 to VC2 to ... | stackexchange/codereview |
I've been trying to setup a Single Table Inheritance model in Rails 3 in which the parent class also contains a has_many relationship. Unfortunately I can't get it to work. Here are three classes as an example:
class Article < ActiveRecord::Base
has_many :paragraphs, :dependent => :destroy, :autosave => true
end
... | stackexchange/codereview |
I'm new to Django and I'm creating an app to create and display employee data for my company.
Currently the model, new employee form, employee table display, login/logout, all works. I am working on editing the current listings.
I have hover on row links to pass the pk (employeeid) over the url and the form is populat... | stackexchange/codereview |
I am creating few textareas on-the-fly by replacing the content and adding that content in textarea. Please review the code below:
<script type="text/javascript" language="javascript">
$(document).ready(function(){
$("#content").find(".editable").each(function(count){
var content = $(this)... | stackexchange/codereview |
Say I'm making a Q&A site like StackOverflow. I have two resources: Question and Answer. I'm using default Rails RESTful resource routes, so each resource has its own controller and methods for creating it.
In the /questions/show view, I want to allow the user to submit an answer for the particular question. The form w... | stackexchange/codereview |
Looking for an OpenID consumer in node.js
It is not on this list http://openid.net/developers/libraries/
Is there one?
| stackexchange/codereview |
<div id="autoSuggestedPlaces">
<div>
<div>
</div>
</div>
<div>
<div >
</div>
</div>
<div>
<div>
</div>
</div>
</div>
my html markup is lookes like this i want to add, i want to add even div have diffrent bacgroun... | stackexchange/codereview |
We're doing some prototyping of a new app and noticed that one of the actions were taking forever to load (80-120 seconds). As a lot of the processing doesn't need to happen on page load (we can request the data via Ajax later), I thought of using Process.fork to allow the page to return immediately, while the processi... | stackexchange/codereview |
what I want to do is enable a simple bonjour service on my ipod touch.
And after I publish my custom bonjour service, the delegator did not get "netServiceDidPublish:" call. I also check there is not any error message from "netService:(NSNetService *)sender didNotPublish:". Below is my code section:
// AsyncSocket cla... | stackexchange/codereview |
I am attempting to train a neural network for a system that can be thought of as a macro-level postal network. My inputs are two locations (one of the 50 US states) along with 1 to 3 other variables, and I want a numeric result out.
My first inclination was to represent the states as a numeric value from 0-49 and then ... | stackexchange/codereview |
I'm looking for a torrent tracker written in Ruby on Rails (TBDev.net style or so). Is there a ready made package?
Another option: Is there a robust torrent tracker software that can act as a backend for which I can write a RoR front end?
| stackexchange/codereview |
I have the following singleton class which contains the following property:
public class Manager : INotifyPropertyChanged
{
public bool IsOnline
...
public static Manager Instance
...
}
In the mark-up I am trying to change the color of a button based on this online property:
<Button.Style>
<Style Tar... | stackexchange/codereview |
I'm pretty sure this is something super easy, but how do i access a resource that is in a separate project using the expression syntax?
I thought it would be like so:
<%$ Resources:SomeNamespace.Resources.Web, PleaseSelectAnImage %>
where SomeNamespace.Resources is the project that the resources are located in.
i norm... | stackexchange/codereview |
Context: logging table changes, and we don't want to accidentally mess up the log entries. This is an internal, non-financial app, so we're not worried about hostile modification.
I thought I could just revoke delete/update, but it turns out you can't do that to yourself:
ORA-01749: you may not GRANT/REVOKE privileges... | stackexchange/codereview |
Let's say I have the following entities:
public class Order
{
public int OrderID {get;set;};
public int Version {get;set;};
public IList<OrderDetail> Details {get;set;}
}
public class OrderDetail
{
public int OrderDetailID {get;set;}
/// Some other properties
}
When I want to delete the entity like this:
... | stackexchange/codereview |
I have used jquery to load some html from another page and added the content to a div called 'console'. This happens when I press a link:
$ ('# Console'). Load (this.href + '# container');
I try then to retrieve the form which is part of the added html.
I use $('#formname') but I can not get the form element.
Why? What... | stackexchange/codereview |
Describing the DataContractSerializers support for import msdn has this to say:
Supported. DataContractSerializer supports xs:include and xs:import. However, Svcutil.exe restricts following xs:include/@schemaLocation and xs:import/@location references when metadata is loaded from a local file. The list of schema files... | stackexchange/codereview |
I want to create a procedure that will
A) check to see if TicketNumberInput is in table Tix_number.TicketNumber.
B) if it does exisist, update the record to set UID to @uid and Set the Claimdate to GetDate()
AND ...
C) INSERT A RECORD INTO ANOTHER TABLE (TRANSACTION LOG TABLE)
If the record does exist, simply add a re... | stackexchange/codereview |
This example on tcpdf's website shows how to use page formats like A4, A5 etc, but how do I set tcpdf to use custom sizes like 175mm x 266 mm?
Solutions appreciated.
| stackexchange/codereview |
Is there a way to generate a theme for sweave documents? I have a number of reports that I generate monthly, where I use R to generate the text, tables and images. But now I'm stuck in the rut of copying and pasting this information into MS Publisher placing the text in a themed document that we had a graphic designer ... | stackexchange/codereview |
i am trying to add a container having some UI components as child in it to a canvas and also want to set the border size only using the action script without MXML,
1) is it possible to add the container that is a lower class in hierarchy from parent to child upward, can canvas addchild() accepts the container as child... | stackexchange/codereview |
How to use SOAP web service in Rails3?
I tried datanoise-actionwebservice but doesn't work for me. I heard that rails3 has integrated SOAP support, but I don't find nothing about this on the internet. Can you help me?
| stackexchange/codereview |
Is it possible to bind a rdlc report to a business object (.NET 4/VS 2010)
In my report I have TextBoxes called Name and Email.
Say I have an object Person with properties Name and Email.
Can I bind the .rdlc with an object Person at runtime?
| stackexchange/codereview |
I can't seem to find anything except Rails' own documentation on its integration testing platform. Why doesn't anyone use it? How did it die out? What are alternatives?
| stackexchange/codereview |
I'm writing an application, which becomes "useful" once user is browsing certain url.
I want to add feature to my application, that it will be automatically launched once user browses this url, I was thinking of writing some sort of watchdog to trigger it.
My question is, whether there is a generic way to get notified ... | stackexchange/codereview |
I'm looking for an alternative library for the app engine datastore that will do nearest-n or boxed geo-queries, currently i'm using GeoModel 0.2 and it runs quite slow ( > 1.5s in some cases). Does anyone have any suggestions?
Thanks!
| stackexchange/codereview |
In Ruby, isn't an instance variable like @foo and a class variable, @@bar?
In some code, I see a few
self.user_name = @name
or even
a += 1 if name != user_name # this time, without the "self."
# and it is the first line of a method so
# it doesn't look li... | stackexchange/codereview |
I can send push notification to iphone success with certificate ck.pem throught gateway.sandbox.push.apple.com in development environment.
But I want to access feedback.sandbox.push.apple.com, I got the error as follow:
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. ... | stackexchange/codereview |
I have a Javascript form validator function something like
switch (element.getAttribute('validationtype')) {
case 'text':
if (cic.visible(element)) {
if (cic.getValue(element).strip() == "") {
errors.push(element.getAttribute('validationmsg'));
... | stackexchange/codereview |
My question is as the title states. Is it possible or is that restricted to the settings app?
I have tried searching for an answer in the docs but no luck.
| stackexchange/codereview |
I have following class:
public class PairOfDice
{
private Dice d1,d2;
public int Value
{
get { return d1.Value + d2.Value; }
}
}
Now I would like to use a PairOfDice in my test which returns the value 1, although I use random values in my real dice:
[Test]
public void DoOneStep ()
{
var moc... | stackexchange/codereview |
I have log files generated by my application running on EC2. I want to first upload the log file to a bucket in S3. I then run a map reduce job and I want to then download the output file back to EC2.
What is the best way for me to upload and download files from EC2 and S3? Is it possible to do automate the process us... | stackexchange/codereview |
I need to JSONize some data without quotes around the values for Javascript purposes.
I am following examples like
$data = array(
'onClick' => new Zend_Json_Expr('function() {'
. 'alert("I am a valid javascript callback '
. 'created by Zend_Json"); }'),
'other' => 'no expression',
);... | stackexchange/codereview |
By default, the PivotItem's header uses a large font.
I was hoping I could change the HeaderTemplate but no such property is available.
Is there a workaround?
| stackexchange/codereview |
I would like to know the file formats that IP based surveillance cameras produces. I would then need to build or use available codec/ source code to convert to a format Flash player 10 can support. These are formats other than the usual .FLV for my website which is run on JBoss with Flex 3. I would like to support as m... | stackexchange/codereview |
I've got an existing Visual Studio C++ project. It creates a main window using GLUT and also uses glut for a right-click context menu.
All I want to do now, is to open a second window used as a property inspector to display and change some values.
Everyone recommends using Qt for GUI development, but all the tutorials ... | stackexchange/codereview |
I am writing a streaming-application using VLC (VideoLAN) and its ActiveX-plugin. I am getting a stream from a satellite-decoder and now I need to get information from the stream (MPEG-TS) as to the subtitles present (for instance from a film) in the stream so I can tell the ActiveX-control which subtitle-language to u... | stackexchange/codereview |
I am trying to enumerate drives that are mounted without a direve letter so I can obtain the remaining space on each of the drives. This application must work with Windows XP so the Win32_Volume class is not available.
When the following code is executed, a System.ExecutionEngineException is thrown.
using System;
usin... | stackexchange/codereview |
Does anyone know how to use Android device's built-in acoustic echo cancellation? It is located somewhere in silicon and is used for GSM/CDMA speakerphone calls. We'd really like to tap into it for a VoIP application instead of rolling our own.
Ben
| stackexchange/codereview |
Here is my code so far:
SELECT `date`, title, category, url
FROM cute_news
WHERE category = '4'
ORDER BY `date` DESC
I want make pages based on the year, like, 2010 , 2009, 2008 and so on.
The database saves the date as UNIX_Timestamp. Not sure how to query a recordset with a Year parameter?
WHERE unix_timestamp(YEAR)... | stackexchange/codereview |
When I issue a runserver command, an ImportError is raised from djcelery (Django Celery).
% python manage.py runserver
~/Workspace/django-projects/no-labels/src
Validating models...
Unhandled exception in thread ... | stackexchange/codereview |
I am using netbeans 6.9.1 with the latest JDK version on Windows 7.
I deactivated all unnecessary plug-ins.
But as time pass, netbeans start up is becoming slower and slower.
I deleted cache folder of netbeans but seems it can not help.
What else can I do?
| stackexchange/codereview |
I'm using GAE and task queue. In queue.yaml file, I keep default setting: 5/s. 1 month ago I thought it's enough but now there are about 40-50 tasks in one queue so my application runs too slow.
I want to know how many tasks per second is enough ? Can I change to 100/s ?
Thank you :)
Update:
My application gets data f... | stackexchange/codereview |
I need to capture an ASP.NET Session Tiemout in a GeneXus X application generated in C#. When a user stay away from keyboard more than N minutes, I would like to request User/password once again without loosing data's changes in webform
| stackexchange/codereview |
GetAdaptersAddresses() will get you addresses in IP_ADAPTER_UNICAST_ADDRESS format, which is defined as:
typedef struct _IP_ADAPTER_UNICAST_ADDRESS {
union {
struct {
ULONG Length;
DWORD Flags;
} ;
} ;
struct _IP_ADAPTER_UNICAST_ADDRESS *Next;
SOCKET_ADDRESS Address;
IP... | stackexchange/codereview |
As part of my Android app, I'd like to upload bitmaps to be remotely stored. I have simple HTTP GET and POST communication working perfectly, but documentation on how to do a multipart POST seems to be as rare as unicorns.
Furthermore, I'd like to transmit the image directly from memory, instead of working with a file... | stackexchange/codereview |
I have the following repository that I use for unit testing:
public class MyTestRepository<T>
{
private List<T> entities = new List<T>();
public IQueryable<T> Entities
{
get { return entities.AsQueryable(); }
}
public T New()
{
//return what here???
}
public void Creat... | stackexchange/codereview |
I know some about Struts2. But it's all about something begins with "user click(HTTPRequest)".
I need to know how to run some method(it seems not to be a proper term) inside. Example, everyday or every hour update some list.
I mean, without any request from the outside. I guess it has something to do with the socalled... | stackexchange/codereview |
i have a column A with about 10,000 random numbers.
I want to perform a function ( =MAX() for instance) on group of 100 numbers every time,
i.e. i want to do
=MAX(A1:A101)
then
=MAX(A102:A202)
=MAX(A203:A303)
etc...
notice there's no overlapping in the groups. normal Dragging doesn't work, it will perform
jumps of ... | stackexchange/codereview |
First note, im not asking for code, more insight on the process flow.
i have a client who is a photographer. he takes pictures of his clients.
he wants to be able to upload them to his site, via web interface.
he also wants a directory for each client.
i.e. www.photographer.com/clientname
pictures will be retouched ... | stackexchange/codereview |
I just edited my route for a user details page to look like this:
routes.MapRoute(
"UserDetails", // Route name
"{controller}/{action}/{id}/{title}", // URL with parameters
new { controller = "Users", action = "Details", id = UrlParameter.Optional, title = UrlParameter.Option... | stackexchange/codereview |
I implemented adWhirl ads in my iPhone app.
During testing ads showed great from all networks, including house ads.
I released the app, I have active users (because they submit high scores)
But... No income showing in network reports and when I use the app, no ads show.
Did I forget to flip a switch somewhere?
Thanks!
... | stackexchange/codereview |
Can we create interactive PDF forms using reportlab? That is, a form that takes in data from readers and save them into the database.
| stackexchange/codereview |
I have seen numerous applications that use layering in their layouts. When I speak of layering I am referring to layers in the z-axis relative to the view of the user. One such app is the Craigslist Notification app where on top of the listView there is a plus sign near the bottom to allow user access to adding an addi... | stackexchange/codereview |
I'm new to ANTLR, and I'm attempting to write a simple parser using C language target (antler3C). The grammar is simple enough that I'd like to have each rule return a value, eg:
number returns [long value]
:
( INT {$value = $INT.ivalue;}
| HEX {$value = $HEX.hvalue;}
)
;
HEX returns [long hvalue]
: '0' '... | stackexchange/codereview |
Relevant info
I have a User model with plenty of attributes and several has_many associations.
I have a BIG form to edit existing user info, including nested fields.
I have divided the form into several forms in different divs and show only one form at a time. (i.e. tabs in UI)
User can save info by clicking Save butt... | stackexchange/codereview |
I've got project with a few sub modules.
mvn clean install
works absolutely fine. But in Eclipse with the parent project open none of the maven dependencies are available and so all my Java source files are full of indicated compilation errors (they're not listed in the build path for the project). If I open one of th... | stackexchange/codereview |
I have a single-threaded non-blocking socket IO server written in Java using nio.
When I have finished writing to a connection, I want to close it.
Does the closing of the channel mean blocking until all buffered writes have been acknowledged by the recipient?
It would be useful to know if, when asynchronously closing,... | stackexchange/codereview |
var a="password";
In any variable how to check if the length is not less than 6 characters and not > 12
$(a).len();?????
| stackexchange/codereview |
Hi guys I get this coercion error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Shape@41754601 to flash.display.
When I create an instance of a MovieClip from my library:
var childmc:ChipEasy = new ChipEasy();
Canvas.Map.Tiles.addChild(childmc);
When I try to access all the children lik... | stackexchange/codereview |
I have two lists:
List<User> collection1 = new List<User>();
List<User> collection2 = new List<User>();
1) I have to get all items common to both of the lists using LINQ. However, the class User has a lot of properties and I just want to compare FirstName and LastName.
2) How can I get the items in collection1 but not... | stackexchange/codereview |
how to Validate a Phone number so that it should not allow all same numerics like 99999999999 or 11111111111 in JAVA
thanks
Sunny Mate
| stackexchange/codereview |
I hate the OK/Cancel dialogs, because if my application ask somebody if (s)he really want to do something you should never answer with "Cancel".
A little example:
final AlertDialog.Builder b = new AlertDialog.Builder(this);
b.setIcon(android.R.drawable.ic_dialog_alert);
b.setTitle("Hello World");
b.setMessage("Did you ... | stackexchange/codereview |
I want to see xml file in browser as I define in .xsd file. Please check the following two files for me and point out what do I need to do. These two files are under same folder.
employee.xml
<?xml version="1.0"?>
<employee xmlns="http://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan... | stackexchange/codereview |
Recently we got a project which can be developed either in J2EE or Asp.Net (no restriction from client). Client is asking to give best solution to maintain the project in long run.
Here I don't want to discuss about "Java vs .NET" but need to know which one is preferable to reduce maintenance cost. If I choose any of ... | stackexchange/codereview |
I am trying to call a constructor for a custom collection object. This custom object takes in a parameter of type Class.
In java, this is done like this:
ICollection col = new PersistentCollection(ContentX.class);
This is my first dive into rhino, and I haven't been able to figure out quite how to pass this parameter... | stackexchange/codereview |
hi I'm really frustrated, First I have no idea how to code the very complex (make files), so I'm using IDE's that would ease the job for me like (netbeans , eclipse ,Kdevelop .. etc) i almost tried every thing starting with
Emacs (i'm very slow on it and I need autocompletion)
Netbeans 6.9.1 (crashes , very slow edito... | stackexchange/codereview |
Has anyone come acrross this problem?
I have setup a Wordpress install on a subdomain. It's only temporary subdomain and is just for testing.
I've used a popular Wordpress contact form plugin called 'contact form 7'
Any messages I submit via the test form come through fine in all but one email client.
Microsoft Outlook... | stackexchange/codereview |
if the h2 has the word ply i want to add a break.
the titles are dynamically called, the site is html so i can't use php on anything.
heres the h2
11/400-5 4 PLY EXPERIMENTAL TIRE AIRCRAFT TIRE
want it to look like this
11/400-5 4 PLY
EXPERIMENTAL TIRE AIRCRAFT TIRE
so any title that has the word PLY in it will add a b... | stackexchange/codereview |
We have an SWF based audio player. We want to be able to embed this player into Facebook wall posts in the same way that Youtube videos or BandPage songs are embedded into Facebook feed walls. Right now clicking on the image that we provide redirects to the player instead of loading the player inline.
UPDATE: We want t... | stackexchange/codereview |
I wonder why this isn't working as expected:
$(function() {
$(".door1-trigger").click(function() {
$(".door").hide();
// $(".door1").show("slide", { direction: "right" }, 1000);
return false;
});
$(".door2-trigger").click(function() {
$(".door").hide();
$(".door2").show("slide... | stackexchange/codereview |
Hey guys, need some guidance on how to get the sub menu to drop directly under the whole width of the navigation bar for each and every option. Basically i want the sub menu to appear in one static position regardless of which option I hover over.
Here is the HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitio... | stackexchange/codereview |
I'm trying to write an custom ruleset.xml for php code sniffer but calling it from the commandline without putting it in the default folder doesn't seem to work.
Since the documentations seems to state otherwise i'd like to ask if i'm doing something wrong here
:~/$ phpcs --standard=/home/edo/custom_ruleset.xml source/... | stackexchange/codereview |
The below report is currently written using linq to entities to get the data and building an html table in code. I'd like to rewrite it using SSRS and need some advice.
All of the data is in the same table. There will also be date range parameters.
Here is the basic template for the report that is needed.
Categories ... | stackexchange/codereview |
I'm creating an application which uses a DI Container for injecting strategies into it.
When deployed, if I require those strategies to change, is it a valid deployment strategy to deploy a new assembly with the new strategies and ammend the configuration file for instructing the DI container of which strategy to use?
... | stackexchange/codereview |
I have a function definition, where i call multiple functions. Even if one of the function fails i need to go ahead and call the rest of the functions and finally return a single error saying whether any of the function call failed. The approach which i had followed was
int function foo()
{
int res, res1, res2,... | stackexchange/codereview |
I can never find the source code of the F# core libraries. I know it is supposedly open but google is not kind to me in helping me locate it, if so I would have looked up the impl of Seq.fold - but here goes the question.
Does anybody see any issue with the following snippet:
let success = myList |>
... | stackexchange/codereview |
i have a User Module where users can set their status message (tweet) from the profile page.
When some one clicks Share it should go to an action and save the status message. I am not sure how to do this in CakePHP.
I would wnna use jQuery. If you can point me to the right document. it would be of great help
I am new ... | stackexchange/codereview |
1. payment(user_id, calculation_id)
2. user(id, user_name)
3. calculation(id, period_start_date, period_end_date)
I need to select payments with user_name, period_start_date, period_end_date. How can I do it within one query in Zend Framework?
Thanks a lot.
| stackexchange/codereview |
Readed all these topic https://stackoverflow.com/search?q=django.views.static.serve
And it not helped :(
OS: Windows XP
Python: 2.7
Django: 1.2.3
Media in
D:\bugtracker\static
With files:
docicons-note.gif
style.css
In settings.py i set:
MEDIA_ROOT = 'D:/bugtracker/static/'
MEDIA_URL = '/static/'
In urls.py i set:
ur... | stackexchange/codereview |
Let's say you have the following tables:
Friend
------
Id int not null (primary key)
Name nvarchar(50) not null
Address
-------
Id int not null (primary key)
FriendId int not null (links to Friend.Id)
City nvarchar(50) null
Country nvarchar(50) not null
Using Entity Framework 4, I am issuing an ObjectContext.ExecuteS... | stackexchange/codereview |
Are there any pitfalls to code like this?
var Foo = function() {
this.bar = function() { return 'bar'; };
};
var f = new Foo();
f[0] = 'hi';
f[1] = 'there';
Note that I'm creating a new function object with some misc properties, and then I'm treating the object like an array. Also how are the array values being s... | stackexchange/codereview |
I have web services and I want to save that data in SQLite in iPhone and also want to retrieve that data. Web services include 14 parameters, also includes image URL as well. Web service is SOAP in .NET.
Please help me and provide me with the complete code how to do that.
| stackexchange/codereview |
Is there a way to convert an array to a list of parameters..?
main(){
//"a" is an array or a list or some collection
myPrint(a.SomeMethod);
}
void myPrint(int a){
//Do Stuff to arguments
}
void myPrint(int a, int b){
//Do Stuff to arguments
}
void myPrint(int a, int b, int c){
//Do Stuff to arguments
}
I want... | stackexchange/codereview |
I stored the users IP address when they are registered.After that if they access the site from another Ip address I need to ask some security questions based on the registration.So is it possible to track the IP address.Otherwise the IP will change frequently?.
p.s No need to bother about Proxies and IP spoofing.
| stackexchange/codereview |
Hello
I want to create month-view calendar for android with clickable days. What kind of layout/view should I use, TableLayout or GridView. I didn't find any examples for this...
Thanks for help in advance
| stackexchange/codereview |
I have two tables:
Orders
OrderProducts - An order can have 1 to many orderProducts records associated with it.
What I am trying to do (unsuccessfully) is to implement a GridView search using a LinqDataSource wherein the search returns Order results where any of the OrderProduct.Manufacturer columns contain a search... | stackexchange/codereview |
Just looking for some advice on how to structure my relationships in an app that I'm making. I have the following models:
activity # golf, karaoke
event # golf competition followed by all-night karaoke boat party
post # write-up of the golf and karaoke event mentioned above
gallery # photos from the golf and k... | stackexchange/codereview |
I'm trying to find out what the algorithm would be by being given two languages L1 and L2 to determine if they are equivalent (L1 = L2).
It's surprisingly difficult to come up with one as I've found, although I am pretty sure it needs to be converted to a DFA first and then reduce each of them to a minimal DFA..
Also, ... | stackexchange/codereview |
I went to an interview today and was asked this question:
Suppose you have one billion integers which are unsorted in a disk file. How would you determine the largest hundred numbers?
I'm not even sure where I would start on this question. What is the most efficient process to follow to give the correct result? Do I ... | stackexchange/codereview |
I'm trying to update the project at http://code.google.com/p/android-wheel/ to act like the iPhone spinner/Urban Spoon App.
I want to add acceleration/deceleration to scrolling, as well as a spinning animation. I just don't know where to start. I was able to get the whole control to slide with the built in android tra... | stackexchange/codereview |
One Way
am creating an xls with fopen("test.xls") .
Using fwrite i write xls and readfile give me the file.
Second Way
I generating xls with putting
header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header... | stackexchange/codereview |
I've searched around using google but I'm completely confused on how to load an image (PNG in my case) from resource and then converting it to a bitmap in memory for use in my splash screen. I've read about GDI+ and libpng but I don't really know how to do what I want. Could anyone help?
| stackexchange/codereview |
What's the easiest method to get list_display functionality in my main website (outside of the admin pages).
I have a group of elements I'd like to select and perform an action. Any ideas?
| stackexchange/codereview |
I have a C# application, I want my application postponing the Windows Switch User by a MessageBox and wait for a response from the MessageBox. If my application is not ready for Switch User then I cancel the Windows Switch User.
I have tried WTSRegisterSessionNotification() and receive WM_WTSSESSION_CHANGE message in m... | stackexchange/codereview |
Trying to take a simple test.txt file and separate the text and integers after its read in for array manipulation. The idea is to be able to use/require the attr_accessor from the separate Person class.
So I can use :name, :hair_color, :gender
For example lets says we have in our text file which is all separated by the... | stackexchange/codereview |
Here's a situation, i have a list of support tickets that when you click the title of the ticket takes you to a page that displays the ticket in more detail. If uses URL GET variables to query the database. I've taken SQL injection into account but what if someone modifies the url to an id that doesn't exist? whats the... | stackexchange/codereview |
function add(){
<%if(empRecNum != null && !(empRecNum.equals("")))
{
empSelected=true;
}
boolean canModify = UTIL.hasSecurity("PFTMODFY") && empSelected;
%>
df('ADD');
}
When i click on add, i need to check whether the empSelected is true or not and pass this canModif... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.