instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Looks like my data model has some problem, so that i get this error from time to time
when expanding items. Does anyone has an idea what this assert means?
2010-10-20 03:04:47.547 test_tree[60332:613] * Assertion failure in -NSOutlineView _expandItemEntry:expandChildren:startLevel:, /SourceCache/AppKit/AppKit-949.54/Ta... | stackexchange/codereview |
I am having difficulties figuring out what is causing wierd characters to appear in my output stream ... full code @pastebin
Fiddler output
notice the "s", "X", "�" before my boundary?
s---------------634227387532666996
Content-Disposition: form-data; name='key'
c06f4d0cdf6f2cc652635a08be34973d
X---------------6342273... | stackexchange/codereview |
I have created a form in a project. The new form is listed in the solution explorer as being in this project.
But the form is not showing up in the intellisense listing when I try to create an object variable in order to show the form.
Is there something else that needs to happen after you add form to a project?
| stackexchange/codereview |
The communication object, ExtendingWCFwithServiceHost.clsMyOwnHost, has overridden the virtual function OnOpening but it does not call version defined in the base class.
I'm getting this error while overriding the OnOpening method of the ServiceHost class.
| stackexchange/codereview |
I have a database filled with employee ID's and corresponding employee names for each employee ID. Is there a way I can search an array for employee ID's from the database? Google is not helping me, I think because I'm not sure how to word my search.
My idea is to have something like, array_search($empID, $currentArray... | stackexchange/codereview |
I added the calendar to my asp.net mvc 2 application from here .
I want to pick the selected date where I am going to enter the event. How can I get selected date?
Also I want to save this date and corresponding event to the database. How to do this also ?
| stackexchange/codereview |
I'm trying to work on a project about page ranking. I want to make an index (dictionary) which looks like this:
file1.html -> [[cat, ate, food, drank, milk], [file2.html, file3.html]]
file2.html -> [[dog, barked, ran, away], [file1.html, file4.html]]
Fetching links is easy - look for anchor tags. My question is - how ... | stackexchange/codereview |
I've got a multiline string like this. Ity has line feeds.
[Site Url="http://medportal.domain.edu" Owner="DOMAIN\user1" SecondaryOwner="DOMAIN\user2" ContentDatabase="WSS_Content_$1" StorageUsedMB="0.8" StorageWarningMB="0" StorageMaxMB="0" /]
[Site Url="http://medportal.domain.edu/sites/ahSC" Owner="DOMAIN\user1" Co... | stackexchange/codereview |
I'm trying to determine how to calculate the difference between successive table cells in jQuery. I have a table that looks like this.
<table id ="tbl">
<tr>
<td>5</td>
<td>12</td>
<td>15</td>
<td>17</td>
</tr>
<tr>
<td>3</td>
<td>6</td>
<td>12</td>
<td>13</td>
</tr>
</table>
I... | stackexchange/codereview |
I have two queries
Dim query1 as String = "Select * from openquery (devbook, 'SELECT start_date FROM bookings WHERE investor = ''00000'' ')"
Dim FlightQuery as String = "Select * from openquery (devbook, 'SELECT price FROM flight_prices WHERE dep_date = start_date ')"
Where it says dep_date = start_date I need to gra... | stackexchange/codereview |
I have the following NSString:
NSString* searchURL = [NSString stringWithFormat:@"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22%@%22)%0A%09%09&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env&callback=",symbol];
NSLog(@"URL IS: %@", sea... | stackexchange/codereview |
how to generate the more general, less general and equivalence relations from wordnet?
wordnet similarity in RitaWordnet gives a number like -1.0, 0.222 or 1.0 but how to arrive at the more general, less general relations between words? which tool would be ideal for that?
please help me
i get java.lang.NullPointerExcep... | stackexchange/codereview |
I have a view where I need to display the content of the 25 fields in 25 lines based on id (for example emp id).which is categorized in the first column But the maximum limit of displaying line is 9 in the view. Is there any way I can display 25 fields in 25 lines.
Any suggestion will be appreciable
Rupesh.
| stackexchange/codereview |
I am new to ROR. I am trying add translations to my application. I have added translations for the controllers.
Where to add translations for models as i am not having any /config/locales -> models folder ->en.yml file .
In the model i am having lines like
validates_presence_of :name, :message => "Name cannot be bl... | stackexchange/codereview |
I am trying to see if I could use XMLUnit to compare the following two different XML.
I used the Diff class to compare the following two XML and checking for similar returns false.
XML One
<Required>
<Question desc="Are you single?">
<Answers>
<Answer value="Yes"/>
<Answer value="No"/>
<... | stackexchange/codereview |
I have a Spring MVC (3) Controller and I trying to put in the annotations but failed Heres my code outline
@Controller
public class SpringController {
@RequestMapping("/welcome")
public String myHandler(@RequestParam("id") String id) {
//My RequestParm is able to do the job of request.getParameter("id... | stackexchange/codereview |
Quick question (I hope!): if I use \i to feed an input file into psql, can I get the output from the queries to be saved into a file? If so, how? Thanks!!
| stackexchange/codereview |
I have a C struct like this:
struct HFSUniStr255 {
UInt16 length;
UniChar unicode[255];
};
I have mapped this in the expected way:
public class HFSUniStr255 extends Structure
{
public UInt16 length; // UInt16 is just an IntegerType with length 2 for convenience.
public /*UniChar*/ char[] unicode = new... | stackexchange/codereview |
SQL 2008 R2, have a simple export to a Flat File Destination. Timestamp columns are set to DT_DBTIMESTAMP in the destination, which according to the docs "The fractional seconds have a maximum scale of 3 digits." However, my exported files have 7 digits of fractional second precision, as defined by DT_DBTIMESTAMP2 in t... | stackexchange/codereview |
I'm at the point in my first real application where I am adding in the user settings. I'm using Java and being very OO (and trying to keep it that way) so here are my ideas:
Load everything in the main() and
pass it all 'down the line' to the
required objects (array)
Same as above, but just pass the
object that contai... | stackexchange/codereview |
I am developing a project that uses the PNG transparent and Opacity but, the area has a surplus in IE7 and IE8 instead of being transparent, it is black, can someone help me?
print of area
Thanks
| stackexchange/codereview |
Can some one describe an algorithm that finds all keys smaller than x in an array implementation of a min-heap.
I want the running time to be at least O(k) where k is the number of keys reported.
I've been scratching my head for a while now with this.
| stackexchange/codereview |
Say you want to schedule recurring tasks, such as:
Send email every wednesday at 10am
Create summary on the first day of every month
And you want to do this for a reasonable number of users in a web app - ie. 100k users each user can decide what they want scheduled when.
And you want to ensure that the scheduled item... | stackexchange/codereview |
C++ ANSI ISO IEC 14882 2003 Annex C.1 (page 668):
Change: The result of a conditional expression, an assignment expression, or a comma expression may bean lvalue
Rationale: C + + is an object-oriented language, placing relatively more emphasis on lvalues. For example, functions may return lvalues.
Effect on original fe... | stackexchange/codereview |
In Visual C++, one may link to a library in the code itself by doing #pragma comment (lib, "libname.lib"). Is something similar possible in g++?
| stackexchange/codereview |
I'm trying to access a svn repo on an OS X (snow leopard) server. The sys admin created a new volume on that machine (volume name is "svn") just for svn repositories.
On the svn volume, I created a directory called "repo". In repo, I created a repository called "test".
I'm trying to access the test repo using tortoise... | stackexchange/codereview |
Chrome (7.0.517.41 beta) (sometimes?) resets a textarea's scroll bar (scrollTop) when you call focus. Does anyone know if this behavior is deliberate, a known bug, or neither?
It seems quite unintuitive; Firefox keeps it the same. A simple example is below:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC... | stackexchange/codereview |
I have a two tier Delphi for Win32 application with a lot of business logic implemented in a god object I want to outsource into a separate service. This separate service should be accessed by multiple clients via TCP/IP telnet-style protocol.
How do I go about making the transition most simple?
Precisely, I'd like to ... | stackexchange/codereview |
EDIT: Don't answer; I've found the solution on my own.
I have some code that does this:
using (var stream = new FileStream(args[1], FileMode.Create))
{
using (var writer = new BinaryWriter(stream))
{
writer.Write(ip.Iso3166CountryCode);
...
}
}
Iso3166CountryCode is a string with two characters ("US").
When I t... | stackexchange/codereview |
I've come across various questions regarding subversion here but nothing specific to what i'm looking for.
I'm going to hire a freelancer to work remotely on my existing projects(extending functionality and code maintenacne for already existing code.
While i'm going to trust him with the code and let him have all the... | stackexchange/codereview |
The following code
#!/usr/bin/perl
use strict;
use warnings;
my $s1 = 'aaa2000@yahoo.com';
my $s2 = 'aaa_2000@yahoo.com';
my $s3 = 'aaa2000';
my $s4 = 'aaa_2000';
no locale;
print "\nNO Locale:\n\n";
if ($s1 gt $s2) {print "$s1 is > $s2\n";}
if ($s1 lt $s2) {print "$s1 is < $s2\n";}
if ($s1 eq $s2) {print "$s1 is... | stackexchange/codereview |
I Im working with a Motorola DEXT with a 1.5 api, and the application launcher icon it's not shown. When I use an emulator with a 1.6 or newer api it works just fine. Is there any additional steps to configure the icon for older apis like the 1.5 I'm working on?
Thank you very much
| stackexchange/codereview |
I am developing a job application. Each job generates an excel file. I will have 50 parallel job. So 50 excel files will be generated parallelly.
I am using C#3.5 and Excel 2003. The problem is I am unable to instantiate more Excel objects. I am getting COMException. So do I need to create excel processing only one at... | stackexchange/codereview |
I have a web application I'm working on, and I'd like to avoid the clutter of if/elseif/else in the view, and of having way too many separate ascx files just for conditional inclusion in a view.
What I want to do is create some sort of simple class that works like so (an example will demonstrate what I'd like to achiev... | stackexchange/codereview |
How can I pass a Object: ArrayList from one Activity to another?
Seems that intent cannot hold custom ones except ArrayList.
As a kind of hack, I use a static member:
staticResultList = new ArrayList<SingleExamResult>(m_examResults);
and Get it in the following Activity by:
m_examResults = DoExam.staticResultList;
It... | stackexchange/codereview |
I have this script, which works great at the moment to navigate
window.uicontrols.createTabBarItem("home", "Tab 1", "icon1.png", {
onSelect: function() {
jQT.goTo("#home", "slide");
}
});
window.uicontrols.createTabBarItem("tab2", "Tab 2", "icon2.png", {
onSelect: function() {
jQT.goTo("#tab2", "slide");... | stackexchange/codereview |
My application is running out of memory. It runs on an MC70.
It happens when I pull a lot of data down from a Web Service. I know I have a lot of data in memory, but I am wondering if there are any tricks of the trade when dealing with this kind of thing.
Here is my scenario, I have a soap service that gets activity ... | stackexchange/codereview |
I have a product, sales_order, and sales_order_product table.
The nature of the products dictate frequent changes to price and weight.
The customers often times save orders for a few days before submitting and paying for them.
Because of this lag and the price/weight fluctuations, we allow them to freeze in the pric... | stackexchange/codereview |
If I draw a round rect shape by code I can use setShadowLayer to get a shadow drawn for the shape. Is there an equivalent when defining shapes in XML?
The following example draws a round rect background to a shape. What would I need to add to get a shadow added to the shape? Is it even possible using XML?
shape_test.xm... | stackexchange/codereview |
We have noticed that MySQL is reporting a very high number of temporary disk tables (over 10,000) this is reported by Server Density. Were trying to understand a bit more about this.
Why are temporary disk tables created by MySQL?
What impact do they have on performance?
Are they ever removed by MySQL or will this nu... | stackexchange/codereview |
I am currently developing a site which requires a print option on the page. When clicked this button fires a script that prints all contents within a <span id='printArea'></span>.
I am using a jQuery plugin called printElement at the moment and it works very well in all browsers that I have tested except Google Chrome.... | stackexchange/codereview |
In sql server management studio, data type- money, when I enter an amount with a decimal it automatically adds on zeros to fill up to the hundredths. How can I determine the amount of spaces after the decimal?
| stackexchange/codereview |
Is it possible to save images as string, and then I load it up to Image?
| stackexchange/codereview |
I opened a Word Doc,which had tables in it, use VBA from access. I want to add a new line and write something in that line. I worte some code but that code worked only in debug mode. As soon as i clear all break point and let the programm run, i will have a problem. It seems that word will only write data into the fir... | stackexchange/codereview |
This is my assignment about setter and getter and it is not working for some reason.
Could anyone check what the problem is for me?
Thank you.
public class FlightTest
{
public static void main (String [] args)
{
String name;
String number;
String Orig;
String Desti;
Sca... | stackexchange/codereview |
I have 3 files Head.cpp , Head.h and Hello.cpp . I am trying to build a make for the compilation process. My makefile is make.w
Hello : Head.o Hello.o
g++ -o Head.o Hello.o
Head.o : Head.cpp
g++ -o Head.cpp
Hello.o: Hello.cpp
g++ -o Hello.cpp
every time I type the command make make.... | stackexchange/codereview |
I'm trying to do some "complex" math where I need to call upon some of JavaScript's Math properties to solve the quadratic equation. Does the following method work?
root = Math.pow(inputb,2) - 4 * inputa * inputc;
root1 = (-inputb + Math.sqrt(root))/2*inputa;
root2 = (-inputb - Math.sqrt(root))/2*inputa;
... | stackexchange/codereview |
I am willing to get the ZIP code of a location by providing only the City name or State name
in google map using JavaScript.
Is it possible to get the ZIP Code only?
Please let me know.
Thanks....
| stackexchange/codereview |
I have an existing Spring application which I wish to also allow users to register / sign in through facebook.
The facebook sign-in is working fine, and is currently executed from the client using the Actionscript-Facebook API ( which is essentially a wrapper for the Facebook JS API).
However I'm unsure as to what is a... | stackexchange/codereview |
I have done A LOT of looking around on the internet and just cannot find the answer to this question. I lost my private key, and so I have rejected and re-assigned new certificate/key combo, but am having issues submitting app updates to apps signed with the old key with my new key.
Is it possible to update an existing... | stackexchange/codereview |
I have a Django application. I have .json fixture files containing test data, with unit tests that use the data to confirm the application is working properly. I also use South to migrate my database.
After doing a few database migrations, my fixtures are out of date, because the database has migrated, adding a new... | stackexchange/codereview |
I'm not sure if im delluded but what I would like to do is create a method that will return the results of a query, so that i can reuse the connection code. As i understand it, a query returns an object but how do i pass that object back? I want to send the query into the method as a string argument, and have it return... | stackexchange/codereview |
Possible Duplicate:
Difference between i++ and ++i in a loop?
Is there a difference between i++ and ++i ?
| stackexchange/codereview |
We are configuring SQL Server Reporting Services on an existing installation of TFS 2010 RTM.
After configuring the Warehouse, Analysis Services and Reports tab in the TFS Administration Console, I get the following error: "Failed to add BUILTIN\Administrators account to the TfsWarehouseDataReader role on the Tfs_Wareh... | stackexchange/codereview |
I'm running PHP 5.3.0, Apache 2.2.11 on Windows 7 and I tried to run this:
setlocale(LC_ALL, 'sv_SE.UTF-8');
print_r(localeconv());
And got this:
Array
(
[decimal_point] => .
[thousands_sep] =>
[int_curr_symbol] =>
[currency_symbol] =>
[mon_decimal_point] =>
[mon_thousands_sep] =>
[pos... | stackexchange/codereview |
I'm trying to remove specific characters from a string using Python. This is the code I'm using right now. Unfortunately, it appears to do nothing to the string.
for char in line:
if char in " ?.!/;:":
line.replace(char,'')
How do I do this properly?
See Why doesn't calling a string method (such as .repla... | stackexchange/codereview |
In my XSD, I want to be able to specify that the order of the elements doesn't matter. This is what I have:
<xs:element name="ADT_A08_231_GLO_DEF">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="EVN_EventTypeSegment" type="xs:string" />
<xs:element minOccurs="1" maxOccurs... | stackexchange/codereview |
I'm porting some compact framework code that consumes a RESTful service to Windows Phone 7. The REST service requires md5 hashing and method signatures.
This code (which worked on NETCF) no longer compiles and I don't see anything MD5 related in the object browser.
MD5CryptoServiceProvider md5 = new MD5CryptoServicePro... | stackexchange/codereview |
I would like to create a web page which would allow multiple users to work together on a page, Imagine a web based editor that allowed to users to change the documents as an example of this type of feature.
How would more experienced programmers go about implementing this as i really cant seem to formulate any way to e... | stackexchange/codereview |
I'm using maven to build a multimodule project.
In one project I execute maven-war-plugin four times in order to filter some properties in every execution. As a stand alone project it works well.
But when I build the multimodule, from the "parent" it executes four times, but none of them filter the properties.
Thank y... | stackexchange/codereview |
I am creating a webpage with PHP/MySQL, and each page is in its own .php file.
How should I organize the addressbar, when changing the viewing page?
I have thought of two different ways to solve this:
1) www.mywebpage.com/?page=REFERENCES+pageid=GUID_TO_USE_FOR_DB_LOOKUP
2) www.mywebpage.com/references.php?GUID_TO_USE... | stackexchange/codereview |
I am trying to parse a json value to a decimal with no success. I am using the following framework
http://code.google.com/p/json-framework/
and my code is as follows
NSDecimal RRP = [[jProduct objectForKey:@"Price"] decimalValue];
NSLog(@"%@", RRP);
I get
Program received signal: “EXC_BAD_ACCESS”.
Just to test I thou... | stackexchange/codereview |
I've tried passing in the Facebook object which I named facebook as an argument into classes that rely on it. However, is there a way to use it in a sort of global way so that way I don't have to keep on passing it around between objects?
| stackexchange/codereview |
I have the following code, which doesn't compile:
int *p = new(nothrow) int;
delete (nothrow) p; //Error
The error I get is:
error C2440: 'delete' : cannot convert from 'const std::nothrow_t' to 'void*'
Does a nothrow version of delete exist? If so, how can I invoke it?
In C++: The Complete Reference, it's given t... | stackexchange/codereview |
I'm making an http GET request. It works in about 70% of my attempts. For some reason, I sometimes get no response string from a successful connection. I just setup a button in my app which keeps firing the code below. One call might fail to reply with a string, the next call works fine:
private onButtonClick() {
t... | stackexchange/codereview |
I tried set the executionTimeout in web.config for an asp.net mvc application.
<location path="Home/Index">
<system.web>
<httpRuntime executionTimeout="5"/>
</system.web>
</location>
any used the Thread.Sleep in Index action
public ActionResult Index()
{
Thread.Sleep(30000);
return... | stackexchange/codereview |
i am trying to create a GUI only use native windows api.
i create projects in vs 2008 using win32 console project and win32 window project, and i used the sample code from Microsoft as below
#include <windows.h>
// Global variable
HINSTANCE hinst;
// Function prototypes.
int WINAPI WinMain(HINSTANCE, HI... | stackexchange/codereview |
I need to produce a PDF document in which I need some "chapters" (along with its sections and subsections) to be non-numbered but still included in the ToC.
This is for my master thesis. I'm using the book document class, because I don't like memoir defaults.
If I use \chapter*, then LaTeX remove the chapter from the T... | stackexchange/codereview |
i am using a table view and adding small images(cross arrow an accept arrow images) to right side of each cell based on if the option is correct or not....
....Now my table reloaded many times....due to which the images are repeated on every single cell....
i mean if cell_1 has that accept image..after table reload if ... | stackexchange/codereview |
I've finally gotten capistrano to work on my website, however, I cannot seem to get the restart part of the application to work. What I want todo is setup capistrano to restart the mongrel cluster that is running the rails app after a deploy has gone through. Since I used passenger to install everything, I have no clue... | stackexchange/codereview |
I am trying to make a predicate in order to validate if a given input represents a formula.
I am allowed to use only to propositional atoms like p, q, r, s, t, etc.
The formulas which I have to test are the following:
neg(X) - represents the negation of X
and(X, Y) - represents X and Y
or(X, Y) - represents X or Y ... | stackexchange/codereview |
When calling a delegate you always have to check if it is not null. This is an often cause for errors.
Since delegates are more or less just a list of functions, I would assume, that this could have been easily checked by the delegate itself.
Does anybody know, why it has been implemented as it is?
| stackexchange/codereview |
I have a LAMP setup running PHP 5.2.6-1 with the Suhosin Patch (0.9.6.2) and Zend (2.2.0) with APC enabled for use with a file upload script using an ajax cal to get the status and generate a progress bar.
Everything appears to be working, the file uploads perfectly and is displayed correctly on the website or if you d... | stackexchange/codereview |
I am integrating the UPS, USPS, DHL and FEDEX with my Rails application.
For that I am using 'trackify' plugin to find the carrier type for given Tracking Number and for also finding the XML response from the respective tracking site.
I want a complete guide for each of the above about how to integrate tracking API's?... | stackexchange/codereview |
This doesn't seem to work:
func = "getProductListings";
params = "{'user_id':1234,'short':true}";
window.opener[func](params);
can someone check my code please?
| stackexchange/codereview |
I'm starting the development of a web app with offline database storage requirements. Long story short, the app should be able to run on:
One of the major desktop browsers, Chrome preferred
Safari on iOS
Android's native browser (based on V8 and WebKit)
So the question is which technology to choose: IndexedDB or Web ... | stackexchange/codereview |
My this code is dumping core :
int main(int argc,char *argv[])
{
char *p = "onnm";
printf("%c\n",++*(p++));
return 0;
}
What might be the reason in printf line ?
| stackexchange/codereview |
I need to force the host in one of the environments in my rails app.
I've can get the override to work by including
def default_url_options(opts={})
opts.merge({:host => 'stg.my-host.com'})
end
in app/controllers/application.rb
But is there a way to set this on initialize, preferably in a config/environments/..... | stackexchange/codereview |
I want to build a poker hand history analyzer that will work on both windows and osx for the desktop.
The user needs to be able to select a set of text files that are parsed into a database on their local machine.
Then the data in the database is displayed with various filter options, info tables and graphs.
What are m... | stackexchange/codereview |
Lets suppose I am trying to analyze an algorithm and all I can do is run it with different inputs. I can construct a set of points (x,y) as (sample size, run time).
I would like to dynamically categorize the algorithm into a complexity class (linear, quadratic, exponential, logarithmic, etc..)
Ideally I could give an... | stackexchange/codereview |
I don't know exactly how to word a search for this.. so I haven't had any luck finding anything.. :S
I need to implement a time delay in C.
for example I want to do some stuff, then wait say 1 minute, then continue on doing stuff.
Did that make sense? Can anyone help me out?
| stackexchange/codereview |
I've embedded the LuaInterface project into an application written in C# using .NET Framework 4.0. After compiling LuaInterface and Lua 5.1 I've referenced them in my application and created a Lua VM and exposed a few .NET classes. When the Lua VM doesn't make many calls, performance is not affected at all; but when it... | stackexchange/codereview |
I have a term project coming up in grad school for a simple 3D image render (an intro to graphics class) and I was wondering if there are any opinions out there one which free 3D environment might be the best to use? I know this is a subjective question, but I want to hear people's opinions.
Some of the ones recomme... | stackexchange/codereview |
Help me run a series of .bat script
they are located like so:
p:\Co-Brand\export.bat
p:\Generic\export.bat
p:\Tri-Brand\export.bat
Thanks in advance,
Best regards,
Joe
| stackexchange/codereview |
i'm trying to get an entire WebPage through a URLConnection.
What's the most efficient way to do this?
I'm doing this already:
URL url = new URL("http://www.google.com/");
URLConnection connection;
connection = url.openConnection();
InputStream in = connection.getInputStream();
BufferedReader bf = new BufferedR... | stackexchange/codereview |
I'm trying to advance an Applescript to set Finder window views - recursively - as many levels deep as there may be in any given folder. I can achieve the desired results but only in one window/folder; despite hours of searching and experimenting I'm still unable to wrap my noob head around Applescript's seemingly simp... | stackexchange/codereview |
I have a client that uses Google Base with their eCommerce store. They want to redirect all of their specific product links (i.e. white-large-shirt.htm, red-medium-shirt.htm) to the configurable url (i.e. shirt.htm).
This is so the customer when clicking on the white-large-shirt link in Google Base can be redirected t... | stackexchange/codereview |
is there a version of css3 code below that will work in all browers?
table tr:nth-child(odd) { background-color: #ccc; }
| stackexchange/codereview |
I have several CSS files listed in my base.html, and while one of them is loaded, everything else isn't, nor the javascript or images.
The following is a portion of base.html:
<html>
<head>
<link href="/media/css/base.css" rel="stylesheet" type="text/css"/>
<link href="/media/css/home.css" rel="styleshe... | stackexchange/codereview |
I have a project that I have been coding on OS X that I am now trying to get building on Windows. I have set up MinGW, created a makefile, and after a good deal of finagling everything compiles, however when it gets to the linker step a great number of errors occur along the lines of:
SourceFile.cpp:(.text+0x1809): und... | stackexchange/codereview |
I am putting information from a folder into a datatable. I'm putting the info into the datatable using the following code line:
dtUpgradeFileInfo.Rows.Add(nums[0],nums[1],nums[2],test1);
It appears to be working but I'm not as familiar with datatables in C# as I am in VB. How would i search the datatable where the firs... | stackexchange/codereview |
I have this extension method.
public static IQueryable<T> SearchBy<T>(this IQueryable<T> source, SearchCriteria criteria)
{
//throw an error if the source is null
if (source == null)
{
throw new ArgumentNullException("source");
}
ParameterExpression param... | stackexchange/codereview |
is there any extension in php using which we load a browser instance like we do in desktop application cations.
| stackexchange/codereview |
I recently installed R-2.12.0 from R-2.11.1 and I've updated all CRAN packages via:
update.packages(checkBuilt=TRUE, ask=FALSE)
Now I want to update all the packages I have installed from R-forge, but only if they're not available on CRAN. In other words, I cannot simply run:
update.packages(checkBuilt=TRUE, ask=FALS... | stackexchange/codereview |
std::auto_ptr lacks const copy constructor, therefore I cannot use it directly in collections. is there some way to have for example vector of std::auto_ptr without using boost pointer collection template?
| stackexchange/codereview |
I tried do do this:
Ogre::Vector3 src = bone1->_getDerivedOrientation() * Ogre::Vector3::UNIT_X;
Ogre::Quaternion quatt = src.getRotationTo(bone2->_getDerivedOrientation() * Ogre::Vector3::UNIT_X);
bone1->rotate(quatt);
src = bone1->_getDerivedOrientation() * Ogre::Vector3::UNIT_Y;
quatt = src.getRotationTo(b... | stackexchange/codereview |
Subversion works great when we have access to central repository, but sometimes two or more developers work at client where they do not have connection to central repository. I am looking for DVCS that can help us where off-line.
It should:
cooperate with Subversion repository so developers can checkout before leave, ... | stackexchange/codereview |
I have a dropdownlist and a gridview with a drop down list in every row. I have removed other cols in Grid for simplicity.
Whenever a new value in the dropdownlist is selected I would like to set all of the dropdownlists in the gridview to that same value via javascript. (Yea both the dropdownlist outside the gird and... | stackexchange/codereview |
I am able to correctly display the standard ASCII symbols (up to 127) like "heart", "note" you know what I mean. I would like to also display ones that I can use for drawing walls (like U0205) but it does not work..well, it works but it looks like "?". Any way how I can display them? Thank you.
| stackexchange/codereview |
Greetings Overflowers,
What is wrong with this PHP code:
<?php
define("DB_FILE", "sqlite:database.sql");
define("QUERY", "INSERT INTO Log VALUES (123)");
define("TIME_OUT", "60000");
function track() {
$db = new PDO(DB_FILE);
$db->exec(QUERY);
echo "OK!";
}
register_shutdown_function("track");
// sleep(TIME_OUT)... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.