instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a situation that I have not found an answer to when looking through the Hibernate API documentation or on SO.
We have a disconnected setup, and we send entities and collections back across the wire. We are looking at a way to use a localized cache to reduce some of the wire traffic, and I am trying to figure ou... | stackexchange/codereview |
I am making a small program which shows pins on a map . The information about the pin comes from XML file including price. When a price button is clicked, lets say $900, only the pin with 900 needs to enlarge. All the pins are store inside a pinContainer_mc (blank container to put all the pins)
Pin heretics pin class w... | stackexchange/codereview |
form doesnt exist in a DOM, its created on the fly and then submitted
$('<form action="http://www.google.com/" method=POST></form>').submit();
this simple line causes both browsers to hang (Mozilla even gives a window to terminate script, with error 'too much recursion'), jQuery 1.4.2, havent tried in IE
any ideas?
th... | stackexchange/codereview |
I've serach google for a while to get an answer to this question.
I want to build a slider with JavaScript that both have images and my own SWF movies.
The problem is that i want this slider to slide automatic and when it hits a SWF movie i should play that automatic and when the movie ends continue with the slide.
An... | stackexchange/codereview |
I would like to better understand ontologies and reasoning. There is an interesting puzzle called Einstein's riddle on the net that can be solved with the help of ontologies and reasoning. I downloaded the OWL ontology from that site and imported it into Protege 4.0.2 (does not work with 4.1). I can start a reasoner ... | stackexchange/codereview |
At the moment I have a help file view which is displayed but I'd also like to show a tutorial.
I want to give the user some to tap on to choose.
Something cool, any ideas ?
| stackexchange/codereview |
I have some regular expressions written for the Microsoft's .net regex format and I want to use them in a python program on a Linux machine. Is there a compatibly library or a method of covering them? If I have to do it by hand, do you know of a cheat sheet or a guide?
| stackexchange/codereview |
I'm stumped!
We have a user control for managing account information. We use this particular control on two pages. On one page, everything works perfectly and meets our expectations. On the second page however we receive compilation errors stating that:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET F... | stackexchange/codereview |
Is there a way to access the DOM from the event fired by DOMContentLoaded?
window.addEventListener("load", function() { myExtension.init(); }, false);
var myExtension = {
init: function() {
var appcontent = document.getElementById("appcontent"); // browser
if(appcontent)
appcontent.addEventListener("... | stackexchange/codereview |
I have a WinForms application written in C#. The first screen to appear when it opens is a dashboard screen that can take some time to load. The data loading method is called using BeginInvoke on delegate. That part is fine, my problem is when I want to load the read data into some grids. The code to get me back to... | stackexchange/codereview |
I want to turn an html page that can easily be edited on the net to a valid html e-mail (inline styles, absolute links etc).
I have found this project premailer, it changes your html to work well in as much e-mail clients as possible. I want to know if a .NET equivalent exists or if it could be possible to run this pr... | stackexchange/codereview |
I'm trying to target a C# application to 32bit architecture, but in the platform select list, properties > build menu, there is only the 'Active (Any CPU)' option. I'm using C# 2008 Express Edition.
The app builds fine and executes without problem on 32bit, but because of a component (flash content), it fails when run... | stackexchange/codereview |
here is one query that returns only 1 column called datapath:
SELECT --assumes number not at end of string
LEFT(startOf, PATINDEX('%[^0-9]%', startof)-1)
FROM
(
SELECT --assumed 3 digits minimum
SUBSTRING(datapath, PATINDEX('%[0-9][0-9][0-9]%', datapath), 8000) AS startOf
FROM
(select d... | stackexchange/codereview |
I'm trying to use a SqlDataReader (I'm quite aware of the beauty of Linq, etc, but the application I'm building is partly a Sql Generator, so Linq doesn't fit my needs). Unfortunately, I'm not sure what the best practices are when using SqlDataReader. I use code like the following in several places in my code:
using ... | stackexchange/codereview |
I am looking for a simple and secure way to access plugins from a .NET application. Although I imagine that this is a very common requirement, I am struggling to find anything that meets all my needs:
The host application will discover and load its plugin assemblies at runtime
Plugins will be created by unknown 3rd pa... | stackexchange/codereview |
I want to know if there is a way to restrict the size or movements of the UIViews in the GestureRecognizers.
Sure I could write my own restriction code but wana know if we can set some property or something to have some bound limits.
For example in UIPanGestureRecognizer I want to restrict the movement of the view add... | stackexchange/codereview |
is there anyway to find out how many times a word repeated in a text .
the text is in character arrays (char[])
text = this is a book,and this book
is about book.
word = book
result = 3
| stackexchange/codereview |
I am trying to understand some scripts that I have inherited and make use of awk. In one of the scripts are these lines:
report=`<make call to Java class that generates a report`
report=`echo $report|awk '{print $5}'`
The report generated in line 1 has data like this:
ABC1234:0123456789:ABCDE
ABC4321:9876543210:EDCBA... | stackexchange/codereview |
I've got a custom view in which I need to draw two bitmaps, one is a background, representing the image of a map and one is a pin which will be drawn on top/left position in canvas.
The both images are drawn onDraw and remain the same during the live of the activity that contains the view. After a while I get a
OutO... | stackexchange/codereview |
In my program, I need to send a dotx to client side. Now I process it as:
generate the temp dotx in server side which contains some data from database.
send it to client side. The code is:
Response.Clear();
Response.Buffer = true;
Response.Charset = "unicode";
Response.ContentType = "ap... | stackexchange/codereview |
I've built a website that takes code snippets and compiles them and runs them. However, F# is broken on the server. Whenever I try to compile F# code I get the following error message:
The referenced or default base CLI library 'mscorlib' is binary-incompatible with the referenced F# core library 'C:\Program Files (x8... | stackexchange/codereview |
I am using a bootloader program which is in Assembly and I am calling a C function frequently to SEND and RECEIVE a Character at a time. The controller I am using seems to have just 3 general purpose registers which it uses frequently. Apart from that I am storing some bytes in fixed RAM locations.
SO, my question is:
... | stackexchange/codereview |
I have a standard upload endpoint in Jersey:
@POST
@Secure
@Consumes("multipart/form-data")
public Response upload( @Context final HttpHeaders hh,
@FormDataParam("fileaaa") final FormDataContentDisposition disposition,
@FormDataParam("fileaaa") final InputStream input,
How can I get the MIME ty... | stackexchange/codereview |
I can't get this blasted thing working right. The problem is, If I want to enter 2 numbers, I actually have to enter 3. What is wrong?
namespace MT
{
template<class IIT, class OIT>
OIT copy_n(IIT iitBegin, size_t szCount, OIT oitBegin)
{
for(size_t szI = 0; (szI < szCount); ++szI)
{
... | stackexchange/codereview |
Lets say I have 3 entities: A, B and C.
A and B are both aggregate roots and reference C
C does not reference anything
Does this mean by DDD that C is also an aggregate root because it is referenced by more than one entity? (Or else it could be part of that only referencing entities aggregate).
Thanks
| stackexchange/codereview |
I have installed SQL Server Management Studio Express and trying to import my access tables to SQL database. In the blogs I have read I can do it from Tasks>>>>Import Data BUt my Tasks menu does not contain any Import Data. It only contains
Detach, Shrink, Backup, Restore, Generate Scripts.
What is the problem with ... | stackexchange/codereview |
Edit Template and Insert Template in Devexpress aspxgridview.How it Possible?
| stackexchange/codereview |
I play with C++0x for some time and now I want to use variadic templates and tuple to implement class "Task". I'm going to pass Task objects into newly created threads (using pthread). Task class will contain function pointer to function which should be called inside thread and arguments for this function, simplified c... | stackexchange/codereview |
I think that here answer will come from experience.
I am right know wondering what is the real goal of an Operational DataStore (ODS)
I am browsing the web but if possible I would like to have a real case example feedbacks.
I have few questions :
ODS is from the Operational side, so what data modeling should be appli... | stackexchange/codereview |
I am trying to have 6 textfields that requires only one textfield to be filled in order to calculate the value of the second textbox. however i would like the textbox that are empty and arent used to not display 0.00000 but instead remain empty. how can this be done?
thanks
| stackexchange/codereview |
I'm querying a Lucene index file which structure I didn't build. This index contains Documents with fields structured like this:
As you can see the 'type' field is always empty, however the 'all' field contains data formatted in a way so that is searchable and it contains a type=ta sort of syntax.
The weird thing is t... | stackexchange/codereview |
I have an array tempArray = ["Kathmandu","Pokhara","Dharan"]. To make sure that "Pokhara" is in tempArry, I have to use loop and check every element of tempArray.
Is there a way to implement Ruby's Array.include? so that I don't need to use a loop?
| stackexchange/codereview |
I need to write web aplication like google reader (using SmartGWT).
Instead of RSS feads I will show log files which updates in realtime. I think I can start a timer and ask server are there any new logs every minute. Is this the right way to do this?
Do I have to use WebSockets? Are they working in all the modern bro... | stackexchange/codereview |
What are the ways to find all callers (symbol names) of a particular function / symbol using only the compilation unit? How to find from a compilation unit which library included in that unit was a symbol defined in?
| stackexchange/codereview |
I'm making an app which contains a java.awt.Canvas to display a sequence of conected nodes like in a graph. while editing, the last dot is conected to the mouse cursor with a java.awt.geom.Line2D so that it must be repainted everytime the user moves the mouse, and it causes a really disgusting -flashy- effect on screen... | stackexchange/codereview |
As stated in http://www.boutell.com/newfaq/misc/urllength.html, HTTP query string have limited length. It can be limited by the client (Firefox, IE, ...), the server (Apache, IIS, ...) or the network equipment (applicative firewall, ...).
Today I face this problem with a search form. We developed a search form with a l... | stackexchange/codereview |
Is there any simple way to convert a RFC HTTP date into a timestamp in Lua?
"Sat, 29 Oct 1994 19:43:31 GMT"
into
783467011
| stackexchange/codereview |
I try to collect some simple statistics on a table, let's say the simplified structure is the following:
ID | CREATIONDATE | VALUE |
------------------------------------------------
1 | 2007-01-06 13:54:00.000 | 7 |
2 | 2007-03-07 15:03:00.000 | 8 |
3 | 2008-07-02 ... | stackexchange/codereview |
i've added a checkbox to a checkedlistbox using the following code:
CheckBox cb = new CheckBox();
cb.Enabled = false;
cb.Text = "A B C D";
checkedListBox1.Items.Add(cb);
but, as seen in the picture, the text wont show up. what have I done wrong ?
Thanks!
| stackexchange/codereview |
I read the tutorials about the binary and unary functions. I understood the structure of them, but I couldn't imagine in which case I need these functions. Can you give an example for usage of them.
http://www.cplusplus.com/reference/std/functional/unary_function/
http://www.cplusplus.com/reference/std/functional/bina... | stackexchange/codereview |
I'm currently building a Windows Service which needs to process a queue of messages that are sat in a database table. This queue could vary in length and could take anything from 5 seconds to 55 seconds to execute against all rows in the database (I'm currently using a test data set of 500,000 records)
The Windows Ser... | stackexchange/codereview |
<< Big update below implies it's simply a logging issue >>
I'm trying to get app engine setup with python and having some problem that I suspect is some simple step I've missed. My app.yaml says this:
application: something #name here is the one I used to register i.e. something.appspot.com
version: 1
runtime: python... | stackexchange/codereview |
The problem is that I can't find a way to properly populate boxes array. Here's the code:
local expl
declare -a boxes
boxes = $(ls $HOME/.vagrant/boxes --color=none)
_wanted boxes expl 'help' compadd $boxes
Throws an exception:
vagrant help __box_list:13: command not found: boxes
__box_list:13: command not found: boxe... | stackexchange/codereview |
I have uncommented the admin areas in settings.py & urls.py. However the admin won't load at /admin/. If I change the url to /admin/auth/ then I can login the admin panel, but if I try and go to /admin/ it still won't find the page.
Here is my settings.py :
INSTALLED_APPS = (
'django.contrib.auth',
'django.co... | stackexchange/codereview |
is there something wrong with this if statement i am trying to make a swing login system??? thanks :)
public void login()
{
String username = loginField.getText();
char[] password = loginPass.getPassword();
if (username.equals("test") && password.equals("test"))
{
... | stackexchange/codereview |
Dianne Hackborn mentioned in a couple threads that you can detect when a layout as been resized, for example, when the soft keyboard opens or closes. Such a thread is this one... http://groups.google.com/group/android-developers/browse_thread/thread/d318901586313204/2b2c2c7d4bb04e1b
However, I didn't understand her ans... | stackexchange/codereview |
How can I generate a hash-of-hashes from a series of arrays? I need to go from this:
my @data = /one two three/;
my $value = 13:
to this:
$hoh = { 'one' => { 'two' => { 'three' => 13 } } };
This is used to transform the output of a database query to a hierarchical structure for visualization. Therefore the length of ... | stackexchange/codereview |
I am trying to use WPF printing from PowerShell. I have found a simple example in VB.Net here:
'Create a new Run class, passing it the text.
' The Run class contains 1 line of text
Dim r As New Run(text)
'Create a new paragraph, passing it the new run class instance
Dim ph As New Paragraph(r)
'Create the document, pa... | stackexchange/codereview |
I have one method on JSF Managed Bean, i want after user call method, and it do some business logic ,after that it will redirect some 2 seconds after some business logic complete. When business logic complete on 9:30:20 after that 9:30:22 page will redirect. How can i do on JSF Managed Bean?
Thank You!
| stackexchange/codereview |
Say I have this:
my %hash;
$hash{"a"} = "abc";
$hash{"b"} = [1, 2, 3];
How can I, later on, find out if what was stored was a scalar, like in "abc", or an array, like in [1, 2, 3]?
| stackexchange/codereview |
I'm using JCaptcha in a project and needed a behavior that was not directly available. so I looked into the source code to see if I can extend it to obtain what I want and found that the store implementation I use (MapCaptchaStore) uses a HashMap as the store... with no synchronization.
I know JCaptcha does not work in... | stackexchange/codereview |
First,I am sorry for my poor english...
So, i have a problem with a view which is added on a other one.
I am setting size of UIview in IB as 200px/200px
I set the center of this view with the center of parent view.
Everything is working great at this point.
I can see my View in the center of the parent view like i want... | stackexchange/codereview |
I am unable to achieve any animation with the following code:
if (self.segmentControl.selectedSegmentIndex == 0) {
[UIView transitionFromView:tableView
toView:mapView
duration:1.0
options:UIViewAnimationTransitionFlipFromLeft
c... | stackexchange/codereview |
I have some assemblies that contain WPF windows and code to provide common functionality when working with in-house systems. As an example - browsing a database and selecting an object.
I've integrated this into a third-party WPF app, but the controls in my own assembly are now being "themed" in the style of the host a... | stackexchange/codereview |
I have imported Boost library in to a .dll that I am using. I am trying to parse a string using:
boost::wregex regPlayerAtSeat(L"*Governor: Seat.?[1-9].*");
But all I get is an 'interop service exception. Is the syntax of my regex wrong?
Thanks, R.
| stackexchange/codereview |
Possible Duplicate:
how should I render views when users habtm roles. cake
hi i got users habtm roles
the thing is when i login i dont know how to separate or mix the views for users that have more than one role...
any help?
how would you manage this issue? by letting the user select which role he wants to play? o... | stackexchange/codereview |
I have magento in a subdirectory in the root and if I set the secure base url and secure base url link to the correct shared ssl url to enable secure pages I have no problem in the FRONTEND. The pages displays as they should. However when I try to access the admin with the secure link below I cannot gain admittance.
F... | stackexchange/codereview |
First, let me admit that what I know about HTTPS is pretty rudimentary. I don't know much about session security, encryption, or how either of those things is supposed to be done.
What I do know is that web security is important; that horror stories of XSS, CSRF, and database injections pop up over and over again. I kn... | stackexchange/codereview |
Intermittently I am getting "VBScript runtime error '800a0006': Overflow" on this line:
Response.Cookies("AffiliateID").Expires = Date() + 30 '30 day cookie
The error message is referencing this line but maybe it is happening in the code around it, which follows:
elseif Session("LoggedIn")<>1 and not isEmpty(request.q... | stackexchange/codereview |
I have some thinking-sphinx tests that I need to turn off transactions for to prevent mysql locks, but in doing so I break a lot of other tests previously written, so I need to be able to toggle the setting.
I have found similar questions regarding rspec, but none for Test::Unit.
I have tried self.use_transactional_fix... | stackexchange/codereview |
I've developed a web site using Struts2 as a controller and integrated it with Spring and Hibernate to do the business logic and DB stuff. The website's URIs are http://my.domian.com/URI; which {URI} is dynamically generated thorough the admin cms. The mapping of each uri to the servlet are done with help of Apache mod... | stackexchange/codereview |
I'm want to create a SQl Server login for a IIS web application. Since the Web Application using IIS 7.5 identity, and in addition in production the Sql Server may be in a separate machine, I'm looking for use a user and password based connection string.
Now, I'm a little confused how to create this login in Sql Server... | stackexchange/codereview |
In my WPF application I have a CollectionViewSource which is providing a view to a private ObservableCollection. The CollectionViewSource has a PropertyGroupDescription which is utilised in a ListBox to present data to the User's preference.
Using a ControlTemplate containing a Expander Control within the ListBox Group... | stackexchange/codereview |
Say I have a table Comments with these columns: Id, Comment, Category, CreatedDate, CommenterId
I want to get the top 5 categories from the Comments table (based on the count of each category in that table). How can I do this in linq, to return either List or IQueryable?
| stackexchange/codereview |
I recently tried adding parallax occlusion mapping to my landscape renderer and it looks and works fine, but I've faced some problems.
Here are 2 images (one with only normal texture mapping, another with parallax occlusion mapping also).
I have some aliasing issues which I marked with the red circles (you might want t... | stackexchange/codereview |
Why:
<Trigger Property="ItemsControl.AlternationIndex" Value="2">
<Setter Property="Background" Value="#FAC896"></Setter>
</Trigger>
and not:
<Trigger Property="ItemsControl.AlternationIndex" Value="2">
<Setter Property="Background" Value="50 50 50 255"></Setter>
</Trigger>
?
Is this for performance reasons o... | stackexchange/codereview |
Is it possible in .net to get all instances of concrete type created in application? I guess such information is stored in GC, but is it accessible from code?
| stackexchange/codereview |
Hi now playing with SQL for the first time!
I have the code below which works fine but I need to check if the entry is already in the database using CustomerName and Product to match on and if it is in the database update the other fields and if not insert all the data.
How would I do this?
Below is the code I use to ... | stackexchange/codereview |
Are there any web browsers that make pen/stylus specific events (such as pressure) available to the DOM, similar to Microsoft's RealTimeStylus API?
Is there any standard DOM interface for this? If not, are there proprietary extensions that allow this, perhaps using a plugin?
| stackexchange/codereview |
I am trying to bind the command of a button inside a datacontext to a RelayCommand in the Main viewmodel. When I use Blend it changes the datacontext of the containing grid to point to the Main ViewModel thus breaking the binding of the content of the grid which should be based on the viewmodel of the row etc. I trie... | stackexchange/codereview |
I have a Windows service which does some stuff using a Smartcard. The certificate of the smartcard is mapped into the MY store of the local machine. Accessing the private key of the smartcard is no problem when the service runs as System, but it fails when run as NetworkService.
I've already granted access to the certi... | stackexchange/codereview |
I have a bak file that has in it a back up of a database .
I want to restore this database to a new location and I need to retrieve the database name from this file any idea how to do so ?
I need it to override the data file location and the log file location .
Thanks for help.
| stackexchange/codereview |
I wanted to know what the aria-* attributes are used for. What values can they have, and are they defined values or can I create my own values?
| stackexchange/codereview |
I have a jQuery function that shows a 'loading' image and disable the submit button when the form is submitted.
I also added Html.EnableClientValidation();
The problem is that when I click the submit button and the form is not valid then I get all the validation error messages but the 'loading' image never stops and th... | stackexchange/codereview |
I have two projects in eclipse, both are maven controlled. A references B and they are on a flat system. What we currently have setup is that we have to a build on B - generate a jar on the system, and A references that jar.
I'd like to change this to be we just have to build A and it will go automatically build B?... | stackexchange/codereview |
I have a piece of code that get's the spring context using
context = new ClassPathXmlApplicationContext("application-context.xml");
The file is located inside the WAR's "WEB-INF/application-context.xml"
In JBoss 4.2.3, the above code works fine. In JBoss 5.1, after experimenting, it seems to expect the file to be in... | stackexchange/codereview |
Lets say I have a table of articles with as many to many relationship with topics. Each topic assigned to an article has a type field which can contain 1 of 3 values AND, NOT, and OR.
Articles
id
....
Topics
id
....
ArticleTopics
article_id
topic_id
type
I want to create a query that says return... | stackexchange/codereview |
Here is the example of using Python interpreter in multi-threaded program:
#include <python.h>
#include <boost/thread.hpp>
void f(const char* code)
{
static volatile auto counter = 0;
for(; counter < 20; ++counter)
{
auto state = PyGILState_Ensure();
PyRun_SimpleString(code);
PyGILS... | stackexchange/codereview |
Given:
A VSTO Add-In
An override object RequestComAddInAutomationService() which returns an instance of a class which is called Facade in my scenario.
A VBA macro in Excel 2007 which accesses the AddIn.Object to get the Facade and uses it.
A plenty of times where this works perfectly fine.
A couple of times where out ... | stackexchange/codereview |
I just heard that DLR has a three level caching strategy.. But what it is .. A simple explanation with simple example will be very helpful.
Thanks
| stackexchange/codereview |
I have looked through the documentation and the only reference I can find is for different colour series. However I have only one data series and would like points/bars on that series different colours.
I could use multiple series and make points set to zero, which would have the same effect.
Is there a supported mecha... | stackexchange/codereview |
I'm looking for a portable way of jumping to a computed offset in C++.
I know that GCC has a mechanism for doing this using goto as discussed here:
http://social.msdn.microsoft.com/forums/en-US/vclanguage/thread/ec7e52b5-0978-4123-9d29-9dc7d807c6b4
Sadly I don't think other compilers implement this.
Normally I wouldn't... | stackexchange/codereview |
I have the following code in VBScript:
Dim control
set control = CreateObject("MSScriptControl.ScriptControl")
control.language = "jscript"
control.addCode("function test() { return {property: 'test'}; };")
Dim result
set result = control.Eval("test();")
I know that the object returned to result is of the type J... | stackexchange/codereview |
I need to restrict my users to input only dates with a custom format. I want to have something like this example in JQuery: http://www.youtube.com/watch?v=BMaTiGKykl8&feature=player_embedded
How can i archieved this in AS3?
| stackexchange/codereview |
How can I replace a Views 3 query with a custom SQL query in code?
| stackexchange/codereview |
How can I link (synchronize) the scrolling of two NSTableViews (or their underlying NSScrollViews) in Cocoa AppKit?
I tried simply setting the scroller of one to the scroller of the other, but this results in the second table losing control of the scroller (i.e. it no longer appears beside the table).
An earlier questi... | stackexchange/codereview |
I'm using swfobject.js to deploy load my flex applet. Unfortunately, while I'm able to run/debug in Firefox via Flash Builder, I cannot access the deployed applet via its URL -- the applet doesn't load/start. I can access the deployed applet via its URL from both IE 8 and Chrome 7. Anyone what could be causing this iss... | stackexchange/codereview |
I have a web app that lets users create groups.
On the front page of the app any user can - without registering - create a group and add other users to the group by entering names into a list of text inputs. The user that created the group is then supposed to be able to invite the people on the list by adding an email ... | stackexchange/codereview |
I am sending emails via an html page using javascript and the outlook activex object (Outlook.Application) I am trying to change the format of the mail message to html but I don't know to what value I must set the .BodyFormat property. I've tried this:
objMail.BodyFormat = olFormatHTML;
but olFormatHTML is undefined; ... | stackexchange/codereview |
Am trying to run the following python program
import re
regex=re.compile("http...imgs.xkcd.com.comics.[\\S]*.[jpg|png]")
f=open('out.txt')
for a in f:
print regex.findall(a)
print '\n'
when I type the code into the interpreter manually, it works as expected
but when i save it as a file and try to run it , it g... | stackexchange/codereview |
I have a custom ContentProvider class, which I originally developed in the same project file with the application using it. However since this application is intended to be only one of many users of the ContentProvider, I want to split it in a different project. The code is being developed on the Android PDK, but futur... | stackexchange/codereview |
I want to generate a new NSDate with 0 hours, 0 minutes, and 0 seconds for time. The source date can be any random NSDate.
Is there a way to achieve this? The documentation did not help me with this.
Example
Have: 2010-10-30 10:14:13 GMT
Want: 2010-10-30 00:00:00 GMT
| stackexchange/codereview |
Hey - is there a way to use the System.currentTimeMillis(); to have convery that number into a basic output HH:MM in droid?
I am using the sample code:
Toast.makeText(this,
String.valueOf(System.currentTimeMillis()),
Toast.LENGTH_LONG).show();
That outputs the current time in MS since the e... | stackexchange/codereview |
I have a textbox that has a ValidationRule applied to it:
<TextBox Style="{StaticResource StandardTextBox}"
Grid.Column="1" Grid.Row="4"
IsReadOnly="{Binding SaveModeText}"
MaxLength="50">
<TextBox.Text>
<Binding Path="Individual.SurName"... | stackexchange/codereview |
Possible Duplicate:
Ignore SVN files when exporting a WAR file from Eclipse?
Using eclipse + tomcat.
When I export a tomcat war file for my project, the war file contains all the .svn directories.
This is doubling the size of the war file and making deployments much longer than they need to be.
Is there a way to eit... | stackexchange/codereview |
I have a python for loop, in which I need to look ahead one item to see if an action needs to be performed before processing.
for line in file:
if the start of the next line == "0":
perform pre-processing
...
continue with normal processing
...
Is there any easy way to do this in python?
My... | stackexchange/codereview |
What are the steps for in planing and developing a Windows Phone 7 application?
First design interface and write code
Expression blend and then VS 2010
First design layout in Photoshop then expression blend and then VS 2010
Write code first in VS 2010 (to achieve main goal) then design interface
What is the correct m... | stackexchange/codereview |
My View looks like this:
<%@ Control Language="C#"
Inherits="System.Web.Mvc.ViewUserControl<TMS.MVC.BusinessSystemsSupport.Models.SearchDataTypeModel>" %>
<table class="classQueryResultsTable">
<!-- the header -->
<tr class="headerRow">
<td>
<%= Html.ActionLink("Effective Startdate",
... | stackexchange/codereview |
Is it possible to apply functional programming to Scala streams such that the stream is processed sequentially, but the already processed part of the stream can be garbage collected?
For example, I define a Stream that contains the numbers from start to end:
def fromToStream(start: Int, end: Int) : Stream[Int] = {
if... | stackexchange/codereview |
I am using a like button for my web site, got it from the facebook page using the iframe version. I want to show the number of people like my site only when this number is bigger that 50. I was thinking that I could use an fql.query for getting the like_count and if this is bigger that 50 then show it. I don't want to ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.