instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Can somebody point to the protocol docs of Metro TRK and/or App TRK that is used for on device debugging for Symbian Application?
| stackexchange/codereview |
I am looking at the solution in this post Reversing a linked list in Java, recursively
I copied the one of the solutions below. I've implemented it and it works fine.
public ListNode Reverse(ListNode list)
{
if (list == null) return null; // first question
if (list.next == null) return list; // second question... | stackexchange/codereview |
I would like to add to my RadioButtonList a ListItem displaying a DatePicker on select. How do I go about adding this in code please, I mean the DatePicker? The code below is my attempt at this but does not work
Dim datepick As New DatePicker
With datepick
.ID = "RadDatePicker1"
.MinDate = New DateT... | stackexchange/codereview |
I have searched high and low for a type of function that turns this code
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
void ran(int array[], int max);
int main() {
printf("Today's lottery numbers are:\n");
for (int i = 0; i < 6; i++)
srand((unsigned)(NULL... | stackexchange/codereview |
I'm making out a few menus for my Android App and throughout there is a standard textview that is repeated 5 times, only changing the android:text tag each time, everything else is the same.
There are a good number of properties on this and it feels very inefficient to be copy/pasting all these for each of the textview... | stackexchange/codereview |
I have a WCF REST service that is used to POST a file stream to. I need to send a parameter in the URL for the service such as the file name. I have no control over the service providing the file other than dynamically providing the URL - which is why I need to use the URL to include the file name and cannot include it... | stackexchange/codereview |
I have the following code to insert do an insert into my postgresql database
conn = psycopg2.connect("my connection setting are in here")
cur = conn.cursor()
cur.execute('INSERT INTO src_event (location_id, catname, title, name) VALUES (%i, \"%s\", \"%s\", \"%s\")' % (1441, "concert", item['title'], item['artists'] )) ... | stackexchange/codereview |
Possible Duplicates:
Remove diacritical marks (ń ǹ ň ñ ṅ ņ ṇ ṋ ṉ ̈ ɲ ƞ ᶇ ɳ ȵ) from Unicode chars
Is there a way to get rid of accents and convert a whole string to regular letters?
How can i do this? Thanks for the help
| stackexchange/codereview |
I have a list of String which I wish to convert to Json. I am using org\json\me in order to do so. However, I don't know how to continue from here. A little help will be appreciated. Thanks.
This is my code:
public class PhoneData implements JSONAble {
private Display display;
private Form mainScr;
pub... | stackexchange/codereview |
matthewmpp@annrogers:~/Programming/C.progs/Personal$ cat prime4.c
/*
* File: main.c
* Author: matthewmpp
*
* Created on November 7, 2010, 2:16 PM
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
/*
prime numbers.
version4
should tell whether a number is prime or not prime.
by usi... | stackexchange/codereview |
Hey guys, I've had a lot of help from everyone here and i am really appreciative! I'm trying to create a text file search engine and i think i am on the final stretch now! All i need to do now is to be able to search the multi-dimensional array i've created for a certain word submitted by a form and grabbed with GET, a... | stackexchange/codereview |
In a Cocoa app, I have a setup like this:
The main thread (M) can submit requests to a some background "producer" thread (B) to get some work done, say the result of a computation on item X.
A different background thread (C) shortly thereafter might want the results of computing item X, and want those results synchron... | stackexchange/codereview |
Can any one suggest jqueryTree I am using spring, hibernate, jsp.
| stackexchange/codereview |
I want to call a function of the business class after every 2 hours.
I m not getting any way to implement same in C/C++ without using a while loop.
My problem is that i cannot use while(1) as this does not retun back the control for further execution.
Any pointer in this regards wud be helpful....:)
thnaks
| stackexchange/codereview |
I have a farm installation of Sharepoint 2010 Server with Enterprise Client Access License. I want to publish an excel workbook to a document library on my site, but I am unable to do so. When I go to Central Admin -> Manage Service Applications, I do not see a service application for Excel Services and its not availab... | stackexchange/codereview |
I'm working on a game on iPhone, which uses C++ and OpenGL ES 1.x library.
It works fine on simulator. But when I install it on real iPhone, I found out that on iPhone original, it took about 20 milliseconds to render a frame. However, it took 35~40 milliseconds to render a frame on iPhone 3GS.
I've tried various OS, i... | stackexchange/codereview |
If I link an IBAction to multiple buttons, if multiple calls to this IBAction where done simultaneously would it cause interference or a crash. Will each one have to wait for the other, or is it concurrent?
Thanks
| stackexchange/codereview |
This one works:
http://jsfiddle.net/fGnL7/3/
using
$(document.body).click(function () {
if ($("div:first").is(":hidden")) {
$("div").slideDown("slow");
} else {
$("div").slideUp("slow");
}
});
but if for some reason, the element is made display: block by some framework (by Compass/Blueprint's +clearf... | stackexchange/codereview |
Its a long time since I've used C but now I'm trying to compile a short script that gets server-stats from the Apache-Portable-Runtime (APR).
Header files located at /usr/include/apr-1/apr*.h and libs are located at /usr/lib64/libapr-1.*
Source files can be found on the official APR site http://apr.apache.org/docs/apr/... | stackexchange/codereview |
I want to find the path in the system (if any) of a specific library
right now I have a built ins path:
dllNameFrodo = "/usr/local/frodo/lib/libfrodo.dylib";
but of course is ugly and not portable.
Any ideas ?
| stackexchange/codereview |
I'm trying to send a number from a page to another on in order to save it on my database, but when I use number_format method the number is converted to 0:
<?php
$_REQUEST["myNumber"]; // the number from the url is 25%2C8 (25,8)
// why this returns 0?
number_format (urlencode($_REQUEST["myNumber"]), 2, "."... | stackexchange/codereview |
I want to know how to get the location of the user's default Internet browser in Java. How can I get this? I would prefer it as a URI to the browser's executable file. Must work cross-platform.
| stackexchange/codereview |
I'm not a newbie to css and html, but totally not smart with php. Can someone tell me what to edit to have the grey bar at the bottom of my website (even when the content doesn't push the bar to the bottom?
Here is the link to one a the pages containing a footer not in place (in Dutch)
Perhaps I looked over the proble... | stackexchange/codereview |
currently I'm Inserting like:
MyNamedEntities db = new MyNamedEntities();
MyTableEntity field = new MyTableEntity();
field.Name = "me";
db.MyTableEntity.AddObject(field);
db.SaveChanges()
But now I want to insert child elements and I need that field.Id part
MyOtherTableEntity field = new MyOtherTableEntity();
field.... | stackexchange/codereview |
Lately I have been interested in better understanding the optimizations done by compiler back-ends. I thought that using Mathematica to explore this might be helpful because it makes creating, displaying and manipulating syntax trees pretty easy.
I thought I would start simple and look at constant propagation. So I wr... | stackexchange/codereview |
I am getting many errors with valgrind saying "Conditional jump or move depends on uninitialized value(s)".
Below is the one of the blocks. All of them are similar:
vasm_sourceline_info_t* line = asmState->firstLine;
if (line == NULL) return;
while ((line = line->next) != NULL)
{
printf ("[%s(%i)] %s\n", line->fileN... | stackexchange/codereview |
I will be moving to a new server and I need to make sure that everyone, no matter where on the site they come are redirected to a particular page. I think I need to do it with .htaccess Any suggestions how?
Thanks
| stackexchange/codereview |
I have a list:
<li> one </li>
<li> two </li>
<li> three </li>
how can i call out a specific element in the list to apply a style to? for example: how can i call "two" can apply a style to it.
| stackexchange/codereview |
So basically, i'm getting two really really big ID's from different resources (external resource and database), and I need to compare them somehow. If they match, I need to break the action.
Seems simple enough, but PHP is converting them to floats (looks something like that 6.2983963148698E+14) and they never seem to ... | stackexchange/codereview |
Is there an "easy" way to display xml data to a user via an JEditorPane or JTextPane in colored/highlighted way?
| stackexchange/codereview |
I'm using Flash Builder 4 Premium. My application has a title bar that I don't want to scroll, and a group underneath that should scroll. Here is the group that I want to be able to scroll:
<s:Scroller id="scrlMemberManager" includeIn="MemberManager" y="79" width="100%" height="100%" creationComplete="memberManagerInit... | stackexchange/codereview |
Why is a mod (%) operation more expensive than a multiplication (*) by a bit more than a factor of 2?
Please be more specific about how CPU performs division operation and returns the result for MOD operation.
In the following example the threads each run for a second. The test was performed on a SPARC processor.
// m... | stackexchange/codereview |
is there a Mac Tool that can simulate a internet connection for local development testing purposes?
I want to test ajax loaders etc, but since it's a local machine it's to fast?
Rails 3 App on a Mac, locally hosted
Thanks
| stackexchange/codereview |
Our company has relied heavily on COM+ components to centralize our DAL code and take advantage of the ability of COM+ to handle transactions and connection pooling. When we started using COM+, it was just with VB6 DLLs and always through late-binding so we could take advantage of DLLs being hosted on a different serv... | stackexchange/codereview |
I am planning to compare two audio files. i have recorded two voices and compared them using cross correlation. since the presence on background noise while recording the resulting correlation value is always near 0.5.If i give any recorded waves from internet , i am able to get the correct value. So how can i reduce ... | stackexchange/codereview |
I'm working on a Geo/Spatial search where I'm looking for nearby points. I have this Haversine query being run against a table:
SELECT
uid, adrLat, adrLng,
round(3956 * 2 * ASIN(SQRT(POWER(SIN((39.97780609 - abs(adrLat)) * pi() / 180 / 2), 2) + COS(39.97780609 * pi() / 180) * COS(abs(adrLat) * pi() / 180) * POWER(SI... | stackexchange/codereview |
i have three functions which are returning an IEnumerable collection.
now i want to combine all these into one List.
so, is there any method by which i can append items from IEnumerable to a list.
i mean without for each loop?
| stackexchange/codereview |
Can anyone provide me with an example program for reading an svg file.
| stackexchange/codereview |
I recented converted my project from SQL SErver to MySQL .
I do see one my query which was executing faster in SQL server takes more time( 2 sec ) in mysql.
Am I doing anything wrong here .Help me to optimize it . Thank s
SELECT ReadingDateTime, SUM(DATA) AS PowerTotal FROM
LTMeterReading WHERE MeterID IN(59) and Dat... | stackexchange/codereview |
We have an application based on Excel 2003 and Python 2.4 on Windows XP 32bit. The application consists of a large collection of Python functions which can be called from a number of excel worksheets.
We've notcied an anomolous behavior which is that sometimes in the middle of one of these calls the python interpreter ... | stackexchange/codereview |
In my Django website, I'm creating a class that interact dynamically with other applications installed in the website. I have to do a manipulation on each field of each application.
So I want to save the name of all installed applications in a list and get the attributes of each one. There is a way to do that using an ... | stackexchange/codereview |
I am loading into my UITableViewCells different sized images dynamically via URLs. I want to be able to resize the Cell depending on the size of the image that's downloaded. Can I extract the dimensions then change the heightForRowAtIndexPath for each cell?
- (UITableViewCell *)tableView:(UITableView *)tableView cellFo... | stackexchange/codereview |
I'm really curious about the lower level reason for this restriction, documented here http://msdn.microsoft.com/en-us/library/xfhwa508(VS.95).aspx
| stackexchange/codereview |
Is it possible with JavaScript to change the browser's URL, but not leave the page?
| stackexchange/codereview |
I am working on an iPhone app and I have cells of a UITableView. I want some of the cells to have subscripts of "f" and "0". Is there anyway to do this, maybe using unicode or something?
| stackexchange/codereview |
I'm querying a series of posts in WP with the following function:
<?php
$thirtydays = date('Y/m/d', strtotime('+30 days'));
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts( array(
'post_type' => array('post', 'real-estate'),
'meta_key' => 'Time Available',
'meta_com... | stackexchange/codereview |
Whenever with css or anything we change colors like backgrounds, color, border color etc. Is there a way we can animate the transition between normal and hover state colors?
What I want to say is the colors, lets say change instantly from white to black. I want the transition stages like all the gray-scale in between w... | stackexchange/codereview |
when i run a query like this:
SqlDataAdapter dap = new SqlDataAdapter("select * from some table", myConnection);
before doing the select, should i be doing "use somedatabase; go" ??
| stackexchange/codereview |
I would like to recognize the outline of a black rectangle on a white background using any 'ok' library for .NET.
I am aware of this question:
Are there any OK image recognition libraries for .NET?
I would just like a little more of a trail head into image recognition libraries and how to use them in this specific cas... | stackexchange/codereview |
I'm writing a small Python script using the PIL module to change the size of some textures used on a 3D Model in MultiGen Creator. I'm also using the openflight API so that's what the mg* functions are.
Here's the script
import PIL
from PIL import Image
db = mgGetCurrentDb()
ret,index,name = mgGetFirstTexture (db)
wh... | stackexchange/codereview |
We need to implement google like search functionality using DevExpress lookup edit control.
Please let me know If anyone implemented similar control.
Thanks
Apple
| stackexchange/codereview |
In very simple terms, can someone explain the difference between OAuth 2 and OAuth 1?
Is OAuth 1 obsolete now? Should we be implementing OAuth 2? I don't see many implementations of OAuth 2; most are still using OAuth 1, which makes me doubt OAuth 2 is ready to use. Is it?
| stackexchange/codereview |
That is, can I assume all the behaviors and styles I could apply to a normal <div> would work the same way on a <form>?
Thanks
| stackexchange/codereview |
I have 2 views that show lists that then uses a mediator to get data. but I want in some way to DRY it so I don't have to repeat my self 2 times for the same thing. how do I do it?
EDIT1(code):
[SkinPart(required="false")]
public var WOListsDDL:DropDownList;
// in partadded
case WOListsDDL:
// when the selected... | stackexchange/codereview |
I am writing an application that will move data from one database to another Using JPA EntityManager API. My questions are : 1. Can i use multiple entity managers in a single transaction? 2. Can i read an entity from one database and persist it in the other? what are the issues that am likely to encounter?
| stackexchange/codereview |
I have a little problem with an android custom dialog.
I construct a custom dialog in the onCreateDialog(int) function:
dialog = new Dialog(this);
dialog.setContentView(R.layout.custom_dialog);
dialog.setTitle("Custom Dialog");
I have a onClick(View) function in the same class:
public void onClick(View v) {
... | stackexchange/codereview |
I am building an application using the Zend Framework and I wonder if this framework is a bit too bloated or over done. Maybe its the way I am tackling the problem but I see that using this framework forces me to write so much more code.
Any suggestions or advice?
| stackexchange/codereview |
I'd like to change the build order of projects in my C# solution, without having to rely on project dependencies.
Reason: solution takes approx 1 min 30 secs build locally. This is a little much, especially if you're making lots of minor changes.
My approach to fixing this is to have a mapped share (my R:) pointing to ... | stackexchange/codereview |
I've been searching a lot of topics but it's already too complicated to understand. I don't even see the this.Invoke(); method.
Here's my scenario:
I have this UserControl called test1.xaml and it has a frame control called frame1
Basically test1.xaml.cs contains
public test1()
{
InitializeComponent();
... | stackexchange/codereview |
I am a complete newbie to BDD and I would like to understand where does it come into play in a development cycle. In TDD approaches, we would write unit-tests commonly for libraries or apis, we would mock objects and that was great because it could even drive our design. These tests would be written before the actual c... | stackexchange/codereview |
I have a table of of more then 100 rows.
each row consist of pdf files and their description with Last coloumn of STATUS.
STATUS SHOWS whether pdf files are readable are not.
Once table is loaded in the browser, I am geting each file name from every row of the table and processing it using ajax call. if file is readab... | stackexchange/codereview |
I would like to select the inner contents of a do/def..end block
def foo
bar
end
e.g. bar would be selected above when hitting viB in the same way bar would be selected below in C:
void foo() {
bar;
}
I know it probably only works for curly braces, but is there a way to make it work for do/end?
| stackexchange/codereview |
My application needs to retrieve all DOM elements in javascript and
and put there values into one variable
i.e
if my application is having three text boxes then i want there values in comma separated form in javascript variable
| stackexchange/codereview |
it’s possible set the foreground property of a TextBlock by TextBlock text value?
For example: Text value is Mike, foreground property is Black, value is Tim, property value is green, etc. I search with google, but I don’t find any solution.
| stackexchange/codereview |
I'm trying to raise validation errors:
1. when the user enter a US MSRP that is not a number, silverlight displays an error when leaving the field
2. However if in the same field I put a negative number, no error is displayed even though there is an explicit range specified
What do I need to change?
Also, as a bonus qu... | stackexchange/codereview |
I'd like to take advantage of multithreading when we write data from the database into our own objects. We are currently using Firebird and retrieving data using the "forward-only" reader FbDataReader.
We cycle through the records held in the FbDataReader and populate an object, adding the object to a List which is the... | stackexchange/codereview |
I am writing a script for Luxology modo (3D and VFX application), which is using python as scripting language. Somewhere in my script i am reading text file outputted from other app, and creating materials and image maps from the lines of this text file. one of the things i am doing there is creating a dictionary of th... | stackexchange/codereview |
Hey,
I need some simple test program which will allow me to set AD group name(e.g. testdomain.groupname) and based on this group name it retrieves me all the users(with subgroups as well) email addresses.
Any code snippet will be highly appreciated.
Thanks
| stackexchange/codereview |
I don't particularly understand why an image would work in a span, but not by itself.
See complete example here.
JS
$(document).ready(
function ()
{
$('#banner').hover( function(event){ $(this).children().hide("slow");}
, function(event){ $(this).children().show("slow");}
... | stackexchange/codereview |
Whenever I rename a folder using ToroiseSVN, and then do a commit on the parent folder, it gets ugly. I typically get some weird tree conflict, and errors about SVN .tmp files/folders not existing, and other obscure messages I've never seen before. It's pretty stressful considering the folder is being deleted and suppo... | stackexchange/codereview |
I am using the below code to show hide the default input value on focus. However, I am going to be using a few forms on one page and dont really want to have create this js for each input field, pretty time consuming and probably a bit too much js.
Html
<input type="text" class="sb" value="Search CT..."/>
Javascript
... | stackexchange/codereview |
So here is code what I have.
var template = $("#instance > .template");
$("#instance-" + country + " > .content > .stats > .map > .template").before(function() {
var temp = template.clone();
//how to select descendant?
temp.children(".amount-all").html(json.services[service].total);
return temp;
});
... | stackexchange/codereview |
How do I clean up stale .class files out of ${workdir} given set of existing .java files in ${srcdir}? By stale I mean .class files that were generated from now removed .java files. I have tried coming up with something using Ant mappers and filesets etc. but I failed. Removing all .class files older than their respect... | stackexchange/codereview |
I've read the Drupal API Form documentation but there's something I'm just not getting. It's probably really simple but I can't find out how to display the submitted values of a form after it's submission.
*edited code
<?php
function createForm_enigmaFilters($form_state) {
$form = array();
$form['#submit'][] ... | stackexchange/codereview |
I'm looking for enlightening examples of concise and elegant code in Clojure - mainly to learn new techniques and improve my own style.
Can you offer any nuggets of pure genius?
| stackexchange/codereview |
Title is a pretty good indicator of my problem. Is there security concerns using Jquery to fire a web method to update a database? Are there reasons I should be doing all my database logic server side after a post?
Thanks
| stackexchange/codereview |
In most or all object oriented games, each class relies on not just its own but parent classes. How is this class connection implemented in C++? Do you just add a pointer for the parent class you need or is there a better way?
For example a football game, when the person class clicks it ask the scene class if he is kic... | stackexchange/codereview |
I created a django form and want to display it in a light box after someone clicks a button on my html page. besides loading the form on the initial page load, i also wanted to call the view which displays the form with javascript. is there a way to only load the form template without reloading the entire webpage? ... | stackexchange/codereview |
I'm reading up on core C# programming constructs and having a hard time wrapping my head around the out parameter modifier. I know what it does by reading but am trying to think of a scenerio when I would use it.
Can someone give me a real-world example? Thanks.
| stackexchange/codereview |
Is there any easy way to check whether a path is valid? The file doesn't have to exist now, I'm wondering if it could exist.
my current version is this:
try:
f = open(path)
except:
<path invalid>
I'm considering simply checking whether the path contains any of these characters.
| stackexchange/codereview |
I'm writing a custom extension to an off-the-shelf Java web application. The application uses log4j for logging and I'd like to add a new logger and appender specifically for my extension. The problem is that the application manages the log4j.properties file which is dynamically generated based on selections in an ad... | stackexchange/codereview |
My current project has us using TreeSet and TreeMap in Java, with an input array of 10514 Song elements read in from a text file. Each Song contains a Artist, Title and Lyric fields. The aim of this project is to conduct fast searches on the lyrics using sets and maps.
First, I iterate over the input Song array, ac... | stackexchange/codereview |
I have configured Ninject 2 in an ASP.NET 4.0 project (not MVC) however when I deploy the project to an IIS host it crashes with the following:
System.NullReferenceException: Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
System.... | stackexchange/codereview |
Structural types are one of those "wow, cool!" features of Scala. However, For every example I can think of where they might help, implicit conversions and dynamic mixin composition often seem like better matches. What are some common uses for them and/or advice on when they are appropriate?
| stackexchange/codereview |
I have a stories controller that i have mapped as a resource. I've added 2 new methods to stories_controller, 'top' and 'latest'. but when i try to go to example.com/stories/top I get a 'no story with ID=top' error. How can I change the routing to recognize these urls?
| stackexchange/codereview |
I've got a little (and i mean mini) tooltip plugin that i've created but have run into an issue. Basically, it all works fine if instantiated on the dom ready event. However, if I need (as i do) to bring $ajax data onto the page that changes the dom, then my pluggin no longer (for obvious reasons) works.
I don't quite ... | stackexchange/codereview |
I have a simple Java program (using JTOpen) to connect to an iSeries and open a IFS file:
System.out.println("by ipaddress");
AS400 as400 = new AS400("130.3.3.333", "user", "password");
System.out.println("as400 connected? = " + as400.getCcsid());
//handle the exception if the file is null
IFSFileInputStream as400File... | stackexchange/codereview |
I have a two .NET assemblies which are registered as COM+ components and I'm testing them from a regular console application test harness;
Dim objFirst As New MyFirstComponent() 'COM+ initialisation
Dim RC As Boolean = objFirst.GetValue()
The method call is executed successfully. This is the definition of MyFirstCompo... | stackexchange/codereview |
I am trying to add an external javascript file to Codeigniter application.
I have placed my external js file in the "projectname/js/" folder.
Below is the script tag src in my view page.
src="http://localhost/needpcbcodeigniter/js/registration.js">
But I am getting a "Not found" error for the js file.
| stackexchange/codereview |
I'm writing my SPring MVC web application.
I have set my session time out to be 10080 minutes equal to 1 week.
Now I would like to keep user logged in every time he open browser:
sessionService.setcurrentUser(myuser);
HttpSession session = request.getSession();
Cookie cookie = new Cookie("JSESSIONID", ses... | stackexchange/codereview |
I'm developing an Android application. I'm very new on Android development.
I see on other projects that textures are hold on res directory. They have to be compiled and deployed into device.
I'm wondering if I can download a picture as a texture from a web service and use it.
I don't know if every media that I need ha... | stackexchange/codereview |
Using Spy++ tool, it seems that some Microsoft apps use NetUIHWND and DirectUIHWND window classes; e.g.: Word 2010's ribbon seems to be a NetUIHWND, instead Windows Live Messenger window seems to be a DirectUIHWND.
These window classes seem to host kind of cool graphics (with shadows, gradients, etc.); is it possible t... | stackexchange/codereview |
I have a function in sitefinity that returns a list of categories.
//return list of categories
private IList<ICategory> GetCategoryDataSource() {
var cntManager = new ContentManager(CaseStudyManager.DefaultContentProvider);
IList allCategories = cntManager.GetCategories();
List<ICategory> f... | stackexchange/codereview |
I have the following code:
#include <iostream>
using namespace std;
template <class T> class Foo {
public:
template <class U> void operator = (const U &u) {
cout << "generic copy assigment\n";
}
void operator = (const Foo<T> &f) {
cout << "specific copy assigment\n";
}
template <c... | stackexchange/codereview |
I am trying to secure a controller action that is being called with the jQuery ajax function.
In my action method I have the code surrounded by a try-catch block, so I capture all my exceptions and return a JSON result with the exception message. To that point everything works great.
The problem begins when I throw an ... | stackexchange/codereview |
I am trying to add columns to my Rails app in production environment. Can't do it in development environment on my local machine because of installation problem on some bundles.
I ran this:
sudo ruby script/generate migration add_provider_to_spots provider:string provider_price:string provider_ref:string RAILS_ENV=prod... | stackexchange/codereview |
One of our company's iPhone applications uses a push notification the first time the user install the application. The notification pops up a system alertView to ask the user if its allowed receiving push notification.
My Question is how to know the user pressed "allowed" or "not allowed".
| stackexchange/codereview |
Ok, so when I create a new cocoa project, there's always 2 files that's created for me. That's the .h and the .m NAME AppDelegate file. I've read a lot of books about cocoa and the documentary from apple that told me to create new files instead of using it. What's the point of those 2 files anyways? And is it safe ... | stackexchange/codereview |
I'm sorry if it is a stupid question. I am trying to use a number of classes of multi-threading to finish different jobs, which involves invoking these multi-threadings at different times for many times. But I am not sure which method to use. The code looks like this:
class workers1(Thread):
def __init__(self): ... | stackexchange/codereview |
So for some reason that standard orange highlight that happens when you click on something in an Android app has completely vanished. I never put any code anywhere to change its color(to my knowledge). Does anyone know of reasons this would happen? Or how to manually add it back via code(XML or Java).
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.