instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
When I upload a photo to my Rails application using PaperClip how can I know the dimensions (width & Height) of it?
| stackexchange/codereview |
I'm using WAMP Server in a local PC.
I'm trying to export a big database using MySQL console but its just not working. I always get a syntax error 1064
The queries I tried:
mysqldump -u USER -p DATABASE > backup.sql;
mysqldump -u USER -pPASSWORD DATABASE > backup.sql;
(of course I'm replacing USER, PASSWORD and DATABA... | stackexchange/codereview |
i have a asp.net tree view control and its being data bound to XML returned from the DB.
once bound and the nodes are present in the control how can i remove/ hide the root node?
thanks!
| stackexchange/codereview |
I have added button to datagrid view but when ever the function is called more than once then new button adds I need to stop this addition
void AddtoGrid()
{
try
{
table = new DataTable();
bcol = new DataGridViewButtonColumn();
bcol.HeaderText = ... | stackexchange/codereview |
Is it possible to set the minimum date attribute of multiple jQuery date pickers when either one has a date selected.
For instance; if I have 5 date pickers, the minimum date should (for each) be at least 1 day after the day of the previous one.
| stackexchange/codereview |
So I've finally gotten back to my main task - porting a rather large C++ project from Windows to the Mac.
Straight away I've been hit by the problem where wchar_t is 16-bits on Windows but 32-bits on the Mac. This is a problem because all of the strings are represented by wchar_t and there will be string data going bac... | stackexchange/codereview |
In my application's root App_LocalResources I've created several resource files (.resx) to localize my application for multiple languages.
For Spanish, I copied over the default resource files and added .es before the .resx so that the full name is myresource.es.resx. When I change the UI culture, the language change w... | stackexchange/codereview |
I've been programming a lot in standard C for about a two years now. I do not regard myself as an experienced programmer but I can work my way around the basic stuff. Since earlier this year I also started programming in C# to try and expand my programming knowledge but I came to a dilemma.
I plan to do a lot of progr... | stackexchange/codereview |
It crashes, saying:
/usr/lib64/gio/modules/libgiolibproxy.so: undefined symbol: g_proxy_resolver_get_type
My java is:
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.2) (suse-0.1-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
Eclipse ini:
JVM terminated. Exit code=127
/usr/bin/java
-Do... | stackexchange/codereview |
Is every app that allows users to input data built with core data?
I've built a "grocery list" type of table view app where you name the list and then in a detail view add items to the list. Simple.
What I don't get is this, based on an iphone development book the example saves the data to a plist using dictionaries.
... | stackexchange/codereview |
I am writing a Latex document using the scrbook package.
\documentclass[12pt,a4paper,oneside]{scrbook}
\pagestyle{plain}
The page number always appears centered in the footer. How can I make it align on the right?
I've tried several times to find it in the documentation but to be honest, I don't fully understand it an... | stackexchange/codereview |
I have an XSLT file so as to transform large amount of data. I would like to add a "split" functionality, either as a chained XSLT or within the current XSLT that can create multiple output files so as to limit the size of the files under a certain threshold.
Let's assume that the input XML is as below:
<People>
<Perso... | stackexchange/codereview |
Please help me set up proper indentation in Emacs haskell-mode
When I'm trying to type down something like ADT or a record, I'm getting on the wrong column after pressing <ENTER>, and pressing <TAB> won't switch to the right one until I enter either | or ';'!
data MyADT = Oh
| Hi
| Hello
... | stackexchange/codereview |
I am looking into developing an App that will convert a website into more readable data for an android app. I am at university and have an online notice board which can be viewed on the web but if possible I would like to transfer this into an app on android to make it more easy to read on mobile devices.
What I thinki... | stackexchange/codereview |
I m doing a research project on "Object detection using my a digital camera".
Some suggestion on how to build and program the Matlab code.
In particular, I have a picture of one object, say a screen of my laptop. Than I rotate the laptop and I shot a new picture. I would like to know the difference on the position of ... | stackexchange/codereview |
I need the fastest way to get the first day of the week. For example: today is the 11th of November, and a Thursday; and I want the first day of this week, which is the 8th of November, and a Monday. I need the fastest method for MongoDB map function, any ideas?
| stackexchange/codereview |
I have some questions on the subject, of commas compared to space, in delimiting parameters.
They are questions that C programmers familiar with the cmd prompt, may be able to throw some light on..
I know that when doing
c:\>program a b c
there are 4 parameters [0]=program [1]=a [2]=b [3]=c
According to hh ntcmds.ch... | stackexchange/codereview |
I'm using the Concurrency Runtime with Visual C++ 2010, and am interested in the capabilities of parallel_invoke and task_group (parts of the PPL or Parallel Patterns Library). I'd like to be able to start two parallel actions via function objects (rather than lambda functions or function pointers), but I can't get the... | stackexchange/codereview |
I'm trying to compile only for 32bit and 64bit. No matter what I choose in Xcode, I can either compile for 64bit or for 32bit, 64bit and ppc. I don't want ppc at all. Anyone has any idea how to compile for 32 & 64bit only?
Thanks!
| stackexchange/codereview |
I've had experience writing a cocoa touch app as a universal app (for ipad, iphone) and it wasn't too hard. I only needed to use different .xib for each device but atleast it was the same binary.
Is it possible to have a universal opengl es app as well? Is it difficult given I have to have the resolution different for ... | stackexchange/codereview |
I am working on a project where I need to rotate and image to the users' liking then allow them to zoom a bit in and out.
Using jquery.rotate.1-1.js in IE everything works perfectly (how rare) as MS wrote their own rotation tool (progid:DXImageTransform) so the img is rotated and then kept as an image. However looking ... | stackexchange/codereview |
In my Dashcode mobile app I have a listView that is bound to a datasource. By default it shows everything in the datasource. If I add a search field the user may limit the list to just the records that match their search text.
I want to create my own preset searches attached to buttons that would be able to load a list... | stackexchange/codereview |
Trying to make a simple application in rails 3.
If I create a team model with rails g scaffold team name:string && rake db:migrate, then run rake, I get success from the prebuilt tests.
If I simply add validates_uniqueness_of :name to the team model. The functional tests fail with
1) Failure:
test_should_create_tea... | stackexchange/codereview |
ok thing is like this, I got 2 divs, one is my navigation,
the other got the same number of li tags with almost same id's as my navigation, those li tags contains a graphic that suppose to slide when hover the nav.
Let me explain...
this is my nav
<ul id="navInside">
<li><a id="nInicio" href="index.php" >Inicio</a></... | stackexchange/codereview |
Why does codigoUnificacion variable is always null?
public int? GetCodigoUnificacionFamiliar(IList<Pariente> parientes)
{
List<string> cedulas = new List<string>();
parientes.ToList().ForEach(p => cedulas.Add(p.Cedula));
int? codigoUnificacion = Session
.Cre... | stackexchange/codereview |
I did my best to solve the following two simple queries but for each 10 rows result set it scans the full table or at least 10K rows. Currently there are 20000 rows in books table.
ALTER TABLE books ADD INDEX search_INX (`book_status`, `is_reviewed`,`has_image`,`published_date`)
mysql> EXPLAIN SELECT book_id FROM book... | stackexchange/codereview |
Does anyone know of any work (academic or otherwise) that thoroughly compares the ability of software complexity metrics to predict the existence of bugs?
| stackexchange/codereview |
I have an existing website running in wordpress, and uses a custom headway theme. I want to make it compatible with BlackBerry.
What is the process of making it compatible with a BlackBerry?
Do I need separate css, or a separate site dedicated just for mobile?
How do I emulate a BlackBerry and debug my css or design?... | stackexchange/codereview |
Im trying to write a simple sample program which checks for any new mail on an Exchange 2010 server. As far as I can tell, the code I've got should work fine.
I setup the service as follows:
ExchangeService service = new ExchangeService();
service.Credentials = new WebCredentials("user@domain.co.uk", "password");
ser... | stackexchange/codereview |
I'm working on a quick page intended for mobile browsers. While there is little consistency between browsers on cell phones (the target audience), I have a phone number that I would like to be as easy as possible to dial from the users phone. A link seems the obvious choice; so I set up the following:
<a href="tel:+1... | stackexchange/codereview |
I'm trying to set the local in JSP.
I thought I'd be able to do something like:
<fmt:setLocale value="${param['local']}" scope="session"/>
Java's own page on the topic seem to say exactly so much.
However, when I go to execute this, I get:
HTTP Status 500 -
type Exception report
message
description The server encou... | stackexchange/codereview |
I've seen impl used as namespaces and as a class suffix in a number of different .net and Java libraries. I just want to know what it means and why it is used.
| stackexchange/codereview |
I am constantly in search of better and faster java tools to prototype webapps. I generally start with a good data model on the backend, and work towards the screens. What are some good tools that I might not know about that can be used to quickly generate functioning CRUD screens.
| stackexchange/codereview |
In Javascript how would I create a Custom Object that has a property this is another Custom Object.
For Example.
function Product() {
this.prop1 = 1;
this.prop2 = 2;
}
function Work(values) {
this.front = values.front || "default";
this.back = values.back || "default";
this.product = Product;
}
... | stackexchange/codereview |
I am supporting an application that has some DWR components. Whenever there is a server error i get a javascript alert that simply says 'error'.
Does anyone know where this might be configured and if there is a way to disable this. Id rather it silently fail at whatever then do this very distracting message.
| stackexchange/codereview |
Is it possible to sort by A the position and then B these products alphabetically shown.
I have new products and sale products coming into a category and they show all the new ones first then all the sale ones.
But I need to sort this by name.
| stackexchange/codereview |
I'm converting a set of XML documents from one format, which doesn't include namespace prefixes, to another, which does.
Everything is relatively straightforward, but it's a bit repetitive in the XMLNS output. Below is an example.
(Very Simple) Input XML
<?xml version="1.0"?>
<a/>
XSLT
<!-- xmlns="http://www.w3.org/19... | stackexchange/codereview |
Google published new methods for website optimizing. It's called "mod_pagespeed".
I have an Apache server and I do not understand what I should do to install the new feature of Google.
How can I set it up?
| stackexchange/codereview |
I want to get some URLs of images in Js/HTML:
var a = "http://sub.domain.com/uploads/files/11-11-2011/345301-574-1182-393/2202.jpg";
var b = "http://sub.domain.com/uploads/files/23-11-2011/234552-574-2321-232/asd.png";
Looking for solution that will detect image url. So the output will be:
http://sub.domain.com/upload... | stackexchange/codereview |
I have an accordion constructed similar to the demo here:
http://jqueryui.com/demos/accordion/
If you browse the above with IE you will see that the content load first before the accordion kicks in to structure content into the accordion nicely.
My question is whether it is possible to get the accordion loaded first an... | stackexchange/codereview |
Does anybody know of an open source numerical C library that provides the logsumexp-function?
The logsumexp(a) function computes the sum of exponentials log(e^{a_1}+...e^{a_n}) of the components of the array a, avoiding numerical overflow.
| stackexchange/codereview |
I am new to C#, I need to send HTTP GET request and read answer. I am familiar with Java and easy can do it URLConnection class but I don't know in c#. Can anybody help ?
| stackexchange/codereview |
A heap of our unit tests are failing under Mono on OS X with the following error:
System.TypeLoadException : Could not load type 'System.Func``2' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
On of the unit tests in question:
[Test]
public void CanAuthenticateValidUser()
{... | stackexchange/codereview |
My app has a form which is completed and submitted by the user to submit an entry to the database.
I have 3 forms.ModelChoiceFields based off models.ForeignKey.
I am setting them to intial values through my view, and 2 of them work as intended.
However, the 3rd dropdown uses a 2 word meta definition as the display, fir... | stackexchange/codereview |
application is e-book reader, we are using svg format to render the pages ,the prob is while rendering the pages in ipad, images are getting rendered but they are taking time to get render,can any one please tell me to solve this issue ?
thank in advance..
prasad
cvvprasad.dingari@gmail.com
| stackexchange/codereview |
On clicking a link, I show a qTip which gets its content from an ajax request. The content contains a close button. So I add this to my config...
hide: {
when: {
target: $('#closeBtn'),
event: 'click'
}
}
However, it doesn't actually hide the qTip. I suspect it is because... | stackexchange/codereview |
i am thinking whether the avaudio player is working for audio url content playing........
i am using streamer to play this one but i am showing audioslider to show playing...
to move slider i want to get the time completed playing by streamer.....
any help appreciated...
| stackexchange/codereview |
I'm trying to build a ranking system in a mysql database.
I've found several tutorials on ranking and items here on StackOverflow about ranking individual rows against each other.
However, my issue is that I need to group rows by a user id column, add up the values to a second column grouped by user id, then rank the... | stackexchange/codereview |
I need to parse JSON object through Qt. What is the easiest/fastest way to do it?
| stackexchange/codereview |
I'm using Django 1.2's new ManyToMany admin.TabularInline to display related objects in the admin app, and it works great except I can't figure out what to set the "ordering" property to so it can sort by one of the cross-referenced field names.
For instance:
class Foo(models.Model):
name = models.CharField(max_len... | stackexchange/codereview |
When building a Silverlight 4 application is it possible to get a directory listing from an in browser application?
It seems the SaveFileDialog does not have the capability to set the file name of the file being saved, so I thought that I could create my own user control, however it seems that is not possible as I can'... | stackexchange/codereview |
i am using winforms, c#, visual studio 2008
the format on the datetimepicker is set to short which means that it will just display the date like this 1/1/2001
however, i am unable to just get that and NOT the time,
for example this:
MessageBox.Show(dateTimePicker1.Value.Date.ToString());
gives me this:
11/4/2010 12:00... | stackexchange/codereview |
I have a viewcontroller with a nib - which has a tableview, searchbar and searchdisplaycontroller inside.
The searchdisplaycontroller's contentscontroller, results delegate, delegate and results datasource is wired to the viewcontroller in IB. The searchbar's delegate is wired to the view controller in IB. The main t... | stackexchange/codereview |
In my Mac application, I define a rectangular texture based on YUV 4:2:2 data from an attached camera. Using standard vertex and texture coordinates, I can draw this to a rectangular area on the screen without any problems.
However, I would like to use a GLSL fragment shader to process these image frames on the GPU, a... | stackexchange/codereview |
For example, in admin cp, to delete user, there is a link - http://example.com/acp/delete-user.php?id=102 . When link is opened, system automatically deletes that user from database.
Imagine, that someone sent me a link (like that) and I accidentally open it. It means, that I delete that user without knowing it. =( How... | stackexchange/codereview |
I'm trying to A/B test our product drop view. below is the javascript code I'm using:
var url = window.location.href,
defaultType = 'Gallery',
otherType = 'List';
if(Cookie.read('SEARCHVIEW') == otherType && Cookie.read('viewTypeChanged') != otherType){
if(url.contains('v='+otherType)){
... | stackexchange/codereview |
I have a pdf which I need to programatically stamp with a username and email address before distribution.
Also I have been sent a pdf in the past which has required me to give a username and password to get it to open.
Are there any libraries that can do this ?
I'm using CentOs with PHP for the server.
| stackexchange/codereview |
Possible Duplicate:
How do I tokenize a string in C++?
pseudocode:
Attributes[] = Split line(' ')
How?
I have been doing this:
char *pch;
pch = strtok(line," ");
while(pch!=NULL)
{
fputs ( pch, stdout );
}
and getting a non-written, stuck, exit file. It's something wrong with this?
Well, th... | stackexchange/codereview |
I need to create a dropdown menu, or combobox, for a Windows Forms application which contains a small image and then a string of text next to it. Basically, you can think of each 'row' in the dropdown as needing to have an icon and then the name of the icon to the right of the icon. I am having trouble doing this -- ... | stackexchange/codereview |
Is there a convention for naming tables when using Doctrine ORM? I like to name tables with the plural but if there's a convention I want to stick to it.
So the table 'users' would be related to tables using the fk as the singular ('user_id').
Is there a best practice for this (using singular or plural table names) and... | stackexchange/codereview |
i writing my menu plugin helper (similar to cakemenu)
and i want to you js and css related to my plugin
with in scripts_for_layout
how to add them to plugin helper method?
class AdminmenuHelper extends AppHelper {
var $helpers = array('Html', 'Javascript');
function show() {
$output = '
<ul>
<li><a href="/user... | stackexchange/codereview |
So in my code I used the setAlternateColor: method on my UISwitch to change the color to orange but my app got rejected because of this.
So I decided to use photoshop to create a custom UISwitch. Now that I have the image how am I supposed to get the UISwitch to use my custom .png?
| stackexchange/codereview |
I have a simple list activity, for each list item I have onTouchEventListener class defined.
The problem is onFling event never occures, instead of it following sequence of events:
onDown, onShowPress, onLongPress. When I do the same but assign onTouchEventListener to the ListView instance then onFling happens as well ... | stackexchange/codereview |
How do I create a list and only extract or search out the even numbers in that list?
Create a function even_only(l) that takes a list of integers as its only argument. The
function will return a new list containing all (and only) the elements of l which are evenly divisible by 2. The original list l shall remain uncha... | stackexchange/codereview |
I'm developing an Android application for Android 2.1.
I'm trying to code OpenGL's stuff with C++ only.
Do you know a tutorial or an article showing an example about how to do that?
UPDATE:
Sorry, I've forget to say that I will use a Java home application to launch main activity.
I'm trying to say if I have to code on ... | stackexchange/codereview |
Somehow this isn't yielded by a google search.
I'm scripting a server in node.js. I start the server by executing its script with the node program:
node myserver.js
But the server staying up is dependent on my ssh session. How can I make this (and all such processes) persistent? Init.d?
| stackexchange/codereview |
I tried impletmenting about 30 tutorials today and just cant get anything to work.
My problem is that i load my information via a JSON file, add the data to a NSMutableArray, then use a table to display it all. It works fine when i dont have the images, but when i do its loads very slow and scrolls very sticky. I sorta... | stackexchange/codereview |
I have a json object full of ips like
var ips = {}
I then add ip objects to this object like so
ips[ipID] = {}
I then need to add dynamic/variable name value pairs to each ip so I am using code like this
var name; var value; var temp = {};
tmp[name] = value
My question is, how can I add these name value pairs/ tmp t... | stackexchange/codereview |
I know that I can "subclass" an NSMutableArray using "category extensions," i.e. @interface NSMutableArray (MyExtension), to add new functions to the class. However, is there a way using category extensions to also add new properties to the extension?
| stackexchange/codereview |
I would like to create a sandbox area on my hosting provider that only the client can see. For example the production website would be at www.domain.com. However, would it be possible to create a sandbox version of the website at www.domain.com/sandbox and only provide access to the client?
If so, what is the best meth... | stackexchange/codereview |
I am working with a PL/SQL developer on a project. The other developer is writing the stored procedures I need to call.
One of the stored procedures needs to return everything about a product:
name, price, description, color,
weight, manufacturer, etc - ( 15
pieces of info in total )
I assumed that the stored pr... | stackexchange/codereview |
I'm uploading a rails site to bluehost, a site that works on my local machine. I'm having trouble configuring it to run on bluehost, though. Here's the error I'm getting:
[warn] [client 74.220.197.129] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[error] [client 74.220.197.129] Pr... | stackexchange/codereview |
I'm trying
conn = MySQLdb.connect (host = "localhost",
user = "username",
passwd = "password",
db = "my_db")
cursor = conn.cursor ()
q = """IF NOT EXISTS CREATE TABLE %s (
course VARCHAR(15),
student VARCHAR(15),
... | stackexchange/codereview |
So I'm pretty new to Objective-C and kind of just learning as I go here. So I have a method that passes on its sender when called to another method. So when called internally I can call it like this:
[self insertNewDBInfoConnection:sender];
Here's where I hit a bump in the road. this insertNewDBInfoConnection: is only... | stackexchange/codereview |
I have a self referential category table as you see:
I want to parse this table to find out tree level for each category. for example if root node level is 0 then CPU and Hard Drive and VGA and RAM are in level 1 and so on. how can I handle that?
I created a dictionary to put each category ID and its Level:
Dictionar... | stackexchange/codereview |
I've got a very basic and common scenario I'm trying to work through in my WP7 silverlight application.
I have a basic listbox inside a panorama control that I'm databinding a collection of objects to. Right now i have a datatemplate that just renders a single textbox for every row.
I would like to implement some... | stackexchange/codereview |
I have a Winforms ListView with several Items already in them. As I get more information about the objects these Items represent one of the things I want to change is the Key to be used to access them from the ListViewItemCollection. Unfortuantely, the "Add" method and constructor list a parameter "key" which isn't a... | stackexchange/codereview |
Why doesn't this simply jQuery ajax code not load pull.php into the div with id of #alert?
...
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
$(".pull_button").click(function() {
$("#alert").load("pull.php");
});
});
</script... | stackexchange/codereview |
I've created some data driven unit tests built using the Visual Studio 2010 testing framework and would like to make a permanent record of the results. I can export the usual .trx files, but would like to store the data in a database.
Aside from parsing the trx file to extract the info, is there an easy way to import ... | stackexchange/codereview |
We recently saw this error. Server sent a response message (MSG1) to one of its clients (size of msg > 64KB). Something happened at the client's read, this message was not received at all. Neither the SocketTimeOutException nor the IOException were thrown. Server tried to send another message (MSG2) but was blocked in ... | stackexchange/codereview |
I have a method in C++ that takes an array of doubles as an argument. I'm calling this method from Java and need to pass an array of doubles. The C++ routine reads and modifies the values of the array and I need those updated values in Java. How do I do this?
For example, take the C++ routine:
void myMethod( double ... | stackexchange/codereview |
NOTE: Before you read on or provide an answer, I know about Enumerable.Distinct, I am asking about specific language support for that method, not about the method itself.
I've always wondered why there is no distinct keyword in the C# LINQ keyword set so that I could write:
var items = distinct from x in y
... | stackexchange/codereview |
I use PhpMyAdmin to setup mysql tables and such.
I also have root (full) access to everything.
Currently I have this in my phpMyAdmin under the privileges tab:
USER: HOST: PASS: GLOB PRIVILEGES:
phpmyadmin localhost Y USAGE No
root 127.0.0.1 Y ALL PRIVILEGES Y
root ... | stackexchange/codereview |
lat = forms.FloatField()
How do you make this hidden?
| stackexchange/codereview |
I use ASP.NET and ASP.NET Authentication.
I have a website with structure like:
ROOT
- CMS
- AdminCms
- web.conf*
- FORUM
- AdminForum
- web.conf*
- web.conf ***
Now in web.conf *** I use for CMS LOGIN PAGE
<authentication mode="Forms">
<forms loginUrl="~/Cms/AdminCms/Login.aspx" timeou... | stackexchange/codereview |
I've Heard that Matlab's image processing library is quite slow compared to Java's image processing library..
is that true ??
If thats the case, then will it be feasible to implement applications like CBIR Image search engine using Matlab ??
| stackexchange/codereview |
I tried googleing, but Google doesn't seem to care about parentheses...
| stackexchange/codereview |
Is this loop busy waiting, I would think the wait call takes care of that. If it is, how can it be fixed to not busy wait?
id = fork();
for (i = 0; i < 20; i++)
{
switch (id)
{
case 0:
/* do stuff with child */
exit(0);
default:
{
... | stackexchange/codereview |
Possible Duplicate:
What is the * operator doing to this string in Ruby
Probably there is answer for that elsewhere, but I just don't know how to find it...
If I am right, the * means multiple parameters if used in function definition:
def hero(name, *super_powers)
But what does * do in the code like this:
Hash[*[[... | stackexchange/codereview |
I have a codebase that makes extensive use of pthread.h. On a windows visual studio project, this obviously doesn't work since pthreads is a unix utility.
I know there exists pthread-win32 or something of the sort, but is there a way to have a codebase use this, without replacing all of the pthread code?
edit: I'd pre... | stackexchange/codereview |
I just installed svn client from tigris and from the command line I can do checkouts, commits merges etc.
But now I would like to use emacs for merging files or directories.
vc-merge only works when you're in a file. I can't get it to work on a directory.
There is also the command line utility and for that I would like... | stackexchange/codereview |
I'm trying to test my code, written using JBoss Seam and Hibernate. What I'd like to achieve is this:
Execute a SeamTest automated test to run a particular method on a Seam component. This component performs a database update (merge or save). I'd like to cause this update to fail, allowing me to test my error-handling ... | stackexchange/codereview |
I am trying to follow the django tutorial. I am running on windows+eclipse.
When I run python manage.py runserver I get the message Validating models... and afterwards see no progress...
Am I doing something wrong?
| stackexchange/codereview |
The layout
I really dont have any idea of where to begin to make this with DIVs or with tables specially with the fact that i need a top-backgroud and a botton-background. Please i need orientation with this, if you can make the css with the names i put on the image i will understand the code whitout any explanations.... | stackexchange/codereview |
i have some trouble generating a route with rails 3.
here is what i got
a controller with a show method:
def show
@content = Content.find_by_slug!(params[:id])
end
i have a field in my db called :slug, which allows me to call www.mysite.com/controller/slug
what i want to do is create a route which allows me to rend... | stackexchange/codereview |
I got a MemoryError when processing a .xml file = 1,45 Gb. I tried to run it on a smaller file and it works, so there shouldn't be any bugs in the code. The code, itself, implies to open a xml file, do some stuff inside and save it back to a new txt file. I run Win7 x86, 2 Gb RAM, Python 2.6
Traceback (most recent call... | stackexchange/codereview |
I have two textboxes, the first of them I've bound to a tabControl's Item's Header.
I did it in the code behind.
The problem is that the binding succeeds only in the first time.
XAML:
<StackPanel>
<TabControl x:Name="tabcontrol">
<TabControl.Items>
<TabItem>
</TabItem>
</Ta... | stackexchange/codereview |
I have following URL:
http://localhost:8041/Reforge.aspx?name=Cyan%ECde&realmId=1
notice %EC in the value of name parameter.
%EC = 236 = ì (igrave)
In my action method:
public ActionResult Index(string name, int realmId) {...}
name[4] is a character with code 65533 (0xFFFD). What am I doing wrong?
| stackexchange/codereview |
I have an Oracle server running on a Linux box. When a particular Update statement runs inside a sproc, I receive error ORA-1407 and invalid data is written into an XmlType field. The sproc is attempting to update the Xml but is not attempting to update the ID. So the call being made looks like:
UPDATE my_table SET ... | stackexchange/codereview |
I have a .net/DirectX-based rendering library. At program start, we try to find out the amount of physical video RAM. Detecting the amount of physical video memory is important, to know how much can be used for textures (If you've done serious directX you probably already know).
Video RAM is detected by executing the ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.