instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a working Rails site that uses devise to manage users. For session management, I am using devise's rememberable strategy, which stores and retrieves encrypted authentication information from a user's cookie.
I'm implementing a multi-photo upload widget that uses flash. Flash does not support sending cookies al... | stackexchange/codereview |
I'd like to create a couple of custom views, sort of reusable UI components, and would prefer to not layout the UI in code in the UIView subclass. I'd like to use a xib for that. I've used a xib by itself. And I've used a UIView subclass by iteself. But I haven't used them together. How do I "attach" them to one anothe... | stackexchange/codereview |
I'm developing an Android application with OpenGL.
I'm very new with Android and OpenGL and my English is very poor. Yesterday I earned -4 points because I didn't explain something correctly.
I will try to explain my problem:
I have to show more than one 3D object on screen, for example a cube and a sphere. The objects... | stackexchange/codereview |
When using N2 CMS:
If I want to set some default values when a new ContentItem is created (e.g. setting the CreatedByUser value for a new Page so I can record who originally created it) where is the best place to put that code?
I figure the constructor of the ContentItem isn't ideal because that will get called when ex... | stackexchange/codereview |
Support I have a Java Bean class that strictly holds instance fields:
class College
{
building = "Burruss";
dean = "Mr. Bergess";
schools[] String = {"College of Engineering", "Business School"};
valedictorian = "Mr. Smart Guy";
...
...
...
}
Suppose that for every change in an inst... | stackexchange/codereview |
We all know that Mathematica is great, but it also often lacks critical functionality. What kind of external packages / tools / resources do you use with Mathematica?
I'll edit (and invite anyone else to do so too) this main post to include resources which are focused on general applicability in scientific research an... | stackexchange/codereview |
I have a rich complex Java Swing Application. I would like the multi touch events to be converted into Mouse events for the Swing Applications.
Is there a way to do it without changing significantly the existing Java Application ?
| stackexchange/codereview |
Is there a preferred way to set up projects or branches on github, so there's always a stable branch available for people to download? How do you guys set up your projects?
Here's an example: right now I have a "stable" branch(master) and then an "edge" branch(for development only). When I am ready to release a new ve... | stackexchange/codereview |
I'm trying to use QStandardItemModel to represent a hierarchy of data, but when I'm adding QStandardItems to the model, I have to assign them in object member variables, or the objects seems to be deleted.
For example
self.tree_model = QStandardItemModel()
self.tree_model.setHorizontalHeaderLabels(['Category'])
self.ou... | stackexchange/codereview |
I have an array full of terms and their definitions like this:
var definitions = [
{label : "abdomen", def: "stomach, stomach area, belly, tummy"},
{label : "ability", def: "skill"},
{label : "abolish", def: "end, do away with, get rid of"},
etc
]
I want to ... | stackexchange/codereview |
I want to remove the wrapper from the following XML document using the DOM api
<hs:PageWrapper>
<div id="botton1"/>
<div id="botton2"/>
</hs:PageWrapper>
so that I will only have these as the final output:
<div id="botton1"/>
<div id="botton2"/>
How can i do this in Java?
| stackexchange/codereview |
Can my asp.net web application run without a web.config?
For argument's sake lets say that I'm not connecting to a Database or explicitly reading any
configuration information .
I have tried it out and I'm able to run a web app successfully in VS 2008 without a web.config.
This brings me to the question as to how are ... | stackexchange/codereview |
I have a class that contains a List(of T) used in a multithreaded application. I have three methods Get, Add and Remove where these access and modify the List(of T). I was using SyncLock to lock m_List any time I queried it for the desired object as well as when I added or removed objects. However I'm curious as to ... | stackexchange/codereview |
I need a bit of help with blobs in opencv (python).
This is the thing:
I've already written the preprocessing functions that work properly, they isolate the areas of interest and return a thresholded image, where these areas are white, the rest is black. The thing is, I'm only interested in the white areas but no matte... | stackexchange/codereview |
I have a profile class:
class profile(db.Model):
user = db.stringProperty()
# Other properties ...
access = db.ListProperty(db.keys)
class apps(db.Model):
name = db.StringProperty()
The profile class was there for quiet some time, but we added recently access field which will store the keys of apps.
Now we ar... | stackexchange/codereview |
I am trying to write some tests that call window.document, and I want to mock out the actual calls themselves, so I can run them headless. Bu the following code won't work:
window = {"document": ""};
document = window.document;
document.cookie = "";
document.location = {"hostname": "test.myserver.com"}
I get the follo... | stackexchange/codereview |
In Hadoop API ver. 0.20 and above the Context object was introduced instead JobConf.
I need to find out using Context object:
the partition_id for current Reducer
the output folder
Using obsoleted JobConf I can find the partition_id for current Reducer by this:
public void configure(JobConf conf){
int current_pa... | stackexchange/codereview |
<?php
$result = mysql_query("SELECT * FROM articles WHERE tag='sports'");
$strss=$strss+1;
while ($row = mysql_fetch_array($result))
{
echo '<li id="nav'.$strss.'"><a href="#" >'.$row['title'].'</li>';
}
?>
Why can't I set numbers automatically? the number always i... | stackexchange/codereview |
from django.contrib.admin.actions import delete_selected
from Test.app.models import Post
from django.contrib import admin
class PostModelAdmin(admin.ModelAdmin):
fields= ('gender',)
list_display = ('gender',)
def mark_deleted(self, request, queryset):
print "deleted"
return delete_sele... | stackexchange/codereview |
How can I overload << operator (cout) so that it can be written to a file. Whenever << occurs it should be appended to the file i.e. instead of displaying on the screen it should be written to the file.
can i get a code for this...i am new to c++ and code written by me is not working..
| stackexchange/codereview |
I am trying to get access to Form1’s public method on another form Form2 as below. I have a textbox6 control on form1 and there is public method to bind it. But I want to bind it by form2 as below.
Form1
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void... | stackexchange/codereview |
I render a view through my controller like so:
public ViewResult Forum([DefaultValue(0)]int id)
{
ForumMessagesViewModel forumMsgs = new ForumMessagesViewModel(_articles.GetAllForumMessages());
return View(forumMsgs);
}
Inside that view .aspx, I want to enable message posting. S... | stackexchange/codereview |
I haven't been able to find a solution the following:
After installing gems, such as hpricot or nokogiri, I'm unable to access these within the rails console. The gems show up within my gem list, and also seem to have the same path as my other gems.
user@user-laptop:~$ which nokogiri
/home/user/.rvm/gems/ruby-1.9.2-p0/... | stackexchange/codereview |
EDIT: Here is a working version. I was able to retrieve my object within the NSMUtableArray after I saved and loaded it from the NSUserDefaults via NSCoding. I think it's important to mention, that you not only need to de-archive the array, but also all its content. As you can see, I had to not only store the NSData of... | stackexchange/codereview |
Google hasn't helped me here nor has Microsoft online help yet.
I have Inline tables which are generated as a subquery. (See simplified code below, I have several more inline tables.)
Now, this is fine where I have data. However, there are cases where I need to return results when there isn't data. For example, Inline ... | stackexchange/codereview |
Is that possible to define some kind of mapping in grails so CREATE TABLE is replaced with CREATE MEMORY TABLE for particular grails domains?
| stackexchange/codereview |
After generating a project using seam-gen, what is the recommended ignore pattern for source control? What should the recommended .gitignore file (or svn:ignore, or equivalents) look like?
| stackexchange/codereview |
I have a controller which loads the view like this:
class A extends Controller{
public function simpleForm(){
//this generates the form
}
public function simpleFormSubmitted(){
// Simple form is submitted here. Here I perform validation and if
// validation fai... | stackexchange/codereview |
For example...
user/view/?id=324gijsdfi3h25o1
I can str() it...but...
How can I find it up by string?
Edit: I want each document in Mongo to have a unique identifier (usually a string) that I can look up on. I was hoping the Object ID could be this (since it has a lot of letter and it's unique.) And I want it to work ... | stackexchange/codereview |
I am trying to create a web service client in Java. I am not aware of how to do it. This is a URL for WSDL: https://testservices.gatewayedi.com/PayerList/payerlist.asmx?wsdl
This is the WSDL:
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xml... | stackexchange/codereview |
I have a understanding problem. I use a MVC pattern and now i should describe my used layers..but i don't really know the difference between pattern and layer.
are these are my layers (i mean they are also my patterns only named model,view, controller):
UI
Controller
Model
Persistence
| stackexchange/codereview |
hi when I wanted to have something like vector of vectors (elements shall be ordered of course) I thought of having arraylist of arraylists but in C++ i would do this to access the element v.at(i).at(j)=5; and when i need to add new element v.at(i).push_back(value);
so how do i do this in java ? because I can only acc... | stackexchange/codereview |
In my code I do,
ClassA *reference = [[ClassA alloc] init];
[reference invokeMethod];
reference = nil;
[reference release];
Without the reference = nil I know it releases the memory cos its normal way to do so. But in this situation if we make the reference nil and release the memory later does it remove the earlier m... | stackexchange/codereview |
My question is not like the one I read because the context is different:
Let's say instead of embedding a flash inside an html page with some flashvars, I want to embed it inside another flash or flex. How to set the flashvars in this case (using ActionScript 3) ?
So how to embed Flash in another flash and set same var... | stackexchange/codereview |
I'm using Java 6.
Suppose I create 100 threads, each to complete one task. I want to run 10 threads at a time continuously. This means that if I was running thread 1-10, and thread 8 finishes, I want to be able to start thread 11 right away, without waiting for 1-10 to join.
How can I do this?
One way around this is pr... | stackexchange/codereview |
I'm trying to load an image file from my local disk and output it over http when the script is accessed on my webserver via cgi.
For example I want http://example.com/getimage.py?imageid=foo to return the corresponding image. Just opening the file and printing imgfile.read() after the appropriate content headers, howev... | stackexchange/codereview |
I want to iterate over a list of DOM elements (check boxes) and keep going as long as this list defined. The elements are 'c1r1', 'c1r2', 'c1r3', etc. Once I hit an undefined one, I stop. The problem seems to be using typeof with DOM elements.
Here's the offending code:
function domIsDefined(idString){
alert(idS... | stackexchange/codereview |
I am using Amazon EC2 instance of MySQL and need to modify my perl scripts to connect to the database using ssh tunnel (instead of the plain old hostname:port). Any help is appreciated
Thanks
| stackexchange/codereview |
Suppose I have two threads(Thread1, Thread2) where the threads are accessing the cache for a given object such as in the code below nearly at the same time:
Dim expensiveToGetData = Cache("ExpensiveDataKey")
If ExpensiveToGetData is nothing then
'because the cache has expired
ExpensiveToGetData = LoadExpensiv... | stackexchange/codereview |
When you launch Visual Studio for the first time, you get a wizard where you can select a "theme". I would like to change my selection, but I can't seem to find a way to re-run the wizard, or options which are similar to the wizard's options.
Specifically I use Visual Studio 2010 and have chosen a classical theme inste... | stackexchange/codereview |
struct aPoint {
int somaVertical;
int somaHorizontal;
int valor;
};
I have an array of structs dynamically created in main(), like so:
struct aPoint *ps = malloc( sizeof(struct aPoint) * columns * rows )
And I want to work with its struct values outside of main() in a function that has sscanf(... | stackexchange/codereview |
I'd like to know if you guys could suggest me the best way to structure file uploads.
I'm making a form for a site and this form contains an image upload section. In this section, images are uploaded before the form is even submitted (via iframe). Since the form hasn't been submitted yet, I have no DB record to link th... | stackexchange/codereview |
I am not able to enable math display/latex on the mediawiki. In standard instructions to enable latex, I need to compile texvc files, but I cannot do that because I am on a shared host (Linux Radhat).
(http://www.mediawiki.org/wiki/Manual:Enable_TeX)
I tried with precompiled binaries, but no success. I tried JsMath al... | stackexchange/codereview |
in my application there is both arabic and english language suport but i am facing a problem when the mobile receive arabic SMS it is displaied as ??? ???? (question marks) knowing that the monbile i am using for testing supports arabic and all the arabic in the application is working fine the problem is only when an a... | stackexchange/codereview |
The code below illustrates some unexpected (for me!) behaviour when combining data binding and validation in winforms. Can anyone tell me how I can prevent the datasource from being updated when validation fails?
Many thanks.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data... | stackexchange/codereview |
I have a Home model that links to a Realtor model on Home.realtor_num = Realtor.num.
I have an Office model linked to the Realtor model on Realtor.office_num = Office.num.
Suppose I want easy access to Office.name in the result set of a find on the Homes table. Is there an easy way to specify the above relationship, s... | stackexchange/codereview |
So I have one table and the columns are id, parent-id, and name.
Heres what shows up.
1 Web Design
- 5 Templates
- 6 Finished Websites
2 Graphic Design
3 Photography
4 Image Manipulation
from this:
while($row = mysql_fetch_array( $result )) {
echo $row['id'] . " ";
echo $row['name'] . "<br/ >";
while($row = mysql_... | stackexchange/codereview |
In my iPhone project, I have a common "date editing" view which features a UIDatePicker. I would like to use this view to update one NSDate property based on the way it's called.
The way I thought about achieving that is to have an NSDate property called CurrentlyEditedDate which I set to point to the correct NSDate pr... | stackexchange/codereview |
I've a requirement to use ASP.Net Grdview control in ASP.Net MVC. Now I need to handle form submit action.I'm using Objectdatasource for filling my grid. Now when I submit, I need to have current state of my grid data which includes checkboxes checked state.
| stackexchange/codereview |
I am trying to execute a query on a linked server, but I need the results locally.
DECLARE @test TABLE
(
greeting CHAR(5)
)
INSERT INTO @test
EXEC('select ''hello'' as greeting')
SELECT * FROM @test
Uses an EXEC() and INSERT INTO but, obviously the query is executing locally.
DECLARE @test TABLE
(
greeting CHAR(5)
)... | stackexchange/codereview |
whats the difference between the two types of temp tables @tmp vs #tmp in SQL 2005?
and are their other types i am unaware of?
thanks
| stackexchange/codereview |
Do association methods, such as those defined by has_many and belongs_to utilize ActiveRecord::Relation?
If so, is it possible to get the ActiveRecord::Relation object that is being used.
We're all aware that Rails 3 is heavily using ActiveRecord::Relation objects, and Arel::Relation objects in the background, when c... | stackexchange/codereview |
In Powershell, how do you set the Read/Write Service Principal Name AD user permissions?
Normally during my build process, I use ADSIedit to navigate to that object, and then go through all the security tabs to get down to put a checkmark next to:
Read Service Principal Name
Write Service Principal Name
But navigatin... | stackexchange/codereview |
I am retrieving file locations and names from a database, the are in this format
http://domain.com/subdir/etc/etc/etc/picimage-niceone_Main-150x150.jpg
They are all dynamic, so there are hundreds of them all with different names, but one thing is constant is the last - and then the file dimensions.
What i need to do is... | stackexchange/codereview |
when i download files from server i found many unwanted spaces in that file.why those spaces are coming? is there any way to remove those spaces. Please help me..
| stackexchange/codereview |
catch (exception e) { syslog (LOG_ERR, "exception: " + e.what()); }
Here is what im trying to do, And it aint working, ive tried using this
string ctos(const char& c){
stringstream s;
s << c;
return s.str();
}
But still lost
Any help would be apreciated Thanks.
| stackexchange/codereview |
I have a number of numerical datasets that I've computed averages, medians, deviations, minima and maxima from, and I'd like to visualize them (on Linux, without X, to an image file).
I've seen gnuplot's functionality for plotting error bars, but I have a couple of problems with them: My datasets are packed rather tigh... | stackexchange/codereview |
I am developing a Ruby on Rails (2.3.9) application on my Windows XP machine with RubyMine 2.0.2. I use HAML/SASS for the views...and want to incorporate jQuery and jQuery UI for some rich content. jQuery IU wants to work with a theme that uses a lot of background images (dropped into Rails /images folder). After I a... | stackexchange/codereview |
I'm writing a networking application that uses ASIO/UDP to send and receive between a single remote/locale endpoint pair. I had used udp::socket::receive to receive data and everything in my code worked logically, but I was losing an enormous number of packets. What I discovered was that any packet received while not b... | stackexchange/codereview |
I have a large dataset and datagrid on my asp.net page. I am going to make it so the user can filter the original dataset. What is the best way? Should I use linq to filter the dataset or continue to use sql or is there a better way using vb.net with asp.net.
| stackexchange/codereview |
I am modifying the "ADO.NET POCO Entity Generator" template to create my own POCO classes. My .tt file for my Model is called Model1.tt. When you expand Model1.tt you will see a file called Model1.cs, which contains some auto-generated "Fixup" code:
public class FixupCollection<T> : ObservableCollection<T>
{
//Auto... | stackexchange/codereview |
I am trying to use jQuery UI progress bar in my web app.
But that is not getting displayed. I am using a DWR call to get the upload status. Before using Jquery UI progressbar, i just displayed the status returned from server as just as it is, to make sure the data coming from server. It was working fine.
The Code
<bod... | stackexchange/codereview |
I have a Flash game I made way back in 2008. It runs super fast these days. Way too fast in fact. I have it set to 60fps in FlashDevelop, but I think that is just limiting the amount of draw calls. I think my logic is executing well past 60 times a second these days. I haven't done ActionScript in a while, but I notice... | stackexchange/codereview |
Though I have read some WCF articles about message contract, but I am not able to comprehend what is the real use of message contract. Can I use MessageContract instead of DataContract or in complement to DataContract?
| stackexchange/codereview |
I have a question I really want answered. I have been playing around with some Objective-C for a few weeks, and I have been reading in the book Cocoa Programming for Mac OS X until Chapter 7.
In chapter 5 and 6, there is a challenge you should do, especially chapter 5 where he write:
This exercise is an important cha... | stackexchange/codereview |
I have the below code which has to do a recursive listing of all the files and directories.
I am not sure if it is working fine.
#!/usr/bin/sh
recur_fun()
{
for i in `ls -ltr | awk '{print $9}'`
do
echo $i;
cd $i;
ls
pwd
recur_fun
cd ..
pwd
done
}
... | stackexchange/codereview |
I'm trying to render text aligned within the center of a box using imagettftext() and a standard Arial Bold font.
I'm developing the code on a Mac and the text aligns in the center of a box just the way I would expect. But then I deploy my code to a proper linux server and it seems the origin the text is render from i... | stackexchange/codereview |
I got a screen that is shown according to what the costumer wants. So it depends on costumers needs.
The problem is, I have to remove 3 FieldSets when I click on "Clean Fields" button. To re-add them later when costumer clicks on "Search" button.
But when I try to remove, it says "Cannot set the FieldSet's form to null... | stackexchange/codereview |
I have a graph (implemented with Vector) of LinkedLists and I want to connect the LinkedLists that do not share any common elements. I think the way I do it right now takes O(n^3). I have a for loop that iterates through the Vector, then a nested for loop inside that iterates through the Vector (so that I can compare e... | stackexchange/codereview |
I am creating a web application using OpenLayers. I have implemented functionality such that a user can add a point or polygon to the map that is displayed using JavaScript. I now need to save this data to a shapefile. Any ideas on how?
| stackexchange/codereview |
I am trying to understand how to "chain" JavaScript events together like jQuery does. I found a question here on S.O. that was similar to my goal, but I do not understand the code in the answer.
Code Source
(function( window, undefined ) {
...etc...
}(window)
What does that mean? What is it doing? It reminds me of Jq... | stackexchange/codereview |
Hey guys, I am trying to use a simple cfimage to resize a tmp image but its not working... am I doing it correctly?
<cfimage action="resize" height="300" source="#form.adminfileupload#" width="300" name="form.adminfileupload">
After it goes through that function I am trying to rename the tmp file. Is this the proper w... | stackexchange/codereview |
This'll probably seem like a stupid question, but I've been Googling for fifteen minutes and can't seem to find what I'm looking for. I to determine if all of the nodes in a particular set return true for a given predicate. For example, if I have a set of integer nodes, I might want to know if all of them are greater... | stackexchange/codereview |
What are the differences between service orchestration and service choreography from an intra-organization point of view.
| stackexchange/codereview |
I ran to this problem hard, it seems impossible to render.
How can one solve this problem? I want the OpenGL render it like it looks at the right side of this image below:
| stackexchange/codereview |
I'd like to create a random list of integers for testing purposes. The distribution of the numbers is not important. The only thing that is counting is time. I know generating random numbers is a time-consuming task, but there must be a better way.
Here's my current solution:
import random
import timeit
# Random lists... | stackexchange/codereview |
I have order table
OrderId OrderStatusId CurrencyId PromotionCode
------------------------------------------------------
137 5 1 123a-123d
138 5 1 123a-123d-234c
I want to split the PromotionCode column like this:
Result:
OrderId OrderStatusId Cu... | stackexchange/codereview |
I'm building a service which will act as an OAuth 2.0 provider. I want to be able to limit the number of simultaneous authorisations that a user has for a specific consumer.
For example, each user of a consumer application should only be able to have, say, three simultaneous authorisations for that consumer, and thus o... | stackexchange/codereview |
What do you think the performance difference would be?
20,000 nodes
Each node has a Link field. The number of values range from 50 to 200. The Links will have no title.
OR
20,000 nodes
Each node will have the links in the body field as straight text with filtered html. As so:
http://link1.com
http://link2.com
http://li... | stackexchange/codereview |
I want to extract some of the time consuming things into a queue. For this I found Gearman to be the most used but don't know if it is the right thing for me.
One of the tasks we want to do is queue sending emails and want to provide the feature to be able to cancel to send the mail for 1 minute. So it should not work ... | stackexchange/codereview |
All,
I have a PHP MVC application with the following structure:
helloworld
- application
- configs
- controllers
- models
- layouts
- include
- library
- public
- .htaccess
- index.php
- design
- css
- style.css
- struct.css
- js
- images
-... | stackexchange/codereview |
Hey guys, Im doing a series of if statements based on a session variable that is set (which looks at a value in the DB and then decides whether to empty the session, or name it. However I'm having problems in that the session is always named, regardless of whether the record in the database is '0' or not. The query wor... | stackexchange/codereview |
i have leaks in this code. The performane tool leaks tell me that this is in this line:
NSArray *fakeData = [[NSArray alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"FakeData" ofType:@"plist"]];
I can't find out what is going on. The plist that i am loading have 3 NSDictionary Elements, so same ... | stackexchange/codereview |
I am coding a HTML table of products. There are lot of columns with lot of jQuery events (change, click, etc) attached to form elements (button, text, select) inside each column. They work perfectly fine.
The last column contains "add" link which makes an AJAX callback to a URL that adds a new row dynamically inside th... | stackexchange/codereview |
If I stick with Ms Jet 4.0 (Ms Access 2000-2002) to develop my desktop database program, do you think my app will become obsolete pretty fast? That is from using old db engine that will not be available in the latest windows OS like Windows 7?
Or Ms Jet 4.0 is still a safe bet?
I'm using D5 and ADO.
Please share your t... | stackexchange/codereview |
I am using Symfony 1.4 with Propel as ORM. I Have created a login system for my frontend page, where user can login and edit there account details.The page is set with Permission ="user" and Group ="user". But on loging in with a user which doesnot belong to this group, redirects to the symfonys default page(showing us... | stackexchange/codereview |
I have an event that takes about 10-30 seconds, namely downloading information from a page (with quite a lot of traffic), modifying it and then saving it somewhere onto the disk using WebClient. Because it takes such a long time, I want to add a progress bar or make an update label (which says something like updating..... | stackexchange/codereview |
Image http://img534.imageshack.us/img534/8542/aaagla.jpg
It is good to give me a example (any language)
| stackexchange/codereview |
I'm rather new to coding but when compiling ( I use putty and SHH ) i receive this error
act.offensive.c:631: warning: incompatible implicit declaration of built-in function âabortâ
act.offensive.c:637: warning: incompatible implicit declaration of built-in function âabortâ
On lines 631 and 637
CREATE (lodged->next, ... | stackexchange/codereview |
I get the date from URL as GMT Format as follows.
Thu, 13 Nov 2010 05:15:01 GMT
I want to display that date as ordinary format.
I used the following code.
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"EEE, dd MMM yyyy HH':'mm':'ss"];
NSDate *date = [dateFormatter date... | stackexchange/codereview |
I have a table with entity-attribute-value structure. As an example, as entities I can have different countries. I can have the following attributes: "located in", "has border with", "capital".
Then I want to find all those countries which are "located in Asia" and "has border with Russia". The straightforward way to d... | stackexchange/codereview |
After searching the Internet and doing some unsuccessful experiences trying to do paste using javascript on the Opera browser, I want to ask:
1) Is there a way I can do paste in javascript that works both on Opera and Firefox/Mozilla?
2) It would be very useful if I could reach more levels of clipboard. I explain: I us... | stackexchange/codereview |
I just installed ASP.NET MVC 3.0 RC and then when i am creating new MVC 3.0 project in VC 2010 I am getting a pop up dialog with the error "Object not set to an instance of an object", anyway project getting created.
Looks like visual studio couldn't find "System.Web.Mvc" assembly.
After the project was created I coul... | stackexchange/codereview |
I am very new to version control, so my questions are very basic. I am trying to use Mercurial for the purpose. I have a local working directory on my mac. I want to use Bitbucket to backup the files and the repository in this directory.
Will the following command:
hg push localDirectoryWithRepo http://bitbucker.org/u... | stackexchange/codereview |
I'm trying to replace all @import strings in one single-string, e.g.
var str = 'buttons .reprint{height:56px;background-position:-47px -1496px;}@import "../common/buttons.css";@import "../screen/screen-1.css";@import "../screen/screen-2.css";@import "../screen/screen-3.css";@import "../screen/screen-5.css";@import "../... | stackexchange/codereview |
I am making a clock widget for the android home screen using AppWidgetProvider.
I have it calling the TImerTask class that updates all my values using this code:
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)
{
Timer timer = new Timer();
timer.scheduleAtFixe... | stackexchange/codereview |
I am writing a script that needs to add DOM elements to the page, at the place where the script is located (widget-like approach).
What is the best way to do this?
Here are the techniques I am considering:
Include an element with an id="Locator" right above the script. Issues:
I don't like the extra markup
If I reuse... | stackexchange/codereview |
I am implementing search page in php.
I need to show the results like the following image
how can i achieve this kind of designing using css. I want it a fluid design using percentages with an addition i.e alternate row color changed.
Also let me know how can i limit a column to have not more than say 50 words. full d... | stackexchange/codereview |
I am using jQuery Autocomplete 1.8. Every time it returns every string that contains the input as a substring. How can I make it return only the strings that contains the input as a prefix?
| stackexchange/codereview |
Can you recommend any ready for use PHP scripts that replace certain strings with their html equivalents?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.