instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am new to Java web. Can anyone recommend some useful and efficient web framework to create UI and develop the code using Java? I am a core Java developer.
UPDATED
Thank you for your guidance guys i am planning to go with GWT ..and once again Thankyou...
| stackexchange/codereview |
hi
My question is : In log.nsf , there are entries database accessed in last week. I am not able to find where these values resides as i am fetching these values from c# and using the domino.dll as reference.
kindly help me out to fetch the number of hits of database from any user in week. So that i can check that my ... | stackexchange/codereview |
I have one activity (Home.class), and that activity contains 3 views:
first_view.xml, second_view.xml,third_view.xml
first_view.xml contains 2 buttons (btnSecond and btnThird). If I click btnSecond, second_view.xml will appear. If I click btnThird, third_view.xml will appear.
In the third view there is a ExpandableList... | stackexchange/codereview |
I have a class by itself called clientChat that does basic network stuff. I have several other classes linked to different window forms. In my first form I have a variable referenced to the chat class like so:
clientChat cc = new clientChat();
Everything works okay their, the class has been initialized and everything ... | stackexchange/codereview |
Is there a way to open the UIAutomation instrument through the terminal?
Will it be possible to write an AppleScript to open Apple's UIAutomation tool and load the application to be tested?
Can you please tell me is there any way through scripting or through the command line we can open UIAutomation and select the app ... | stackexchange/codereview |
I'm new to AOP and I was wondering if there is a good reasorce out there that would help me understand where I can use AOP in my projects.
I work mainly in C# but I'm looking for tutorials about practical AOP and not a specific tool (i.e. PostSharp or other) - I'm looking for common practices/patterns (not tools) and u... | stackexchange/codereview |
I been trying to passing this value:
// Content to submit to php
Others string here. And this link:
http://www.youtube.com/watch?v=CUUgKj2i1Xc&feature=rec-LGOUT-exp_fresh+div-1r-2-HM
to a php page, and insert it to database. here is my current code:
... // javascript
var content = $("#mcontent").val();
$.ajax({
u... | stackexchange/codereview |
We have a lot of domains running on one IIS WebSite/AppPool.
Right now we are in the process of implementing SSO with Windows Identity Foundation.
in web.config the realm has to be set with
<wsFederation passiveRedirectEnabled="true" issuer="http://issuer.com" realm="http://realm.com" requireHttps="false" />
My proble... | stackexchange/codereview |
I'm using the getJSON to get the json value to be returned by a page,
but there is no response from the function..
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
alert ("dfdfad");
function sam()
{
alert("entere");
... | stackexchange/codereview |
My objective is to achieve zero downtime during deployment. My site uses akamai as CDN. Lets say I do have primary and secondary cluster of IIS servers. During deployment, the updates are made to secondary cluster. Before switchover from primary to secondary, can I request akamai to cache the content and do a cutover a... | stackexchange/codereview |
I'm trying to create a view which will be similar to iPhone's mail application.
In mail app, in the compose mode, after entering To, CC and Subject, I started entering text. As number of lines increases, the view will scroll up (still keeping the keyboard) and user will always be pointed to last line of the text.
How c... | stackexchange/codereview |
I am try to play a number of audios in my app and it is working fine upto 3 times.
But when i am trying to play in 4th time it shows the error . Error Domain=NSOSStatusErrorDomain Code=-43 "The operation couldn’t be completed. (OSStatus error -43.)" .the code is ... | stackexchange/codereview |
I'm trying to get the meta extension working with markdown in Python 2.6.
The code looks like this:
import markdown as m
print "Markdown version: ", m.version
file = "file.md"
md = m.Markdown( extensions = ['meta']) # doesn't complain
print "Registered extensions: ", md.registeredExtensions
text = open(file)
try:
... | stackexchange/codereview |
what is the regex for such a task? -->
replace "[[...:" with "[["
That is to say, I want to replace *some text * inside [[...: with [[.
The problem with my code is that it remove *text * inside the first [[ ]]
>>> string = "Some text here [[dont remove me]] and some extra text [[remove me:and let this]] here."
>>> cle... | stackexchange/codereview |
Let me start by saying I'm not a DB guy. This stuff just confuses me to death, but unfortunately I got roped into doing this at work, so I'm kinda stuck :-)
I'm trying to get a complex order by to work in JPQL, and I'm not having any luck at all.
My current query looks like this:
select distinct msg from CSMessage msg,... | stackexchange/codereview |
I Have some problems with redirecting to another URL based on the query string parameters.
I have url for mapping service, for example "http://www.mydomain.com/?lon=111&lat=222&zoom=3"
and I need it to be redirected to "http://www.mydomain.com/111/222/3".
I have this rule in my web.config, but it does not work
<rule na... | stackexchange/codereview |
I've been stuck on this one for a while, so it's time to consult the pros. I've created a charting application that uses javascript to do heavy DOM manipulation/generation on the client (creating barcharts made of colored divs, etc).
Long story short, I want to avoid sending my js library to the client. Is there an... | stackexchange/codereview |
this is my C++ function that uses a kind of bitwise:
int genkey(const unsigned char a,const char b,const char c )
{
int val=0;
unsigned char *p= reinterpret_cast <unsigned char *>(&val);
p[0]=a;
char *q= reinterpret_cast <char *>(&val);
q[1]=b;
q[2]=c;
return val;
}
I'm using that for gener... | stackexchange/codereview |
I am facing problem in SSRS. Actually, I do have 3 Tablix in same report and want to hide 2 tablix based on Parameter value selected. I created parameter called Report and it having 3 values All, Emp with Service Hrs, Emp without Services hrs. Now what I am looking for if I select All then 2 tablix that belong to With ... | stackexchange/codereview |
I have some code in my willDisplayCell that selects a given row/cell.. this works
-(void) willDisplayCell ...
....
if (somecodition) [cell setSelected] (dont remember the actual methodname)
....
This is what I want to accomplish
-(void) ... cellForRow... {
if <condition> setPrivateClassVar = indexPath
}
-(vo... | stackexchange/codereview |
I have an eclipse project which uses an ant script to do some additional build steps, such as building jars.
When someone first imports the project, the ant build fails because it can't find javac in the classpath. Adding the path to the JDK to JAVA_HOME makes the build work, but I'd rather not have this requirement, a... | stackexchange/codereview |
I have tried setting the number of copies using PJL and got it working. However I could not get the @PJL SET ORIENTATION=LANDSCAPE working. It always prints in Portrait. I am also looking for options to print particular page range say from page 2 to 5. Can this be achieved using PJL? I am using the printer HP LaserJet ... | stackexchange/codereview |
I am using following code to create SQL Server CE database file programmatically. I am using C# 2008.
/* Create a new SQL Server CE database file programatically */
protected void CreateDB(string _databaseFileName, bool _encryptFile, string _password)
{
if (File.Exists(_databaseFileName))
... | stackexchange/codereview |
I've got a couple of Crystal Reports XI Release 2 reports that are part of a COM InteropForm's app, that is included in a VB6 app. Both of these reports display a date from a DateTime field in a SQL Server database. They've worked fine for the last 3 years or so.
Now I've been tasked with showing the time portion of ... | stackexchange/codereview |
I have an onLongClickListener that resets some values when called.
I would like to ad an alertDialog to check if the user really does want to reset all the values. However I am having no joy making it work.
The reset section works fine on it's own but if I try to add the AlertDialog I get the following error:
Multiple ... | stackexchange/codereview |
I have a link displaying the contents in the colorbox plugin via the iframe method and would like to target specific elements inside the iframe.
Can't seem to figure it out. Below is where I am at...any help would be greatly appreciated.
$(".thickbox").colorbox({iframe:true,width:450, height:570, title: 'Form Title', ... | stackexchange/codereview |
Is there a way to capture errors occurring in the DOM in Selenium and probably flag the same as an error in the page?
To give a brief example, let's say I'm trying to bind an event on a non-existing HTML control, my browser throws an error saying:
element abcd not found in the console.
Now, if I want the same error t... | stackexchange/codereview |
I am trying to index some content from a series of .html's that share the same format.
So I get a lot of lines like this: <a href="meh">[18] blah blah blah < a...
And the idea is to extract the number (18) and the text next to it (blah...). Furthermore, I know that every qualifying line will start with "> and end with ... | stackexchange/codereview |
I have a data-driven table view. The root view displays a list of entities (1) that when selected displays another list of entities (2).
If an entity in (1) has a series of properties that I'd like the user to have control over, what's the best UI approach to presenting them with a window for editing this data?
For exa... | stackexchange/codereview |
I use the SQL with VB.net to make such Projects But Now Im learning and Looking to SQLITE in iPhone apps where can I use it for any exemple about an app used the sqlite or something like it
| stackexchange/codereview |
I want to store an array of floats that's also an array.
So I want to store an array of float[3] (this contains x,y,sizex,sizey) to use with OpenGL
What's the best way of doing this as using standard ObjectiveC arrays feels like a slow solution.
I am going through the array on every draw call to check for collision w... | stackexchange/codereview |
I have an AsyncTask in which I show a ProgressDialog in the onPreExecute, and hide it again in onPostExecute, something like
final class UploadTask extends AsyncTask {
ProgressDialog dialog = new ProgressDialog(...);
protected onPreExecute() {
dialog.show();
}
protected onPostExecute() {
dialog... | stackexchange/codereview |
I've a listbox in a userControl and I want to select the first item in the listbox whenever datacontext of my userControl is changed. (listbox's ItemsSource is Bind to userControl dataContext :
<userControl>
<ListBox Name="listBox_Resources" ItemsSource="{Binding Path=Resources}" DataContextChanged="listBox_Resour... | stackexchange/codereview |
I would like to setup logic for when the user begins scrolling around the page and after the scrolling is finished, how can I accomplish this?
I want to avoid the below as it means my logic will be fired repeatedly unnecessarily
$(window).scroll(function(){
console.log("scrolling");
});
| stackexchange/codereview |
I know little about sockets but so far I haven't had much of a problem. I'm actually stuck on how to know when the other side finished sending msgs. What I have so far is a while loop on the server side which reads from the socket 'til has nothing left (or that is what is supposed to do). This is the code:
char c[1024]... | stackexchange/codereview |
I need to create a java.util.Date object with an Australian timezone. this object is required for tag libraries used in downstream components (so I'm stuck with Date).
Here's what I have attempted:
TimeZone timeZone = TimeZone.getTimeZone("Australia/Sydney");
GregorianCalendar defaultDate = new GregorianCalendar(timeZo... | stackexchange/codereview |
So I have a bit of code*, that when taking three points, is supposed to return a direction. I've written this solution, but every time I try to run it, it causes the GHCi to freeze, so I'm wondering what I'm doing wrong. Here's the code:
--chapter 3 question 9
data Point x y = Point x y deriving (Eq, Show)
data Vector ... | stackexchange/codereview |
I have an FLVPlayback component on my timeline (frame 4 or so), and my Flash Projector is running in fullscreen mode. The problem is that I can't seem to make my FLVPlayback component NOT be in fullscreen mode and at the same time, have my stage in fullscreen mode.
Why is this? How do I fix it?
EDIT:
I want the projec... | stackexchange/codereview |
I am trying to follow the instructions for the Windows Azure Mysql PHP solution Accelerator ( http://code.msdn.microsoft.com/winazuremysqlphp ) and I get the following error in the Fabric UI and Mysql doesn't start. http://www.pastie.org/1297146
| stackexchange/codereview |
I have tweets and commenting system like this
This is the code block for one set of tweet and its comments and commenting box:
<li class="storyBlock">
<div>
<div class="grid userImageBlockL">
<div class="imgMedium"> <a href="/bakasura1/users/harshamv"><img width="44" height="44" alt="image" src="/bakasura1... | stackexchange/codereview |
Does anyone know of a good music video API?
Music video information on Freebase is lacking, the Internet Video Archive's API returns inconsistent results, and Yahoo's YQL Music API has unclear language on what they consider a commercial application.
| stackexchange/codereview |
I would like to make an ant dependency where the target file depends on a source file. How do you describe this in ant?
For example, convert this Make target to ant
data.txt: header1.txt body.txt footer.txt
cat header1.txt body.txt footer.txt > data.txt
| stackexchange/codereview |
No matter what I try, I can't keep my custom UITableViewCell from acting like it should under the default rules for UIAccessiblity. I don't want this cell to act like an accessibility container (per se), so following this guide I should be able to make all of my subviews accessible, right?! It says to make each eleme... | stackexchange/codereview |
What's the difference between the the two display states?
| stackexchange/codereview |
My issue is this:
I use the android emulator, targeting android 2.2.
I created a custom view which I want to handle the background of my application, in this view I only want to display an image but I want it to fill the entire screen.
I initialize the view from my "Activity" like this:
BackgroundView bw = new Backgrou... | stackexchange/codereview |
I want to know how to center a GUI widget programmatically.
Kindly help me. I am using a LinearLayout.
Many Regards.
| stackexchange/codereview |
Hey, I want to get the hour of the calling from the Android CallLog. It is, the exactly hour that the user start the calling and if possible when he finishes the calling. Someone knows how to?
Thanks!
| stackexchange/codereview |
I've tried using this to login to the sorenson 360 API:
error_reporting(E_ALL);
ini_set("display_errors", 1);
$username = "<username>";
$password = "<password>";
define('POSTURL','https://360services.sorensonmedia.com/sessions');
define('POSTVARS','username=$username&password=$password');
$c = curl_init(POSTURL);
var... | stackexchange/codereview |
Struggling to float a div to the right of the webpage within JS.
The code within js is:
var options = {
width: "360px",
height: "240px",
backgroundColor: '#fff',
border: '1px solid #ccc',
borderRadius: 10,
padding: 10,
defaultLat: 51.50... | stackexchange/codereview |
I have a fairly basic set of models where a 'Project' has one 'Owner'. I'd like to allow users to enter the owner's name when creating a new project. If owner doesn't exist, a new one should be created. Does a good way to do this exist? I've been thinking about using attr_accessor and before_validation however it seems... | stackexchange/codereview |
I have byte streams on the server that I'd like to attach to a model class with Paperclip, and I'd like to be able to specify the name that they're saved as on the filesystem. Because I have a lot of these incoming files, I'd prefer to be able to create them as Tempfiles so that I don't have to worry about name collis... | stackexchange/codereview |
I dont know why this stopping criteria keeps failing but I believe it has something to do with the logical or (||). I debugged and it doesnt seem to stop where I want it to, which is on when cp (current position) is on the perimeter of the array.
if(cp == start || (cp.getColumn() > 0 || cp.getColumn() < maze[0].lengt... | stackexchange/codereview |
I'm getting this message in watch box.
Actually, my expression doesn't have any side effect, and I need to re-evaluate it automatically each time. How can I achieve that?
| stackexchange/codereview |
I have some code that looks something like this:
import random
n = 0
while n <= 50:
n = n+1
a = random.randint(1, 16)
b = random.randint(1, 5)
print n, ". ", a, "-", b, "= "
For some reason, when running it, I get the following error:
AttributeError: 'module' object has no attribute 'randint'.
However, I ha... | stackexchange/codereview |
we've had Sharepoint installed at our business for a few years now, and now were trying to use some workflows. Unfortunately, the only available workflow template is the "three state workflow". Online, Ive seen several resources for an "approval" workflow, but I dont see it as an option when creating a new workflow.
... | stackexchange/codereview |
we are going to develop an asp.net application on our windows server that we want to run on another companies domain name, http://notourdomain.com. The server which the domain is currently on is Resin and their language is Java(TM) SE Runtime Environment
What is the best way to make this happen?
We would need our appl... | stackexchange/codereview |
I'm preparing to launch a new version of an existing website. The new site will be on a completely separate server that uses a LAMP setup. Here's my plan:
Set up the new site on the new server
Rsync user-generated content to new server
Take down the old site
Take a snapshot of the old MySQL database and load it on the... | stackexchange/codereview |
I've seen in this tutorial section of the Quartz.NET documentation that it should be possible to define the maximum number of threads the Quartz scheduler is going to use. In my special case I want to set this number to 1. But in the API doc I couldn't find a way to access the threadpool instance my scheduler is using ... | stackexchange/codereview |
I have installed Rails 3, and I have some problems with label_tag. As I know label_tag method is included by default from ActionView::Helpers::FormTagHelper. But in my situation, it's not. Any suggestions?
undefined method 'label_tag' for #<#<Class:0xb674433c>:0xb6743504>
<%= form_tag :controller => "login", :action =>... | stackexchange/codereview |
What is the difference of the sys.master_files and sys.database_files? I have about 20 databases in my instance but when I query the sys.master_files I do not receive any rows. Why? When I query sys.database_files I get the information about the database files concerning the current database.
| stackexchange/codereview |
I'm looking to implement a chat room using PHP/Javascript (Jquery) with both group chat and private chat features.
The problem is how to continually update the interface in a natural way and possibly also how to show 'X is typing..' messages in private chat.
The obvious way seems to be that every X seconds/milliseconds... | stackexchange/codereview |
I'm trying to understand the benefits of using a URL routing (URL dispatch) over just running code from different scripts. Besides prettier urls (which can be accomplished via htaccess using either model), why would I direct /archive/ to dispatcher.php?path=/archive/ instead of, say, simply rewriting /*/ to *.php? Is ... | stackexchange/codereview |
I need some help getting a SQL query running the way I need. I know you sql gurus will be laughing at this, but I really don't know how to do this :-(
I have two tables in a MS-SQL database. One is workers, the other is contracts. They are in a 1-to-many relationship, that is one worker can have zero or more contracts.... | stackexchange/codereview |
When i saved a PDF to a file using URL, the saved pdf does not show up in Itunes/My iPad name/Apps/MyApp's document window. Actually i dont even see my app under the File Sharing section. How is app like "dropbox" or "pages" do it?
Code used
//url of the pdf I want
NSURL *pdfURL = [NSURL URLWithString:@"http://manuals.... | stackexchange/codereview |
I need a simple shader code to use with my XNA application which just draws a given texture to the screen .. Essentially, I'm trying to do post processing, but my aim here is to not apply any post processing effect, but to just display the texture as itself ..
I tried the following pixel shader code but I'm getting so... | stackexchange/codereview |
I'm trying to bind parametres for SQL query inside a loop:
$db = new PDO('mysql:dbname=test;host=localhost', 'test', '');
$stmt = $db->prepare('INSERT INTO entries VALUES (NULL, ?, ?, ?, NULL)');
$title = 'some titile';
$post = 'some text';
$date = '2010-whatever';
$reindex = array(1 => $title, $post, $date); /... | stackexchange/codereview |
Why is the output of the dResult invalid ?
Env: Visual Studio 2008
int _tmain(int argc, _TCHAR* argv[])
{
double dN = - 0.091023604111478473 ;
double dD = 0.127777777777777;
double dResult = pow( dN,dD );
//dResult = -1.#IND000000000000
return 0;
}
| stackexchange/codereview |
I'm contacting a legacy database using NHibernate, but I'm having problems with MySql's zero dates.
The column is defined as DATETIME NULL, but it's storing "null" values as a blank date.
I've added Convert Zero Datetime=true to my connectionstring, so now all values are converted to DateTime.MinValue. On the other han... | stackexchange/codereview |
Looking for a way to parse key pairs out of the hash/fragment of a URL into an object/associative array with JavaScript/JQuery
| stackexchange/codereview |
Guys im trying to check/uncheck a checkbox based on the state check/uncheck of another checkbox. And im trying to build a Jquery script to do that for every checkbox here.
Basically i want to set to checked the status of "lists_1" whenever id="CustomFields[12_1]_la1" is checked. And also set the status of to unchecked... | stackexchange/codereview |
Are there Java coding standards? If so, is there a tool that implements and checks for those standards? I'm not familiar but hoping that someone has used Sonar, Checkstyle, PMD, Findbugs, Clover, and/or Cobertura that could tell me if any of those tools or other tools can do that.
| stackexchange/codereview |
I'm practising a bit on JSP and want to create a simple formular field. The code below is working properly. Now i want that the last input stays in the formular fields. So when i type in a value "password" and a "name" both values should stay in the formular field no matter what the result of the if-else statement is. ... | stackexchange/codereview |
Without turning the autoformatter off altogether, how do I stop the Eclipse Aptana javascript autoformatter from putting properties of an object on separate lines?
It does this:
var p = {
key: 'test'
};
And I want this:
var p = { key: 'test' };
I checked the settings under Preferences->Aptana->Editors->Javascript... | stackexchange/codereview |
I've got this function
$("a[href*=/category/movies/]").click(function() {
so.addVariable('stretching','fill');
so.write('mediaspace');
});
that I want to turn into an if...else statement.
How do I target links inside div#header_playlist_categories
and apply an else statement, if links point to other than '/categories/... | stackexchange/codereview |
I have a set of date/time strings in the YYYYMMDDHHMMSS format that I want to convert to something readable by the date utility. Usually, I can do something like:
date -d "2010-10-01 12:34:56"
However, date does not like the YYYYMMDDHHMMSS:
date -d "20100101123456"..invalid date
So, I probably need to refine the strin... | stackexchange/codereview |
I have created a custom view by extending AutoCompleteTextView (with a specialized function called setCursorAdapter). I am supplying a SimpleCursorAdapter and adding a FilterQueryProvider. I am using this for a list of numbers where I need the ability to search anywhere within the number for a match.
public void setCur... | stackexchange/codereview |
i want to build a timer class that inherits from System.Timers.Timer.
as so
Class MyTimer : System.Timers.Timer
{
public bool IsRunning{ get; set;}
}
and while its elapse the flag will be true , and when the thread is over the falge will be false again. any idea ?
| stackexchange/codereview |
I am writing an application that has two characters in it and each should use a different text-to-speech voice. We're still using Windows XP so we're restricted to SAPI 5.1.
What I am trying to do is when a character is created, assign it a token that represents its voice:
//female voices
HRESULT hr;
if... | stackexchange/codereview |
I have a big Mercurial Repository on Google Code Hosting, how can I delete the old commits/revisions? I don't need that old revisions anymore because I have forked it to other repositories.
| stackexchange/codereview |
My iphone App shows a table view having list of 6000 items. (these items are in SQLite file)
User can search these items. BUT, when I click Search bar & start typing the first letter, it takes ages before I can type in the second letter. Similarly it takes long time to type each letter before I could begin searching.
I... | stackexchange/codereview |
I am using TortoiseSVN on Windows.
I want to delete all files from all folders, so I can import a new source tree to find the differences including deleted files. (Quite similar to updating a vendor branch.)
What is the easiest method to do this?
| stackexchange/codereview |
I am building on Windows Phone 7. I noticed in the documentation I can:
JsonObject user = (JsonObject)JsonObject.Load(responseStream);
bool isMember = user["IsMember"];
string name = user["Name"];
int age = user["Age"];
How can I import the JsonObject class?
| stackexchange/codereview |
I have my first MVVM Light app and I have been very good and put nothing in the code behind. For performance reasons, the chart control I am using though needs a call to turn off it's updating and then turn it on again after the chart series have been updated. So I need to call a method on the control from the ViewMo... | stackexchange/codereview |
I am trying to figure out the device type for a particular drive. I'd like to know how to do it on Mac OS X and Linux as well, but for now if that's too much a Windows solution would suffice.
so, let's say I have a drive H. I can determine if the device is a removable drive through the Win32 API function GetDriveType()... | stackexchange/codereview |
I've run into the same issue presented by the commenter here: Django South - table already exists
There was no follow-up, so I thought I'd post a new question. I have a Django app whose migrations I manage with South. I added a field to my model then ran
./manage schemamigration my_app --auto
which ran as expected. R... | stackexchange/codereview |
I have an ArrayList of type GeoPoint.
private List<GeoPoint> points = new ArrayList<GeoPoint>();
I want to pass points to another Activity and retrive the data in that activity. How do I do it? I know I have to use the parcelable but I searched, but could not find a way to pass ArrayLists.
| stackexchange/codereview |
I have the following code:
// Autocomplete search
$("#shop_search").autocomplete({
source: '<%= spotify_search_path(:json) %>',
minLength: 1,
select: function(event, ui) {
append_place(ui.item.name, ui.item.id, ui.item.shop_type, ui.item.address_geo, ui.item.contact, ui.item.email, ui.item... | stackexchange/codereview |
I'm a complete newbie to Android, and this may actually be more of a Java question...
I'm trying to set up an if statement based on the item clicked in a ListView. In my onItemClick method I have the following:
Toast.makeText(getApplicationContext(), ((TextView) view).getText(), Toast.LENGTH_SHORT).show();
if(((TextVi... | stackexchange/codereview |
I have the following model:
[DataContract]
public class MessageHeader
{
private Guid? messageId;
public Guid MessageId
{
get
{
if (messageId == null)
messageId = Guid.NewGuid();
return messageId.Value;
}
}
[DataMember]
public str... | stackexchange/codereview |
I'm testing a simple hello app and it's not launching on the emulator. There's no errors and the console is this:
[2010-11-16 21:26:06 - Hello World] ------------------------------
[2010-11-16 21:26:06 - Hello World] Android Launch!
[2010-11-16 21:26:06 - Hello World] adb is running normally.
[2010-11-16 21:26:... | stackexchange/codereview |
Query
select min Price, min year from tblProduct
returns empty ("") results. I only want results in numbers. How do I do that?
Example:
tblProduct
Price Year
1000 2008
2000 2009
500 2001
2005
200 2000
The result is Price "", year 2000. I want the result to be Price 200, year 2000
| stackexchange/codereview |
Possible Duplicate:
SimpleXML Reading node with a hyphenated name
I have some xml which has non alpha characters in the element names, such as '.' or '-'
e.g.
<MyXML>
<SomeData>
<Period.InTheMiddle>Data i want to get</Period.InTheMiddle>
</SomeData>
</MyXML>
Now using $xml->SomeData->Period.InTheMid... | stackexchange/codereview |
I have an embedded movie and trying to set up a php function that will let me see if user has been here before. If they have then autoplay is set to false
the followig code does not work <?php
function autoplay(){
if ($REMOTE_ADDR == "") {
$ip = "no ip";
echo "true";
}
else{ $ip = getHostByAddr($REMOTE_ADDR);
echo... | stackexchange/codereview |
What I want to get is the very like time(),but should be accurate in ms:
2010-11-15 21:21:00:987
Is that possible in PHP?
| stackexchange/codereview |
I have a database that has newsletter entries that I want to arrange according to months. My db has the following fields id, title, description and date. The date has is the full date e.g. 2007-02-01 15:26:02. What I want to is to arrange all the newsletters according to the corresponding month e.g I want to have somet... | stackexchange/codereview |
I want to be able to read the "next line" without increasing the line counter, so that the next time a read command is isued it will read the same line.
example:
this is the first line
this is the second line
this is the third line
I want to be able to know that the second line says "this is the second line" but not ad... | stackexchange/codereview |
Possible Duplicate:
CompilerServices.Operators equivalent on C#
I was looking for Microsoft.CSharp.CompilerServices.Operators but couldn't find it.
| stackexchange/codereview |
I'm building a modular app and I wanted all Objects of a certain type to be able to call a management object, and automatically have their own instance passed along.
Scenario:
My application consists of a framework and plugins that are being loaded at runtime.
One of these plugins provides functionality that operates i... | stackexchange/codereview |
Thanks to some of your patience and a small epiphany (sp?), I've now managed to get hold of the user object and groups etc. However, when I try to make calls to the api I notice my shortcomings (no, don't comment - I know you've noticed a while ago :p ). According to Facebook's docs, I should be able to post using some... | stackexchange/codereview |
I have an asp.net mvc 1.0 project. I upgraded the project and solution to Visual Studio 2010. However, I do not want to use asp.net mvc 2.0. My app compiles under mvc 1.0. All my references are to 1.0. I have copy local true and i am referencing mvc 1.0 from a lib folder, not the GAC.
However I keep getting this e... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.