instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am now defining the architectural approach we'll use on a new project with Websphere 6 + JSR86 portlets under a very known portal tool.
What I am planning is to use one .ear file per portlet group (eg.: if two portlets are closely related they'll be on the same .ear) and using shared libraries to hold common code and... | stackexchange/codereview |
I am loading jQuery UI as
google.load("jqueryui", "1.8.6");
from the Google CDN
And I want the theme UI Darkness to be associated with it.
Any other methods other than
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-darkness/jquery-ui.css" />
Something like
google.load("jqueryu... | stackexchange/codereview |
I'm planning to use Java iText library to generate Geospatial PDF (http://en.wikipedia.org/wiki/Geospatial_PDF).
There are some basic support in iText, but I have not found any high level API. People are trying to directly use the adobe format extensions.
http://www.mail-archive.com/itext-questions@lists.sourceforge.ne... | stackexchange/codereview |
I'd like to be able to get rows from a "articles" table based on two "categories" however i'm having trouble with my joins. Here's what my tables would look like:
`articles` (
`article_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`article_name` varchar(255) NOT NULL
PRIMARY KEY (`article_id`)
)
`article_c... | stackexchange/codereview |
you can embed certain glyphs of a font via the Flash IDE.
is this also possible by code only? (without the IDE)
[Embed(source='Fonts/arial.swf'
,fontName='Arial' )]
public static var font:Class;
| stackexchange/codereview |
I am writing a kind of class framework where I will need to get the hashes of objects for storing them in a hash table.
So if I have:
class A {
int a;
};
class B : public A {
const char* str;
};
class C : public A {
double d;
otherClass* oc;
};
I need to be able to run B's or C's through the hashing ... | stackexchange/codereview |
Like many programmers I have a server where I host my scripts, and a localhost where I make them. Is there in PHP a secure way to let the script tell the difference between them? SERVER_NAME works, but can be injected, so isn't secure. Does someone have a solution? (Non-Static Solution preferable)
| stackexchange/codereview |
I am creating an object(obj below) in using and return that object as part of the function return.Will this cause any problem like object will be disposed before I try to use returned value in another function ?
using (MyObject obj = new MyObject())
{
.
.
.
return obj;
}
| stackexchange/codereview |
Possible Duplicate:
How to create file and return it via FileResult in ASP.NET MVC?
ASP.NET MVC2: How to return a file from a controller?
I want to do this so the user can download the file from server.
| stackexchange/codereview |
I have a pretty simple jQuery accordion with radio buttons inside each header.
See this JSFiddle
When i select a radio button it should get checked and the accordion should open on that location. Weird problem is that the accordion opens but the radio doesn't get checked.
To me this looks like a bug in jQuery-ui, any h... | stackexchange/codereview |
I'm using EclipseLink as the JPA provider. Further I'm using the following TABLE_PER_CLASS inheritance structure
@javax.persistence.Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@NamedQueries({
@NamedQuery(name=Parent.QUERY_FIND_ALL, query="SELECT p FROM Parent p")
})
public class Parent {
... | stackexchange/codereview |
I have an associative array with a whole pile of true/false values.
I am trying to remove all keys where the values are false.
So if the array is
array(
'key1' => true,
'key2' => false,
'key3' => false,
'key4' => true
);
I want to end up with
array(
'key1' => true,
'key4' => true
);
How would I do this?
| stackexchange/codereview |
I'm attempting to take large (huge) images (from a digital camera), and convert them into something that I can display on the web. This seems straightforward, and probably should be. However, when I attempt to use PIL to create thumbnail versions, if my source image is taller than it is wide, the resulting image is rot... | stackexchange/codereview |
is it possible to read an attribute from a form element?
I got this:
<input class="number required" min="1250" max="999999999" id="insert_counter1" name="my_counter" value="" type="text">
After submit I can access the value. But is there any way to get to the other attributes like "min" or "max"?
Right now I have a hi... | stackexchange/codereview |
I have this small showcase project written in Zend Framework and I would need to deploy it on the web for a few months. Money is extremely tight , close to non-existent , so a free web host would be ideal .
After extensive google-ing , and some trial and errors with a few of these services , I'm still unable to say th... | stackexchange/codereview |
I am trying to create a dimension for the organisation (called DimOrganisation), but I am not sure what to use as the key.
Here is a diagram of the organisation tables...
Enterprises is the top parent table. All data relating to Stock is stored by LocationID (this is called the Stock hierarchy) and all data relating t... | stackexchange/codereview |
hii, in my android application there are number of images in drawable folder. in my layout two buttons:
back and forward button.on clicking next and back buttons different-2 image get loaded on the same layout(common for all images).
Problem:i am able to load images in next/back button click but after reaching to the l... | stackexchange/codereview |
I am creating a stored procedure but it throws an error.
Can anybody tell me if there is something i am doing wrong.
CREATE TABLE tbl1 (ID int)
INSERT INTO tbl1 SELECT 1
CREATE TABLE tbl2 (ID int)
INSERT INTO tbl2 SELECT 2
CREATE PROCEDURE QOTD (@source INT)
AS
BEGIN
IF @source = 1
SELECT ID INTO #tmpID FROM tbl1 ... | stackexchange/codereview |
i am trying to create a app which is going to charge $1 for sending digital photo.
i want to charge the user when he clicks the send e-photo button.
and i created test application on iTunes Connect and set the necessary configurations and also created In App Purchase….
now i want to create a coding part ( storekit ) wh... | stackexchange/codereview |
I have added a link named "campaigns" to the Magento "My Account" area after the Address book. The link, when clicked, should have a form with 4 fields:
name
email
number
place
Once they submit the form, it should insert these fields in the table. But again, can I want to have custom table for this. I have added this ... | stackexchange/codereview |
I have the following grid on an extJS page.
What is the syntax to attach an onfocus or onclick event handler to a row so when the user clicks on a row I can call a function sending it the index of the row, or the row object itself?
var myData = [['Computer1', 29.89, 0.24, 0.81, '2010-11-17 08:31:12'], ['Computer2', 83... | stackexchange/codereview |
I have seen a few other questions regarding the Office 2007 PIAs, in particular:
Can you install Office 2007 PIA's without office? (3)
Is Office 2007 PIA deployment possible without Office 2007?
This question is different.
In my experience, it is not possible to install Office 2007 PIAs when Office 2007 is not... | stackexchange/codereview |
Why does this work?
@SuppressWarnings("unchecked")
public <T> T getResult(Class annotated) {
return (T) getResult(annotated, new HashMap<String, Object>(0));
}
How does the compiler know how to cast the return value? It can't know it at compile time: it could be anything. Does it do it at runtime every time?
| stackexchange/codereview |
I am trying to write an application with twistd library written for Python. The application file ends like the following:
factory = protocol.ServerFactory()
factory.protocol = EchoServer
application = service.Application("Echo")
internet.TCPServer(8001, factory).setServiceParent(application)
I want to run something bef... | stackexchange/codereview |
Is it possible to use recursion in an iterator implementing System.Collections.IEnumerable? I have a tree structure declared roughly like this:
public class Node
{
public Node Sibling;
public Node Child;
}
I would like to iterate over the nodes in a tree. I would like to do something like this (pseudocode, I g... | stackexchange/codereview |
How a document, Excel, presentation file can be opened in a iPhone app. Using a Web view we can open the *.pdf file using the following lines of code:
NSString *thePath = [[NSBundle mainBundle] pathForResource:@"iPhone_User_Guide" ofType:@"pdf"];
if(thePath) {
NSData *pdfData = [NSData dataWithContentsOfF... | stackexchange/codereview |
hi all:
I have a document with two fields, name and text, the content of them are same.
but when I use highlighting query, the response only return one field which is in parameter q.
eg:
htp://127.0.0.1:8983/solr/select/?q=name:sony&hl=true&hl.fl=name,text
this only return name in highlighting response
htp:... | stackexchange/codereview |
Is it possible to write cucumber scenario for data to be shown inside Lightbox (Fancybox) ?
| stackexchange/codereview |
Is there any solution to display to the user a date using his locale settings but the words to be in a different language?
What I want is to display to a user that has set up en_US a date in german language (month names, weekdays for example).
| stackexchange/codereview |
If you want to create an empty IEnumerable of type T, you can create it using the static generic method
Enumerable.Empty<T>()
See here for more info.
Why did Microsoft go for this option instead of using a static method on the generic type ( as opposed to a generic static method on the non-generic type ) ?
This metho... | stackexchange/codereview |
I have a primary graph and some secondary information that I want to facet in another graph below it. Facetting works great except I do not know how to control the relative space used by one facet versus another. Am aware of space='free' but this is only useful if the ranges correspond to the desired relative sizing... | stackexchange/codereview |
I have written a program which reads input from csv file and its working fine. I read the inputstream of the csv file as follows.
BufferedReader br=new BufferedReader(new InputStreamReader(item.getInputStream()));
Now I am changing the program so as to read input from excel file. So I changed the code to this format a... | stackexchange/codereview |
Gervill is said to be created for the opensource JDK but is it compatible for Oracle Java?
| stackexchange/codereview |
My code is doing two round trips to the database because I'm not sure if this is the correct way to create a collection of my POCO's where the first round trip hits a stored procedure because of some specific SQL code.
Scenario
A user enters some AutoComplete search query into the UI. My code hits a stored procedure (w... | stackexchange/codereview |
Hey guys. I must be missing something. I am trying to cycle throught the lables on my form but it would appear that I am missing quite a few labels... I have a total of 69 lables on my form and I only get 5 hits on the msgbox. All controls were placed on design time on the form and not on panels or tabs. Also upon in... | stackexchange/codereview |
I am creating XSLT file.
I have one variable which take value from XML file.But it may happen that there is no reference in xml for the value and at that time XSL variable will return False/None(don't know).I want keep condition like,If there is no value for the variable use the default one.
How to do that ?
| stackexchange/codereview |
I have an SVN file which is now missing some logic and so I need to go back about 40 revisions to the time when it had the logic I need. Other than trying to view a diff of the file in the command line (very hard to read), is there any way I could get a copy of that file to review so I can study it to recover parts?
| stackexchange/codereview |
I've got a problem similar to link text
I'm using XCode 3.2.4 (1708). After I reinstalled it, I'm started to get Nil from my NSUserDefaults object.
If I'm writing:
- (void)viewDidLoad {
NSUserDefaults *sUserDefaults = [NSUserDefaults standardUserDefaults];
NSString *myAdd = [standardUserDefaults objectForKey... | stackexchange/codereview |
I have never used JodaTime before, but answering this question, How to get ordinal Weekdays in a Month.
I tried it and came up with this ugly code to unset all fields below day:
DateTime startOfMonth =
input.withDayOfMonth(1)
.withHourOfDay(0) // there
.withMinuteOfHour(0) // has got to
... | stackexchange/codereview |
Dim runTimeResourceSet As Object
Dim dictEntry As DictionaryEntry
runTimeResourceSet = My.Resources.ResourceManager.GetResourceSet(System.Globalization.CultureInfo.CurrentCulture, False, True)
For Each dictEntry In runTimeResourceSet
If (dictEntry.Value.GetType() Is GetType(Icon)) Then
... | stackexchange/codereview |
Hello
I am working on project where I need to customize our card at run time.
Mean when user click on a button then it will show a horizontal slider(that contain images ) user click one of the image and images comes over the screen.
| stackexchange/codereview |
I have ads served via adspeed.com I would like our rich text (testimonial) ads to refresh each time you click a tab link. Is it possible to reload a script when you click a link? currently the script is just placed inside a div as such and executes on page load..
div id="quoteContain">
<!-- AdSpeed.com Serving Code XX... | stackexchange/codereview |
I work on my school projects on two machines- my laptop and desktop. Recently I've started using subclipse for version control, and have it plugged in Eclipse on both machines.
While working on a single machine, I understand the checkout/commit process and synchronizing in the Team Synchronizing tab.
So, how do I upda... | stackexchange/codereview |
I am developping an android app which downloads an xml and displays a layout with a number of edittexts, checkboxes, spinners, etc. added dynamically like this:
LinearLayout ll = new LinearLayout(this);
EditText nameField = new EditText(this);
ll.addView(nameField);
ScrollView sv = new ScrollView(this);
sv.addView(ll);... | stackexchange/codereview |
I've a function that takes an object as a parameter, and uses the structure of the object to create nested DOM nodes, but I receive the following error:
http://new.app/:75NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
What I would like my function to do, i... | stackexchange/codereview |
how can i tell how long a:
objWebClient.DownloadData(strURL)
takes to complete?
i wish there was a property that contained this info but i couldn't find one...
| stackexchange/codereview |
I'm trying to configure a Grails 1.3.5 app to work with the default tomcat instance built into Grails using JNDI. The app doesn't use GORM. I want to connect to the datasources myself. I'm using a library for the model layer we use for other apps.
resources.xml
As well as the bean headers I have:
<import resource="d... | stackexchange/codereview |
how can i massage attributes at the model level before active record converts them to the associated columns type?
my specific issue is this... a user enters an amount of money in decimal form (ie $15.32) for an integer type column called 'cents'... in my model, i try to use the before_validation hook to grab that amou... | stackexchange/codereview |
At the moment my base style inherits from android:style/Theme.Light.NoTitleBar. Is there any way I can change it to inherit from Theme.Black.NoTitleBar in code? I notice apps like Handcent has a settings option to do this, but I can't quite figure out how to do this.
Any suggestions would be greatly appreciated.
Thanks... | stackexchange/codereview |
If I'm converting a CF type to Foundation type, should I send release message the the foundation type?
NSString *name = (NSString*) rawName;
CFRelease(rawName);
//should I [name release]; ?
| stackexchange/codereview |
Apparently these pattern variables don't work like I'd expect. Here is a simple example:
In[264] := 1 /. x_ -> {x, f[x], ToString[x]}
Out[264] := {1, f[1], "x"}
Why is that last element "x" instead of "1". The following works as expected.
In[267]:= y = 2;
ToString[y]
Out[268]= "2"
thanks,
Rob
| stackexchange/codereview |
I want only one copy of my program in the system. How can I look for another copies in the system from C-code? I want something like that
# program &
[1] 12586
# program &
Program is already running
The best idea I have is making .lock-files. But I didn't find any guildlines about them.
Thank you.
| stackexchange/codereview |
Hi I am working on a application where I need to display bunch of images for some conditions. Is there any simpler way to get all images without mentioning the resource names as in Android platform like
int id = getResources().getIdentifier(imgName, "drawable",
getPackageName());
Please anybody help me in... | stackexchange/codereview |
I have a (Joomla) site that is not currently pointing to a domain, but is sitting directly on my server IP (i.e.: http://176.158.165.1/~sitename)
Whenever I try to test my mod_rewrite, I get 404 errors. I have tested on another site on the same server, but it works 100%. Could this problem be due to the direct link to ... | stackexchange/codereview |
I have placed some data on the call context (CallContext.SetData(key,data)) where data is of a type that implements ILogicalThreadAffinative. The reason that it implements ILogicalThreadAffinative is that it must be shared across multiple threads in the current application.
However, the application also makes remot... | stackexchange/codereview |
In IIS7, why w3wp is not reset after web.config is amended? I observed the memoory remains the same.
Thanks.
| stackexchange/codereview |
Possible Duplicates:
twisted c++ code
FAQ : Undefined Behavior and Sequence Points
#include<stdio.h>
int main()
{
int i=7,j;
j=(i++,++i,j*i);
return 0;
}
Is j=(i++,++i,j*i++); well defined ? Let me clear my doubt.
| stackexchange/codereview |
I am developing an application with the 9630 BlackBerry simulator, but when I test with the 9550 simulator, my app draws off-screen. How do I adjust for all simulators to avoid this?
| stackexchange/codereview |
I'm trying to make sql who will delete all duplicate titles BUT must delete duplicates with these conditions:
must delete only duplicates with same object_id
must keep only the newest record (biggest topic_id) (topic_id is the unique id for every topic AI)
So far I've done that (testing with select...)
SELECT ... | stackexchange/codereview |
I am faced with the following issue. Consider the following class:
//Will be similar to bost::reference_wrapper
template<class T>
class Ref {
public:
explicit Ref(T& t) : m_ptr(&t) {}
private:
T* m_ptr;
};
and this function returning a double
double fun() {return 1.0;}
If we now have
double x = 1.0;
const double ... | stackexchange/codereview |
I have the following code in a partial that I am trying to convert to HAML. Everything is easy until the anchor.
<% @user ||= current_user %>
<div class="stats">
<table summary="User stats">
<tr>
<td>
<a href="<%= following_user_path(@user) %>">
<span id="following" class="stat">
... | stackexchange/codereview |
Suppose I have a table in DB like:
Tab(id, parentid);
by EF, I can get the data collection as a tree like IQueryable by wcf service.
say the data like
id parentid
1, nul
2, 1
3, 1
4, 2
5, 2
6, 4
7, 4
8, 4
9, 1
Then I want to bind this data to a treeview, how to implement it?
| stackexchange/codereview |
How can I disable the keyguard when a broadcast receiver is activated by screen_on, so that when it occurs the user sees an activity that I have started behind it? (The activity is running already...)
I have been trying the following code from a broadcast receiver triggered by screen off...
KeyguardManager myKeyGuar... | stackexchange/codereview |
I've got a small clipping problem that I haven't been able to solve using an EditText view in a TableRow. Whatever I try, the EditText view is either clipped (attached screenshot), or, if I set shrinkColumns to either 0 or 1, the label text disappears (and the EditText view takes up the whole width). The layout is as f... | stackexchange/codereview |
Suppose the main thread is spawning a new thread t1, how can my code that runs on t1 find the thread id of the main thread (using c#)?
Edit:
I don't control the creation of the new thread. So I can't pass any parameters to the thread.
Thanks.
| stackexchange/codereview |
Is there Messenger Connect API for Windows Phone 7 to use in Silverlight phone application to allow user authentication with windows live id and get a user consent to share profile data with my app? It all works great for PC desktop app or ASP.Net. I want the same experience for my users with the phone: login using win... | stackexchange/codereview |
I have a new application being written in .Net. I also have a legacy version of the application that must be maintained (for the meantime), which has been written in VB6 and utilizes C++ DLLs. Certain C++ native DLLs must continue to be utilized and shared by the new .Net application via P/Invoke.
The legacy app curren... | stackexchange/codereview |
Please suggest a good machine learning classifier for truecasing of dataset.
Also, Is it possible to specify out own rules/features for truecasing in such a classifier? Thanks for all your suggestions.
Thanks
| stackexchange/codereview |
I want to generate float numbers between 0 and 1, here is my code
struct generate_rand
{
generate_rand()
{
srand(time(NULL));
}
float operator()()
{
return (rand()%255)/255;
}
}generate_f;
std::vector<float> color(200);
std::ge... | stackexchange/codereview |
Long time reader, first time poster ;)
I have a problem when configuring a BizTalk 2009 group. I get error 0xC0C02524 without any messages while running the configuration. The log file says nothing of import and the eventlogs on the respective machines do not add any useful information. Basically they say the same thin... | stackexchange/codereview |
C:\>set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_02
C:\>set path=./;C:\Program Files\Java\jdk1.6.0_02\bin;%path%
C:\>set classpath=%classpath%;
C:\>javac
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generat... | stackexchange/codereview |
Is my php codes safe ?
<?php
$item = (int)$_GET['item'];
if (!isset($_GET['item'])) {
header('Location: index.php');
exit;
}
$fileName = "items/" . $item . ".php";
if (file_exists($fileName)) {
require_once ("items/" . $item . ".php");
} else {
header('Location: index.php');
}
?>
| stackexchange/codereview |
I am trying to build a delphi project from the command line compiler
Example: C:\dcc32 -B C:\BD\Delphi7\work\MyProject.dpr
Aside from the the standard evironment pathing:
$(DELPHI)\Bin;
$(DELPHI)\Lib;
$(DELPHI)\Imports;
$(DELPHI)\Projects\Bpl;
$(DELPHI)\Rave5\Lib;
there is nearly 50 other paths to other libraries, comp... | stackexchange/codereview |
If you go to this site http://www.20thingsilearned.com/ in Google Chrome and change pages, it will change the URL displayed in the browser, but seemingly not actually navigate to another page.
Opening the site in Firefox just uses plain old hash URLs. What makes them able to do this in Chrome?
| stackexchange/codereview |
I'd trying to match the first of the following types of strings in an email:
On Nov 18, 2010, at 8:21 PM, SiteName wrote:
On Thu, Nov 18, 2010 at 8:21 PM, SiteName <notification@SiteName.com> wrote:
The first line matches correctly, but the 2nd does not. here's what I have so far:
mystring.sub(/^On \w+ \d+, \d+, at.... | stackexchange/codereview |
I and working on setting up a LAMP stack on a new Mac Mini to use as a web server. I am using the bundled PHP version 5.3.3 and Apache 2.2.15.
I have gotten phpMyAdmin working and connect to my mysql installation but I get a "Cannot load mcrypt extension. I did this tutorial - http://michaelgracie.com/2009/09/23/plugg... | stackexchange/codereview |
I am trying to develop dictionary application which uses source files from res/raw.
It works when i use a smaller file, but not with a file that I have to use which is cca 5mb.
I decided to split it in parts and to use it this way because it appears that android has some file size limits for assets folder(1mb?).
But it... | stackexchange/codereview |
I'm trying to get some understanding of how Wordpress works and while inspecting the database I found that, in a multisite installation, there is a table called wp_site that seems always holding a single record with a corresponding site_id.
I cannot understand (nor find on internet) what is the use of site_id when act... | stackexchange/codereview |
*NOTE: I AM NOT ASKING YOU TO DO MY HOMEWORK. I am just stuck.
I am designing a Hangman class right now. Apparently, we need three StringBuilders (a) one to display hyphens: "--------" the length of the word, b) one to display correct letters guessed: "--a--e---", and finally c) another one that is essentially the oppo... | stackexchange/codereview |
I need to develop a Stock Tracker Application using Google Finance API . i searched a lot for the same but i'm unable to find a good tutorial where Step by step tutoring of the same is done. i didnt find the official googla Finance APi documentation much helpful for Android development.
Can anyone suggest a good tutori... | stackexchange/codereview |
I've seen a nice navigation example on http://starbucks.com/ - how is this navigation type (I call it big navigation at the moment) called?
Can you give me some other examples and maybe some tutorials to build up one - would be cool if the tutorial includes jQuery.
Thx.
| stackexchange/codereview |
I know that compilers have much freedom in implementing std::type_info functions' behavior.
I'm thinking about using it to compare object types, so I'd like to be sure that:
std::type_info::name must return two different strings for two different types.
std::type_info::before must say that Type1 is before Type2 exclus... | stackexchange/codereview |
How can I use both ls and convert to transform all images files in a directory to a pdf ?
Also I need to put the files in a certain order for example files like AA1.png,AA11.png need to respect this logical order.
Update (ls) and (convert) are available , but how can I used them together ?
| stackexchange/codereview |
I want to serialize my class objects on a memory mapped file but turns out boost serialization only works with file streams. Here is an example:
class gps_position
{
private:
friend class boost::serialization::access;
// When the class Archive corresponds to an output archive, the
// & operator is defined s... | stackexchange/codereview |
I would like to write an adapter for PHP for the binary API of OrientDB.
But I need a bit of help from someone who has experience with raw socket communications in PHP - I can't seem to even get past the first hurdle of connecting PHP to OrientDB.
I would appreciate it if someone experience with sockets would take a lo... | stackexchange/codereview |
I have 2 millions items in a SortedDictionary<string, MyClass>
I've done the following and takes ages, any ideas?
for(int i = 0; i<dic.Count-1; i++)
{
Debug.WriteLine(dic.ElementAt(i).Value.ToString());
}
| stackexchange/codereview |
We are working with an inhouse library which features a StringBuilder class which is used to turn a list of VariableValue objects into a string. VariableValue objects can be constructed from arbitrary types (by specializing a convertVariable template function). Here's the code which describes the scenario:
struct Varia... | stackexchange/codereview |
Is it possible to change global sound volume from our app in iphone SDK?
If yes, how?
Thanks!
| stackexchange/codereview |
I have column in a table containing string like this-
"Executive writer's email is john.dio@pluto.com , ref @4567..."
All I need is to get the email from the string. I have been doing this with ease using the great software called editpad pro but now I am dealing with around 10 million records and no editor supports th... | stackexchange/codereview |
How to implement the multitasking where to open the other application from my application (for example: opening my PDF document in to the iBooks app)?
| stackexchange/codereview |
say, I have a bunch of "validation" functions that return None if there is no error, otherwise it return Some(String) specifying the error message. Something like the following ...
def validate1:Option[String]
def validate2:Option[String]
def validate3:Option[String]
I am going to call them in a sequence and as soo... | stackexchange/codereview |
I have a class which I am using as a descriptor for an object. In that descriptor, there are several Type references for classes that are to be instantiated for different operations involving that object. I was thinking of pulling those references out and replacing them with attributes on the descriptor class.
From t... | stackexchange/codereview |
Please see problem defination as describe below.
I have ArrayList which contain HashMap. In HashMap one or many key-value pairs exist.
ArrayList contain following:
HashMap1 contains
key: column1 value:0001
key: column2 value:1
key: column3 value:1
HashMap2 contains
key: column1 value:0001
key: column2 value:1
key: colu... | stackexchange/codereview |
I'm planning a project which will uses JSON objects to display data on andorid mobile.
My application is some what similar to facebook application for android. It seems making detailed ui like facebook's like,comment will be time time consuming & webview seems to be better option in this case ?
need your suggestion.
I'... | stackexchange/codereview |
Could anyone explain the meaning of someViewController.delegate = self and self.delegate? Where do they help us?
| stackexchange/codereview |
Well, currently chrome has out of process plugins. and firefox 4 will use same model.
That means plugin process is now seperated from browser process.
Plugin process might NOT have window at all.
My plugin is based on NSView.
Before cocoa event model, when I can access NSWindow in browser process, All I have to do is... | stackexchange/codereview |
i have a table that "users"
i want to count their salary who have ID 1 and 2
how i can count this in mysql
| stackexchange/codereview |
I strongly suspect the most upvoted answer will be "that is the wrong tool for the job". I acknowledge that R may not be particularly well suited for sending and receiving email but it is the scripting language I know best. I am hoping to find a way to send and receive short emails in R. Does anybody know an establis... | stackexchange/codereview |
SELECT xmlserialize (DOCUMENT (
SELECT xmlroot(
xmlelement(name root,
xmlelement(name value, 'test')
), version '1.0')
) AS text);
returns:
<root><value>test</value></root>
I want (and expected):
<?xml version='1.0'?><root><value>test</value></root>
Of course I could go:
SELECT '<?xml version="1.0"?... | stackexchange/codereview |
Here is the updated code:
private function myFillFunction(element:ChartItem, index:Number, item:Object,
fieldName:String):IFill {
var c:SolidColor = new SolidColor(0x00CC00);
var ci:ColumnSeriesItem = ColumnSeriesItem(element);
c.color = 0xFF2020;
if ( Number(ci.yValue) >= 0 ) {
c.color = ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.