instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I don't know much more than html.
But, can you tell me if this is possible: a bookmarklet that would ajaxify a forum so that posts would automatically refresh/add to the page?
Currently, for most forums, you need to constantly refresh to get new pages. And that's annoying.
| stackexchange/codereview |
I want to show a ImageButton aligned left and a TextView aligned center in the same layout. But both are either appearing at the center or left. I have tried LinearLayout and RelativeLayout. Please suggest me the solution.
Many thanks in advance.
| stackexchange/codereview |
Given a list of decorator methods, how would one apply those to a callable?
For example, since:
@foo
@bar
def baz():
pass
...is the same as:
def baz():
pass
baz = foo(bar(baz)))
...one would assume that with a list of decorators ([foo, bar]) they could be applied to baz dynamically.
| stackexchange/codereview |
I am trying to insert a list of entities of type foo into table TB_FOO.
Public Sub Insert(ByVal _lstFoo As List(Of TB_FOO))
Try
For i As Integer = 0 To _lstFoo.Count - 1
Dim foo As TB_FOO = _lstFoo(i)
_MyEntityManager.AddToTB_FOO(foo)
Next
_MyEntityManager.SaveChanges... | stackexchange/codereview |
TortoiseSVN can help with several kinds of tree conflicts using Edit Conflict window.
The problem is that in case of "... upon merge" conflict types TortoiseSVN can't guess which files need to be merged.
For example, (case: local missing, incoming delete upon update)
Developer A working on trunk modifies file Foo.c an... | stackexchange/codereview |
Suppose you have a managed class that converts a delegate member to a native function pointer and hands it to native code. Assume that the class/delegate stays in scope and does not change for the lifetime of the native code (so that will not be obviously destroyed by the GC). What other problems should one be aware ... | stackexchange/codereview |
I have an existing stored procedure that takes 2 parameters and returns back an oracle cursor. The cursor contains about 30 to 60 rows of data.
I want to use the above pre-existing stored procedure in another stored procedure as a table...basically I want to call the pre-existing stored procedure and see if the rows r... | stackexchange/codereview |
I m trying to exceute system commands such as exp to backup a db.But if the login details are wrong or if the db does not exist then it does not throw an exception.
How can i handle this sort of cases where exceptions are thrown.
All the helpul hands are welcomed..
Regards,
Swarupa
| stackexchange/codereview |
Currently our data is in SqlServer 2005 and we are using the Crystal Reports in VS2008 for reporting.
The decision has been made to convert from Crystal Reports to SSRS. We will also be upgrading to SqlServer 2008 (not sure if R2 or not) at some point, not sure how soon.
Meanwhile, I need to learn how to use SSRS n... | stackexchange/codereview |
I have a load of lis which I slide up using jQuery and the animate() function. Using slideUp() and slideDown() gives the same effect which I will now describe: the lis slide up just fine, but when their heights are zero the borders (top and bottom, 1px) remain, then snap out of existence all at once. I'm wondering... i... | stackexchange/codereview |
I am creating a PDF using iText. I want to insert blank lines between paragraphs and tables.
How can I achieve this?
| stackexchange/codereview |
I have a buildout script that gets django as a dependency. I'd like to play with Django 1.3 in my project, but I don't want to download and install it, I'd like my buildout to do that.
Does anyone know how I can do this, or am I better off just downloading from the website and placing django in the appropriate spot?
UP... | stackexchange/codereview |
I'm working on a searchengine, and to filter out all the bad results i compare the result string with the search query, and if the results exceeds 30% it's returned.
I know that works, i've done it before and it's great. However, for some odd reason it appears to return some really weird results for me now. I've been p... | stackexchange/codereview |
I've written a C++ app that has to process a lot of data. Using OpenMP I parallelized the processing phase quite well and, embarrassingly, found that the output writing is now the bottleneck. I decided to use a parallel for there as well, as the order in which I output items is irrelevant; they just need to be output a... | stackexchange/codereview |
Is there a way to make an Ajax request to
s3-ap-southeast-1.s3.amazonaws.com (to S3 API)
from
s3.amazonaws.com
(from where a JavaScript app that is hosted at)?
| stackexchange/codereview |
For an ASP.NET Literal control, is there ever any reason to use LiteralMode.PassThrough instead of the default, LiteralMode.Transform?
| stackexchange/codereview |
Using NHibernate, how can I check if the query I am executing already exist in the query cache or not programmatically?
| stackexchange/codereview |
This script works online but not offline via WAMP...
function current_user()
{
static $current_user;
if(!$current_user)
{
if($_SESSION['userID'])
{
$userID = intval($_SESSION['userID']);
$query = "SELECT *
FRO... | stackexchange/codereview |
I'm currently fiddling with O'Reilly's Learning SQL. Given the the following query, it returns 21 rows:
select account_id, product_cd, cust_id, avail_balance
from account
where
product_cd = 'CHK' OR
product_cd = 'SAV' OR
product_cd = 'CD' OR
product_cd = 'MM'
Being used to BPFs I tried this, which returns 24 r... | stackexchange/codereview |
I am looking for a way to do a fuzzy match using regular expressions. I'd like to use Perl, but if someone can recommend any way to do this that would be helpful.
As an example, I want to match a string on the words "New York" preceded by a 2-digit number. The difficulty comes because the text is from OCR of a PDF, so ... | stackexchange/codereview |
i very much like how object oriented programming is described in "programming in lua" 16.1, 16.2:
http://www.lua.org/pil/16.1.html
http://www.lua.org/pil/16.2.html
and would like to follow this approach. but i would like to take things a little further: i would like to have a base "class" called "class", which should b... | stackexchange/codereview |
How do I include the page content of one or more page in another page?
ex. I have pageA, pageB and pageC and I want to include the contents of these pages in pageX
is there a wordpress function that loads the post of a specified page/post?
like show_post("pageA")??
| stackexchange/codereview |
I have data that is reliably in this format:
1. New York Times - USA
2. Guardian - UK
3. Le Monde - France
I'm using this code to parse out the newspaper and country values:
String newspaper = "";
String country = "";
int hyphenIndex = unparsedText.indexOf("-");
if (hyphenIndex > -1)
{
... | stackexchange/codereview |
byte[] bytes = new byte[uploader.UploadedFiles[0].InputStream.Length];
uploader.UploadedFiles[0].InputStream.Read(bytes, 0, bytes.Length);
var storedFile = new document();
string strFullPath = uploader.UploadedFiles[0].FileName;
string strFileName = Path.GetFileName(strFullPath);
storedFile.document_id = Guid.NewGuid... | stackexchange/codereview |
I have some code given to me by another person in which we have a structure
struct Pair {
string s1;
string s2;
bool equivalent;
};
Then he sets up a vector of these structs hard coded
std::vector<Pair> PairID;
staticdata() {
PairID={{"string","string2",true},
{"string","string3",true},
... | stackexchange/codereview |
Given a range of indexes (identifiers), where I want to map each index to a boolean value, that is:
// interface pseudocode
interface bitmap {
bool identifier_is_set(unsigned int id_idx) const;
void set_identifier(unsigned int id_idx, bool val) const;
};
so that I can set and query for each ID (index) if it is set... | stackexchange/codereview |
I'm configuring emacs to debug android apps. My problem is since I'm attaching jdb to DDMS I cannot set proper classpath (jdb just won't start when I try to set -classpath and -attach together). So jdb is practically blind - no entry point for class, no interactive debugging. How can I specify classpath when attaching... | stackexchange/codereview |
I have run my android app against the new build target provided by the add-on mentioned here. This appears to be working correctly in the emulator, but now I am very unsure as to the implications of using this build target when delivering an app to the marketplace.
It would appear that I have to use this build target ... | stackexchange/codereview |
Does anyone know of a way to embed comments in MySQL statements? When I search for mysql and comments I get only ways to put comments in tables, etc
The idea, if I implement this the way my boss wants it, is to prepend the user id to the statement apparently so that when MySQL is analyzed later (via the binary log) w... | stackexchange/codereview |
I keep product options as string in DB, and I need to parse it (string to array).
String is:
{option_name:option_id{variant_id:variant_name}}
How can I parse it with using PHP?
| stackexchange/codereview |
I have a WCF service hosted in IIS7.5 running as a specific domain account. Call it app1. This service must call a windows integrated authentication protected service hosted within another IIS application. Call it app2
app2 IIS authentication settings are "windows authorisation" enabled everything else disabled.
I h... | stackexchange/codereview |
I have a user control wherein I would like to do something different in the case of a single click vs. double click. I'm handling mouseLeftButtonDown event as such:
private void cueCanvas_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
switch (e.ClickCount)
{
case 1:
... | stackexchange/codereview |
I am trying to build a modal dialog box in JavaScript. I have it working in Firefox but not IE with some code like this...
$(window).bind('scroll resize', function (e) {
var $this = $('.popup');
var d = document;
var rootElm = (d.documentelement && d.compatMode == 'CSS1Compat') ? d.documentelement : d.bo... | stackexchange/codereview |
I want to diplay a set of tables from an XML file defined as follows:
<reportStructure>
<table>
<headers>
<tableHeader>Header 1.1</tableHeader>
<tableHeader>Header 1.2</tableHeader>
</headers>
<tuples>
<tuple>
<tableCell>1.1.1</tableCell>
<tableCell>1.2.1</tableCell>
... | stackexchange/codereview |
If I try to install an MSI and it returns with an error code, how do I gracefully rollback or quit the installer?
| stackexchange/codereview |
When sending two intents (One through startService followed by another through startActivityForResult for the sake of an example), does Android guarantee that the first intent (service) is processed before the second (activity)? More specifically in this case, does it guarantee that the Service.onStartCommand is called... | stackexchange/codereview |
I experience a strange problem with iPhone animation blocks.
This code:
[UIView animateWithDuration:2 delay: 0 options: 0 animations:
^(void) { [controller setBackgroundColor: [UIColor blueColor]]; }
completion: nil];
[UIView animateWithDuration:2 delay: 2 options: 0 animations:
^(void) { [controller setBackgroundColo... | stackexchange/codereview |
I have a table with this schema:
DeviceID int
FloorID int
RoomID int
DateRecorded datetime
RecordedValue decimal
A sample of the table's data looks like:
DeviceID FloorID RoomID DateRecorded RecordedValue
0001 Floor 1 Room 1 1/1/2000 0
0001 Floor 1 Room 1 1/2/2000 10.5000
0001 ... | stackexchange/codereview |
We have to create a special interim alpha release for our product which should consist of only a select set of features. This set of features are also required in trunk for our main release.
My feel is branch from trunk for the interim release and to make frequent merges of the stable branch to trunk so that we are i... | stackexchange/codereview |
Can someone explain me this?
>>> [] is []
False
>>> () is ()
True
>>> (1,) is (1,)
False
I understand that I should use "==" instead of "is"to compare the values, I am just wondering why it is this way?
| stackexchange/codereview |
Lets say we have a Article with many Comments.
Comments are added into the article in a separate "create comment for article XYZ" - page.
I'd like to have a "add comment" link on every article page.
But in the comments controller, I need to have information about the parent article the comment is added to.
So how do I ... | stackexchange/codereview |
Guys, this drives me crazy.
This works as expected:
eobj <- substitute(obj <- list(a, b), list(a = 32, b = 33))
eval(eobj)
obj
[[1]]
[1] 32
[[2]]
[1] 33
Now, try this:
efun <- substitute(fun <- function() a+ b, list(a = 32, b = 33))
str(efun)
# language fun <- function() 32 + 33
eval(efun)
fun
# function() a+ b
... | stackexchange/codereview |
I have a node.js application and I have a public/somehting.js file that is client side and then I have a controller file controllers/something.js and models/something.js that does the DB connection.
How do I go from the public directory and access the server side information any ideas
my model/features.js
exports.getFe... | stackexchange/codereview |
can anybody enlighten me to a way stopping my bat from flashing across the screen when executed? is there a way to stop the CMD window from doing this????
| stackexchange/codereview |
Is it possible to get more than 9 subplots in matplotlib?
I am on the subplots command pylab.subplot(449); how can I get a 4410 to work?
Thank you very much.
| stackexchange/codereview |
So I have a Python script:
myscript.py
I am executing it like this:
python D:\myscript.py
However, I must have Python installed and included in the PATH environment variable for that to work.
Is it somehow possible to "bundle" Python executable with a Python script so other people will be able to run it on their PCs ... | stackexchange/codereview |
Is it possible to package my rest resource classes in a .jar library so that when they are included in someone's app that app gets the services?
i am currently using jersey (jersey.dev.java.net)
| stackexchange/codereview |
a) I am in the process of developing a web site using the new free web development tool - Webmatrix (Beta 2) from Microsoft.
b) Web Platform Installer (recommends and also) automatically installs SQL Server Express 2008 along with Webmatrix and VWDE 2010 Express.
c) My database is created in SQL Server Express 2008. Bu... | stackexchange/codereview |
i want to create a mvc web site not mvc application. I read somethink about diffrence between Web Site And Web Application. And convert it to mvc web site from web application. But i read that web site does not create dll's at bin folder when publish it to IIS. But when a publish my web site it creates dll at bin fold... | stackexchange/codereview |
We have visual studio 2008 architecture installed and a c# solution created. We need to generate UML diagram (showing the classes, the relationship between them etc). In the architecture edition we don't see any option that would generate such diagram. The option of class digram mearly generates the class diagram but ... | stackexchange/codereview |
ActionScript 3.0 provides for a way to determine if a swf is for either: 1) AVM2 (or earlier); or 2) AVM3. [link1, link2]
My Question:
From C#, is there a way to determine if a swf is for AVM1 or AVM2?
| stackexchange/codereview |
I have a little problem making servers and sockets connect. I made sure IPs are valid, so it's not an issue of the addresses not matching. Nor is it the port that doesn't match(I've tested this, as well).
The following is the server handler
class ServerConnect extends Thread
{
// ...
public ServerConnect(int port... | stackexchange/codereview |
I see this in the book "CLR via C#" and I don't catch it. If there are still threads available in the thread pool, why does it create additional threads?
| stackexchange/codereview |
We are executing stored procedures using L2S and during trace analysis we noticed that LINQ uses SP_EXECUTESQL instead of EXEC.
I do understand that there are advantages of using SP_EXECUTESQL, but we are in the process of troubleshooting a mysterious DB issue and I was wondering if it's possible to force LINQ use EXE... | stackexchange/codereview |
I have a form field and I have to see that search button is clicked only when there is some
data in the form field.
The following is the code.
<script type="text/javascript">
function IsEmptySearch(TxtField){
var re = /\s/g; //any white space
var str = TxtField.replace(re, "");
if... | stackexchange/codereview |
I have singleton object hosted under IIS. I can call any method in Singleton object without any problem. One method of singleton object returns a reference to another class object. When I try to call a method on this referenced object I get a message "Cannot connect to the server" e.g.
public class TestClass : MarshalB... | stackexchange/codereview |
Environment: GlassFish 3.0.1, NetBeans 6.9, JDK 6u21
Also tested with GlassFish 3.0.1, NetBeans 6.9.1, JDK 6u22, but results are the same.
Problem: Unable to run app-client in an enterprise application (app-client, ejb, war).
The EJB jar has only Local interfaces and contains no main methods.
GlassFish Message
SEVERE: ... | stackexchange/codereview |
I have a 2x2 numpy array :
x = array(([[1,2],[4,5]]))
which I must merge (or stack, if you wish) with a one-dimensional array :
y = array(([3,6]))
by adding it to the end of the rows, thus making a 2x3 numpy array that would output like so :
array([[1, 2, 3],
[4, 5, 6]])
now the proposed method for this in the... | stackexchange/codereview |
I am developing a site that has a specified height to it. I have made a DIV and defined the height and added the CSS property overflow:auto. Within this DIV I have another that contains my content and other specific styling. In all other browsers the inner content scrolls vertically just fine if it is longer than the s... | stackexchange/codereview |
Here is my Python program:
import re
print re.findall( "([se]{2,30})ting", "testingtested" )
Its output is:
['es']
Which is what I expect. I expect to get back "es" because I searched for 2-30 characters of "e" or "s" which are followed by "ting".
Here is my C program:
#include <stdio.h>
#include <stdlib.h>
#includ... | stackexchange/codereview |
I have some related legacy projects that are a mess and I would like to mavenize them as a multi-module project shared on subversion (first multi-module project, we've always had them separate). There are a few key parts 1) webservice, 2) various swing clients, 3) model (w/ persistence from hibernate), 4) core JSE tas... | stackexchange/codereview |
Occasionally I see small ways I could improve either R (recently the IQR command) and R documentation (just this week perhaps elaborating differences among and better interconnecting aggregate, tapply, and by). But I don't see a way to really make that contribution back. I looked into the developer site and it seems ... | stackexchange/codereview |
In our client / server application, the server side is exposed by a collection of web services. The client interacts with what we call an Application Context to make calls to the server. I'd like to be able to mock the Application Context during acceptance testing so as to isolate the testing to just the client, rather... | stackexchange/codereview |
I'm working on a web app for a magazine that will allow users to log in and renew their subscriptions online. These subscriptions are renewed based on a set of rules, and I'd like to get some ideas/recommendations on how to set up these rules.
This web app interfaces with an external (third-party) system that has data ... | stackexchange/codereview |
Where can I find working code of object detection (part of computer vision) written in OpenCL or CUDA? Greatly appreciate in advance.
| stackexchange/codereview |
When I launch the app on my 3GS it sits on the Default.png for 4-5 seconds. I'm not sure what it is doing during this time. I placed NSLog timing statements at the top of main and didFinishLaunchingWithOptions. The NSLog statement from main does not print to the console until the moment that Default.png goes away, and ... | stackexchange/codereview |
I am trying to access the jquery.numeric.js file to use the $('#textbox').numeric() function. The jquery site link does not work. Any suggestions?
| stackexchange/codereview |
I have several pages that call in content via jQuery .ajax. I dont want the content visible on the page so thats why I went with .ajax and not showing/hiding the content. I want to protect the files inside the AJAX directory from being directly accessible through the browser url. I know that PHP headers can be spoofed ... | stackexchange/codereview |
In Maven, is it possible to link additional dependent java src from outside the project folders, so that when we build our main package, maven may include such classes into final jar?
just as we can link any source folder to our project in Eclipse and eclipse treats it as regular project source?
| stackexchange/codereview |
I am trying to test my static library that i used to build in win xp 32bit. So, I made a test application that utilizes the static lib to print out a code.
Now, i wanted to see its behavior on a 64 bit OS. How do i go about doing that?
Do i need to install vs2008 on that one and create my test application on it then p... | stackexchange/codereview |
I have a problem during save password on database. I have password field with complex regexp validator (minlenght + special chars + alphanumerics). After send form, password value is checked by validator. After that (if value is valid) I would like hash password and finally save this value, but regexp validator still v... | stackexchange/codereview |
Suppose I have a GridView on the page. GridView has edit column enabled and is showing some records. How can I enable/disable edit in rows based on other fields of data?
| stackexchange/codereview |
i want my program to send and receive text from the pc. there should be a client and server software. The server will be running in PC and the client software will be running in Mobile (Nokia Symbian S60 v5 OS). can any one show me a sample code which does it.
| stackexchange/codereview |
I want to disable builtin rules and variables as per passing the -r and -R options to GNU make, from inside the make file. Other solutions that allow me to do this implicitly and transparently are also welcome.
I've found several references to using MAKEFLAGS, and had similar problems.
| stackexchange/codereview |
i would like to save the contents of a datagridview to an xml file
i will then want to open the xml file using excel
perhaps i should be exporting it to CSV file instead of XML?
i dont care what method to use, i just need the simplest and fastest
i guess the process should be
copy the datagridview data into a datatabl... | stackexchange/codereview |
I want to convert this:
.className#lets.par.ty
To this:
.className[id="lets"][class="par"][class="ty"]
I don't want to alter the first instance of the "."
Here is what I came up with but I know it is absolutely NOT ideal:
cssOutput[i] = cssOutput[i]
.replace (/^#/,'?') // convert all start ids to ?
.replace (/#([^\... | stackexchange/codereview |
Hey all, have a question for you. I have a web service written in Java that handles requests from a BlackBerry App, i want this app to be able to post to FB, but i don't want the user to be prompted to go to a website on the device to log in and be verified, i wanna do something like XAuth does with Twitter, sending us... | stackexchange/codereview |
I am tryin to write the following case statement in my SELECT list:
CASE
WHEN SUM(up.[Number_Of_Stops]) = 0 THEN 0
ELSE SUM(up.[Total_Trip_Time] / up.[Number_Of_Stops])
END
I keep getting divde by zero errors though. This is the whole point of thise case statement to avoid this. Any other ideas?
| stackexchange/codereview |
I have a question regarding unit testing. I'll outline it using an example.
Say I'm writing a command line application which has a variety of acceptable commands, and each command has its acceptable arguments. For example: myapp create -DprojectName=newProject -DprojectVersion=1.0.
If I have a class called Command, whi... | stackexchange/codereview |
There are 2 variants of assignments in automake.
= and :=
Is there a difference between them?
| stackexchange/codereview |
I m developing a web project in asp.net 3.5
I want to export datatable to Excel. But there are 20.000 rows in datatable. Sometimes timeout problem happens..
protected string Worksheet97_Header()
{
string s = "<tr>";
foreach (ExcelColumn col in Columns)
{
s +=... | stackexchange/codereview |
How would you implement multi-valued dynamic fields with SolrNet?
I know with dynamic fields I can set them up like:
[SolrField("price_")]
public IDictionary<string, decimal> Price { get; set; }
And multivalued fields like:
[SolrField("fieldname")]
public ICollection<string> MyField { get; set; }
(thanks to can i use... | stackexchange/codereview |
Yes, html emails are bad but I have to send html newsletter to my a list of clients. Most of them use Hotmail.
Is it possible to add a CSS border around a <table> / <div> element?
<div style="border:1px solid #000000;">BORDER</div> doesn't work
| stackexchange/codereview |
The iPhone application I'm working on comes bundled with 20MB of images in the application directory and I need to write new images to the documents directory over time.
Ideally I'd like to move the initial folder to the documents directory, copying the folder would mean wasting 20mb of the users disk space.
Failing th... | stackexchange/codereview |
I'm trying to declare a bunch of constants using const. My problem is that testing the code in the Firebug console throws an error complaining about the 'redeclaration of const foo'.
I've attempted wrapping it in a try{}catch(e){} block but that didn't help, and even when trying to get around it using the following co... | stackexchange/codereview |
I'm encouraged by so many warm-hearted Java experts that I dare to throw another question today for help (all my questions are from real life projects - and since I'm taking a shortcut for learning Java, I have more difficulties than taking a normal course of Java)..
Here is the data structure I want to achieve (the f... | stackexchange/codereview |
template <class T>
void foo(T arg) {
T var = arg;
}
Is this possible? I have a similar situation and I can't get something like this to work.
Thank you.
| stackexchange/codereview |
How can I extract a substring from within a string in Ruby?
Example:
String1 = "<name> <substring>"
I want to extract substring from String1 (i.e. everything within the last occurrence of < and >).
| stackexchange/codereview |
Why are the outcomes different for first and first1? I'm guessing it has to do with the limit for the Long type.
long seconds = System.currentTimeMillis();
long first = (seconds / (1000*60*60*24))/365;
long first1 = seconds / (1000*60*60*24*365);
System.out.println(first);
System.out.println(first1);
Thanks!
| stackexchange/codereview |
I am trying to increase the admin functionality of a php project I working on. As of now the project will log all of its errors to the syslog. I am trying to give the admin page the ability to read the syslog for these errors. in the terminal I can type:
cat /var/log/syslog | grep projectName
However ever if I try... | stackexchange/codereview |
Imagine this linq query:
return db.Projects.Where(p => p.ProjectID == id);
How can I see what TSQL it's generating?
| stackexchange/codereview |
I'm trying to use
[currentSession sendDataToAllPeers:data withDataMode:GKSendDataReliable error:nil];
to send an NSDictionary (or a plist file) containing data from 1 device to another, and
- (void)receiveData:(NSData *)data fromPeer:(NSString *)peer inSession:(GKSession *)session context:(void *)context
to receive i... | stackexchange/codereview |
I want to learn more about threading and created a little test application that change the backcolor of a label.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//lblColor
public Color theLabel
{
get { return this.lblColor.BackColor; }
set ... | stackexchange/codereview |
I'd like to pass the HTML page title to an included jsp page but the title is passed to the view in a request attribute that happens to be a hashMap dbTable
This works but I don't like that I have Java mixed in with my view
<%@ page import="java.util.HashMap" %>
<% HashMap dbTable = ((HashMap)request.getAttribute("dbTa... | stackexchange/codereview |
for (int i=0; i<pages; i++) {
ImageView img=new ImageView(this);
...
img.setOnClickListener(new OnClickListener() {
@Override public void onClick(View v) {
showpage(i);
}
}
});
FLall.addView(img);
}
how can i d... | stackexchange/codereview |
I'm creating my app window in code and I'm trying to show a message box as soon as the window exists. But I can't. I see only the newly created window, no msg box. If I quit the app by closing its window, the msg box suddenly appears, as if it were waiting in some queue, to be shown only when the app window is closed. ... | stackexchange/codereview |
I want to convert decimal numbers to binary numbers. I want to store them in an array.
First I need to create an array that has a certain length so that I can store the binary numbers. After that I perform the conversion, here is how I do it:
public class Aufg3 {
public static void main(String[] args) {
int... | stackexchange/codereview |
It is idiomatic in Windows Phone 7 to display a loading indicator at the very top of the screen. (I don't think there is any padding between the loading indicator and the top.)
What is the best way to do that in Silverlight? This XAML works, sorta:
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefini... | stackexchange/codereview |
Please take a look at this code.... what is i have instead of average, above average, a two letter word?
<input type="checkbox" name="petite" value="petite" <? if (get_option('petite') == 'petite'){ echo 'checked="checked"';} ?>>Petite
<input type="checkbox" name="athletic" value="athletic" <? if (get_option('athle... | stackexchange/codereview |
I have a C# app that receives updates from a server, processes it, and updates the GUI. the updates come in constantly, say several times a second. I want the app to update the GUI at most once every 2 seconds. so if an update comes in at time T, I want all updates that come in from T through T+2sec to stay in a buffer... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.