instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Basically what I'm wanting is my datepicker to echo out the month that it just changed to after selecting a new month. My code is currently:
$(function() {
$('#datepicker').datepicker({
onChangeMonthYear: function () {
$('#date').text("Changed Month to: " + *what to put here*);
}
});
}... | stackexchange/codereview |
I have a WCF web service called "Palladium" that is created as a project in a VS2008 solution.
I have an ASP.Net Web Application that hosts this service on a page called, "Palladium.svc".
When I post form data to the web service my service receives that data and can do stuff with it.
Now I'm posting images to the servi... | stackexchange/codereview |
I have to make a web request but its format creates problem for me.
I require www.abc.com?userID="YourUserID"
I am creating following ...
NSURL * url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.abc.com?userID=%@",myID]];
... which will create a url with string www.abc.com?userID=12345.
But I requir... | stackexchange/codereview |
I'm using Lookup class in C# as my prime data container for the user to select values from two Checked List boxes.
The Lookup class is far easier to use than using the class Dictionary>, however I cannot find methods for removing and adding values to a lookup class.
I thought about using the where and the union, but i... | stackexchange/codereview |
hi im using html File Upload Control in Asp.net 2003 version...whenever I try to upload the file its working fine...but suppose I upload the file then I click any radio button or any other button, fileupload control value is automatically erased..so I cannot upload the file successfully...anybody help me...
| stackexchange/codereview |
I have this situation where the library I use has many functions that return raw pointers to objects, how could I now use boost smart pointers in my program using this library and using smart pointers?
The library is xerces-C++ and an example is getting the document iterator:
boost::shared_ptr<DOMNodeIterator> itera = ... | stackexchange/codereview |
In C++ sometimes a variable will be defined, but not used. Here's an example - a function for use with COM_INTERFACE_ENTRY_FUNC_BLIND ATL macro:
HRESULT WINAPI blindQuery( void* /*currentObject*/, REFIID iid, void** ppv, DWORD_PTR /*param*/ )
{
DEBUG_LOG( __FUNCTION__ ); //DEBUG_LOG macro expands to an empty strin... | stackexchange/codereview |
In some code snippet
- (void) drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx {
CGContextSetFillColorWithColor(ctx, [[UIColor darkTextColor] CGColor]);
UIGraphicsPushContext(ctx);
...
the current fill color is set, then the state is pushed to the stack.
Other snippet:
- (void) drawLayer:(CALayer *)layer ... | stackexchange/codereview |
One of the main purposes of writing code in the asynchronous programming model (more specifically - using callbacks instead of blocking the thread) is to minimize the number of blocking threads in the system.
For running threads , this goal is obvious, because of context switches and synchronization costs.
But what abo... | stackexchange/codereview |
How do I debug errors that have no error message?
When loading a PHP page I am getting this error in Firefox.
The connection to the server was reset while the page was loading.
It gives no indication as to why other than it appears to be Apache crashing.
Apache error logs shows:
[Wed Nov 03 10:23:04 2010] [notice] Par... | stackexchange/codereview |
Say you are working on a branch, and you come up with an interesting behavior you want to archive as an experimental branch. What is the cleanest way to do this?
Cleanest way I can think of off the top of my head:
1) Backup your local version to another directory.
2) git checkout, to revert back to your last commit
3) ... | stackexchange/codereview |
Getting a problem in writing an sql query.
two tables:
1st: created patient table 2nd: already created doc table
patientid patientname docid workstatus docid docname
1 aaa 2 10 1 ggg
2 bbb 2 20... | stackexchange/codereview |
I would be very glad if someone can make clear for me example mentioned ono wikipedia:
http://en.wikipedia.org/wiki/Earley_algorithm
consider grammar:
P → S # the start rule
S → S + M | M
M → M * T | T
T → number
and input:
2 + 3 * 4
Earley algorithm works like this:
(state no.) Production (Origin) # C... | stackexchange/codereview |
Hi
Found this question on an interview site
Given the following methods of the ASP .Net Page class, in which of them would you attach an event handler to an event published by a control on the web page?
a) OnLoad()
b) Page_Loader()
c) OnInit()
d) OnPostBack()
Can't decide between OnLoad and OnInit. Can anyone expla... | stackexchange/codereview |
Which languages that are not solely functional have algebraic data
types (or something similar) and pattern matching? I'm also interested in multi-paradigm languages - I know that Ocaml and F# are ML dialects with OO added, so they inherit the algebraic data types from ML.
They can be kind-of emulated using enums and u... | stackexchange/codereview |
I am developing a small user application in Rails 3 and is stuck on a search feature. I got a table called Profile which holds Firstname and Lastname. When searching this table I use:
Profile.find_all_by_firstname(params[:keyword])
The thing is that I want the user to be able to search a table that holds contacts (pro... | stackexchange/codereview |
How to get current system date in Smartgwt application (Merely javascript). I need date to be printed as 25 October 2010 something like this. Currently i am using
the following code:
String currentDate ;
java.util.Date date = new Date();
String tempDate = date.toString();
String[] currDate = tempDate.split(" "... | stackexchange/codereview |
Can i use symbol ':' in xml attributes like
<tag1 attribute1:meaning1="true">
| stackexchange/codereview |
I need a regular expression that will match anything that starts with 'http://'.
| stackexchange/codereview |
I have a C#/.NET Winforms application which has some settings stored using A '.settings' file. So the configuration is edited by right-clicking the project in "Solution Explorer" and selecting "Properties->Settings".
However, I also need to be able to catch exceptions thrown by a SerialPort object inside the applicatio... | stackexchange/codereview |
perl script.pl --f1="t1" --f2="t2" --f3="t4" --f4 < /home/joe/a.txt
script.pl
use Getopt::Long;
my ($f1, $f2, $f3, $f4) ;
GetOptions (
'f1=s' => \$f1,
'f2=s' => \$f2,
'f3=s' => \$f3,
'f4' => \$f4, );
if ($f1) {
system('stty -echo');
print "Password:";
$pwd ... | stackexchange/codereview |
My question concerns safe publication of field values in Java (as discuessed here Java multi-threading & Safe Publication).
As I understand it, a field can be safely read (meaning access from multiple threads will see the correct value) if:
read and write are synchronized on the same monitor
field is final
field is vo... | stackexchange/codereview |
I have a string (comprised of a userID and a date/time stamp), which I then encrypt using ColdFusion's Encrypt(inputString, myKey, "Blowfish/ECB/PKCS5Padding", "Hex").
In order to interface with a 3d party I have to then perform the following:
Convert each character pair within the resultant string into a HEX value.
... | stackexchange/codereview |
I have a small issue with some .htaccess rules on our website - http://www.presencemultimedia.co.uk
We've recently re-built the website using CodeIgniter. To use nice URLs I've added some lines to our .htaccess file as below :
RewriteEngine on
# CodeIgniter rules (forwards requests to index.php)
RewriteCond $1 !^(inde... | stackexchange/codereview |
I know that AVRCP abilities were added to iOS 4.1 (in iPod application now you can forward and rewind songs by using hardware buttons on supporting headsets).
I am trying to find any API for using these abilities in a music application that I work on.
The requirement is to catch play/stop, forward and rewind buttons ev... | stackexchange/codereview |
As the title say,
DataGridview.ScrollBars = Vertical;
Assume the vision of DataGridview can contain 4 rows, if the row comes to 6, it has a Vertical ScrollBar. But if click the ScrollBar, the program will crash.
If we set the DataGridview.ScrollBars = None, no problem will happen.
public partial class visitorLeave : ... | stackexchange/codereview |
I'm developing an application (.NET 4.0, C#) that:
1. Scans file system.
2. Opens and reads some files.
The app will work in background and should have low impact on the disk usage. It shouldn't bother users if they are doing their usual tasks and the disk usage is high. And vice versa, the app can go faster if nobod... | stackexchange/codereview |
I tried compiling and running this simple code but it's throwing error
- (void)doSomething
{
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"Are you sure?"
delegate:self
cancelButtonTitle:@"No Way"
destructiveButtonTitle:@"Yes, I'm Sure!"
otherButto... | stackexchange/codereview |
I have the following code for a spinner:
public class MyOnItemSelectedListener implements OnItemSelectedListener {
public void onItemSelected(AdapterView<?> parent,
View view, int pos, long id) {
String TABLE_NAME = parent.getItemAtPosition(pos).toString();
int spinnerYearsPos = parent.getSelect... | stackexchange/codereview |
I come from other programming languages and I am new to Unityscript. I am trying to understand what a Unityscript code is doing.
I found this line
var guiTouchPos : Vector2 = touch.position - guiTouchOffset;
What kind of declaration is this? What is this line doing?
Wouldn't it be easy to write
var guiTouchPos = touch... | stackexchange/codereview |
How can I get a URL-encoded version of a multidimensional dictionary in Python? Unfortunately, urllib.urlencode() only works in a single dimension. I would need a version capable of recursively encoding the dictionary.
For example, if I have the following dictionary:
{'a': 'b', 'c': {'d': 'e'}}
I want to obtain the fo... | stackexchange/codereview |
I have my XML feed being created from an associative array.
Using new DOMDocument('1.0','UTF-8');
and it was working fine until I made some changes to the methods used to convert it from iso-8895-1 to UTF-8.
The character being flagged up is the letter R, but I have gone into the file via ftp and changed it manually (d... | stackexchange/codereview |
I am using unprocessed document so that it will run on selected document only , but after selection its looking for column values in a view to export document to excel . I am using the below code its working fine but my first document is always displaying in last after all other exported documents in excel sheet . Any... | stackexchange/codereview |
I've got two document sets:
Wikis and WikiTags. Since i want flexible editing of tag names I don't want to embed tag itself into wiki document. So, I store a list of wiki_tag_ids inside wiki document.
I wonder what is the best way to find related tags using this schema. By related tags I mean tags that exist in other w... | stackexchange/codereview |
i want to read the data from the batch file to java program. my java program is calling the batch file & it is giving the output for following command
C:>FIND "check" d:\c.txt
---------- D:\C.TXT
check
i want to read this "check" in my java program.
Thanks,
Murali
| stackexchange/codereview |
In my app, I require a calendar with day view and month view.
Now the problem is that all calendars available are either having only month view or they are having an additional view for list view.
So can you suggest some calendars where in only two views (month view and day view).
| stackexchange/codereview |
I am having a strange behaviour in VB 2005. I hit F5 to run my asp.net app in debug mode, step through the code lines, stop the app running (before the end) and then when I hit F5, its starts back from where it previously stopped (as opposed to starting from the begining of the app).
Any idea what could be causing th... | stackexchange/codereview |
I am building a WinForms Application in C# .NET
The WinForms Application has a ComboBox where the DropDownStyle is set to DropDownList. When the App is launched, I read an XML file to populate the values of the ComboBox. And, at this time, nothing is selected in the ComboBox by default. As a result, buttons Change and ... | stackexchange/codereview |
I am new to both Python (and django) - but not to programming.
I am having no end of problems with identation in my view. I am trying to generate my html dynamically, so that means a lot of string manipulation. Obviously - I cant have my entire HTML page in one line - so what is required in order to be able to dynamica... | stackexchange/codereview |
Can anyone tell me how can I convert a value which I know to be CFAbsoluteTime from MacOS into DateTime value in C#?
| stackexchange/codereview |
An employee can have multiple vehicles..
And a company can have multiple employees..
My mission is to get the Companies that therefore have the most vehicles..
I have the LINQ query working perfectly (phew)! It returns (via select new {})..
CompanyID
EmployeeVehicleCount
Fantastic! BUT.. I want to be able to pull o... | stackexchange/codereview |
Here's a tricky normalization/SQL/Database Design question that has been puzzling us. I hope I can state it correctly.
You have a set of activities. They are things that need to be done -- a glorified TODO list. Any given activity can be assigned to an employee.
Every activity also has an enitity for whom the activ... | stackexchange/codereview |
Let's say I have an xml document like this:
<director>
<play>
<t>Nutcracker</t>
<a>Tom Cruise</a>
</play>
<play>
<t>Nutcracker</t>
<a>Robin Williams</a>
</play>
<play>
<t>Grinch Stole Christmas</t>
<a>Will Smith</a>
</play>
<play>
<t>Gr... | stackexchange/codereview |
Are the available Java-COM bridges like j-Integra, com4j and Jacob and others suitable to be used in a J2EE container? Which one is the most appropriate for that use? I need to evaluate the risk of JVM crashes, native memory leak and unmanaged thread creation (since it's not recommended in a J2EE container that uses th... | stackexchange/codereview |
I added a RequiredFieldValidator to my InsertItemTemplate, and it seems to be working fine. The problem I am having, however, is that now I cannot do anything else in the ListView (like edit or delete items) UNLESS the required field has a value. Is there some way I can manually do the validation when the user clicks... | stackexchange/codereview |
for this command i got this error "sudo gem install sqlite3-ruby"
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find head... | stackexchange/codereview |
I want do an app,i want it look the same as this one:
I don't know how to write the word "writing" as the red mark ,and how to add the app icon on
the screen.
| stackexchange/codereview |
i am trying to wrap the read and write operation of an instance of a file object (specifically the readline() and write() methods).
normally, i would simply replace those functions by a wrapper, a bit like this:
def log(stream):
def logwrite(write):
def inner(data):
print 'LOG: > '+data.replace(... | stackexchange/codereview |
Updated question to make it more clear
I understand that you can set the domain of your session_store to share sessions between subdomains like this: Rails.application.config.session_store :cookie_store, :key => '_my_key', :domain => "mydomain.example"
in Rails 3, what does the setting :domain => :all do? It can't let ... | stackexchange/codereview |
I want print a DataGridView with report viewer & RDLCs.
Actually I want a document about RDLC & print.
Please help me.
Thanks alot.
| stackexchange/codereview |
I was wondering, is there any (hidden) standard for navigation within a web page?
What I mean is, we all know that many, many pages have a search box (powered by Google, Bing or custom) for searching within the site. Is there a keyboard shortcut standard for accessing directly to the search box? In addition, usually wh... | stackexchange/codereview |
I have been struggling for a couple hours now with serving jpg's with a python cgi site. For some reason the images always come out distorted.
Here is my code:
print('Content-type: image/jpg\n')
path = 'C:\\Users\\Admin\\Documents\\image.jpg'
print file(path, 'rb').read()
This post describes a nearly identical problem... | stackexchange/codereview |
Does @font-face work in all browsers ?
How can i use @font-face?
| stackexchange/codereview |
I've got two objects (@stacks and @stories) with has_many relationships (through @anthologies). Stories can be viewed individually (/stories/1/) or as a collection in a Stack (/stacks/1/stories/1/).
map.resources :stories
map.resources :anthologies
map.resources :stacks, :has_many => :stories do |stack|
stack.resour... | stackexchange/codereview |
I have the following function
void AddNodeValue(XMLNode& node, std::string& value);
I want to use it like this:
document.AddNodeValue(modvalue,"modvalue");
and the compiler complains:
error C2664: 'void XML::XMLDocument::AddNodeValue(XML::XMLNode &,std::string &)' : cannot convert parameter 2 from 'const char [9]'... | stackexchange/codereview |
I'm new to Objective-C and have a little bit of problem. I made an app that has a button that switches to tab number 2 in the app but I want it to get specific data from the database so I've written code in which I pass from the first view a number which is the id of the row I need to the second view
@synthesize g... | stackexchange/codereview |
I have a Mesh file (XML format) created in Maya.
I would like to display it in the browser with some additional options for the user, like rotating an zooming in and out.
What should be the best and easy method to do so?
(SilverLight, HTML5/JS/Canvas, Flesh)
I would really like to try HTML5/Canvas - is there any librar... | stackexchange/codereview |
I would like to use Matplotlib to generate a scatter plot with a huge amount of data (about 3 million points). Actually I've 3 vectors with the same dimension and I use to plot in the following way.
import matplotlib.pyplot as plt
import numpy as np
from numpy import *
from matplotlib import rc
import pylab
from pylab ... | stackexchange/codereview |
I have a Qt 4 application that is trying to connect to an MS SQL Server 2008 database using the Qt ODBC driver. The application runs fine when it is running in Windows; however, the target OS for the application is to have it run in GNU/Linux. When the application runs in GNU/Linux I get the following error:
QSqlError(... | stackexchange/codereview |
I'm using a plugin for jQuery. It works great in webkit, but when I try it in firefox I get the following firefox error:
google.maps.Geocoder is not a constructor
$('.to, .from').geo_autocomplete(new google.maps.Geocoder, {
Here is all the jquery:
$('.to, .from').geo_autocomplete(new google.maps.Geocoder, {
mapkey: '... | stackexchange/codereview |
How can I delete certain page from MS Word document using macros? The code should be compatible from 2000 to Word 2010.
I've tried using page bookmark to delete page but, output is varying in different versions. Is there any other solution than this?
| stackexchange/codereview |
I've heard of people using this approach and would like to know what the implications are. I just know it's a bad idea!
From what I understand, salting a password before storing the hash in a DB has the primary purpose of making every hashing algorithm unique, and thus requiring a new rainbow table for every user when ... | stackexchange/codereview |
I have a web-application where the users can be sent directly to some specific pages (such as a page where he can view or edit an item). To achieve that, we provide a specific url. These urls are located outside the current web-application (i.e. they can be present in another web-application, or in an email).
The url l... | stackexchange/codereview |
Assuming this is possible, I would like my iOS application, when backgrounded, to poll a server (i.e. essentially, retrieve the contents of a URL every 30 minutes and notify the user if it contains something "interesting"), essentially in a similar way to the way the built-in mail client assumedly works if you're not u... | stackexchange/codereview |
I have to use InMemory.db in my project but the performance is slow the InMemory.db size is 10 MB. Some queries which retrives more than 30000 records take a lot of time. Is their any way I can improve the performance?
How to make InMemory.db a memory mapped file and use it as database in MFC. An example will be very h... | stackexchange/codereview |
Before I start posting a ton of code I think I may be able to explain my situation more logically. I have eight drop downs on a page being populated in exactly the same way except they are using different stored procs. The ones that return a LOT of rows (around 44000 but each rows is only about an average of 5 characte... | stackexchange/codereview |
The russian alphabet includes many letters that are the same in the English alphabet. Here is the list of common letters: L='acekopuxy'
Now, given two huge lists R and E, each in the form [word_A, word_B, ...], where each word_N is a lowercase word, I want to create a list C, which should contain only those words tha... | stackexchange/codereview |
This is my current query
SELECT DAYNAME(date_created) AS Day,
COUNT(*) AS my_count FROM sometable
WHERE (@date_created >= '2010-10-20 21:02:38' OR @date_created IS NULL)
AND (@date_created <= '2010-10-27 21:02:38' OR @date_created IS NULL)
GROUP BY DAY(date_created)
It only returns data for that day if the count e... | stackexchange/codereview |
I have been searching around for free or commercial AR toolkits and need some advice on the best one!
I don't want to have one that recognises a pattern and creates a shape. The idea I have uses the local location and uses POI's from a server to present them onto an AR view.
Any ideas?
| stackexchange/codereview |
I am trying to run punjab connection manager with very less python knowledge. I followed the punjab docs and can start the application. But how do I stop/restart it ?
twistd -y punjab.tac
starts punjab first time but after that if I enter the same command , it says
Another twistd server is running, PID 3726.
Precise... | stackexchange/codereview |
We have a lot of controls that consist of: A container with rounded borders and a couple of buttons that call save & cancel commands on the view model somthing like this:
<Border Background="White" CornerRadius="10" BorderBrush="Black" BorderThickness="1" Opacity="1" Padding="5,5,5,5" VerticalAlignment="Center" Ho... | stackexchange/codereview |
Lets assume I have such code for testing.
public class SimpleScheduler
{
public Script Script { get; set; }
private Thread _worker;
public void Schedule()
{
this._worker = new Thread(this.Script.Execute);
this._worker.Start();
}
public void Sleep()
{
//?
}
}
S... | stackexchange/codereview |
What would be the best code to have two bits of text in a single paragraph, one left aligned, the other right aligned, that also is:
the least code as possible
the easiest for clients to render (i.e. using least resources)
I add this last one to be sure <table><tr><td></td><td align=right></td></tr></table> would get... | stackexchange/codereview |
I am just curious about what is the behavior of temporary directory in an iPhone app.
(If my memory is correct there is a tmp directory in the same location as Documents)
What happen if I save some files there?, would they be deleted automatically when my app is terminated or should I do it manually? in that case What ... | stackexchange/codereview |
How can I pass a list of object in a SQL Procedure with SQL Server 2008 ?
I want to avoid this :
foreach (var item in itemList)
{
myContext.ExecuteStoreCommand("EXEC MyAtomicProc ... item ...);
}
I want to do the foreach in a store procedure.
How can I pass a c# list of object and execute this procedure in EF :
my... | stackexchange/codereview |
I have checkbox and a text follows it, like;
[checkbox] I agree
If the checkbox is not clicked when submitting, the current way of showing the error msg I have is(I use errorElement:"div");
[checkbox]
This field is required.
I agree**
I would rather like;
[checkbox] I agree
This field is required
Any idea how to ge... | stackexchange/codereview |
I'm pretty routined in writing iPhone applications with common UIViews.
To extend my skills, I wanted to write a simple 2D game where a player needs to break complex wall structure with limited shoots.
One shot should demage the wall, but not break through. A second shot at the same position would break through the wal... | stackexchange/codereview |
I have this HTML code:
<div id="content">
<div class="profile_photo">
<img style="float:left;margin-right:7px;" src="http://gravatar.com/avatar/53566ac91a169b353a78b329bdd35c95?s=50&d=identicon" class="profile_img" alt="{username}"/>
</div>
<div class="container" id="status-#">
<div class="message">
<sp... | stackexchange/codereview |
I have defined a HashMap which uses a double type key and another HashMap as value as shown
HashMap<Double, HashMap<Double, String>> HM1 = new HashMap<Double, HashMap<Double, String>>();
Now for each entry of this HashMap I have a reference to a different HashMap; the name of which is derived from the key value of tha... | stackexchange/codereview |
I want to cache my results from Zend_Lucene_Search using Zend_Paginator::setCache()
I get the following error:
Warning: fseek() expects parameter 1 to be resource, integer given
Here is the portion of code:
// Load index
$index = Zend_Search_Lucene::open(APPLICATION_PATH . '/indexes');
// Paginate
$paginator = Zend_Pa... | stackexchange/codereview |
I need to convert a rails 2.3 site so that all external URLs open in a new window. I could go though every call to link_to and add :target => '_blank', but I'd like to do it in one step for all links, present and future. Is there a way I can monkey patch link_to to get the desired behaviour?
| stackexchange/codereview |
My application compiles with VC6 sp6, uses DBGHelp.lib to get stack information. The code is simmilar in debug and release compilations.
The problem is that when executing the debug version, DBGHelp.dll loads msvcrt.dll (the release version). msvcrtd.dll is already loaded by my debug link anyway.
So I end up having bot... | stackexchange/codereview |
When you are proving a language is decidable, what are you effectively doing?
| stackexchange/codereview |
How can I update the value of tags in an XML file using System.Xml?
| stackexchange/codereview |
Why String.valueOf(null) is causing null pointer exception? Where the expected behaviour is to return "null" string.
String x = null;
System.out.println(String.valueOf(x));
This give a "null" string. but
System.out.println(String.valueOf(null));
will cause null pointer exception.
| stackexchange/codereview |
I have gone through all the responses in this post
print_r($_POST); ===> returns empty array
print_r($_SERVER);
Array ( [HTTP_HOST] => localhost
[HTTP_ACCEPT] => */*
**[HTTP__CONTENT_TYPE]** => application/json; charset=UTF-8"
[CONTENT_LENGTH] => 942
**[CONTENT_TYPE]** => application... | stackexchange/codereview |
Our project badly needs to move to Flexmojos4 to get a fix, but this requires Maven 3. Our project makes extensive use of Maven and we really love it, but have configured it very heavily. Between a dozen modules we probably have 50+ pages of XML configuration.
We also use Eclipse and make heavy use of the M2Eclipse... | stackexchange/codereview |
Is it possible to call a Common Lisp function in iOS?
If so, is it possible create it in a dynamic library?
| stackexchange/codereview |
I have a DB "TimeZoneField" type for users, how do I use that with the "datetime.datetime()" object to get a strftime() string like '%Y-%m-%dT%H:%M:%S.000Z'?
| stackexchange/codereview |
I can not find the results of my logging calls.
To log messages I tried both:
System.out.println("some message");
and
Logger logger = Logger.getLogger("MyLogger"); // Logger is java.util.logging.Logger
// ...
logger.info("some message");
I have deployed my app and after few tests I decided check out some
log... | stackexchange/codereview |
I'm not really a server-side person – I generally do iPhone apps, though I've hacked together a few Wordpress sites.
I'm curious as to what web technologies people would use for the back-end of an iPhone app whose front end presents as a basic forum. In other words, people can create new threads, and respond to them - ... | stackexchange/codereview |
I'm using the following code in an index.php page to display content from one page on another domain. However, it works fine in IE, but when I load the page in Firefox, its missing php data.
Am I doing something wrong or does firefox not allow this? Any help appreciated.
$domain = $_SERVER['HTTP_HOST'];
$crawl = "http:... | stackexchange/codereview |
I have a Class1
public class Class1 {
public Class(String s, int[] s1, int soc) {
this.s = s;
this.s1 = s1;
this.soc = soc
}
}
I have a List of Class1 (List<Class1>). I want to sort this list by soc, to get the Class1 with highest soc first
| stackexchange/codereview |
It might be a stupid question but just wonder if there is any workaround. :)
Is there any way to have "Not" in Predicate?
Example:
std::remove_if(s.begin(), s.end(), !IsCorrect);
// ^
Or, Do I have to create IsNotCorrect function anyways?
| stackexchange/codereview |
I am thinking about making the switch to storing session data in encrypted cookies rather than somewhere on my server. While this will result in more bandwidth used for each request - it will save extra database server load and storage space.
Anyway, I plan on encrypting the cookie contents using RIJNDAEL 256.
function... | stackexchange/codereview |
For my application, I need to be able to record user selected text on a web page, and then revisit the web page with a web crawler and see if the text that the user highlighted has changed at a future time. The text that I'm tracking is product information.
Getting the text that the user has selected is easy enough wit... | stackexchange/codereview |
I have a class called Person, which contains various properties such as first name, last name, etc.
I have a List that contains n instances of Person.
List<Person> lstPerson = new List<Person>();
What I need to be able to do is search lstPerson for a given person, and having found that person then obtain the previou... | stackexchange/codereview |
I was analyzing my app with leaks, and i observe that some core data entity is leaking, how can a NSManagedObject leak? I thought it was managed by the operating system? Are there known leaks in core data? The line that Leaks says causes the leak is
NSMutableArray *e=[NSMutableArray arrayWithArray:[[user videos] allOb... | stackexchange/codereview |
I am writing a game in ActionScript where I've got multiple classes that should be "hitable" by shots.
The most generic class that all other in-game entities inherit from is CombatObject; The classes CombatShip, CombatAsteroid and various others inherit from it. The classes CombatAi and CombatPlayer both inherit from C... | stackexchange/codereview |
I'm working on a website that will allow instructors to report on the academic progress of students in their classes. I've got the website set up two primary pages: one with a user control that displays the classes (a GridView of basic class info with a child GridView in a template field that displays student names and... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.