instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've written a grails service with the following code:
EPCGenerationMetadata requestEPCs(String indicatorDigit, FilterValue filterValue,
PartitionValue partitionValue, String companyPrefix, String itemReference,
Long quantity) throws IllegalArgumentException, IllegalStateException {
//... code
... | stackexchange/codereview |
I have an program where I need to create some large number of folders to an external sharepoint site (external meaning I can't use the sharepoint object model). Web requests work well for this, but simply doing them one at a time (send request, wait for response, repeat) is rather slow. I decided to multithread the req... | stackexchange/codereview |
I have a Task entity that needs to be Resolved based on the type of Task it is. I would encapsulate the logic for a specific type of Task in a class, but what is the generally accepted way to match the type with the class that implements the Resolving logic?
My first impulse is to do a Factory, like:
TaskResolverFactor... | stackexchange/codereview |
my code like this
function Tab(e)
{
var input = e.keyCode ? e.keyCode : e.charCode;
if ((input>=48 && input<=57) || (input==45))
{
if (input==45)
{
//what should i do here? so,
//if user press "-", its ... | stackexchange/codereview |
So I've found the [RequiresHttps] attribute but once your in https your kind of stuck there, so to try and be able to have actions on a single url (and scheme) I've found I've ended up having to create my own ExtendedController to revert back to http for actions that don't use [RequireHttps].
Just wondering if what I'm... | stackexchange/codereview |
How do we use StoryQ to test scenario where Exception is expected?
| stackexchange/codereview |
I have an instance of NSMutableData at hand, and I want to read from it using an input stream (Similar to Java's ByteArrayInputStream).
I noticed CFReadStream has a initForReadingWithData method, but I was not able to figure out how to use it.
can anyone provide a sample bit on how to use it, or how to otherwise have a... | stackexchange/codereview |
I have a session array that I want to send the contents of in an email body.
$_SESSION['order'] is my session value and print_r[$_SESSION['order']] gives me output like the following:
Array
(
[0] => Array
(
[0] => product one
[1] => 1
)
[1] => Array
... | stackexchange/codereview |
Why one would want to explicitly clear the a vector member variable (of on in a dtor (please see the code below). what are the benefits of clearing the vector, even though it will be destroyed just after the last line of dtor code will get executed?
class A
{
~A()
{
values.clear();
}
private:
std::vector < doubl... | stackexchange/codereview |
how to programmitcally list of all module and all controllers and actions for each module?
thanks
| stackexchange/codereview |
I need to make a json request with the url structure like : site.com/page?id=123
How do I pass the variable through the request and then return the results to the page?
<input type='text' id='theInput'>
<input onclick='getIt(); return false;' />
<div id="results"></div>
<script>
function getIt(... | stackexchange/codereview |
I need to upload a pdf file and a phone number to a service that will send a fax.
The form that works (from a webpage) looks like this:
<form action="send.php" method="post" enctype="multipart/form-data">
<input type="file" name="pdf" id="pdf" />
<input type="text" name="phonenumber" id="phonenumber" />
... | stackexchange/codereview |
I have a SQL variable called @FileName which I need to trim numbers off the end. Heres an example of how my strings look at the moment, and how i need them to be:
lorem-1 to lorem
lorem-ipsum-456 to lorem-ipsum (note: '-' in the middle remains)
foo-123-bar-1234 to foo-123-bar (note: number in the middle remains)
123-lo... | stackexchange/codereview |
I'm learning RegEx and site crawling, and have the following question which, if answered, should speed my learning process up significantly.
I have fetched the form element from a web site in htmlencoded format. That is to say, I have the $content string with all the tags intact, like so:
$content = "<form name="sth" a... | stackexchange/codereview |
Imagine something like
exp(49/200)+(x-49/200)
I want to pass as argument of the function "roundn" whatever operation that is not a addtion or a subtraction
So my expression became
roundn(exp(roundn(49/200, n)), n) + (x - roundn(49/200, n)
Well the expression I want to manipulate is this:
exp(49/200)+exp(49/200)*(x-49... | stackexchange/codereview |
I have a input file which has a header like this:
P6\n
width\n
height\n
depth\n
and then a struct is writen, pixel*, into this file, which is going to be mapped.
So, I want to skip the header and make my mmap function return the ptr to that structure. How can I do this? with lseek perhaps? Could you please exemplify?
... | stackexchange/codereview |
considering the following : (mixture of <br> and <br/>)
text1
<br>
text2
<br/>
text3
<br/>
text4
<br>
text5
How can I locate each text nodes ?
I am thinking something that fits the condition of preceding OR following a br tag....but unsure if <br> and <br/> are treated differently in xpath.
| stackexchange/codereview |
I have a very typical hackish solution for minimizing to system tray in C#:
private void MainFormResize(object sender, EventArgs e) {
if (FormWindowState.Minimized == this.WindowState) {
this.Hide();
systemTrayIcon.Visible = true;
}
}
private void systemTrayIconMouseDoubleClick(... | stackexchange/codereview |
Let's say you have the string "This is a test"
I pass it to method zee, like ("This is a test", 1)
and want "test This is a";
I pass it to method zee, like ("This is a test", 2)
and want "a test This is";
the number can exceed the total words in variable. If it does it should loop around.
I started with....
public stat... | stackexchange/codereview |
I was trying out the PHP Eclipse Internal Browser.
I set the Internal Browser to the Chrome Web Browser.
My Steps:
Clicked Windows > Web Browser > Chrome (the other options of course were default, IE, FF)
However viewing a web page in the External Chrome Browser rendered differently when viewed in the PHP Eclipse Int... | stackexchange/codereview |
In ASP.Net you can create a resources file for each culture that you wish to support in your application.
e.g. (in resource designer) HelloWorld = "Hello World"
You can then reference this resources file in code.
Label1.Text = Resources.General.HelloWorld
Note: General is the name of my general resources file.
This me... | stackexchange/codereview |
I have a DetailsView which I use to edit some Fields.
In my code belove I try to
- Find the TextBox where User has left inout
- Sanitize using my own class the data inserted
Till now all is working just fine.
My questions is how to SAVE this data in the underlying Data Source using DetailsView?
Thanks for now!
prot... | stackexchange/codereview |
We have a web service running on the server. We want to use the service in local machine. Could some one kindly give all the steps to get the methods availble in the client.
We have created web methods in the server. And trying to access the same thing on the client. I can literally access those methods using the refer... | stackexchange/codereview |
I am aware that in C++, there is a virtual pointer in each instance pointing to a virtual table. But how is dynamic binding implemented in Java?
| stackexchange/codereview |
my url pattern is www.example.com/[any digit or number] say www.eaxmple.com/slug
my urls.py is:
url(r'^(?P<[a-z0-9>+)/$', mymethod),
But is saying:- bad character in group name
another query is that i want to process the slug coming with the url. Based on that value i will render different template. Is it possible? H... | stackexchange/codereview |
This is mainly a theoritical question, but just wanted to make sure that i'm doing it correctly. Consider a Ruby Rails project where there are two models, one being User and the other being Alliance.
A user can only have one alliance.
An alliance can have many users.
That is very much simply a :has_many, :belongs_to re... | stackexchange/codereview |
I have a service which receives data from a proxy hosted in a WebApp. The DataMembers are set with Order=* and I've also tried adding isRequired=true. The problem is that out of 60 fields of information serialized and deserialized, the same 3 String fields are consistently missing (null). I've run debugging which shows... | stackexchange/codereview |
We have an application that needs to perform lots of short background tasks (each might schedule more). In the future we might need to run the tasks on multiple servers.
We also need the tasks (and their parameters) to be persistent (stored in a DB) and be able to monitor tasks (status / logs /etc)
Is there a ready mad... | stackexchange/codereview |
I am loading external content via the jQuery method load and manipulate the src attribute of the img elements previously loaded as follows:
<div id="content"></div>
<script>
$("#content").load("additional_content.html #content table", function() {
$("#content").find("img").each(function() {
$(this).attr("sr... | stackexchange/codereview |
I'm building a simple win form application with one dataGrid, one TextBox.
I have about 10K records of names.
What I want to do is implement some sort of auto complete feature so when a user types into the textbox, the datagrid is updated to display the matches accordingly.
Just to test this out, I have one DataConte... | stackexchange/codereview |
Hi
I am currently working on an application which is implementing salesforce.com REST api. I have done all the authentication part and received all the info needed. Now I want my application to push the leads into the customer's account. But the lead fields can be customized and different customer use their different c... | stackexchange/codereview |
After reading about the pimpl idiom I was horrified!
Isn't there a tool out there that can inspect a .h/.cpp file and deduce what dependencies could be waivered?
| stackexchange/codereview |
I found this script attached to a thread in the fontforge-users mailing list. It does exactly what I want. However, it seems only to work on 32bit systems, and I would really like to use it on my 64bit system.
I've done a little reading but I can't work out how I should modify this script (presumably the stuct?) to... | stackexchange/codereview |
I am using RandomAccessFile in java. I have a memory leak problem. I have simplified my code to the following:
public static void main(String[] args) throws IOException, InterruptedException
{
RandomAccessFile r = new RandomAccessFile(new File("test.dat"), "rw");
r.write(new byte[150000000], 0, 150000000);
... | stackexchange/codereview |
What happens after authenticating using openid? In a simple case, the user-agent is redirected to OpenID provider(OP). After optionally login to the OP, the user-agent again returns back to consumer page which is mentioned in the 'openid.return_to'. Now the consumer also verified and sent back a '200 ok' response.
Now ... | stackexchange/codereview |
Instead of POST-ing to a server PHP file to retrieve JSON structured data. Is it possible to script a cron job to spit out JSON structured data to a plain text file, serve it behind nginx, and then have JQuery read from that static plain text file to fill the client's browser?
| stackexchange/codereview |
i need to know how to set proxy in HtmlUnit using socketaddress?
i have tried with the following..
System.setProperty("socksProxyHost", "myHOST");
System.setProperty("socksProxyPort", "myPORT");
WebClient wb = new WebClient();
ProxyConfig pro = new ProxyConfig("172.22.218.218", 8085);
pro.setSocksProxy(true);... | stackexchange/codereview |
I load a movieclip in another project. this loop.swf has music in it.
loopingLoader = new Loader;
loopingLoader.load(new URLRequest("img/loop.swf"));
addChild(loopingLoader);
After some seconds, I want to unload or easier "mute" this clip.
When I unload it, even when I load a new clip in it, the music continues to pla... | stackexchange/codereview |
What is the negation (complement) of:
i < A.Length
in the context of:
Do (i < A.Length ) // is it i == A.Length or i > A.Length ?
What is the negation of
i <= A.Length
in the context of:
Do (i <= A.Length ) // is it i >= A.Length ?
For some reason I can't find a source to confirm.
| stackexchange/codereview |
I'm working with a console application (C#) at the moment. What it does is pulls files from a database and stores them in their relevant folders on the C drive on a local machine.
At the moment, every time I run the console app, it pulls ALL the files from the database.
What I would like to be able to do, is each time... | stackexchange/codereview |
Hello How Can I make a login view easily like this?
It seems username and password are both in a table?
Also I see some system preferences editing uses this kind of label+textfield thing.
Can someone tell me whether I can directly use some views in the lib, or I have to build the view on my own
I mean the username pas... | stackexchange/codereview |
Using join tables in rails always casuses problems for me especially with having to create duplicate entries when reciprocration is assumed. I.e. i add someone as a friend and i automatically become theirs == two joins required.
Take a simple receipts app that keeps track between two people, who spent what.
A USER can... | stackexchange/codereview |
Pretty straightforward: Google image search has this nice UI mechanic that pops a larger-scale image with info on mouseover.
For example.
Lookbook does this too.
What would be the easiest way to replicate this effect, and what tools should I look for?
| stackexchange/codereview |
I have a page A with an EDIT LINK. When click it sends a parameter to a second page B, which contains a DetailsView in Edit mode.
Page B take care of editing the details.
A.aspx?AuthorId=89
My problem is: I am not able to visualize the Right AuthorId passed from page A.aspx in the DetailsView in B.
What I am missing? ... | stackexchange/codereview |
I'm trying to replace a substring that contains the char "$". I'd be glad to hear why it didnt works that way, and how it would work.
Thanks,
user_unknown
public class replaceall {
public static void main(String args[]) {
String s1= "$foo - bar - bla";
System.out.println("Original string:\n"+s1);
... | stackexchange/codereview |
I happened to ask myself a question about arrays in c++.
Well, we all know that arrays are fixed collections of something, I say fixed because it is necessary to declare array length when defining arrays.
Well, let's consider an example:
char myarray[10] = {'\0'};
int sz = sizeof(myarray); // It is supposed to be 10
W... | stackexchange/codereview |
Possible Duplicate:
Java : Is there a good natural language processing library
are there any known open source distributions that one can use like nltk for python?
| stackexchange/codereview |
I need to make an if statement using Ruby that checks to see if the client's browser support HTML5 or not.
| stackexchange/codereview |
I have a table called heading whose SHOW CREATE TABLE looks like this:
CREATE TABLE `heading` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`referenced_table_name` varchar(255) NOT NULL,
`column_name` varchar(255) NOT NULL,
`label` varchar(255) NOT NULL,
`position` int(10) unsigned NOT NULL,
`import_profile_id... | stackexchange/codereview |
Hey, I have a webView inside my iPhone app. The webView opens a html page (not on iPhone) on a server.
Now the website contains an html image. Since iPhone doesnt cach and is loading slowly i like to link the html image to a local resource in my app.
Does anyone know how to do this? Is that even possible?
| stackexchange/codereview |
Specifically dealing with extending the vs2010 right-click context menu.
Can I use MEF to add content to a right-click context menu. I know that was something that was supposedly in the works back in 2009 so I figured maybe there is now or, am I stuck with MAF for that?
| stackexchange/codereview |
Does anyone know if AVQueuePlayer starts buffering the next AVPlayerItem when the current item is about to finish playing?
I know there's nothing in the docs to suggest this, I'm asking mostly if anyone has observed this kind of behavior or not.
| stackexchange/codereview |
I'm trying to add a Class to the EditorFor Helper inside an EditorTemplate.
The problem is that because I'm using Unobtrusive Validation, the input element already has classes assigned to it.
Here is my EditorTemplate
@Inherits System.Web.Mvc.ViewUserControl(Of Nullable(Of Date))
@Html.TextBox("", If(Model.HasValue, St... | stackexchange/codereview |
Ok, so I've got a weird pattern here that I can't figure out.
I have an STI set with CallList as the base model, and City & State inherited. A city belongs to a state (and a state has many cities).
A campaign has many call lists, so I want to display them all. I loop over campaign.call_lists and sometimes get Cities, s... | stackexchange/codereview |
Getting exception "The property value is larger than allowed by the Table Service" while trying to insert a record in azure table storage.
Follwing is my table structure,
string PartitionKey,String RowKey,string Id , string site, string name , byte[ ] content,
public DateTime createdtime
And i am trying to save 83755 b... | stackexchange/codereview |
I have three forms.
Lets say A, B, C.
Form A opens form B and form B then opens form C.
I have added button Hide all open forms in form C.
Now how do I hide all three forms with this button ?
I know one way is using ShowWindow Api, but I don't want to use Api calls.
Edit : Thanks to SoMoS.
for (int i = Application.Ope... | stackexchange/codereview |
I've got a PHP Object, whose properties are initialized the following way:
$this->contact = implode(PHP_EOL,$description->getContact()) . PHP_EOL;
The only exceptions are two properties named version and bugs.
This object is then encoded into a JSON object and passed into the following javascript, which compare the JS... | stackexchange/codereview |
I need to import VIX api libs in ubuntu using ctypes module.
When I do:
vix = CDLL('libvix.so')
It fails: "cannot open..."
what´s the problem??? libvix.so and python module are in the same directory
thanks!!
| stackexchange/codereview |
just recently my Visual Studio 2010 and 2008 Professional have stopped catching runtime errors. I'm not sure if a setting within these IDEs were configured wrong or if it is a firewall problem (my OS is Windows 7 and the firewall is turned off). For instance this code should result in a runtime error in visual studio:
... | stackexchange/codereview |
Does anyone know how to setup/configure Tomcat's JSP engine to load JSP pages from an external source like a database or JCR? The project that I'm working on uses groovy scripts, freemarker templates, etc that is loaded from a JCR at runtime (it is cached and reloaded when I update the JCR). I also want to add JSP pa... | stackexchange/codereview |
When developing I like to have strongly typed objects for certain values. An example could be a username. I've managed to create these value objects with validation of business rules in the constructor (the objects are immutable), but I when serializing these objects they behave funky.
[DebuggerDisplay("{Value}")]
publ... | stackexchange/codereview |
I've googled this but possibly typing in the wrong thing.
I see hexadecimal numbers knocking about such as 3A and 0x3A, but what does the leading 0x mean? I read somewhere it means the number is signed, but converting a negative decimal to hex in calc doesn't produce a hexadecimal number with the leading 0x.
Any point... | stackexchange/codereview |
I am using seyret component to upload my files. I uploaded a GIF the thumbnails it is extracting is having a blackbackground however the original upload is alright.
| stackexchange/codereview |
I am looking for document.write() property in iGoogle gadgets, how can I do the thing below in iGoogle gadget? In other words, I want stdout var in a script.
Example with document.write()
<html> <body>
<script type="text/javascript"> var firstname; firstname="Hege"; document.write(firstname); document.write("<br />");... | stackexchange/codereview |
I have a ProxyFactoryBean bean :
<bean id="sendSingleSmsServiceProxy" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target">
<ref bean="sendSingleSmsServiceImpl" />
</property>
<property name="proxyInterfaces">
<value>com.test.SendSingleSmsService</value>
</property... | stackexchange/codereview |
I'm building a Chrome extension that manipulates the content of the page, but the content I'm interested in only shows up when the user has clicked a button and the data has then been loaded from an Ajax call.
At the moment the extension monitors the page with a SetTimeout but it's clumsy.
Can an extension know when an... | stackexchange/codereview |
Assume that I have a public Class A and an Abstract class B such that B only contains protected methods. Now let A inherit from B.
Now my question is how do I(or should I) test if A inherits from B.
| stackexchange/codereview |
I have WebService (ISAPI DLL) with client in Delphi 7. When I call my WebService with my client, everything works fine. Problem is with client in .NET from another company. If as server runnig apache (with isapi-handler), web service does not run. On IIS server is everything ok.
Problem is in function HttpExtensionProc... | stackexchange/codereview |
I wanted to create a file which has all the KeyPairs I need to use in a program. However, I figured it would be better to have it embedded in the code, so instead, I want to put it in a struct. For example, how do I put this items explicitly in a struct?
{Qt::Key_0, "Win1"},
{Qt::Key_1, "Win2"},
{Qt::Key_2, "Win3"}... | stackexchange/codereview |
I have 3 domain classes: Article, User & Language. Every article is written by a user in a specified language. So the relation are (Article - Language : many - 1), (User - Article : 1 - many)
I try:
class Product {
static belongsTo = [user:User]
static belongsTo = [language:Language]
...
}
class User {
stat... | stackexchange/codereview |
Possible Duplicate:
Xcode “Build and Archive” from command line
can anyone please specify me the steps to Automate the xcode 'Build and Archive' option using command line
I need to do that by setting the provisioning profile
Any help is appreciated.
Regards,
| stackexchange/codereview |
I am looking for reliable data regarding app compatibility to gingerbread (android 2.3)
I cant seem to find any professional information on the subject and i predict that after its launch we'll see a rain of gingerbread devices manly tablets...
One needs to prepare :)
Thanks in advance
Guido
| stackexchange/codereview |
I'm trying to build a simple as3 server/client app.
When the client has connected to the server, it should send a message like "1" to the server.
The server does the following:
private function onConnect(e:ServerSocketConnectEvent):void
{
incomingSocket = e.socket;
incomingSocket.addEventListener(ProgressEvent.... | stackexchange/codereview |
I have a Java project where I need to run things in parallel. I do this with executors. The thing is, I need to use executors in a great many places. Should I favor passing a few executors around to do the work (forget about limiting the global number of threads for a moment) or is it preferable to create the executors... | stackexchange/codereview |
How to improve the space between Flex Checkbox and it's label ?
| stackexchange/codereview |
I have an array of Date values in the format of 'Y-m-d'. I want to loop over the array and only extract the day ('d') of each member, but can't figure out to split it. Do I use substrings in some way?
Put simply, I have '2010-11-24', and I want to get just '24' from that. The problem being the day could be either singl... | stackexchange/codereview |
I have a program I am writing for uni in C, and when my code reaches this line:
strcat("md5 ", "blah");
I am getting a EXC_BAD_ACCESS error, and my app crashes. As far as I can tell, there isn't anything wrong with it, so I thought a fresh pair of eyes might solve my problem. Any ideas?
| stackexchange/codereview |
I have a Joomla website that works perfectly on localhost.
But I have problem when I try to upload it to online location.
I chose byethost because my boss told that's the hosting to use.
Now, I upload entire joomla website folder using FTP protocol application (FileZilla).
And then I have to create a database under spe... | stackexchange/codereview |
What I need to do is to validate this piece of xml:
<token type="email">qwqe12e12e1</token>
<token type="mobile">12e12313121w</token>
I know how to validate such element with attribute and content but my question is how to prevent token of type e.g. email occur more than once? I need both tokens but every single token... | stackexchange/codereview |
I understand the differences of inheritance of public, private, protected with respect to class method / property constucts. However, my question is specifically associated with pointers to null terminated strings..
class MyClass
{
private:
char * SomeValue;
...
...
}
Now, somewhere through processin... | stackexchange/codereview |
Apparently boost contains two separate libraries for state machines: Statechart and Meta State Machine (MSM). The taglines give very similar descriptions:
Boost.Statechart - Arbitrarily complex finite state machines can be implemented in easily readable and maintainable C++ code.
Meta State Machine - A very high-perfo... | stackexchange/codereview |
Kindly tell me where to find excellent tutorials on cron. I have searched google for this. But most sites give tutorials which are not complete. I dont need links to those tutorials which are incomplete and shabby.
| stackexchange/codereview |
I have a big .NET application that is currently hitting a private working set size of 865MB.
So I ran VMMap and saw that the Heap is about 587MB and Managed Heap is only 255MB (also private working set).
Is it normal to have all this unmanaged code using so much memory (that I suppose is being used by the .net runtime)... | stackexchange/codereview |
My application launches a thread to query the web for some data. I want to display a Toast message when nothing is found, but my application always crashes.
I've tried using the application Context from within the thread, like so:
Toast.makeText(getApplicationContext(), "testttt", Toast.LENGTH_LONG).show();
I've also... | stackexchange/codereview |
Section 3.6.2 of RFC 5322 defines the reply-to header as:
reply-to = "Reply-To:" address-list CRLF
Where address-list is defined at section 3.4. When unfolding the ABNF grammar, I find that address-list can consist of nothing but phrase ":" ";" (phrase being defined at section 3.2.5). So it boils down to you ... | stackexchange/codereview |
I have this code
#!/usr/bin/perl -w
use strict;
use URI;
use LWP::UserAgent;
use Data::Dumper;
use XML::Simple;
my $DBVersion = '';
my $url = URI->new('https://example.com');
$url->query_form(
'sql' => 'select email,firstname from account for xml auto',
'DBVersion' => $DBVersion
);
my $response = LWP::... | stackexchange/codereview |
I have a toolbar control in my application. Delete an item from dataform from toolbar delete button. After this apply submitchanges() method. Delete Item work fine but source.HasChange is always false so submitchanges doesn't work fine. no deleting from Database.
Plase help thanks..
| stackexchange/codereview |
I am trying to render out the following JSON in an attribute on a TableRow:
{"key": "value"}
The complete output should look like this:
<tr data-json='{"key": "value"}'> ... </tr>
However, if I do:
var tr = new TableRow();
tr.Attributes.Add("data-json", "{\"key\": \"value\"}");
... The double quotes get serialized:... | stackexchange/codereview |
My current issue is that an assembly that I changed works on my localhost while debugging but I can't seem to get the new code to be recognized on a stage server that I copy the code to.
I hate to say it, but right now I can truthfully say "it runs on my machine". The good news is the same code works the same way in de... | stackexchange/codereview |
Is there a way to display validation errors (using Validation.Errors attached property) in the same layer as the control with the invalid value while using the Validation class?
What I want is to display errors beneath the control with the invalid value. But the error text should not overlap other controls, so the erro... | stackexchange/codereview |
I know Storyboards are tricky with all of their freezableness, but is it possible to share an animation with multiple Storyboards? Something along the lines of the following is what I'm trying to do:
<UserControl.Resources>
<Storyboard x:Key="SharedAnimation" />
</UserControl.Resources>
...
<VisualState Name="Ani... | stackexchange/codereview |
I am trying to run the sample code given in Android developer website in Eclipse.
http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html
But I am not able to run it. I get an error that "import org.xmlpull.v1.XmlPullParserException.html" cannot be resolved.
I downloaded the jar (from www extreme.india... | stackexchange/codereview |
I have been for a long time looking into .. what is the best framework and I had found numerous answers, but now my question is different, I really would like some answers on what is the easyest way to start with a framework and wich framework is most indicated to start.
I got the problem of repeat my job over and over... | stackexchange/codereview |
Does anybody know of a query from system tables or views to get a list of views that use a certain field in a SQL Server database?
| stackexchange/codereview |
Can structures contain functions?
| stackexchange/codereview |
Hard to get the headline correct since there is so much to tell.
I got this NSArray (A portion of it):
Mon, 06:00, Radioshow Morning, Mon, 10:00, Lunch radio, 14:00, Afternoon Radio and so on.
The NSArray is from an plist in the app.
What I need to build (and failed with) is a search function that shows me the right pr... | stackexchange/codereview |
I want to check if a value is true or false.
<% if item.active? %>
<%= image_tag('on.png', :alt => "Active", :border => 0) %>
<% else %>
<%= image_tag('off.png', :alt => "Inactive", :border => 0) %>
<% end %>
That doesn't work, but this works?
<% if item.active == true %>
<%= image_tag('on.png', :alt => "... | stackexchange/codereview |
private void dcHullForUpperHull(List<Point> list, Point p, Point q) {
List<Point> upperH = new ArrayList<Point>();
List<Point> lowerH = new ArrayList<Point>();
int low = 0;
int high = list.size()-1;
System.out.println(list);
if(low<high) {
Point pivot = list.get((low+high)/2);
... | stackexchange/codereview |
I am busy building a small theme options page for one of clients and need some help with an issue.
currently i have the option to manually put in IDS of wordpress pages to extract the data with query_posts
based on the theme options is creates a variable called $euro_box_1_vehicles;
my options are filled in as 32,39,43... | stackexchange/codereview |
class Person():
pass;
def say_hi(self):
print 'hii'
me=Person()
me.say_hi=say_hi
me.say_hi()
Isn't the self argument automatically passed in python ? why why is calling me.say_hi() is giving a stack trace ?
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: say_hi() take... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.