instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a Symbian based phone with a ARM Cortex-A8 processor (SonyEricsson Vivaz) and was thinking on how hard would it be to try and port the Android OS for it. Obviously Android runs on a myriad of devices with different hardware so I imagine it shouldn't be too hard to adapt it to SE hardware. Could some one give me ... | stackexchange/codereview |
I'm planning to build a website that has the following in the first Phase
Events List
Events Management by admin
Register for events (buy tickets)
News List
Manage News
Support Multi-Language
In the next phase i would like the site to be a social networking site (considering elgg)
I want the website to be light and f... | stackexchange/codereview |
I am wondering whether it is a good idea to make labels public so other classes can change them and get their value. Is this a good idea? If not, how should it be done then?
| stackexchange/codereview |
Which parts of the Visual Studio IDE (if any) are open source? Thanks!
| stackexchange/codereview |
I developed an Android application that uses many services, including GPS and orientation (compass). The genre of the application is AR (augmented reality) and I'm moving image views around the screen in real-time depending on the phone orientation. However, after a while, the phone freezes for a second and then reboot... | stackexchange/codereview |
When I execute:
public void beginTransaction() {
em.getTransaction().begin();
}
following an active transaction started in the same way, I get the following exception:
Exception Description: Transaction is currently active
java.lang.IllegalStateException:
Exception Description: Transaction is currently active
... | stackexchange/codereview |
I have following two classes:
template <size_t size>
class Cont{
public:
char charArray[size];
};
template <size_t size>
class ArrayToUse{
public:
Cont<size> container;
inline ArrayToUse(const Cont<size+1> & input):container(reinterpret_cast<const Cont<size> &>(input)){}
};
I have three following lines of code at... | stackexchange/codereview |
Lets say we are displaying a few family trees. We are currently on the family tree top-page,and we need our list to look like this:
Family Trees
The Smiths
The Joneses
The Does
When the user clicks the Smiths, we want the list to look like this:
The Smiths
The Smiths
Dave
Steve
Dolly
The Joneses
The Does
And when... | stackexchange/codereview |
I am working on a code which runs as a service. Basically it listens for input and produce output accordingly.
I am trying to profile a package using jrat. [We do not have a licence for Jprofiler and I couldnt set up the trial version to work properly].
I followed the instructions here:
http://transferer.blogspot.com... | stackexchange/codereview |
I want to store currencies in my (sqlite and mysql) databases. I'm trying to use the decimal column type, with :scale => 2.
This isn't behaving as expected. If I save a record with :rate => 10.50, it is stored in my sqlite db as 10.5. In addition, when I output the value in a form field, it is displayed as 10.5.
I don'... | stackexchange/codereview |
I know this is a somewhat vague question, but during debug execution, the app I'm working on dies without any stacktrace or warning and with simply this message in the debug console:
Program received signal: “SIGKILL”.
I have NSZombieEnabled, NSDebugEnabled, MallocStackLoggingNotCompact and MallocStackLogging all se... | stackexchange/codereview |
I have a custom boot loader that I would like to write to a .VHD file for testing. Any idea at what offset in the file I should write the boot loader to? Any pointers to the C structures for the .VHD file format?
| stackexchange/codereview |
I'm trying to compile a OpenGL program on my MacBook and can't figure out how to convert this makefile.
CFLAGS= -I/usr/X11R6/include -I/usr/local/include
LDFLAGS= -L/usr/X11R6/lib -L/usr/local/lib -lGL -lGLU -lm -lglut
BINARIES=q2
all: $(BINARIES)
clean:
-rm *.o $(BINARIES)
q2 : q2.o
g++ $(LDFLAGS) $^ -o q2
... | stackexchange/codereview |
How can I tell the encoding of the source file from inside a running python process, if it is even possible?
| stackexchange/codereview |
I have a multi-line TextView that has android:ellipsize="end" set. I would like to know, however, if the string I place in there is actually too long (so that I may make sure the full string is shown elsewhere on the page).
I could use TextView.length() and find about what the approximate length of string will fit, but... | stackexchange/codereview |
I am profiling an application using VerySleepy 0.7. The application is written in C++ with Qt 4.6.x, compiled with VS 2005 and is running on Windows 7 Ultimate x64.
The highest usage by far is a call to RtlPcToFileHeader
Exclusive Inclusive %Exclusive %Inclusive Module
33.67s 33.67s 15.13% 15.13% ntdll
I... | stackexchange/codereview |
I know, that you can handle BackgroundWorker errors in RunWorkerCompleted handler, like in next code
var worker = new BackgroundWorker();
worker.DoWork += (sender, e) =>
{
throw new InvalidOperationException("oh shiznit!");
};
worker.RunWorkerCompleted += (sender, e) =>
{
if(e.Error != n... | stackexchange/codereview |
In a multi-threaded environment, how can a thread possibly see a 'partially constructed object'? I understood that it is not thread-safe since multiple threads can create multiple instances.
class LazyInit
{ private static Resource resource = null;
public static getInstance()
{ if (resource == null) { resou... | stackexchange/codereview |
i'm trying to test an object by passing a mock owner. Originally PartD would be passed a PartB1 as its owner:
PartD partD = new PartD(partB1);
Now i want to test a feature of PartD by passing it a mock owner:
PartD partD = new PartD(mockPartB1);
This works okay, except there are things PartD does that depends on it k... | stackexchange/codereview |
Possible Duplicates:
Python - Previous and next values inside a loop
python for loop, how to find next value(object)?
I've got a list that contains a lot of elements, I iterate over the list using a for loop. For example:
li = [2, 31, 321, 41, 3423, 4, 234, 24, 32, 42, 3, 24, 31, 123]
for i in li:
print(i)
But... | stackexchange/codereview |
I wrote a php extension but couldn't find the reason why it reported segmentation fault.
related code:
char *tkey = (char *)emalloc(sizeof(char)*(result_pair[num-1].length+1));
std::memcpy(tkey, (text+i),result_pair[num-1].length);
tkey[result_pair[num-1].length]='\0';
... | stackexchange/codereview |
I have a webapp that uses JNDI to locate a datasource and a transaction manager. I see from the Jetty documentation how to do this via the jetty-env.xml file. However it mentions that this file should be put into the WEB-INF directory.
Why would they suggest that JNDI resources be configured in a configuration file... | stackexchange/codereview |
I have a web service written in PHP, that returns JSON results. It works well and has been thoroughly tested.
I needed to add logging to the service calls (who called and when). I implemented this using a SQLite database (for very small amount of data) and PDO. The one condition to the logging was that it should not h... | stackexchange/codereview |
I have some code on an aspx page then when users loads the page it starts downloading a zip. Looks like this:
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + fileSaveName);
Response.TransmitFile(zipPath);
... | stackexchange/codereview |
I want to display about one or two full screens worth of text in an Android application (like a welcome screen or help screen), and I'm trying to figure out the best way of storing that text in the app. The text does not need formatting, but line breaks and empty lines must be preserved.
So far I have come up with the ... | stackexchange/codereview |
MVC frameworks in general?
Is it different from MVC in desktop GUI applications?
What exactly is it that makes it easier to test than WebForms ? (Can't you test Code Behind in a similar way to MVC controllers)
I have the impression that ASP.NET MVC is mostly about clean URL's - with controllers processing user input in... | stackexchange/codereview |
I want to let the user select when the shift key is held.
$("#div").selectable({
start: function(st) {
$(window).keydown(function(e){
if(!e.shiftKey){
st.stopPropagation();
}
});
});
no?
| stackexchange/codereview |
Given a String and a Range is there any easy method to get a substring by removing the characters from String which come in the passed Range?
| stackexchange/codereview |
I have this Perl CGI program and I allow the user to select the number of data to view on this HTML table. I go through a foreach ... foreach ... and print each row.
There is an issue with the Perl CGI script when it prints over 3,000 rows of data and my Firefox window becomes unresponsive. I am also linking dataTable... | stackexchange/codereview |
How to translate code below to use three div and look the same ?
<table width="1050px">
<tr>
<td rowspan="2" width="80%"></td>
<td width="20%"><p>some text</p></td>
</tr>
<tr>
<td><p>some text</p></td>
</tr>
<table>
| stackexchange/codereview |
I'm using Beej's Python Flickr API to ask Flickr for JSON. The unparsed string Flickr returns looks like this:
jsonFlickrApi({'photos': 'example'})
I want to access the returned data as a dictionary, so I have:
photos = "jsonFlickrApi({'photos': 'test'})"
# to match {'photos': 'example'}
response_parser = re.compile(... | stackexchange/codereview |
I have a table of several hundred users and I want to create a 4-digit pin code like those used at an ATM machine for each user using an UPDATE statement. They don't have to be unique, but I don't want to use an autonumber type of field so one company cannot easily guess the pin code of another user. What is the simple... | stackexchange/codereview |
I have a Microsoft Ribbonbar inside a Window, and every RibbonButton is associated to a specific command like this:
<ribbon:Ribbon x:Key="MyToolbar" Name="MyToolbar" >
<ribbon:RibbonTab Header="File" >
<ribbon:RibbonGroup Header="File" >
<ribbon:RibbonButton Command="{x:Static ApplicationCommands.New}" Lar... | stackexchange/codereview |
I've been reading about Mole and am interested in trying it but it doesn't look like it's being kept up to date as there's no mention in the documentation of Windows 7 or Visual Studio 2010. Is the project still active or is it now obsolete because there's a better alternative? Has anyone managed to get it working with... | stackexchange/codereview |
Is it ok to use both OpenGL an OpenCL in one program? Both operate on GPU and I'm afraid how switching between OpenCL and OpenGL is handled in "background" (e.g. registers are overwritten).
I'm using Linux working on computer with some nVidia graphic 8k, so i can use OpenCL implemented on top of the CUDA.
| stackexchange/codereview |
How to use the setBackgroundDrawable method on tablelayout with an URI?
| stackexchange/codereview |
I'm new to jQuery, but just attempting to create a function I can use to filter a table. I've got the table set up so that I can select all the rows by the class (which works fine) and call each() on the result. Inside the callback to each() I've got this if statement:
if ($(this).find("td[name=firstName]:contains('k... | stackexchange/codereview |
I've currently got a spreadsheet type program that keeps its data in an ArrayList of HashMaps. You'll no doubt be shocked when I tell you that this hasn't proven ideal. The overhead seems to use 5x more memory than the data itself.
This question asks about efficient collections libraries, and the answer was use Googl... | stackexchange/codereview |
I have a Python command-line script that can take some time to run (from 5 seconds to 5 minutes), depending on the checks it does. The script uses many command-line arguments, some mandatory, most optional.
I'd like to "webify" this script, making it possible to access it from a Web browser, but without changing the co... | stackexchange/codereview |
I need to use natural cubic spline interpolation in an iPhone app. Does anyone know of a class for Obj C or C that resembles this:
http://www.ee.ucl.ac.uk/~mflanaga/java/CubicSpline.html
"performing an interpolation within a one dimensional array of data points, y = f(x), using a cubic spline."
| stackexchange/codereview |
I use SQLite 3.6.7 and I want to update it. Can anyone say how to update my SQLite to the latest version step by step ...
I'm developing OS X apps. For this, I'm using SQLite 3.6.7. But I came to know that I can't directly use foreign keys so I want to update my SQLite to the latest version ... Can anyone help me out ... | stackexchange/codereview |
I have Page, MasterPage and UserControl in my project.
So I create basepage class and share some logic, then inherit from System.Web.UI.Page. My problem is I want use single basePage for any type of UI content.
| stackexchange/codereview |
I added following at line 42 of proto.h:
typedef boost::make_unsigned<off_t>::type uoff_t;
And now I get this verbose and confusing warning from gcc complaining about comparing an enum to the same enum type:
In file included from proto.cpp:12:
/usr/local/include/boost/type_traits/is_unsigned.hpp: In instantiation of '... | stackexchange/codereview |
Kindly send me a code sample of how to run the music file when the application goes in the background. [iphone 4.1].
I don't want the music to stop when my application goes in the background just like the itunes music.
Best Regards,
Naveed Butt
| stackexchange/codereview |
Given a list of e-mail addresses:
list = ('First Last <first@example.com>' , 'name@example.org')
some of which contain first and last name, others which just contain an e-mail address, how can I loop through the list and extract a first and last name (if they exist), and the email address?
Thanks.
| stackexchange/codereview |
I have a set of data that I'd like to present via a WPF ListView in this way:
Column1 Column2 Column3
--GroupName1--
Item1 part2 part3
Item2 part2 part3
--GroupName2--
Item3 part2 part3
Item4 long_text_in_both_columns
Item5 part2 part3
--GroupName1--
Item6 part2 part3
It... | stackexchange/codereview |
I have heard in the past unload, or onunload, is not always called. However, I would like to know how often it is not called. What conditions lead to it not being called? Is this different for Firefox and IE?
| stackexchange/codereview |
Good day,
I am working on a Stratix III FPGA which contains M9K block memories, the contents of which are conveniently initialised to zero on power-on. This suits my application very well.
Is there a way to reset the contents back to zero without power-cycling/reflashing/etc the FPGA? There seems to be no such option i... | stackexchange/codereview |
Does Castle Windsor support applying setter injection to existing service instances? I have a case in which I have no control over the creation of certain class instances while I do need to resolve dependencies for them. This rules out constructor injection but leaves the door open for setter injection since I can inte... | stackexchange/codereview |
I have recently started encountering Database connection issues with SQL Server on my development machine.
System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool
How can I monitor the connection pool to figure out what is happening?
Further Info:
I ... | stackexchange/codereview |
I'm having some trubles with NotificationListener on JBoss.
I'm have a MBean on an JBoss, I can connet and call their methods. But when I'm trying to add Notifications y get the next exception:
org.jboss.invocation.JBossLazyUnmarshallingException: getArguments failed
at org.jboss.invocation.MarshalledInvocation.ge... | stackexchange/codereview |
I'm using a js.erb template to render some jQuery. When editing an html.erb file in TextMate, I frequently use the convenient key combo, ctrl+>, to create and then toggle the following tags:
<%= %>
<% %>
<%- -%>
<%# %>
This shortcut doesn't work by default when editing js.erb files. In the Bundle Editor, I found a... | stackexchange/codereview |
I trying to parse a string in an XML node by using an XPath query which requires that I strip out a substring and read the remaining value. The substring may have a dynamic amount of whitespace before and after it before I can get to the value, so it would be helpful to have some sort of a indexOf function to use in t... | stackexchange/codereview |
I need an Apache Ant target that deletes all files in a directory but does not touch subdirectories.
In my current approach I have to explicitly name the subdirectories I want to skip (atm just "src/").
<delete>
<fileset dir="${dist.dir}" excludes="src/" />
</delete>
But I don't like it. That way I would have to mo... | stackexchange/codereview |
If there is a null value stored in a MySQL INT column, it will return 0 when accessed by technoligies like JPA. If 0 value also stored in the column, how can I differentiate between null and 0?
| stackexchange/codereview |
I have a webpage, where user has a possible to Print this page OR to save it on his/her computer.
How may I save it as a Word or PDF document?
Thanks.
| stackexchange/codereview |
I'm trying to simulate some data in to the datastore to emulate POSTs.
What I'm looking for is a way to post named arguments but as one argument. So I can use the same method as a normal POST would do.
The method I want to invoke get params in two ways.
def HandlePost(params):
params.get('name')
params.get_al... | stackexchange/codereview |
I've installed Flash Moto CMS, and I want to link it with any kind of TemplateMonster but I have no idea on how I can do this right now.
So I'm asking you for help !
Any documentation, any video tutorials !!!
Thanks
| stackexchange/codereview |
I was going through the code golf question here on Stack Overflow and saw many Perl one-liner solutions.
Is something like that possible in Python?
| stackexchange/codereview |
I found a pdf file called: ProgrammingGroundUp-1-0-booksize.pdf, and one of the projects is to make an assembly program that takes in files and converts them to uppercase, `
.section .data
#######CONSTANTS########
#system call numbers
.equ SYS_OPEN, 5
.equ SYS_WRITE, 4
.equ SYS_READ, 3
.equ SYS_CLOSE, 6
.equ SYS_EXIT, ... | stackexchange/codereview |
I have got output and I want to use only three values after decimal. How can i do that in Python?
| stackexchange/codereview |
So I am doing a lynda.com Rails essential training tutorial, and I am getting an error that the video tutorial does not. I assume this has to do with the different versions of Ruby & Rails that I am using (the latest as of today) as opposed to the ones they used when this was recorded (I think in 2007).
This is what my... | stackexchange/codereview |
This is very weird. Apparently, I can use both .val() and .text() to manipulate textarea text.
But after I use .val to change the text, I cannot use .text anymore. The converse is not true.
This is leading to some funky bugs. The reason is because a plugin i am using might be using .val to manipulate the text.
Can any... | stackexchange/codereview |
When I create a production war (grails war --nojars) my doWithDynamicMethods is not being called in a production environment. The code works in the dev env (ie grails run-app)
Here is some of my code:
PDFFormsGrailsPlugin.groovy (in PDFForms (plugin) directory) :-
def doWithDynamicMethods = { ctx ->
println "Adding... | stackexchange/codereview |
I've got an ASP.NET site backed with a SQL Server database. I'm been using Lucene.NET to index and search the database. I'm adding faceted search navigation to the results page (the facets are a hiarchical category tree). I asked yesterday to make sure I was using the right technique for faceting. All I've gotten so fa... | stackexchange/codereview |
is there any possibility to show some descriptive text on NSIS installer custom page, but only on mouse hover?
I have the prerequisites check at the beginning of the installer and when one (or more) of the tests fail, appropriate warning message is displayed. It is custom page displayed before whole installation. The ... | stackexchange/codereview |
how can i remove duplicates in nsarray. for instance my array contains following data. I want to compare with adjacent dates to avoid duplicates but it throughs error.
Can anyone guide me what i am going wrong
calendar first-
(
2010-09-25 17:00:00 GMT,
"AAA",
2010-09-25 17:00:00 GMT,
"AAA",
2010-09-26 17:00:00 GMT,
"B... | stackexchange/codereview |
I'm trying to redirect all requests for subdomain.example.com to www.example.com
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
Seems to cause a 500 internal server error as does
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^example.com [nc]
rewriteru... | stackexchange/codereview |
I'm on Heroku, and this is a portfolio thing which I'm putting up on github for potential employers to look at, so obviously I don't want to stick my keys in a S3.yml file. I've exported S3_KEY and S3_SECRET to my environment both on Heroku and my machine and ruby can access them. But when I try and upload, it gives me... | stackexchange/codereview |
I think if we make calls to Facebook using REST or Graph API, we will know if it is fake because it will come back saying fake session / auth_token / access_token. But what if we are showing our own DB info, such as the user's "most preferred product list", then we don't make any call to Facebook but show our DB's da... | stackexchange/codereview |
There is some code written using C# which uses RijndaelManaged class to encrypt data and
Mode = CipherMode.CBC
I need implement the equivalent code in Mac using OpenSSl. What is the equivalent to RijndaelManaged in OpenSSl?
| stackexchange/codereview |
I have a MS Sql 2005 Database , and I want to generate Visual BAsic code of Data Entity Class, I search the web but I can find a tool that I want. If you any information or link please help me.
| stackexchange/codereview |
I have the following two models:
photoalbums
has_many:photos
photos
belongs_to:photoalbums
When I show a list of all the photoalbums, I want to also say how many photos exist in the album:
Controller:
def index
@photoalbums = PhotoAlbum.all
end
View:
<%# Get the number of photos per this album %>
<% @photos =... | stackexchange/codereview |
Assuming the Hudson job checks out 2 SVN directories:
https://foo.com/packages (root is https://foo.com/packages) -> "packages" in workspace
https://bar.com/temp/Hudson (root is https://bar.com/temp) -> "Hudson" in workspace
I tried different things, browsed online for answers, but I still can't get these 2 things to ... | stackexchange/codereview |
I have a main program that creates the threads in order:
ThreadB then
ThreadA (which is passed ThreadB's ID)
using the CreateThread function.
Thread A sends a message to Thread B using PostThreadMessage.
B gets the message using GetMessage.
The problem I am having is that PostThreadMessage blocks randomly the first tim... | stackexchange/codereview |
I'm writing a small command line utility whose purpose is to parse the output of another utility. I want it to be invokable in two ways:
c:\> myutility filewithoutput.txt
Or,
c:\> otherutility -args | myutility
So, basically, standard in or a file argument. My first attempt at this looked like this:
TextReader reader... | stackexchange/codereview |
How can I change Firefox's proxy settings from a script like a vb script or maybe .net? If someone could show me how to do this it would be great.
| stackexchange/codereview |
Pages using the Google Font API validate as CSS3, but not as CSS2.1. Here is the href, straight out of the Google instructions:
<link href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" rel="stylesheet" type="text/css" id="googlefont" />
CSS 2.1 and XHTML 1.0 Strict are unreasonably restrictive, so I'm not... | stackexchange/codereview |
I need to emulate a paged file system in C++. Need to store multiple tuples in a page(block of a file) with a directory at the end of each page pointing to the offset of each tuple on the page. I also need to store variable length attributes in the tuples. Would using an STL container and serializing it to disk be the ... | stackexchange/codereview |
I'm using Facebook Graph API on Google App Engine. I was able to fetch all the basic info from an user. However when I tried to fetch any user info that requires permission, email for exemple, it always appears as None. I've followed the whole tutorial available at the developers blog.
Here's my code:
class User(db.Mod... | stackexchange/codereview |
I recently launched a service, meaning I can no longer work directly on the site, or I do so at a risk.
I haven't been able to find any "standard" or "best" way to make a development server. The two things I have seen are
a) Using a GIT or SVN to host the data (this doesn't quite solve my problem, I need to be able to ... | stackexchange/codereview |
I have a list of objects which I want to perform an operation on. However I firstly need to divide the list into separate lists such that all items with the same parentID are in the same list, and then the operation is performed on each list separately (the reason being that the operation takes the parentID of the obje... | stackexchange/codereview |
The following query is only matching the first value found in the select subquery, even though there are match for all values SELECT p FROM Profile p WHERE p.id IN (SELECT u.group FROM User u WHERE u.id = ?1)
The subquery returns a comma separated list like: 1,2,3. The query should return matches for all three subquery... | stackexchange/codereview |
Shouldn't these two math problems give the same answer? Brackets/parenthesis are done first, right? so it should add them all, then divide it by 2, then subtract 10. The second answer below is the one giving me the correct value that I need, the other one gives a value that's a long ways off.
var pleft = $(this).of... | stackexchange/codereview |
An unhandled exception of type 'System.TypeInitializationException' occurred in Microsoft.VisualStudio.HostingProcess.Utilities.dll
Additional information: The type initializer for 'BobTyler.Program' threw an exception.
'BobTyler.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__... | stackexchange/codereview |
What I'd like to do is sending a HTTP POST request to a REST webservice. However it seems as if my applicaion cannot connect to the host. The application throws the following exception when sending the request:
10-19 18:54:05.335: VERBOSE/SD(280): java.net.UnknownHostException: http://www.myhost.com
10-19 18:54:05.335:... | stackexchange/codereview |
I'm trying to change the font of web pages loaded in to a Browser app developed for Android. Currently my custom font is hosted in a URL & I access the font from there by injecting a JavaScript to the page to change the style sheet (CSS) font face.
Here is the current code:
var css = '@font-face {font-family: "dhanika"... | stackexchange/codereview |
public void SomeMethod1()
{
using (TemplateEntities ctx = new TemplateEntities())
{
//do something in this ctx
}
}
public void SomeMethod2()
{
using (TemplateEntities ctx = new TemplateEntities())
{
... | stackexchange/codereview |
I have a table "items" with a column "position". position has a unique and not-null constraint. In order to insert a new row at position x I first try increment the positions of the subsequent items:
UPDATE items SET position = position + 1 WHERE position >= x;
This results in a unique constraint violation:
ERROR: du... | stackexchange/codereview |
I'm using C++ under Linux compiling with standard GCC. In my program I want to add a simple clock showing HH:MM:SS. What's the easiest way to do that?
| stackexchange/codereview |
From what I have read ARGV should be a constant since it is all uppercase, but I was able to write a quick program that changed one of the values in ARGV without error. So what type of variable is ARGV?
p ARGV
ARGV[0] = "Not the orginal"
p ARGV
| stackexchange/codereview |
I have read the other window leak posts and have tried what what suggested there to no avail.
I have 3 activities: A, B, and C. Activity A gathers information from the user. Activity B displays a spinning ProgressDialog while it communicates with a server on another thread. When the thread finishes, it dismisses the Pr... | stackexchange/codereview |
I have built autocomplete input box (but there is a problem with foucsout)
Watch this :
http://www.youtube.com/watch?v=IxlXWfJsSeM
Demo:
http://www.faressoft.org/autocomplete/
My HTML Code :
<div class="autoCompleteDiv">
<input type="text" value="" size="60" name="countryName" id="countryName" class="autocomplete">... | stackexchange/codereview |
How can I configure a Mercurial server to restrict commits to a named branch once it has been closed? I only want the repository administrator to have the ability to reopen the branch.
https://www.mercurial-scm.org/wiki/PruningDeadBranches says that closed changesets can be identified by "close=1 in the changeset's ext... | stackexchange/codereview |
For an iPhone app, I'm going to need to display read-only tabular data in a grid format. This data could potentially have many rows and columns.
I could use UITableView, but the problem is the data will most likely be very wide and require scrolling.
Is there a way to put a UITableView in a UIScrollView and allow zoom... | stackexchange/codereview |
Is there any way to create unique keys like those used in YouTube video urls (ex: https://www.youtube.com/watch?v=nWChTnkVdKE)?
| stackexchange/codereview |
I have a controller that is:
def create
.
.
@project = Project.find(params[:project]
@Log = Logs.create(params[:action]).merge(:project_id => @project.id))
...
end
The issue hereis that sometimes when DEF CREATE, I'll have a project and I want to record that. Other times I won't and that's perfectly fine, I still wan... | stackexchange/codereview |
I can't get my head around KDiff3 or Beyond Compare in the merge mode.
Is there any tutorial to this feature?
| stackexchange/codereview |
private static int reverse(int n, int r) {
if (n == 0) return r;
return reverse(n/10, 10*r+n%10);
}
public static int reverse(int n) {
return reverse(n, 0);
}
I've tested this and it works, I just cannot figure out how. I know that the number is divided by ten and then goes into the loop again, but it seem as if ... | stackexchange/codereview |
Suppose I have a function
void foo(char *)
which, internally, needs to treat its input as a block of NUL-terminated bytes (say, it's a hash function on strings). I could cast the argument to unsigned char* in the function. I could also change the declaration to
void foo(unsigned char *)
Now, given that char, signed c... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.