instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm using ini_get('upload_max_filesize') to get the max file upload size.
The result is 5M.
What is the easiest way to get this in bytes?
| stackexchange/codereview |
What library would you guys recommend I use to create a PDF document from a given collection of images?
I don't want to write text to the document or anything, just grab an Image object and save it to the PDF document.
Any suggestions?
| stackexchange/codereview |
I'm running this from eclipse, the file name I'm working with is ex16_text.txt (yes I type it in correctly. It writes to the file correctly (the input appears), but the "print txt.read()" doesn't seem to do anything (prints a blank line), see the output after the code:
filename = raw_input("What's the file name we'll... | stackexchange/codereview |
What rule translates urls like so?
host.com/plastic_toys/pink_barbie/
host.com/index.php?q=plastic+toys+pink+barbie
The number of components in the category and product name vary.
Edit:
I guess this rule does part of the job:
RewriteRule ^([^/]*)/([^/]*)$ /index.php?q=$1+$2 [L]
The problem with the above rule is th... | stackexchange/codereview |
For some reason, when I display a NSDate, it displays as "2010-11-18 18:00:02 -8000". On other devices, it displays as "2010-11-18 18:00:02 GMT" except the time is adjusted to a GMT time. I'm just printing it out as NSLog(@"%@", NSDate);
Any idea about this inconsistency?
Thanks
| stackexchange/codereview |
I am using Single-Table-Inheritance for a rails project. And I was wondering if it were possible to share functionality for some common functions between subclasses by implementing them in the superclass.
Is it possible to recycle the views of the superclass as well? Or should I write new views for the common functions... | stackexchange/codereview |
I'm developing a BHO in Visual Studio 2010. So far I've managed to register the BHO and get visual studio launch IE when I hit debug. The BHO works as expected but unfortunately break points that I set are never hit. Is there something that needs to be configured first?
| stackexchange/codereview |
I have a static Html Table which contains one button "Add" and when clicking on that button it creates a new row which contains some text boxes
and it append to this table .But my Problem is say i have 3 rows and when i click "Add" we are able to create the new ROW but the Previous row values
are copied in to new r... | stackexchange/codereview |
I have a pretty basic question about storing data and its memory footprint.
I have a List<t> that stores the base objects I need. The type t has an int id to define it, along with other fields.
I now have a Dictionary. If I create a Dictionary<t, int>, where t is the object for the value, will the memory allocation be... | stackexchange/codereview |
bookmark and add to my homescreen 60x60 icon does not apprear.
Make
<link rel="apple-touch-icon" href="images/iphone.png"/>
Size: 60x60 pixels. tried 8bit and 24bit ping! Does not work. Site is on a localhost and not 'online'.
on http://news.bbc.co.uk/sport if I bookmark and add to my homescreen it works! Why?
They ... | stackexchange/codereview |
is there any way to create an XCode project without using XCode?
I want to create an XCode project from scratch i.e. I want to put together some .m & .h files and create a project that would run in XCode.
| stackexchange/codereview |
I'm converting data from one schema to another. Each table in the source schema has a 'status' column (default NULL). When a record has been converted, I update the status column to 1. Afterwards, I can report on the # of records that are (not) converted.
While the conversion routines are still under development, I'd l... | stackexchange/codereview |
I have a sql function and i need to declare few variables in that function. Please advise how can i achieve this.
For example i need to put -->
Declare @ClientResult TABLE(
RowIndex int identity(1,1),
SplitText varchar(50)
)
in the below function.
create FUNCTION [dbo].CLIENT_SHIPPINGREPORTD... | stackexchange/codereview |
I have database that has multiple schemas and objects under them. I want to consolidate the objects into one schema.
I tried
ALTER SCHEMA dbo TRANSFER <custom_schema>.<table_name>
I get an
object already exists message
However, I can't see it in the Management studio and
SELECT * from dbo.<table_name>
returns
obj... | stackexchange/codereview |
Summary:
How do I configure my facebook application to request additional information from the user.
The detail:
I decided recently to try to write a facebook application. The idea behind the graph api seemed a good one and I hoped it would be straightforward. Big mistake!
I've managed to cobble the following together ... | stackexchange/codereview |
I have an application in PHP that helps people fix appointments.
How could I code to send SMS's 15 minutes before the start of the meeting time?
I have code that takes care of sending SMS's. I just need to call the send method at the appropriate time.
| stackexchange/codereview |
What is the proper way to convert a byte [] to a Base64 string in Java? Better yet would be Grails / Groovy because it tells me that the encodeAsBase64() function is deprecated. The sun.misc.BASE64Encoder package isn't recommended for use and outputs a different size string on some Windows platforms.
| stackexchange/codereview |
I'm doing some experiments with opengl in c for linux. I've got the following function that would draw a circle given those parameters. I've included
#include <stdlib.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glut.h>
However when I compile:
gcc fiver.c -o fiver -lglut
I get:
/usr/bin/ld: /tmp/ccGdx... | stackexchange/codereview |
i want to give anchor tag to an image while checking the condition in slide show where my slide show is displayed using script
<script type="text/javascript">
var res;
var hdnvalue = a = document.getElementById('HiddenField4').value;
var imgArr = hdnvalue.split(';');
var sp = [];
for (var c... | stackexchange/codereview |
Using Fiddler and also Live HTTP Headers I tried to find out how Firefox knows what's the name of file and shows it at Save As dialog.There's a Content-Disposition in headers which has no file name: Content-Disposition: attachment which should be Content-Disposition: attachment; filename=.... Then how Firefox knows the... | stackexchange/codereview |
I am having a serious problem.
What i have in my hand :
Linux Kernel 2.6.29 with Android Eclair patches and some board specific patches(as .patch files).
Linux Kernel 2.6.32 with Android Froyo patches.
What i want to achieve :
I want to merge the board specific patches to my Linux Kernel 2.6.32 with Android Froy... | stackexchange/codereview |
I have a slightly specific question. I am using C/C++ with OpenCV. My aim to store detected rectangles in a list/array style structure. However, the length is variable for every frame (iteration).
What should I use to store this info? I thought of Linked Lists, however, they are slow to traverse and also if the number... | stackexchange/codereview |
What is wrong with this? I am trying to communicate to a TReX motor controller. I need to send the following data "DA 1F 1F" or "0xDA 0x1F 0x1F"
using System;
using System.IO.Ports;
using System.Threading;
public class PortChat
{
static SerialPort _serialPort;
public static void Main()
{
StringCo... | stackexchange/codereview |
I just lost 2 hours of time because of a bug in the maven-compiler-plugin v2.0.2 that was fixed in version v2.3.2.
Apparently if you don't specify the version of the Maven compiler plugin, Maven 2.2.1 just gives you v2.0.2.
Our project uses 15+ Maven plugins. Some of them we want to pin down a certain version, but mos... | stackexchange/codereview |
Just so everyone knows, I'm relatively new to JavaScript, (and I've been trying to do things in pure JS rather than using jQuery, etc.). At a place I contract for, we have an Exchange server, I use the webmail client.
To prevent it from timing me out when there isn't any activity, I started putting together a Safari E... | stackexchange/codereview |
I take code from Subdomain RailsCast
module UrlHelper
def with_subdomain(subdomain)
subdomain = (subdomain || "")
subdomain += "." unless subdomain.empty?
[subdomain, request.domain, request.port_string].join
end
def url_for(options = nil)
if options.kind_of?(Hash) && options.has_key?(:subdomain)... | stackexchange/codereview |
Why is the CancellationToken for a BlockingCollection not passed in the constructor ofBlockingCollection?
The token has to be passed into the Take and Add methods, what is the reason for this?
| stackexchange/codereview |
I have a Ruby (1.9.2) array which I need to remove an object from.
[object1, object2, object3]
At the moment I'm doing
array.delete_at(1)
which removes the object, but then there is an empty array spot at that index.
[object1, , object3]
How do I remove an object so that the array is resized so that there is no empt... | stackexchange/codereview |
I'm using jQuery in my web application. While reading its documentation I read about live() and delegate(). Although they have explained both methods, I don't understand the exact difference between them. Also not sure about which method is ideal in which scenario.
Please help me to get clear understanding of these met... | stackexchange/codereview |
I am dynamically generating a div and want to change its content via html()/text(), but its not working.
Here's the code:
var div = '<div class="ps_album"><img alt="" src="images/1px.gif" class="thmb"><div class="ps_desc"><h2>title</h2></div></div>';
$(div).find('.ps_desc').html('<h1>Hello</h1>');
$(div).appendTo('bod... | stackexchange/codereview |
I have the following query in SQLite:
SELECT * FROM t1 ORDER BY t1.field
Where t1.field is a text column containing numbers. Is it posible to force SQLite to consider the values of t1.field as numbers instead of strings (whithout doing ALTER TABLE)? Right now the sort is a pure string one, so 10 goes before 2.
Thank y... | stackexchange/codereview |
What I want to happen is, when you click a link (id="dontFollow"), it triggers a click on a different link(id="follow") and stops you from following the original link.
This is how I thought it should be done-
$("#dontFollow").click(function(e){
$("#follow").click();
e.preventDefault();
});
... but it's not worki... | stackexchange/codereview |
I'm currently planning (and part coding) a new app. I have an array of items which the user creates. This is effectively the library. It's easiest to think of this as the classic ingredients and meal.
I have a library of ingredients.
I then have a library of meals.
Each meal will contain several ingredients.
So the ... | stackexchange/codereview |
I have a table in a db that has an int field, a non-unique id field plus others. I need to sort by the int field then get the top X distinct id fields.
So for example if these are my table values (sorted by the intfld):
id intfld
CC 1
AA 2
CC 3
AA 4
FF 4
OO 5
EE 6
KK 6
And I wanted the top 3 id's the returned... | stackexchange/codereview |
Is it possible to distribute SQL Server Express as just a loose collection of modules (DLLs)?
We have an internal C# tool that uses a SQL server to create a temporary database for consumption by an C++ tool using ODBC. The dependency on SQL server makes the whole process unnecessarily fragile and slow due to network ... | stackexchange/codereview |
If I have a File Default.html in my project
How can I read it in code? I need the path
One Possible Solution
./Controls/MarkdownEditor/Templates/Default.html works too. Also I set "Copy to output directory" to "Copy if newer"
| stackexchange/codereview |
I want to disable a specific warning (W1035) in my code, since I think that the compiler is wrong about this warning:
function TfrmNagScreen.Run: TOption;
begin
if ShowModal = mrOk then
Result := TOption(rdgAction.EditValue)
else
Abort
end;
There is no way the result could be undefined, since Abort throws ... | stackexchange/codereview |
I have searched this site for an answer and found many responses to unsigned/signed comparison but this problem is that only unsigned parameters are compared but still it works funny.
The problem with the following code is that the first if-statment does not happen ("hello") where as the second ("world") does. This I h... | stackexchange/codereview |
I give... after days trying to figure out what I'm missing I give up. I cannot figure out how to get my simple container control to properly display in the designer. Here is the basic markup of the custom control:
<div>
<div>Title</div>
<div>
<!-- ASP.Net child controls -->
</div>
</div>
Here is ... | stackexchange/codereview |
This is easy for me to perform in TSQL, but I'm just sitting here banging my head against the desk trying to get it to work in EF4!
I have a table, lets call it TestData. It has fields, say: DataTypeID, Name, DataValue.
DataTypeID, Name, DataValue
1,"Data 1","Value1"
1,"Data 1","Value2"
2,"Data 1","Value3"
3,"Data 1","... | stackexchange/codereview |
I find the explanations of CSS's box-shadow and -moz-box-shadown somewhat imprecise.
http://www.w3.org/TR/2010/WD-css3-background-20100612/#the-box-shadow
The third length is a blur distance.
Negative values are not allowed. If
the blur value is zero, the shadow's
edge is sharp. Otherwise, the larger
the value, the mo... | stackexchange/codereview |
I'm a total noob. Starting my first app. I'm using cocos2d and there's isn't a .xib file so how do I add a background image behind the sprites I have in my scene?
| stackexchange/codereview |
I have WebBrowser control on my winform. When I try navigate to some web-site I get standard IE error pages like:
"Navigation to the webpage was canceled"
"The address is not valid"
"Page couldn't be loaded"
etc.
I need to handle these errors and return custom error message to user. Is there any way to solve this iss... | stackexchange/codereview |
How can I read a sector of a hard disk drive, access the file system and block or cluster of a file, list of bad blocks (FAT) or cluster file (NTFS)? Or access the list of free blocks (FAT) or cluster bitmap (NTFS)?
| stackexchange/codereview |
hi
I am writting a program.
there is two picturebox in it.
one is containing a full image and another one is small one and should contain part of full image mouse points in big picturebox.
I just want to implement a zoom feature with fixed ratio that show part of image under mouse cursor in big picturbox into the small... | stackexchange/codereview |
I have the most simple version a TTTableViewController, but can't get a blue background on a tapped cell.
How do I do that?
The following doesn't work:
- (UITableViewCellSelectionStyle)tableSelectionStyle {
return UITableViewCellSelectionStyleBlue;
}
P.s. Why is it so hard to find any documentation on three20 stuf... | stackexchange/codereview |
I have a simple page with an swfobject embedded on it.
Looks like IE has problems with the 'filters' property on the embedded object.
My test page looks like that:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org... | stackexchange/codereview |
Is it possible to determine the unique bluetooth MAC address for an iPhone and an Android (and to a lesser extent, other smartphones) from within an app on said device? Is my assumption that the MAC address is universally unique correct?
A general yes or no would be helpful. Example code in the case of an iPhone or a... | stackexchange/codereview |
version 0.4.1 of the declarative_authorization gem has rails >= 2.1.0 as a dependency. If you install rails 2.3.5 first, then install 0.4.1 of declarative_authorization, you get the dependencies of Rails 3. If declarative_authorization needs rails >= 2.1.0, if 2.3.5 is installed, that dependency should be satisfied, ... | stackexchange/codereview |
I tried lots of scripts to backup my mySQL database but they all fail..
phpMyAdmin is the only one that escapes my strings like it should.
What is wrong here?
In some strings in my database I have international characters like "é" etc.
The phpMyAdmin dump also shows me also things like "\r\n", that seem to break the sc... | stackexchange/codereview |
I was having the problem in here : How to start Activity in adapter? . however, i would like to modify the transition animation direction. since, inside an adapter, you cannot call overridePendingTransition(). So do you guys know how to do it by using context and intent?
also, i have an activity using my customized ada... | stackexchange/codereview |
I am having big problems in fetching exception details from Remote EJBs...
I have a pipeline pattern implemented with Remote EJBs, where one EJB calls other EJBs to do certain tasks. What I can't figure out is how to get more meaningful exceptions when some problem occures.
Here is an example of a "very useful" output... | stackexchange/codereview |
I'm getting a NullPointerException from Maven Surefire plugin. It occurs only on a test that is using DBUnit. The Surefire report file is empty.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
org.apache.maven.surefire.booter.SurefireExecutionE... | stackexchange/codereview |
I'm trying to write a method that does the following:
public class GridCounting {
/** Returns the total number of possible routes (paths) from
* (x,y) to (tx,ty).
* There are only three valid kinds of moves:
* Increment x by one.
* Increment x by two.
* Increment y by one.
*
... | stackexchange/codereview |
I need to download a mp3 file from a server URL, and then play that mp3 file.
Basically the main motive is to play a remote mp3 file, now there are two options for me, either i stream that file and play it onto media player,
or i first download it and then play it. I am still trying the first one, but with one success... | stackexchange/codereview |
Updated:
This may be an easy or a complex question, but in wpf, I have a listbox that I fill in with a datatemplate from a list.
Is there a way to find out if a particular datatemplate item is in the viewport ie, I have scrolled to its position and it is viewable?
Currently I hooked into the listbox_ScrollChanged even... | stackexchange/codereview |
I want to send notification on Yammer through Ant, but no notification are sent.
I am referring to this link.
<target name="notify_yammer">
<mail mailhost="${mail_host_name}" mailport="25" user="${mail_host_user}" password="${mail_host_password}" subject="Test build completion notification" charset="utf-8">
... | stackexchange/codereview |
I have tried adding reference after converting it to .sl.dll, it gets added but my application shows blank page instead of the contents. How can I use the cpp code in silverlight? Also can we use unmanaged code via the managed one similar to WPF? Please note I am already using 2.0.5.0 version of system.dll.
| stackexchange/codereview |
I've been using MySQL for quite some time now. Most of that time I used it with PHP, for Joomla development. Up until now, I didn't pay very much attention to optimization, since I was usually asked to finish stuff ASAP.
Now, while I know that ASAP factor is a reality, I would like to improve my knowledge of relationa... | stackexchange/codereview |
Can anyone explain the behaviour of the below code. The output of the below code is string "str" and i's value is 100.
But why is it so? After setting object c1 = null, why isn't it null?
public class Class1
{
public int i;
public Class1()
{
i = 10;
}
public string method1()
{
... | stackexchange/codereview |
I need to set IP adress on Android phone from my own application, any idea?
| stackexchange/codereview |
Hi guys I was wonder how you can return the index based on ID with the following.
$friends = '{
"data": [
{
"name": "Paul",
"id": "12000"
},
{
"name": "Bonnie",
"id": "120310"
},
{
"name": "Melissa",
"id": "120944"
},
{
... | stackexchange/codereview |
I make login in my main activity.
If the login is correct, I wanna see my profile and download some data from server, but I cannot keep the connection, if I change activity.
How can I do this?
| stackexchange/codereview |
It's common practice in MongoDB to use short key names to save space. For example, one might want to use "fn" instead of "first_name"
However in your app, you're screwed if you use "fn" all over the place. It's too ugly. For Rails specifically, is there an easy way to specify an alias when declaring a field in Mongo... | stackexchange/codereview |
I'm using visual studio 2008
I have a control that dispays a processed image. Whenever the processing parameters are changed, I'd like to update this picture, but without flickering. If I could prevent windows from blanking the area before I paint, the flicker should, for the most part go away.
Question is, how to do... | stackexchange/codereview |
Is it possible to execute arbitrary code in fixed intervalls with Windows 7 phone? I try to do that and then refresh the tile image of my application. I need the arbitrary code execution, as it performs calculations that are neccessary to update the tile.
| stackexchange/codereview |
Fellow developers,
I'm trying to set a web image as a background for a UIButton. Everything works execept when I build and analyze it shows that aImage still has a +1 reference. Adding a release for aImage after addSubview doesn't solve it. I think I might solve it by subclassing and writing a custom dealloc but that f... | stackexchange/codereview |
I'm trying to style a TabItem Header, using a path to define the shape of the header.
I'm stuck in a problem that I can't seem to resolve :
If I set the path Stretch property to "None", it won't scale if the text in my TabItem Header is long.
If I set the path Stretch property to "Fill", it will stretch so much that ea... | stackexchange/codereview |
Just like func_get_args in PHP, I swear I have seen it somewhere in the documentation...
| stackexchange/codereview |
Firefox 4 comes soon (ok, next year ;)) and there is a Firefox plugin to sync your bookmarks etc. with Firefox 3.whatever .
I would like to know if anyone has a comprehensive, up-to-date tutorial to integrate Firefox Sync into your own plugin? Or any idea regarding this?
I mainly followed this official "tutorial" and a... | stackexchange/codereview |
hopefully a nice easy question for someone :)
I have a gallery strip of photo's which load a main image in the above DIV. The gallery strip appears fine in Chrome but in IE and FF the scroll bars do not appear and the gallery spreads itself out vertically, can anyone help? Thanks in advance! :)
Here is the page
http:/... | stackexchange/codereview |
i have a gles based game that takes quite some time to load because of the huge amount of textures.
now i want to display a loading-text or loading-bar as soon as possible as the application is starting up.
what is the fastest way to display a text like this? should i do it in gles as well or should i use an alert or v... | stackexchange/codereview |
I am submitting an AjaxForm with the help of javascript triggered by change event of this dropdownlist and update the div (that contains ddlist too) accordingly.
$(function() {
$('#Page').change(function() {
alert("testing");
var value = $(this).val();
if (... | stackexchange/codereview |
I have the 'rootfs' filesystem mounted on '/'. How can i partition '/' into 2 partitions such that rootfs is mounted on the first partition and another directory say 'temp' is mounted on the second partition. Kindly give me directions and tutorials which will help me accomplish this. I am very new to this. So kindly le... | stackexchange/codereview |
I remember there was a WinAPI function which copied the "date modified" property of the previous file which was replaced with it or something like that? Perhaps anyone can tell me about it?
The problem occured when you used that function very frequently.
| stackexchange/codereview |
Is there a compiler switch to enable a single warning in Visual Studio?
The reason I ask is I want to enable warning C4265 which is off by default. My searching has only turned up ways to turn warnings off.
Even Microsoft pages called How to: Enable or Disable Compiler Warnings still only mention disabling.
| stackexchange/codereview |
I am working on a web application, the main technologies used are JSP,Spring framework and hibernate. In a typical scenario the request is intercepted by the controllers which in turn talk to the Services and then Services talk to DAOs. Right now the application is hosted by a single JBOSS server. I am in an urgent ne... | stackexchange/codereview |
I have a command (citrix xenserver cli delete snapshot command--if it matters) that I have to repeat a bunch of times:
xe snapshot-uninstall snapshot-uuid=[snapshot-uuid]
I want to script this using a variable for [snapshot-uuid] so that I can repeat for all lines in a text file that looks like this (each line is a un... | stackexchange/codereview |
I'm running an query and getting the following JSON back:
{
"COLUMNS":["ID","TAGNAME"],
"DATA":[[11,"gard"],[61,"garden"]]
}
The problem is I'm using a plugin (found here http://www.devbridge.com/projects/autocomplete/jquery/#howto ) that only accepts data in the following format:
{
query:'...',
suggestions:[... | stackexchange/codereview |
I have an issue with JSONP and cookies sent by the browser.
Actually, I have two websites : server1 and server2. I want my users to authenticate to server1 and when they go to server2, I would like to check (via a Javascript JSONP call to server1) if they are authenticated.
The authentication on server1 is managed by c... | stackexchange/codereview |
I know the entity frameworks are still not ported to mono.
I would like to know the current status (since on the mono site I dont see anything of an update)
I would like to know if they want to port it, when they would start on it and when I would expect it to be their.
Also I like to know if their are other open sour... | stackexchange/codereview |
I wonder is there any tool (preferably free) that can generate Java source code from UML diagrams?
Thanks!
| stackexchange/codereview |
If I click on a symbol, go to the properties tab, click on the width textbox, type in 1000, hit enter, it then reports the width being 999.95. That's .05 pixels off from what I wanted.
I have snap to objects disabled. The symbol in question is a 1000x500 linear gradient rotated 90 degrees alone in it's own layer in... | stackexchange/codereview |
I'm trying to sort through a whole host of problems arising from upgrading my macintosh to 10.6. Most of the tools I need work, but a couple (scipy, wxpython) do not, and give error messages that are highly suggestive of my messing up something with 64-bit and 32-bit binaries.
I'm currently running Python 2.7. I don't ... | stackexchange/codereview |
I have a nested list of data. Its length is 132 and each item is a list of length 20. Is there a quick way to convert this structure into a data frame that has 132 rows and 20 columns of data?
Here is some sample data to work with:
l <- replicate(
132,
as.list(sample(letters, 20)),
simplify = FALSE
)
| stackexchange/codereview |
I am resorting to a horrible hack in order to fill a locked-down data type in the XNA framework: there's an internal method in a structure that I wish to call without feeding the garbage collector.
If I keep said structure boxed in an object variable and use MethodInfo.Invoke(), that call would itself feed the garbage ... | stackexchange/codereview |
My firm is switching to GIT and I'm curious as to the state of IDE plug ins for GIT. The old question was answered in 2008, and I'm hoping the answer no longer applies.
| stackexchange/codereview |
I'm working with a model structure that is not exactly ideal (i.e. I didn't create it) and I'm having a hard time writing an AR query to get me the data I want...
I've got the following models:
class Project < ActiveRecord::Base
has_many :project_states
has_many :states, :through => :project_states
end
class State... | stackexchange/codereview |
I have a simple question: how do I document .INI file?
I have a C++ project with the following layout:
readme.txt
src
main.cpp
data
simple.ini
I have no problem generating document from readme.txt and main.cpp, but the document in simple.ini does not show in the html output at all. I have fixed the Doxygen fil... | stackexchange/codereview |
I want to start getting into this whole SVN thing ... I have a mac server which ships with svn, one question i do have though.
If im putting in sites that i develop, i understand that the files have to be added, but how do you go about backing up the database accossiated with the site?
If anyone could let me know how t... | stackexchange/codereview |
When using JavaScriptSerializer to do serialization, can some of the field of the class be ignored?
When using JavaScriptSerializer to do serialization, can we changes the name of the field?
For example, the field is string is_OK, but I want it be mapped to isOK?
| stackexchange/codereview |
I have a static builder method for a class "Model" that takes a JSON string and returns an ArrayList of Models. I would like it refer to the Model's constructer generically so that subclasses can inherit the builder method.
public class Model
{
protected int id;
public Model(String json) throws JSONException
... | stackexchange/codereview |
I have an ActiveX control that runs inside global.asa within IIS. The control has some BSTR properties, but in server's VBScript they appear to be somehow malformed, as if VBScript does not understand they are strings. It is possible to retreive the string property, as well as assign it to another variable, but it's no... | stackexchange/codereview |
I am new to Twitter4j In my twitter application I want to retweet the status But it shows the error as,
11-17 17:39:34.518: ERROR/TAG(470): 404:The URI requested is invalid or the resource requested, such as a user, does not exists.
can anyone help me to retweet the status,I searched over Tags but not clear
Thanks in ... | stackexchange/codereview |
I have a little problem. I'm trying to create a TPaintBox on a TPanel like this:
procedure TForm1.mkPaint(S: string);
var PB: TPaintBox;
begin
PB := TPaintBox.Create(Self);
with PB do
begin
Parent := Panel1;
Visible := True;
Name := S;
Height := 100;
Width := 100;
Left := 8;
Top := 8;... | stackexchange/codereview |
Hi I have some images stored as BlobProperty in Google Cloud Datastore. I am trying to load these images via ajax into my template. For eg:- a user has an image and a name. Now the image and name area gets populated via an AJAX get call to the server. I am not understanding how to I send these images to the client , JS... | stackexchange/codereview |
I have to download .php file with php source code from a apache directory listing page. can anybody have such idea or experience????
| stackexchange/codereview |
Why does this not work? (http://jsfiddle.net/J8n2g/):
$('body')
.append($('<img>')
.attr({
'src': 'http://www.google.com/intl/en_ALL/images/logo.gif',
'width': '100%', 'height': '100%' })
.hide()
.load(function() { $(this).show(); }));`
While this works well (http://jsfiddle.net/J8n2g/1/):
$('body'... | stackexchange/codereview |
I have a problem
import java.math.BigInteger;
import java.io.*;
import java.util.*;
import java.lang.*;
public class medici {
public static void main(String[] arg) {
{
BigInteger zac = new BigInteger("3");
zac = zac.pow(399);
BigInteger kon = new BigInteger("3");
kon = kon.pow(400);
BigInteger nu... | stackexchange/codereview |
My xp box uses Haskell Platform, version 6.12.3
I include the following in my .ghci file.
:def test \_ -> return $ ":load c:\scripts\haskell\test.hs"
Now I can compile and load my test.hs script by entering :test. However I can also use :t, :te or :tes. I presume this is the Haskell idiom called pattern matching. Unfo... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.