instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
how to bundle array of File objects or array of Json objects or array of user-defined objects in one activity and send it to another and how to access them correctly. ?
Primitive types like string is quite easy with
Intent in = new Intent();
Bundle bundle = new Bundle();
bundle.putString("name", "test");
in.putExt... | stackexchange/codereview |
I am designing my site on a mac. I used basic formatting and then when i want on to my pc, the wrapper width was too wide. My question is what can i do so that my website looks the same on all browsers/os?
| stackexchange/codereview |
Here I addsubviews (UIImageViews) it all works on the simulator but not on the device (iOS 4.1) wtf!?
- (void)addChips:(int)value {
UIImage *chipImage;
switch (value) {
case 5:
chipImage = [UIImage imageNamed:@"5chip"];
break;
case 25:
chipImage = [UIImage imageNamed:@"25chip"];
... | stackexchange/codereview |
I am currently working on an application that displays the data of a Sharepoint calendar via Sharepoint Webservices. Therefore, I am using the List Service of the calendar.
I manage to get all important information except user data, such as Created By or Modified By. The XML which is returned contains the following:
<r... | stackexchange/codereview |
My task is to set a text caret to appear inside an empty span node within a contentEditable div.
The following gives me no problems on Firefox 3.6:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="js/jquery-1.4.... | stackexchange/codereview |
stackexchange/codereview | |
Is there a way when using jQuery.Post to discover the content-type of the response?
I have a form in a modal window and the idea is that if the form is not valid then an HTML snippet is sent and the contents of the modal are replaced with this snippet, if it is valid I want a simple string with the content for a flash ... | stackexchange/codereview |
I have a RoR app 2.3.8 based on refinerycms.
I had to add search functionality.
For search, there is a gem for refinerycms, which is unfortunately for rails3.
In order to use that, I had to
git clone the plugin
git checkout the specific version
The plugin is in vendor/plugins.
then I test everything locally, the searc... | stackexchange/codereview |
I am embedding telerik's radEditor in my page..its inheriting css properties from the master page..like H2 is in blue color..its got background color...
what should I type in my custom css class (the one exclusively made for radEditor) so it over rides ALL the Master page's css properties and applies nothing to heading... | stackexchange/codereview |
I want to scan this string
"hello I am emp 1313 object of string class 123"
so in this I want to know if their are any integer value present and if present I want to display them for this I am using the NSScanner class and heres a view of my code
NSString *str = @" hello I am emp 1313 object of string class 123";
NS... | stackexchange/codereview |
Im having an issue with an MDX query, and I think it boils down to the order of precedence between calculating an aggregate and a calculated member.
Let me start with the underlying data, which revolves around a valuation (which has a date, and some other data such as a member type, a scheme - and crucially for this qu... | stackexchange/codereview |
I have a widget that I have an intent that starts an activity when I click, but I need to get saved Data into the widget, so onEnabled can I start an Activity that will look up the saved data for the activity?
Also an intent I need to set up for the click events... how do I set these up with out first having the config... | stackexchange/codereview |
I have a site currently built on Wordpress. I have a requirement to pull out the "latest post" in a category (magazine issue), to allow the latest issue to be displayed in the sidebar of a Posterous blog template, either in an iframe or by other means.
What's the best way to achieve this? Shall I write a custom PHP pag... | stackexchange/codereview |
I added a table that I thought I was going to need, but now no longer plan on using it. How should I remove that table?
I've already run migrations, so the table is in my database. I figure rails generate migration should be able to handle this, but I haven't figured out how yet.
I've tried:
rails generate migration ... | stackexchange/codereview |
I just started trying out RavenDB and it seems that the new/easy way to do queries is to use dynamic instead of canned. I downloaded build 191 but Query needs takes a parameter that is the index name. How do I enable dynamic queries? Am I missing a namespace? Do I need a version newer than 191?
| stackexchange/codereview |
I believe the malloc is badly assigned, why?
int ** array;
int i,j;
array=malloc(10*sizeof(int *));
for(i=0; i<10; i++)
for (j=0;j<10; j++)
array[i][j]=i*j;
| stackexchange/codereview |
I have a screen where I am going to display a lot of text. I have the text saved in an array of strings. 15 Headings and 15 body texts.
I was wondering what is the best method of handing this? Convert it to HTML and use a webview or maybe some kind of textview ?
I was thinking a table could work too possibly, though I ... | stackexchange/codereview |
I have a gtk.Treeview setup as a drag source:
self.drag_source_set(gtk.gdk.BUTTON1_MASK, targets, gtk.gdk.ACTION_COPY)
and it's TreeSelection is set to SELECT_MULTIPLE.
But everytime I try to drag a multi row selection, the cursor jumps to the current mouse position, resetting the selection to the current row. Even th... | stackexchange/codereview |
When I make a request to a particular website, I get the XML response as desired on the simulator but I get a redirect page on the device. I think this is because it is detecting that I am using a mobile browser (similar results occur through Mobile Safari), but I'm setting the user agent string of the request to my l... | stackexchange/codereview |
I am building a community website using Grails and I want to implement user notifications exactly like stackoverflow.com. For instance, user will get notified for new events ('You have new comments', 'one of your favorite has changed'...) either by email or in his mailbox anytime he returns to the website.
I suppose th... | stackexchange/codereview |
Odd CSS behavior.
When i set the visited color using CSS(a.nav:hover as below example) then the hover doesn't work once the link is visited by the user. However when i set it with the reference of the parent element(.header a.nav:hover as below) it works. why ?
a.nav:visited{
color:yellow;
}
/*once the link is visite... | stackexchange/codereview |
I have the following models:
class Friendship < ActiveRecord::Base
belongs_to :user
belongs_to :friend, :class_name => "User", :foreign_key => :friend_id
has_and_belongs_to_many :friend_groups
end
class FriendGroup < ActiveRecord::Base
has_and_belongs_to_many :friendships
end
How can I declare that FriendGrou... | stackexchange/codereview |
I want to do something like this:
DELETE FROM table WHERE id IN (SELECT ....)
How can I do that?
| stackexchange/codereview |
My std::string is UTF-8 encoded so obviously, str.length() returns the wrong result.
I found this information but I'm not sure how I can use it to do this:
The following byte sequences are
used to represent a character. The
sequence to be
used depends on the UCS code number of the character:
0x00000000 - 0x00000... | stackexchange/codereview |
I have installed Dosbox to run Turbo C in it. But my graphics.h programs are not executing in it. I am getting Linker Error which says"Undefined sumbol initgraph in module..." and so on.
| stackexchange/codereview |
I want to program a function to find C(n,k) using tail recursion, and I would greatly appreciate your help.
I have reached this:
(defun tail-recursive-binomial (n k)
(cond ((or (< n k) (< k 0)) NIL)
((or (= k 0) (= n k)) 1)
(T (* (tail-recursive-binomial (- n 1) (- k 1)) (/ n k)))))
Using the followi... | stackexchange/codereview |
I am creating a object which is type of NSString by the below method
NSString *str = [[NSString alloc] initWithString:@"aaaaaaaaaaaaaaa"];
NSLog(@"retain count == %d",[str retainCount]);
after that i just printing the retain count value which is
2010-10-29 17:04:03.939 Example [1580:207] retain count == 2147483647... | stackexchange/codereview |
I'm trying to write my first groovy class. When I do so, Eclipse complains about syntax errors as though it's parsing a Java file. It wants semicolons on the end of each line, it doesn't recognize the "def" keyword, etc.
I have both Groovy 1.7.5 and the latest Groovy Eclipse plugin installed. I have also converted t... | stackexchange/codereview |
I was looking at my application (designed for 1.6) that uses the DatePicker controls on a HTC Desire the other day, and the owner of the phone showed me the native calendar program which uses much much nicer controls, i.e. the datepicker you can touch and scroll rather than having to repeatedly press the buttons to adj... | stackexchange/codereview |
In terms of strings I understand the need to have strings am going to reuse overname wrapped away somewhere in an XML file or configuration section for strings such as Company Name.
The problem am having with this is where to draw the line on using configuratioh or locally expressed strings?
What decides whether to ha... | stackexchange/codereview |
So I'm playing around with EnvDTE, and the EnvDTE.CodeModel API, And I was wondering if there was a way to get the text value represented by a CodeElement.
Let's say I have an CodeAttribute, is there some way to get a string of what the CodeAttribute represents, i.e.[MyAttribute(value="myvalue")].
I know it's possible ... | stackexchange/codereview |
I am trying to create my first app for Windows Phone 7.
I have a Detail View and the .cs class associated with the view.
In my view, I have :
<StackPanel Grid.Row="0" Grid.Column="0">
<TextBlock Name="textBlock1" Text="..."/>
</StackPanel>
In the .cs:
...
listAgences = new List<Agence>();
Agence agence1 =... | stackexchange/codereview |
I have HTML code similar to
<div class="menu">
<div>Latest</div>
<div>Oldest</div>
</div>
I loop through all items in JavaScript and bind a click event listener on them. Now in the event callback, I'd like to know what data to fetch via AJAX. How do I figure that out from one item? I know that I should put so... | stackexchange/codereview |
I'm doing UI testing using Watin (Watir, for java folks). I need to check that an element is not present in the HTML. As of today, I do this as follows:
[FindBy(Id = "pnConfirmation")]
protected Div Confirmation;
public bool ConfirmationMessageDisplayed
{
get
{
try
... | stackexchange/codereview |
As a language how stable is Groovy? Do any big names use it?
| stackexchange/codereview |
In a projects settings, on the Debug tab, is there a way to use to use the project macro variables in the command line arguments box?
I know you can't use them directly because they don't get expanded but is there a clever solution to this?
EDIT: I'm using a C# project.
| stackexchange/codereview |
i am about to develop a small application that should consist of a server and a rich client.
so far i will follow the following design guidelines:
never expose domain objects to the client
encapsulating service messages to response and request objects
identify service routines based on use-cases, so that they are alwa... | stackexchange/codereview |
Title explains it all really, which event fires first in the page life cycle and why?
| stackexchange/codereview |
I have a Html ListBox:
<select id="targetField" multiple="multiple" name="D1" style="width:200px;">
<option>INDIA</option>
<option>USA</option>
<option>UK</option>
<option>AUSTRALIA</option>
<option>RUSSIA</option>
<option>FRANCE</opti... | stackexchange/codereview |
I'm having a problem extending a class which itself further extends a abstract class.
The base abstract class has the following methods:
Abstract:
private final __construct()
abstract protected function loadFromId()
private static final load($id)
Class 1 extends Abstract:
protected loadFromId()
Class 2 extends Class ... | stackexchange/codereview |
I have this banner rotator code:
function ban_rot() {
//First preload images
// counter
var i = 0;
// create object
imageObj = new Image();
// set image list
images = new Array();
images[0] = "../Graphics/adv/1.gif"
images[1] = "../Graphics/adv/2.jpg"
// start preloading
f... | stackexchange/codereview |
I have this but I'm pretty sure that is not the best way to build it up.
var dogs = {
'names' : ["a", "b", "c"],
'images': [
<% @dogs.images.each do |image| %>
{
'thumb' : '<%= image.thumb %>',
'medium' : '<%= image.medium %>',
} <%= "," unless(@dogs.images.last.id == image.id) %>
<% end %>
]
}
T... | stackexchange/codereview |
as title, I am working on some gregexpr in R now, I need to search for something start with a dot, so I need to use "." (without quote), but R keep saying that it is an unrecognized escape. What can I do?
Thanks!
| stackexchange/codereview |
In the script below, how do I get the values of only radio buttons and checkboxes that have been selected and not all (provided a radio button and checkbox were selected).
Right now it gives me the values of all, whether selected or not, and also the submit button (which i dont need).
How do i do this? There'll be mo... | stackexchange/codereview |
This is more of a theory question rather than practice. I'm working on a project which is quite a simple catalog of links. The whole model is similar to the Dmoz or Yahoo catalog, except that each entry has certain additional attributes.
I have hierarchical taxonomy working on all entries with many-to-many relationship... | stackexchange/codereview |
I want to know the regexp for the following case:
The string should contain only alphabetic letters. It must start with a capital letter followed by small letter. Then it can be small letters or capital letters.
^[A-Z][a-z][A-Za-z]*$
But the string must also not contain any consecutive capital letters. How do I add th... | stackexchange/codereview |
Have a look at this API documentation page...
Can anyone explain to me the difference between the rcMonitor and rcWork components of the MONITORINFO structure? Although I'm happy with the idea that a window has areas you can't work with (like the caption for instance), I don't really see how this applies to monitors...... | stackexchange/codereview |
enum Orientation
{
None = -1,
North = 0,
East = 1,
South = 2,
West = 3
}
how to iterate this enum gives all values from none to west
| stackexchange/codereview |
I want to make a dropdown menu using jquery, but it closes even it shouldn't.
I have an element which is subscribed to the mouseenter event, mouse enters the element, the dropdown, fires up, everything seems to be ok. I go down to the item list which is list element with some content in it. The first time i change the ... | stackexchange/codereview |
Hey everyone, I've been having some trouble in C, i'm using a variety of array nested structs in order to model a universe. Here is the struct code...
struct star
{
int x;
int y;
int z;
int m;
char name[100];
};
struct colony
{
int pop;
};
struct planet
{
int x;
... | stackexchange/codereview |
I am building a site for research oriented company. and having problems showing fields from two different content-types into one view without duplicating node (titles).
To be specific. I have a content type called as 'Articles' where all the information like title, teaser, body, year, image will be stored.
and another ... | stackexchange/codereview |
I am new to plugin development. So please correct me, wherever I get it wrong.
I have a website which needs a players plugin with the following needs:-
An administrator controllable form for player registration, with some details of them.
A listing page where all the registered players are to be shown.
Registered play... | stackexchange/codereview |
I'd like to select elements with attribute names (keys) that begin with a set string. Use case: the jQuery UI dialog creates buttons whose only unique identifers are a pseudo-random custom attribute with a sequential value such as jQuery1288273859637="40"
I'd like to select based on the fact that the attribute's name i... | stackexchange/codereview |
Is there a way to access properties files in seam app? I'm looking for some kind of resource loader..
Thanks in advance!
| stackexchange/codereview |
I have a problem when I try to convert a XML file in a PDF file, here I’m going to explain briefly how I try to generate a PDF file.
We suppose I get the information from a database, then the code source is the following:
import pyodbc,time,os,shutil,types
import cStringIO
import ho.pisa as pisa
import urllib
def HTML... | stackexchange/codereview |
I'm doing an iPhone plugin project where I build a static library, let's call it lib1.a, which I provide to other programmers.
When they link lib1.a into their project, they may also link lib2.a, which they build themselves based on a header file I give them. This header only contains a "hook" function which instantiat... | stackexchange/codereview |
we are using smart GWT as our front end. i need to do password encrytion in this.Before smart GWT we were using GWT Ext and the encryption was done using gwt-crypto.jar.Which jar is needed to do encrytion in smart GWT.
Thanks in advance,
Rima Desai
| stackexchange/codereview |
Is it possible to override the seed value when creating a new table using the designer in
visual studio?
I know it does not really matter from a programmatic point of view, but I don't like when ID's start at 1. I don't want to see customer ID of '1' or a sales order of 3 - I prefer them to all be the same length - i... | stackexchange/codereview |
I want to deploy an application painlessly having autoupdate turned on. However, I'm forced to use an MSI installer for various purposes. We'll deploy a Windows Forms application and a bundle of Windows services.
I really liked how you can click few buttons in the publish tab and have it all deployed to a web server w... | stackexchange/codereview |
Got this really stupid problem:
Can find the proper name for the android folder for WVGA800 resources.
I've created a folder for WVGA854: drawable-normal-long-hdpi
It worked totally fine.
For WVGA800 I've tried 'drawable-normal-notlong-hdpi' - emulator and handset still gets resources from 'drawable', not even 'drawab... | stackexchange/codereview |
Am having an issue with Safari. I have a basic script using jQuery that makes some changes to a form field and adds some behaviours to it. When I run this script on using the document ready method it's fine in Firefox but in Safari it doesn't always run the initial changes. I can hit refresh and get it running fine 4/5... | stackexchange/codereview |
I tested my device (iPod Touch 2G iOS 4.1) if location services are enabled
permitted = [locationManager locationServicesEnabled];
and I always get a YES whether location services are enabled or not. I'm talking about the general button for location services and not the app specific button. On iPad with iOS 3.2.2 ever... | stackexchange/codereview |
I'm thinking of starting a facebook style website with bio pages, friend requests etc, roughly what sort of database tables would be advisable?
Ie. Users, status?
A rough list would help?
Thanks
| stackexchange/codereview |
For a rails CSS framework for an existing app, which one do you prefer - LESS or COMPASS?
| stackexchange/codereview |
I'm trying to balance a BST by first building an array (inorder) and then rebuild the entire tree from my array.
I have:
public void toArray(E[] a) {
toArray(root, a, 0);
}
/*
* Adds all elements from the tree rooted at n in inorder to the array a
* starting at a[index].
* Returns the index of the last inse... | stackexchange/codereview |
I've downloaded the recaptcha.dll in both 1.0.1.0 and 1.0.4.0.
When trying to render the control, I get the following exception:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your... | stackexchange/codereview |
How do you recommend to work with long variables in Javascript? Thanks!
For example...
window.location.hash.substring(2).split("/")[0].something().hello;
object["object"].object(object.hello.how.are.you[another.object(function.inisde())]);
My solutions
Use with() { (...) }
| stackexchange/codereview |
Currently this just makes a long list. How do I display this with 5 records per row instead of 1?
<% @tags.each do |tag| %>
<p><%= tag_search(tag) %></p>
<% end %>
currently
tag1
tag2
tag3
tag4
tag5
tag6
tag7
...
desired
tag1 tag2 tag3 tag4 tag5
tag6 tag7
I know this is really basic but I just cannot manage to fi... | stackexchange/codereview |
I've just noticed that for my entity's id, eclipselink assigns an id 1 + the previously greated assigned IN THE SAME SESSION (1), as opposed to in the element table (2). This goes against my application expectations.
What's the easiest way to tell it to do 2?
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private... | stackexchange/codereview |
How can I read from standard input and write to standard output. System.Diagnostics.Process.StandardInput's MSDN reference didn't help as it separately starts the process and then redirects the Standard Input/Output but what If the process is already running and called my Application to feed it some data. Here's an exa... | stackexchange/codereview |
I am new to programming in android. I have followed instruction and create a admob banner. How can I make it appear at certain intervals, and make it disappear if I want to? For example the admob banner can goes up and down at the bottom of the screen whenever it wants to.
Thanks.
Edit:
I know that i can call adView.s... | stackexchange/codereview |
I have the this function which it has been written in html. you put a md5 value in the textbox and hit the button to start searching.
<form action="http://www.virustotal.com/vt/en/consultamd5" method="post">
<input name="hash" >
<input type="submit" value="get MD5">
My question is how do I do the somet... | stackexchange/codereview |
I am trying to check whether window service is working properly or not. I wrote code for that; it's working fine for local system, but when I used this for remote system, it's not working.
Code for that are as follows:
//Main Unit...
ServiceWatcher := TService.Create();
ShowMessage('Hello ServiceWatcher');
//This ... | stackexchange/codereview |
I found the following event that I want to use in my asp.net app.
private void grid_SortCompare(object sender, DataGridViewSortCompareEventArgs e)
{
try
{
if (e.RowIndex1 == this.dataGridView1.Rows.Count -1)
e.Handled = true;
if (e.RowIndex2 == this.data... | stackexchange/codereview |
I have a form with a DataGridView on it.
In this DataGridView there is a DataGridViewComboBoxColumn. When changing the value of a cell of this DataGridViewComboBoxColumn, the CellValueChanged-event is only fired when leaving the cell (for example, if I click into another cell).
The event is not fired when I change the ... | stackexchange/codereview |
What, if any, issues can you expect to encounter if you replace plugin with a gem version? For ex, paperclip plugin to paperclip gem.
| stackexchange/codereview |
I'm running some queries in PL/SQL Developer, and one of the columns in the result has 18-digit numbers. Instead of displaying the entire number in the resulting grid, PL/SQL Developer displays only 15 digits in scientific notation.
I tried to find a way to change this in the preferences of the program, so that I'll se... | stackexchange/codereview |
What is the state of maturity of javascript on these platforms? Is safe write a prototype app and trust that it'll work on all of these devices without headaches?
| stackexchange/codereview |
I think I'm about fed up with GIT - I keep getting these obscure errors with no indication as to where or why.
This last is on a pull on a cygwin side with GIT version 1.7.2.3 - I get an 'early eof' message and then it won't go any more.
The repository scenario is:
MAC - working repository
MAC - bare repository servi... | stackexchange/codereview |
I am planning to build an algorithm web site that compiles the c and other language programs. I want to know is there any readymade tools/libraries for that?.
| stackexchange/codereview |
I try to create a configuration file, where I can store constants.
Whenever I try with ConfigParser, I get an error
Traceback (most recent call last):
File "/home/baun/google_appengine/google/appengine/ext/webapp /__init__.py", line 511, in __call__
handler.get(*groups)
File "/home/baun/workspace/octopu... | stackexchange/codereview |
Just curious which legacy DOS based system is responsible for a 'TEXT.IX' data file.
If anyone has come across it before please tell :-) Thanks.
| stackexchange/codereview |
Is there a way to return to the previous view without having to record all the parameters that were used to get to the view in question. Consider this situation. You have a search screen with input parameters, you press search and get results displayed on the page. You click on one item to get a detailed look which red... | stackexchange/codereview |
Does anyone know how to use the Font Squirrel @font-face kit generator, or something similar, to output a variant of a font, i.e. the bold variant?
I am using Gill Sans on my website and it is set to "font-weight: 900" or "font-weight: bold," which looks great on my machine because it has the font installed. But if I j... | stackexchange/codereview |
I have an NSTextField in a Preferences panel. It provides a field to enter a url in.
However, if the user closes the Preferences panel after editing the text in the field, the new value does not get propagated to the User Defaults. This only happens after the user explicitly does Enter or Tab.
This kind of makes the wh... | stackexchange/codereview |
I guess I am spoiled with JavaScript. If you want to change something about the parent, you can code something like parentNode.style.etc.
<TABLE id="hasID">
<TBODY>
<TR>
<TD>
<IMG id="hasID2" src="somePicture.png">
<IMG id="hasID3" src="someOtherPicture.png">
</TD>
</tr>
<t... | stackexchange/codereview |
I need to do an internet access to update a field on my UI. I do the internet access in a background thread by extending AsyncTask.
Since I need to update my UI every time the screen is refreshed I am executing the AsyncTask in my onResume method:
@Override
protected void onResume(){
super.onResume();
showDialog(RE... | stackexchange/codereview |
I'm trying to break a page of text into blocks based on a start and end string. I saw a posting on how to do this but for some reason (probably something wrong between the keybd and the chair), I'm not getting any returned rows.
This is that I have so far:
open INPUT, "in.file" || die "Can't find file\n";
open OUT, ">l... | stackexchange/codereview |
I have finished developing a GUI desktop Ruby application that uses Qt through the qtbindings gem, and I need to release it with a few requirements:
The user doesn't have to build or compile anything, especially Qt libraries, installing Ruby and Rubygems is OK, but not more
It must run on Mac and Windows, Linux too pr... | stackexchange/codereview |
I have a href link is as below
<a href="#" class="add_encounter">Add</a>
on $(document).ready i run this function is as below
$('.add_encounter').click(function(event) {
add_encounter(encounters);
event.preventDefault();
});
on add_encounter function i changed class name of ahref from add_encounter to encou... | stackexchange/codereview |
I am working on a custom control library for WM6 smart devices (.net cf 3.5). I created a custom control named GradientPanel, guess what it does. A class called GradientColor describes how the background should be rendered. I already created a custom typeconverter so that the GradientColor property of a GradientPanel i... | stackexchange/codereview |
When rotating a scroll view inside a UIView, the scroll view doesnt position correctly using its default autoresizing behaviour.
Thus, when rotation occurs, in willRotateToInterfaceOrientation i call [self.view setNeedsLayout]; and my layoutSubviews method is as follows:
- (void)layoutSubviews {
NSLog(@"here in la... | stackexchange/codereview |
I am using ShareKit (www.getsharekit.com) to share my URL's to Twitter and Facebook. I want to be able to remove all of the additional social network it points to, but am not sure where to edit?
| stackexchange/codereview |
I switched to work on another computer, I installed visual C# express and protoBuf-net,
and then I copied the source of the project to the other computer.
Now when I open the project on the second computer, the program does not serialize and deserialize the data.
When I'm debugging, every time I step into a piece of co... | stackexchange/codereview |
What are the best practices for logging in Android apps in production mode, keeping in mind the following requirements :
Ability to upload logs for debugging
Ability to clean up logs or set rollovers
Thanks
| stackexchange/codereview |
In AS3, I'm trying to check whether an object is an instance of, or extends a particular class. Using something like if (object is ClassName) works fine if the object is an instance of ClassName but not if it's an instance of a class that extends ClassName.
Pseudo-code example:
class Foo {}
class Bar extends Foo {}
va... | stackexchange/codereview |
When I do file inputs, I usually set their opacity to 0 and position a browse button beneath them (simply because the file inputs are kind of ugly and inflexible by themselves - and I must to meet the designer's requirements).
I just stumbled across Uploadify.
My form is working at the moment as a standard form with fi... | stackexchange/codereview |
Linux binaries are usually dynamically linked to the core system library (libc). This keeps the memory footprint of the binary quite small but binaries which are dependent on the latest libraries will not run on older systems. Conversely, binaries linked to older libraries will run happily on the latest systems.
Theref... | stackexchange/codereview |
In my application's .htaccess file I have the following:
Options -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) index.php
A very lightweight file that puts all unmatched requests through index.php.
However, this application is a social networking we... | stackexchange/codereview |
I know there are lot of ways to implement a thread safe singleton pattern like (Double Check Locking , static readonly method, lock method) but i just tried below code
static void Main(string[] args)
{
for (int i = 0; i <= 100; i++)
{
Thread t = new Thread(new ParameterizedThreadStart(doSome... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.