instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm having some trouble with Apache's mod_rewrite. One of the things I'm trying to get it to do is hide some of my implementation details, so that, for example, the user sees the URL http://www.mysite.com/login but Apache responds with the page at http://www.mysite.com/doc_root/login.php instead (preferably without sho... | stackexchange/codereview |
I added dynamic message successfully to my progressdialog.But when adding the button it doesn't take the button Please help me out.
private Handler progressHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
// process incoming messages here
... | stackexchange/codereview |
I have to keep a NSThread or NSTimer when my iPhone application goes into background mode. Is it possible ? I have enabled the background modes in info.plist and opened readstream and writestream as follows ...(I am using UDP)
CFReadStreamSetProperty(readStream, kCFStreamNetworkServiceType,kCFStreamNetworkServiceTyp... | stackexchange/codereview |
I want to save the contents from HtmlEditor(Ajax Control) into a database field.
If i try to save as VARCHAR than error comes as data too long.
Please help.
| stackexchange/codereview |
Possible Duplicate:
Are PHP short tags acceptable to use?
I have a question using
<?=$info ?> rather than <?php echo $info ?> when is <?= appropriate to use or has it be deprecated with 5.0
| stackexchange/codereview |
I wrote my own generator, from console its launched like this
rails generate ead_document TechnicalOpinion --document_type_id=1
It creates model and migration. I want to execute generator from my controller without using ruby system command. Is there any way to do that?
| stackexchange/codereview |
If I write a random string to file in C++ consisting of some unicode characters, I am told by my text editor that I have not created a valid UTF-8 file.
// Code example
const std::string charset = "abcdefgàèíüŷÀ";
file << random_string(charset); // using std::fstream
What can I do to solve this? Do I have to do lots o... | stackexchange/codereview |
I want to use crypt command for encrypting a file, but the key I want to keep fixed and not give a user prompt for entering a key
| stackexchange/codereview |
I have a web server running xampp. I have two domain names lets call them www.domain1.com and www.domain2.com. I have updated the dns settings of domain1 to point to my server which is working fine, (i.e the files for domain1 are in the htdocs folder and when i go to www.domain1.com in a browser i get the index file of... | stackexchange/codereview |
I have _Layout.cshtml defined for my mvc application, which is shown below:
@inherits System.Web.Mvc.WebViewPage
@using Webdiyer.WebControls.Mvc;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@RenderSection("HeaderContent", false)
</head>
<body>
@RenderBody()
</body>
</html>
On the page SomePage.cs... | stackexchange/codereview |
My list contains:
Item Name, Date of Purchase, Cost of Item, Daily Depreciation.
Basic case: an item depreciates $1 / day.
Since [Today] is 'Volatile', it cannot be used in a SharePoint formula.
I have seen solutions where users just create a few extra columns for dates in the future, and use formulas to calculate wha... | stackexchange/codereview |
Magento CE 1.4 (also EE 1.8) introduced a new attribute to category entities; include_in_menu. I've checked very carefully and no code ever sets it to anything but "1". The default value is "1". There isn't an option to control it. And yet when some of my categories disappeared from the navigation I found this attribut... | stackexchange/codereview |
I'm attempting to use a custom Android vertical scrollbar widget that seems to work fine in its own example project, but I am having trouble trying to include it into my project. I've exported a .jar from it to use in my project, but it seems to be a minefield of problems, from duplicate resources, to my XML layouts n... | stackexchange/codereview |
I have been at this problem for the last 6 hours and have been hitting google like mad to no avail.
Right I need a pointer to an array. This array contains pointers to Linked lists. Im going to have to malloc it since I dont know the array size until runtime.
LList **array
This was my first thought but this just gives... | stackexchange/codereview |
I have hooked in a ScaleGestureDetector to an OnTouchListener as instructed in Android documentation. For some reason the ScaleGestureDetector does not always detect end of a pinch gesture. This happens mostly when pinching fast from large to small.
The effect is that after I have released both fingers the detector do... | stackexchange/codereview |
I am trying to get current time in specific time zones. I tried following code.
Calendar j = new GregorianCalendar(TimeZone.getTimeZone("US/Mountain"));
j.setTimeInMillis(Calendar.getInstance().getTimeInMillis());
System.out.println(j.get(Calendar.HOUR_OF_DAY)+":"+j.get(Calendar.MINUTE));
TimeZone tz = TimeZone.getTime... | stackexchange/codereview |
I'm using Titanium's appcelerator. I've seen the kitchensink example for tableView performance, but that's just for un-customized rows, at around 4ms a row on my 1G iPhone. The performance for 1.4.0 and 1.4.1.1 shoots up considerably when you have custom rows, like one with a picture and a label, to about 20ms per row ... | stackexchange/codereview |
Hii friends,
i m new to iphone development and i have gone through some iphone applications with awesome UI design.
i guess those UIElements are not standard Iphone controls,if so
How to create Custom Controls or any different nice look for controls?
Thanks to all..
| stackexchange/codereview |
The following code:
jQuery(document).ready(function($) {
function getBooks() {
var query = "ajax.php?do=allbooks";
$.ajax({
dataType: "jsonp",
url: query,
jsonp: "callback",
success: showBooks
});
}
function sho... | stackexchange/codereview |
I use excel through vb.net/asp.net to generate reports from a web page and then send the file down to the user. We've had some issues with Excel being super slow/inefficient/not closing (even when we keep track of the process id and try to kill it in code...). So I'm looking for some flexible alternatives. We need ... | stackexchange/codereview |
i have about 20 users who have their own access front end and write to a backend.
i need to do an update to the backend, and every time i try to do it offhours, it seems that someone is still logged on because the file is locked!
how do i get around this? i do tell the users to log off at the end of the day but a lot o... | stackexchange/codereview |
Using CTP4 and Code First, is it possible to map a single entity to two tables (using a 1-1 relationship between the two tables)?
If so, how?
MSDN: "How to: Define a Model with a Single Entity Mapped to Two Tables" http://msdn.microsoft.com/en-us/library/bb896233.aspx
Related: Mapping data from 2 tables to 1 entity -... | stackexchange/codereview |
Just build&run this in VC2008:
struct A
{
int a;
int b;
int c;
};
A a = { 10, 20, 30 };
printf("%d %d %d\n", a);
Is it normal?
10 20 30
I'd like to cast! but it don't works:
struct A
{
int a;
int b;
int c;
operator int()
{
return a + b + c;
}
};
A a = { 10, 20, 30 };
printf("%d\n", a)... | stackexchange/codereview |
I've just started Android development with Eclipse, so I've been going through all the "Hello" tutorials on the Android Developers site. I have come unstuck, however, on the List View tutorial. I have tried many times to correct the problems, but I am inexperienced and whatever I do doesn't seem to work. I have copied ... | stackexchange/codereview |
I have three tabs. I want load then on demand except first tab. If i click the 2nd tab it will load the second tab. My problem is If i load 2nd tab and go to 3rd tab and when i come back to the 2nd tab it is loading again. That should not happen. once the tab is loaded it should not load again. How to achieve this? her... | stackexchange/codereview |
I have an idea for a chrome extension where I take a protocol, just for example, helloworld:// and in the url bar you could do helloworld://check this out and i could have the plugin alert "check this out" or do some other complex AJAX stuff?
Is this possible?
| stackexchange/codereview |
I've successfully used ruby (1.8) and nokogiri's css parsing to pull out front facing data from web pages.
However I now need to pull out some data from a series of pages where the data is in the "meta" tags in the source code of the page.
One of the lines I need is the following:
<meta name="geo.position" content="35.... | stackexchange/codereview |
I am putting together a Forum Stats website and I need to find the number of Active Members on several forums.
Many have "Total members" listed but that doesn't help me.
I'm considering "Active" as someone that has posted at least 5 times within 6 the last months.
I'm really perplexed as to how this might be done. An... | stackexchange/codereview |
I developed an app for iPhone with Xcode 3.2.4 and iOS 4.1. Now I want to test my app on my iPhone, but I don't want to enroll for a developer program. I searched in google and found a lot of tutorials, but they are not working.
Then I asked me if it is because I use iOS 4.1. Is there a way to test the app?
I've a jail... | stackexchange/codereview |
I'm writing an app that is a 'power meter' of sorts where I show a list of 'locations' in the navigation that have a power rating associated with them, and a gauge that aggregates this information. Locations can be nested. Clicking a location changes my app's 'state' and loads its child locations into the nav. Clicki... | stackexchange/codereview |
Apart from the obvious onclick event handler, how can I detect if the user tabbed the link and hit enter or whatever other key/device that would make the link open?
Also, is it possible to detect a middle mouse button click (defaults to open in new tab)?
| stackexchange/codereview |
I have a basic client server in erlang which uses tcp.
How does one send the actual binary data from a file to the client who requested it?
How is the file sent in pieces?
I have this code
{ok, Socket} =
gen_tcp:connect({Ip}, 2345,
[binary, {packet, 4}]),
Does this {packet, 4} h... | stackexchange/codereview |
I just noticed that if you try to call a non-existing init method on the same line as an alloc statement, XCode will not warn you about this.
NSString *string = [[NSString alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
UIView *view = [[UIView alloc] initWithCapacity:0];
No warnings for either of those lines of code. No... | stackexchange/codereview |
We have a requirement to store char data of different language in the same db schema. Oracle 10g is our DB. I am hoping that someone who have already done this would give me more specific instructions on how to i18n enable a oracle 10g db. We just need to store the data from multiple locales as well as collation (hopin... | stackexchange/codereview |
I have a custom Fraction class, which I'm using throughout my whole project. It's simple, it consists of a single constructor, accepts two ints and stores them. I'd like to use the DataContractSerializer to serialize my objects used in my project, some of which include Fractions as fields. Ideally, I'd like to be able ... | stackexchange/codereview |
I wanted to use databinding with the ToolBarTray so I created some services and attatched properties to fullfill my needs. The final solution was this:
<ToolBarTray local:TrayBinding.ItemsSource="{Binding Path=Groups}"
local:TrayBinding.ToolBarItemsSource="Items"></ToolBarTray>
Where ItemsSource ... | stackexchange/codereview |
I am using ibatis for my sql insert stmt. In my code I am parsing files line by line from a folder. Each line that matches criteria, need to be inserted into database.
Total number of insert in a single run of program can be any where along 200k.
SqlSession sess = null;
this.sess = sf.openSession(ExecutorTy... | stackexchange/codereview |
I have a DataGrid in my Silverlight application that I would like to highlight an entire column when that column is sorted.
It's similar in concept to this previous question: Silverlight DataGrid: Highlight an entire column.
Any ideas? I've thought maybe attaching a behavior to the LayoutUpdated event and checking a ce... | stackexchange/codereview |
I have some data that represents a flowchart. (A bunch of Jira statuses and their transitions to other statuses.)
I also have a crude way to position each flowchart item on an A4 page in an OpenOffice Draw document. (Though better suggestions welcome for that.)
However, I'd prefer not to have to output a line of boxes ... | stackexchange/codereview |
#define SwapByte4(ldata) \
(((ldata & 0x000000FF) << 24) | \
((ldata & 0x0000FF00) << 8) | \
((ldata & 0x00FF0000) >> 8) | \
((ldata & 0xFF000000) >> 24))
What does that 0x000000FF represent? I know that decimal 15 is represented in hex as F, but why is it << 24?
| stackexchange/codereview |
I am getting multiple similar JSON object from a remote site and looking to store them in a local MongoDB.
What would be the best way to do this ? (Preferably via Mongoid or Mongo-mapper gems)
Thanks
| stackexchange/codereview |
I'm trying to use the font-face attribute of CSS with a custom font:
@font-face {
font-family: "Handvetica";
src: url("Handvetica.eot");
src: url("Handvetica.ttf") format("truetype"),
url("Handvetica.otf") format("opentype"),
url("Handvetica.woff") format("woff"),
url("Handvetica.svg#Handvetic... | stackexchange/codereview |
I have a large (~4GB) text file written in Multimarkdown format, and I would like to convert it to HTML.
I tried:
use strict;
use warnings;
use File::Map qw (map_file);
use Text::MultiMarkdown qw (markdown);
my $filename = shift // die;
map_file (my $text, $filename);
print markdown($text);
but it still chokes memor... | stackexchange/codereview |
I hava a java program to stream mjpeg files.I am not able to find mjpeg file anywhere.can anyone help me how to get the file.Or tell me how to convert a file to mjpeg format? I have tried converting an avi file to mjpeg using total video converter but it didnt work.
| stackexchange/codereview |
I would like to know if there is a way to disable the current class from reloading the page with jQuery?
For example, when you are on the About page the current state for the About page doesn't allow the users to reload the page if they click on the link again. So, if you have some kind of animation it won't start over... | stackexchange/codereview |
I have an included object's form:
<form method="post" class="object_form" id="event-core-form" action="{% url save_event_core_data event.id %}" enctype="multipart/form-data">
{{ form.as_p }}
<p>
<input class="object-submit" id="object-data-save" type="submit" value="Save data">
</p>
</form>
After h... | stackexchange/codereview |
i have a form that is generated dynamically.
the plan is to generate it, the user to enter data, and then to save all that lot away.
although a slight variation to this is if the form has previous data associated with it, and then it loads in all pre-populated. - the user may then change any previous selections.
and th... | stackexchange/codereview |
I'm trying to write an .htaccess file that will be placed on a number of different sites, and I don't want to have to change the domain in the session.save_path for each site. I'm trying to use the %{HTTP_HOST} variable but it's not working.
The paths to the session storage folders on the server look like this:
/var/fo... | stackexchange/codereview |
I have a view that renders a few drop downs on it. These are built from IDictionary's.
When I render a view and I want to show the currently selected value of one of these options, I want to see how to convert the number in my view into the string value in the dictionary.
I got quite far with this (as my dictionary sta... | stackexchange/codereview |
I need help creating a .dll file from a custom control so that it can be used on other projects. This is the first time I am doing this, and I couldn't find much help via google so help would be much appreciated.
I have this code and I know I have to compile it as a class project, but I really don't know how, so I'd ap... | stackexchange/codereview |
The following process leads to a crash of my app:
the user opens a view and a request is send to the server
the request is executed in background
the user navigates back to the root view
the request has been finished
and the following code is executed
// MyDatasource.m
// e.g. in connectionDidFinishLoading
... | stackexchange/codereview |
I can't seem to find the problem for the life of me. Very simply, I have a database object that I'm pulling from the database, incrementing it's "views" by one, and saving. My view display's the incremented value, but then my logs show that the value is incremented AGAIN.
g=Game.objects.filter(slug=slug).distinct()[0]
... | stackexchange/codereview |
Ok, this is strange. Some background
Windows 2003 R2 SP2 32-bit
IIS 6.0
I've got a very simple dot.net 1.1 example app that just echoes something to the screen via a response.write. Works fine on my workstation. Once I deploy it to this server, when i go to the page, it wouldn't render but instead serves up the sou... | stackexchange/codereview |
Right when I am at fflush(stdout) and I break there in GDB, can I know what is there in stdout before I actually print it?
How can I know what is there in stdout at any point in time?
| stackexchange/codereview |
Does any one know of a MapKit function that returns a BOOL or something to indicate whether two MKMapRect intersect or contain?
| stackexchange/codereview |
The following LINQ to SQL query is splitting the date into pieces. It seems odd that a date comparison would use the following generated SQL statement.
var customers =
(from c in db.customers
where c.servhists.Any(sh => sh.donedate.Value.Date >= startDate.Date
&& sh.donedate.Value.Date <= endDate.Date... | stackexchange/codereview |
What is the logic behind the following code?
var next, output = null, thisNode;
It appears like it's some type of coalescing like var foo = bar || baz;, but I'm not so familiar with the commas.
| stackexchange/codereview |
As the quantity of our pages increases, the number of images in the rails project has increased greatly. Does anyone have a good strategy for keeping track of these images?
We have experimented with a couple ideas but nothing seems to solve everything. Here are the high level requirements we have come up with:
Image... | stackexchange/codereview |
There are a number of posts all over the internet on this topic, however none of them have been able to isolate and solve the problem.
I am trying to show some special UTF-8 encoded symbols stored in a SQLite database using a TextView, however all it shows is boxes. I understand what this means is that right font is no... | stackexchange/codereview |
I have had to change from python 2.7 to 2.6.
I've been using a deque with the maxlen property and have been checking what the maxlen is. Apparently you can use maxlen in python 2.6, but in 2.6 deques do not have a maxlen attribute.
What is the cleanest way to check what the maxlen of a deque is in python 2.6?
In 2.7:
... | stackexchange/codereview |
I have setup in jqGrid a delete function call that uses the native features for checking if a row have been selected in the grid or not as in the following code sample:
$("#myGrid").jqGrid('navGrid', '#pager',
{ add: true, addtitle: 'Add record',
edit: true, edittitle: 'Edit record',
del: true, delti... | stackexchange/codereview |
Without getting into specifics, say I need to make use of a non-standard calling convention from C code. Functions that use this convention may return multiple values on the stack. It would be simple to put each function in a wrapper that uses inline assembly to make the call, sending output via pointer parameters give... | stackexchange/codereview |
I have an integer column which I would like to add a foreign key constraint to. Only problem is if that column does not have/need a value, by default MySQL puts in a '0' value. This obviously breaks the foreign key constraint as there is no record in the primary table with a PK of 0.
How can I overcome this problem?
| stackexchange/codereview |
While transforming some code to lessphp from the classic less code; an incompatibility I discovered from the classic less css is that there is no support for multi-block mixins with nesting levels > 2. The classic less seems to be fully in support of mixins having many nested blocks in them.
Is this intentional - the s... | stackexchange/codereview |
i have a following url
http://example.aspx#gbar
where #gbar is a Anchor. if this anchor is available i have to do to hide some div and show some div . How will i check if the url has this anchor ,because it is not a query string we cna't use request.querystring.get() .Any ideas ??
| stackexchange/codereview |
I have an application where from the MainPage.xaml I navigate to a page called say two.xaml.
In Two.xaml I then navigate to Three.xaml..
Now for Three.xaml I want to navigate back to the mainPage.Xaml.
In Three.xaml if I do
this.NavigationService.GoBack();
this.NavigationService.GoBack();
I get an InvalidOperationExce... | stackexchange/codereview |
I'm implementing a pdf generator in PHP
I have problem with word spacing, the option doesn't work or i'm not using word spacing parameter properly.
I need this option to render text justified.
The character spacing parameter works properly.
This is how I'm rendering text:
BT
/F1 12 Tf
0 829 Td
5 Tw
(Hello world) Tj
ET
... | stackexchange/codereview |
I have a data model which is similar to this:
(in another project)
________________________________ _______________________
| | | |
| Graph | | DetailedGraph |
| GraphListen... | stackexchange/codereview |
I'm looking for a way to escape the "@" symbol at the start of a string, in Android strings.xml resource. I'm continuously getting compilation errors and the layout builder in Eclipse refuses to work :(. Does anyone know how?
| stackexchange/codereview |
We developed a SL4 application wich feature also an integrated online help. This help is built as HTML files containing links to each other and shown in the Webbrowser control just within the application. Everything works just perfect when running the app inside the browser.
Now we also need to support out-of-browser. ... | stackexchange/codereview |
I am trying to create an avi file for a given jpg images. I am reading jpg's using a library and preparing hbitmap for it. Finally i am adding it to create avi file. But my final avi file contains the inverted images. I kept nagative for hight in bitmapheader. Still my hbitmap is inverted. Can you please help why the e... | stackexchange/codereview |
This is probably a dumb post but I've Googled it for about an hour now and can't find anything about it anywhere... I'd like to know how I can have a little movie "square" similar to the ones presented in Safari to play Quicktime Movies or YouTube movies.
I'm talking about that :). Is that an Apple private API or can ... | stackexchange/codereview |
I have 4 tables - Agents, Customers, Counties and Towns. Agents and Customers both have a Town field and a County field. I have a DataGridView for each table. These are working great. I have the Town and County as comboboxes using the Towns and Counties table as the datasource.
The problem is that it does not filter th... | stackexchange/codereview |
I want to take a consistent snapshot of an Oracle database that is constantly being updated by a TIBCO DB Adaptor.
Typcially TIBCO updates a bunch of tables at once, and then COMMITs.
If I traverse through all the tables, taking a snapshot once a day, then I could grab data from table A before the commit, and from tabl... | stackexchange/codereview |
I'm having an issue with jQuery's remove() method in IE. It's removing the element, but not entirely: it's leaving the last 2 closing tags.
I'm using ASP.Net Web Forms. In the page, we're using a 3rd party widget, which is a Javascript include. Part of the 3rd party widget is a search box and button inside of a form. (... | stackexchange/codereview |
I am attempting to build a view with four filters (A, B, C, D). With Views 3 it is possible to select whether you want these filters to be chained with AND statements or OR statements. Is there a way to configure views so as to chain some of them with AND and others with OR?
For example, ending up with a query that is ... | stackexchange/codereview |
I'm new to MSMQ and trying to understand when to use MessageQueueTransaction class. For example, is there any value to create a simple transaction just for putting a message in the MSMQ queue like this?
using (MessageQueueTransaction t = new MessageQueueTransaction())
{
t.Begin();
Message m = new Message... | stackexchange/codereview |
I have a production web application running in Tomcat. The web application uses struts 2 as MVC layer.
We had an issue wherein one of the web servers spiked to 100% cpu usage. This issue lasted for over several hours. I took the thread dump and saw over several hundred threads in runnable state and the dumps show the s... | stackexchange/codereview |
Many unwanted users are creating fake accounts on our website to pester us.
What can we do?
| stackexchange/codereview |
I am trying to run simple application (e.g. generated from template by VS.NET 2010) on IIS6.
I changed it to run with .NET 4.0 (its application pool) and checked with regiis (this pool has 4.0). I also changed all possible httpHandlers (svc etc), to run with NET4.0. All possible rights are checked (i think so).
Almost ... | stackexchange/codereview |
Does scalatra use circumflex behind the scenes (or vise versa)? What are the key differences between them, and which one would you use?
Both frameworks are inspired by Sinatra and from a glance look identical.
Request routing with scalatra:
class ScalatraExample extends ScalatraServlet {
get("/date/:year/:month/:day"... | stackexchange/codereview |
Is it possible to upload a folder with a file input in the browser?
I searched and found out that this might be a browser limitation and that I might need to use a Java Applet or Flash.
| stackexchange/codereview |
I have an extremely sparse static array with 4 dimensions of 8192 each that I want to do lookups from (C#). Only 68796 of these 4.5 * 10^15 values are non-zero. What is the fastest way to do this, with speed and low memory usage being vital?
Thanks
| stackexchange/codereview |
I need some examples or tutorial, how to implement iPhone side index for Android.
I read already this topic (https://stackoverflow.com/questions/1201962/android-equivalent-to-iphone-indexed-uitableview) and I'm trying AlphabetIndexer, but:
How do I create it properl at all?
How can be AlphabetIndexer displayed?!
Is a... | stackexchange/codereview |
Can anyone explain why my button keeps launching the associated .BAT file every time I click it, even though I have set it to disabled?
Private Sub TabPage3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage3.Click
Dim RetBat3
RetBat3 = Shell("c:\QUEEN ANNES REVENGE\SYSTEM\BAT\UN... | stackexchange/codereview |
I'm new to objective-C. I want to use NSMutableArray to store some objects i will access later.
I've got the interface:
@interface ControlWheel : RotatableObject <LeverSubject>
{
NSMutableArray *subjectArray_;
}
-(id) initWithCWDef: (ControlWheelDef*) def;
-(void) addSubject: (id) subject;
@end
Here is the implementa... | stackexchange/codereview |
i want to validate the input of a text box so as not be empty and also to accept only decimal or integer.
I have tried the following regex's:
^\S[0-9],?[0-9]$ this one allows one letter at the beginning
^\S[0-9]+,?[0-9]*$ this one althought that does not allow letters, it requires for at least 2 numbers which is not ... | stackexchange/codereview |
I'm implementing the routing and i18n part of my framework. I'm wondering if I should assume that
^[a-z]{2}
Will be a locale, and if so use it. Or should I make the user populate a list with languages? Eg:
supported = [ 'en', 'es', 'it', 'ru', ]
So the developer has to manually define languages. And for the record,... | stackexchange/codereview |
I need to know where i can start a cron in my java web app. I need this cron to run daily and be rescheduled if the server restarts. Do java web application have hook where i can do this?
----edits----
Im using quartz to schedule a task which will pull down and parse a csv file and store it in a database. I need to kn... | stackexchange/codereview |
How can we make Android assets secure so that no one can read them after app deployment?
| stackexchange/codereview |
import java.io.*;
public class Mainclassexec
{
public static void main(String[] args)
{
String input = null;
try
{
String capitalized = capitalize(input);
System.out.println(capitalized);
} catch (NullPointerException e)
{
... | stackexchange/codereview |
Hie friends, I made a form using the class forms.py it was running smoothly, but next time when I added two new fields in that forms.py class then on executing the command "python manage.py syncdb " it gives me the following error:
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute... | stackexchange/codereview |
In our web project we decided to use NoSQL, but are unsure of which NoSQL solution to use, and which languages have full support for NoSQL.
Our priorities are: availability of tutorials and support, and ease of implementation and maintenance. And we want to save the data which is from client side into both relational ... | stackexchange/codereview |
I wanted to have a custom layout where I would have gallery on top, then below it to have a simple widget to show the picture when it is chosen from the gallery. I could not figure out how to compose that main.xml to achieve it, your advice will be greatly appreciated.
The gallery layout xml is straight from the google... | stackexchange/codereview |
So I've created a trigger that compares update before and after and determines if specific fields, specified in the where clause, have changed. If so, I insert a snapshot of the prior information into a history table.
The problem is when the field is created with null values (given the business rules, it is legitimate... | stackexchange/codereview |
How might I convert an ArrayList<String> object to a String[] array in Java?
| stackexchange/codereview |
I have an asp.net page and am writing some words in a question textbox named txtTitle. After moving to another txtbox named txtbox2, I want to open a question-suggestion page based on the keyword typed in txtbox1 in the space before txtbox2. I've tried this but it is not working. Can anyone help?
<script type="text/jav... | stackexchange/codereview |
I have a couple of dropdownlists and a button.when a user selects an item in the 1st dropdownlist,the 2nd dropdown is programmatically bound to a set of items(using an ajax request) depending on the value selected in the 1st dropdown.Then the user will have the ability to choose an item from the 2nd dropdown and click ... | stackexchange/codereview |
I started studying web services between bank and a client and I run into a wall when it came to signing a SOAP. What I need should look something like this
<soapenv:Envelope xmlns:cor="http://bxd.fi/CorporateFileService" xmlns:mod="http://model.bxd.fi" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv... | stackexchange/codereview |
im making an application on android that requires to capture the user´s voice and recognize it. I tryed to record the audio using this code: http://xhampa.pastebin.com/Yr2hie6q on android 2.1. I realized that the sound wasn't recorded in a good quality at all (like slow motion). Unfortunally, I don't have an android to... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.