instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've made this code which changes the second select based on what you select in the first select.
But now I need a way in jQuery to also change the "form action" based on what is selected on the first select.
I want action="renault.php" if option 1 is selected and I want action="citroen.php" if option 2 is selected on... | stackexchange/codereview |
I know how to get all interfaces of T using typeof(T).GetInterfaces() but I need the exact inheritance tree.
Is it possible to resolve this somehow from the existing reflection API?
EDIT:
Allow me to clarify:
interface Base1 {}
interface Base2 {}
interface Foo : Base1
interface Final : Foo, Base2
I would like to for... | stackexchange/codereview |
Possible Duplicate:
Function to Clear the Console in R
In bash, its like this:
$ clear
And I believe it's CTL-L in the Windows version of R. But how do you clear the R console in Unix-type R Consoles? Do you need to write a special function and what would that look like?
| stackexchange/codereview |
I am making a program for recording sound. I have completed the basic record functions and the interface. However, when I test it, I have no idea how to make use of the emulator to test if the program really work. Shall my computer equip with mic to test it?
Other than that, since my program will create a .3gp audio f... | stackexchange/codereview |
I've been learning WPF for a few months now and I'm curious about one thing. How does a Binding actually work? I mean, what happends, under the hood. I don't expect that anyone here would give a detailed explanation but maybe a good resource or link where to read up on something like this. I've been searching and googl... | stackexchange/codereview |
I'm working my way through Head First C#, and I'm a bit confused on my current exercise. They state:
If you declare a variable inside a for loop--for (int c = 0; ...)--then that variable's only valid inside the loop's curly brackets. So if you have two for loops that both use the variable, you'll either declare it in... | stackexchange/codereview |
As fields are implicitly private, why there is often explicit declaraion used in the books, articles etc.?
| stackexchange/codereview |
While doing the original training for EJBs from Sun I came across the rather strange concept of a enterprise application client which has the notion of dependecy injection and a main class:
@javax.ejb.EJB
private static auctionsystem.ejb.AuctionManagerRemote auctionManager;
public static void main (String[] args)
{... | stackexchange/codereview |
I have random strings that are similar to this:
2d4hk8x37m
or whatever. I need to split it at every other character.
To split it at every character its simply:
'2d4hk8x37m'.split('');
But i need every other character so the array would be like this:
['2d', '4h', 'k8', 'x3', '7m']
| stackexchange/codereview |
In a seam-gen generated application I added the login-required attribute, to force a user login. After that the CSS-Styles from richfaces aren't loaded neither in the login page itself nor at the other pages after successful authentication. (The application is unusable)
<page view-id="*" login-required="true">
... | stackexchange/codereview |
The error I get is:
c:\windows\microsoft.net\framework\v4.0.30319\microsoft.csharp.targets(132,9) : error MSB4066: The attribute "Returns" in element is unrecognized.
Does anyone have any idea how to resolve this issue?
| stackexchange/codereview |
going crazy now after so many hours at the screen...
got this site - http://www.laureleroch.com - to get finished asap...
got this code half working but can't get the font colour of the .sub_title class to change... tried everything I can think of, trawled the net for the last 90 mins...stuck. See how the word 'Welcome... | stackexchange/codereview |
Has anyone an idea why the following JavaScript codes is working without any problems on Firefox and was working on IE7 as well but not on IE8 anymore? I have not a clue and I appreciate any hint :-)
I have added the code as a favorite item to my Internet Explorer. So a click on this favorite item should execute the co... | stackexchange/codereview |
is it possible to run symfony (1.4) on the windows azure cloud?
The two things I'm wondering is how to execute the symfony tasks and where will symfony save the cache files (blob storage?).
Thanks for your answers.
| stackexchange/codereview |
From what I've seen, WPF images' source is a BitmapSource object while the Resources images are read as bitmap. I've easily found a way to convert images from Bitmap format into BitmapSource format but I believe that running this conversion every time I need an image is just costly in terms of performance and memory co... | stackexchange/codereview |
I'm using mechanize to fill forms and I run into a problem with dynamically-filled dropdown lists that are dependent on a previous selection.
In mechanize, I do something like this to select the category:
import mechanize
br = mechanize.Browser()
"""Select the form and set up the browser"""
br["state"] = ["California"]... | stackexchange/codereview |
I'm currently trying to use CMake to generate an Xcode project file, but I would like to undefine certain user-defined settings that CMake generates automatically when making an Xcode project. More specifically, I want to undefine WARNING_CFLAGS that CMake wants to set for my build targets in Xcode. I've tried the foll... | stackexchange/codereview |
Is there good implementation of Hungarian algorithm in standard python libraries?
| stackexchange/codereview |
I am building a search view in asp.net MVC 2
So I have:
public ActionResult Search()
{
...
}
[HttpPost]
public ActionResult Search(string input, FormCollection formValues)
{
...
}
The problem is in the view there is a textbox and two buttons "Search" and "Clear Results".
Once entering the [HttpPost] method h... | stackexchange/codereview |
I am trying to replace list element value with value looked up in dictionary how do I do that?
list = [1, 3, 2, 10]
d = {'id': 1, 'val': 30},{'id': 2, 'val': 53}, {'id': 3, 'val': 1}, {'id': 4, 'val': 9}, {'id': 5, 'val': 2}, {'id': 6, 'val': 6}, {'id': 7, 'val': 11}, {'id': 8, 'val': 89}, {'id': 9, 'val': 2}, {'id... | stackexchange/codereview |
I have my Database, that have my ADO.NET Entity Data Model that have my Repository in one Application Library project
then, in the website for each Controller I start with
MyRepository db = new MyRepository();
I am expecting that this website will be accessed 50.000 a day and I was wondering... does the new MyReposito... | stackexchange/codereview |
I'm working on an ASP.NET MVC2 app. I've come to realize a very surprising, yet amazing thing that MVC does behind the scenes having to do with the ModelState and model binding. I have a ViewModel which has a whole bunch of data - some fields being part of a form while others are simply part of the UI. On HttpPost, my ... | stackexchange/codereview |
Greetings all,
As seen in the image , I draw lots of contours using GL_LINE_STRIP.
But the contours look like a mess and I wondering how I can make this look good.(to see the depth..etc )
I must render contours so , i have to stick with GL_LINE_STRIP.I am wondering how I can enable lighting for this?
Thanks in advance
... | stackexchange/codereview |
ok here's the code im using which every site ive looked at says is right, but its not working. Im trying to insert the fields from the object into the table called 'employees' in my sql database. The object's fields match the fields in the database exactly:
myDatabaseDataContext db = new myDatabaseDataContext();
Emps n... | stackexchange/codereview |
Hi I am trying to make a program with pointer in a struct. Compiler appears no problems but the program crashes.
Could you help me please ?
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
int pos;
typedef struct _Parking Parking;
struct _Parking
{
int pos;
char name[15]; ... | stackexchange/codereview |
How can i loop through a post and find if any of the answers are "no"?
Here is my code so far:
if($_POST["minRequirementsForm"]) {
foreach($_POST as $key => $value) {
$_SESSION['minrequirements'][$key] = $value;
}
}
Thanks in advance.
| stackexchange/codereview |
Any one got a function to like strtotime() but the takes the format as input?
For example I need to convert yyyymmdd to a timestamp, or perhaps yyyyddmm. So I would like to specify the format used. Also Im on Windows so strptime() isn't an option.
| stackexchange/codereview |
I have both a library.jar and program.jar in Java folder.
What is the correct command line to run? One method I tried is:
C:>java -cp c:\java\library.jar;.\java\program.jar program [param]
| stackexchange/codereview |
How can I populate data into GridView using LINQ data source.
Currently Im doing this manual with code bellow.
Here is my code:
<asp:GridView ID="gridProcesses" runat="server" AutoGenerateColumns="False"
EnableModelValidation="True" Width="400px" DataKeyNames="ID">
<Columns>
<asp:BoundField HeaderText="Na... | stackexchange/codereview |
I have a simple XML document in the following format:
<?xml version="1.0" encoding="utf-8"?>
<object>
<strField>Foo</strField>
<intField>1</intField>
<dateField>2010-11-03</dateField>
<boolField>true</boolField>
<nilField></nilField>
</object>
I would like to parse this into a Hash to be passed to Model.crea... | stackexchange/codereview |
How do i pull out the 30 or the 55 basically the number before the last number
http://something.com:9090/general/35/30/205
http://something.com:9090/general/3/55/27
http://something.com:9090/general/36/30/277
| stackexchange/codereview |
What's wrong with it?
private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
{
position_x = e.Location.X;
position_y = e.Location.Y;
}
private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
{
int position_x_next = e.Location.X;
int position_y_next =... | stackexchange/codereview |
In writing an app for Facebook using Java, I need to send a message to my users. The app will send the email when something happens.
How can you send an email in a Java Facebook application?
| stackexchange/codereview |
With the Salesforce API, is there a way to get the current time on the Salesforce server?
| stackexchange/codereview |
I have a class where it may be necessary to change the object to a descendent class further down the line. Is this possible? I know that one option is to return a copy of it but using the child class instead, but it'd be nice to actually modify the current object... so:
class myClass {
protected $var;
function myM... | stackexchange/codereview |
I'm using asp.net with SQL Server 2008 SP2
I have one table with Full Text Search Enabled.
My Hardware is: 2GHZ Quad-Core, 4GB RAM, SAS HDD.
The table has around 5 Million records, and its structure is:
Pages table:
ID (INT)
GroupID (INT)
GroupStart (bit)
Col1 varchar(900)
Col2 nvarchar(450)
Col3 nvarchar(450)
Col4 nv... | stackexchange/codereview |
Can we create a date using SQL Server 2005 ?
Example if I have year = 2010, month = 11, and day = 2, how can I convert or create it to datetime?
Below is if we write it in javascript
var date = new Date(2010, 10, 2, 0, 0, 0, 0);
and this is with oracle
SELECT TO_DATE('2010-11-02', 'YYYY-MM-DD') FROM DUAL
Thank you
| stackexchange/codereview |
I need to hold values in sorted hash in ruby (1.8.7). What data structed will fit the best?
| stackexchange/codereview |
Is it possible to make ostream output hexadecimal numbers with characters A-F and not a-f?
int x = 0xABC;
std::cout << std::hex << x << std::endl;
This outputs abc whereas I would prefer to see ABC.
| stackexchange/codereview |
I am a beginner in SQL, hope someone can help me on this:
I have a Items Category Table:
ItemID | ItemName | ItemCategory | Active/Inactive
100 Carrot Veg Yes
101 Apple Fruit Yes
102 Beef Meat No
103 Pineapple Fruit Yes
And I have a sales table... | stackexchange/codereview |
I just created a data table based on a query and displayed it successfully using theme_table().
Now, I'd like to add some filters to the table but have no idea how to proceed.
Is there a built-in feature that allow me to do this easily, or should I manually add a form and update the query/redisplay the results each tim... | stackexchange/codereview |
I have been working with cocos2D and developed a project from an example project for cocos2D. This project uses no UIViewcontroller and I want to add elements via the interface builder.
Am I thinking right that I can add a UIViewController and have all the physics interactions in this (on top of) this UIView?
I've too... | stackexchange/codereview |
I have come across a need to click an element automatically after a page has been loaded, so I implemented the following code:
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function() {
document.getElementById('handler2').click();
});
</script>
Which is working fi... | stackexchange/codereview |
I know that the Zen starting theme is very popular but I find it harder to edit a theme made by someone else (even if it's as simple as Zen) that to create my own in static html. Is it ever a good idea to start with a static html design and then port it over to drupal? Or am I just doing twice the work for no reason?
I... | stackexchange/codereview |
I am trying to insert new RawContact contacts, but the RawContact added doesn't get displayed when I view the contacts through Contacts or phonebook. As I understand if we create a RawContact and there is no contact associated with it then the contact will be automatically inserted. I get a valid value of rawContactId ... | stackexchange/codereview |
Possible Duplicate:
iPhone Compass GPS Direction
Hi, I'm trying to develop an application that use the GPS and Compass of the iPhone in order to point some sort of pointer to a specific location (like the compass always point to the North). The location is fixed and I always need the pointer to point to that specifi... | stackexchange/codereview |
This is my sample code, I am using it for a text field to change its borders colour to blue, when the text field is in focous. It's working fine in IE and mozilla but not working in Google Chrome. Please help.
.inputTxtFld:focus {/* font-family: verdana,arial,sans-serif; font-size: 10px; color: #000000;*/
MARGI... | stackexchange/codereview |
I'm writing some tests for my DAO, and because a lot of the tests use a test object that is being saved to my database I've created a setup() and teardown() method with the annotations @Before and @After respectively to avoid redundant code, but one of the tests, actually one that doesn't really need the test object, c... | stackexchange/codereview |
Is there a (free!) software/components that I can use to track how my web site is being used - which pages are most popular, how many times was the site visitied today, yesterday etc...
| stackexchange/codereview |
is the style attribute deprecated in XHTML 1.1
| stackexchange/codereview |
Possible Duplicates:
Jquery html() and self closing tags
Is it expected that jQuery $('span').html() turns XHTML br tag to html syntax?
I have a document like this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/... | stackexchange/codereview |
I receive the following error...
Parse error: syntax error, unexpected T_AS in ....\index.php on line 98
for the following script...
<?php
try {
$db = new PDO('mysql:host=localhost;dbname=db', 'user', 'pw');
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->beginTransacti... | stackexchange/codereview |
I copied the following code from OpenGL's Redbook (Chapter 4: Display Lists) into my editor (Visual Studio Express Edition 2008), named it list.c and got compilation error.
#include "aux.h"
#include <GL/gl.h>
#include <GL/glu.h>
GLuint listName = 1;
void myinit (void)
{
glNewList (listName, GL_COMPILE);
glCo... | stackexchange/codereview |
I am using c3p0-0.9.1.2.jar and hibernate 3.2.1. Following are the hibernate config.
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/oDB</property>
<property name="hibernate.connection.username">oDBUs... | stackexchange/codereview |
i need to know how can detect if an OCX class (ClassID) is registred in Windows
something like
function IsClassRegistered(ClassID:string):boolean;
begin
//the magic goes here
end;
begin
if IsClassRegistered('{26313B07-4199-450B-8342-305BCB7C217F}') then
// do the work
end;
| stackexchange/codereview |
Follow-to this question: The Dual Nature of svn:ignore
Is there any way to accomplish the second scenario? i.e. Stop Tortoise SVN or plain SVN from listing a fixed set of files which have local modifications but are under version control from appearing in the commit list?
I am on a project where I am the sole remote de... | stackexchange/codereview |
I have a server application that opens a socket and listen for a connection. In the application, I have a separate thread that creates a socket, binds it and calls the listen and accept functions on it.
When the application closes I call closesocket on the socket that was created, then wait for the socket thread to ... | stackexchange/codereview |
I have a table with the following columns
source_title, country, language, source_url
I need to generate a query that will give me the following:
country, source_title count, percentage of sources
and
language, source_title count, percentage of sources
basically map the country to all sources and get the count and p... | stackexchange/codereview |
I need to optimize the loading speed of several existing websites. One of the issues that I have is the amount of requests per page. The websites have 7 or more different types of pages which should load different set of css and javascripts because they contain different widgets or functionality. Currently each widget ... | stackexchange/codereview |
long shot: is it possible to get the name of a calling function or the constructor from the called function? is it possible to determine the previous function of the thread?
i would like to call some setter functions from my constructor and have my setter functions determine if it was the constructor that called them... | stackexchange/codereview |
I really like to use spring stereotype annotated beans in spring MVC apps and would like to use Spring scope annotations to the full extend. No more need to fiddle around in HttpServletRequest or it' s session.
One thing isn' t really clear to me though and maybe someone could provide me with some insight or explanatio... | stackexchange/codereview |
Guide me how to program in "C" to interface a microcontroller with a printer.??
Also explain me the procedure of how actually printing is related to a micro controller.??
| stackexchange/codereview |
JQueryUI has a very nice Dialog, but I wonder how I could create a similar dialog with multiple values I can select from.
It does not necessarily need to have a text area. Similar to how the right-click window looks or how the selection dialogs work on Android.
| stackexchange/codereview |
I have this in a public class:
SqlConnection myConnection = new SqlConnection("Data Source=hermes;database=qcvalues; Integrated Security=SSPI;");
myConnection.Open();
SqlDataReader myReader = null;
SqlCommand myCommand = new SqlCommand(InitializeQuery(), myConnection);
myReader = myCommand.ExecuteReader();
I need the ... | stackexchange/codereview |
hii ,i want to run wamp and IIS both ,but IIS is using port 80 so what shall i do.if I turn off IIS my internet goes off.And i also tried changing port for wamp server in httpd.conf (listen:8080) but still not working
plzz help me out ,I shall be grateful to u.
| stackexchange/codereview |
I am trying to call a CUDA (host) function from a C++ file, compiled separately:
sample.cpp C++ file:
extern "C" void cuda_function(int a, int b);
int main(){
//statements
cuda_function(23, 34);
//statements
}
cuda.cu file:
#include <cuda.h>
__global__ void kernel(int a, int b)
{
//statements
}
void cuda_funct... | stackexchange/codereview |
IMap<Long, Vehicle> mapVehicles = // get all vehicles , total 2500 unit
Collection<Vehicle> collectionVeh = mapVehicles.values(); // fast
// I want to sort it so wrap to ArrayList
List<Vehicle> listVehicle = new ArrayList(collectionVeh .values()); // very slow
Collections.sort(listVehicle );// fast
How can i convert ... | stackexchange/codereview |
I've tried the following:
@implementation UIToolbar (Image)
-(void)drawRect:(CGRect)rect {
UIImage *img = [UIImage imageNamed: @"navigationBar.png"];
[img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
Without any success, but it works perfectly with the exact same code ... | stackexchange/codereview |
My run script start.bat
java -server -Xmx1024m -Xbootclasspath/p:"/Java/Server Applet/bin" applet.Server
When I execute it from SSH terminal ./start.bat
I get this:
Exception in thread "main" java.lang.NoClassDefFoundError: applet/Server
Caused by: java.lang.ClassNotFoundException: applet.Server
at java.net.UR... | stackexchange/codereview |
I'm trying to set up a project listing where when I set up a project it has a project number (example 10-1000). I want to be able to add a new project and have it append 1 to the project number, (example, next project # will be 10-1001). I am having a bit of trouble figuring out the first step.
here is my models.py
c... | stackexchange/codereview |
Can anybody recommend a secure password generator available under a Apache or LGPL licence for Java?
| stackexchange/codereview |
I'm trying to use SPVisualDev to build and deploy my SharePoint feature.
It builds the WSP but it won't deploy it, failing with the following message:
Failed to deploy solution 'MyProject.wsp'. Could not load file or assembly 'Microsoft.SharePoint.intl.resources, Version=12.0.0.0, Culture=en-US, PublicKeyToken=71e9bc... | stackexchange/codereview |
If you have a filename such as "Committee minutes [October 2010] - hq.doc", how do you get Powershell to replace the square brackets? The following doesn't work:
ls -filter *`[*`]* | foreach -Process { Rename-Item $_ -NewName ($_.Name -replace '\[', '\(') | Rename-Item $_ -NewName ($_.Name -replace '\]', '\)')}
I get... | stackexchange/codereview |
I need to deploy an application. I don't need registry, so I thought about just copying the DLL and exe files to the client desktops (there are only three). What are the disadvantages of this in comparison to using clickonce deployment from a memory stick?
| stackexchange/codereview |
I am uploading an rsa private key (.pem file) to my website and using fopen to read the contents but lately I keep getting the same error over and over without making much sense.
HTML
<form enctype="multipart/form-data" action="upload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" /... | stackexchange/codereview |
In order to work with some client information I have been parsing a 3MB XML file with hpricot... but hpricot takes quite some time to parse the file on a regular basis.
I am thinking about populating this data to a MySql db (once a week) so that I can work with the data directly on mysql with rails.
The file is basical... | stackexchange/codereview |
I created a function in C called 'remover' that is used to remove a struct of the array 'lista'. This function resizes 'lista'. The problem is that I tried to print the elements of 'lista' but it prints strange things.
When I don't free 'lista_aux' the program runs normally. Why does it happen?
typedef struct localidad... | stackexchange/codereview |
I have implemented a secure SSL connection on the SQL Server 2005 server. I use the "Microsoft SQL Server Management studio" to connect to the SQL Server and I check the "Encrypt Connection" check box in the options section. The connection is successful and when I look at the connection properties in the mgmt studio,... | stackexchange/codereview |
I have a library of footage encoded as H.264/AAC inside MP4 containers. Right now I can successfully stream the footage to the iPhone using Apache and mod_h264.
What I'd like to be able to do is tell the iPhone to play three clips back to back.
The natural solution seems to be to create a .m3u8 playlist and point the p... | stackexchange/codereview |
I am creating a XML file of image urls, and I have to parse this URL when I am writing out the XML.
Some rows in the database don't have a URL, so how do I skip those rows and don't process?
Something like:
images = Image.limit(100)
images.each { |i|
blah = ''
if i.url ???
# process stuff here
else
b... | stackexchange/codereview |
Hi i am trying to use simple_html_dom for a text(website) clustering project but i have run into a weird problem. When i use echo inside the outer loop the url and the snippet are what you would expect but when i try to echo the array contents i have gathered outside the loop the urls are ok but the snippets are gone a... | stackexchange/codereview |
I have two scripts, one for the Insert, and another for Update.
My update button script is using the latest inserted Id, and goes on something like this:
Update tblsurvey
set WouldLikeToBeSeenOnSite = 'sadffas'
and DislikedOnSite = 'asdfsadfsadf'
and OtherNewsWebsitesRead = 'asdfsadfa'
and LikedOnOtherNewsSites = 'asdf... | stackexchange/codereview |
found this batch file with timer. I'm not very familiar with *.bat files but have foundout the following
THAT 01 is the time in seconds
PING -n 01 127.0.0.1>nul
however im not sure what the rest means rather then just go and use it could someone please explain what all other items in this snippet do/ represent
thanks... | stackexchange/codereview |
I've got a Visual Studio 2010 solution with only a website in it. It contains lots of Javascript files which I would like to minimize automatically when doing a build. There's one good solution but it dpeends on the post-build step of .NET projects and a website does not have any build events.
One alternative is of co... | stackexchange/codereview |
I've been tasked to create a policy for our organization to determine which developers receive a license of ReSharper (this could apply to other tools like CodeRush, etc.). For example, if the organization owns 10 licenses but the team has 20 developers, how to determine which 10 developers get the licenses when maybe ... | stackexchange/codereview |
I'm using jquery to pop up an AddThis share box when I click on a link that surrounds an image. It works great. The jquery code I'm using is here:
//added to show/hide add-this
$('a#slick-toggle').click(function() {
$('#atBox').toggle(100);
return false;
});
And this is my relevant htm... | stackexchange/codereview |
Being new to crystal, I am unable to figure out how to compute rows 3 and 4 below.
Rows 1 and 2 are simple percentages of the sum of the data.
Row 3 is a computed value (see below.)
Row 4 is a sum of the data points (NOT a percentage as in row 1 and row 2)
Can someone give me some pointers on how to generate the di... | stackexchange/codereview |
In my application I load a couple of images from JPEG and PNG files. When I place all those files into assets directory and load it in this way, everything is ok:
InputStream stream = getAssets().open(path);
Bitmap bitmap = BitmapFactory.decodeStream(stream, null, null);
stream.close();
return new BitmapDrawable(bitmap... | stackexchange/codereview |
The facebook comment plug in is not working with smarty template. The code I am using is given below
<div id="fb-root"></div> {literal}<script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1"></script>{/literal} <fb:comments width="425"></fb:comments>
Please check this and let me know if there i... | stackexchange/codereview |
Thanks for the help in advance... this one has been killing me for the past couple of hours.
I am currently pulling in a JSON feed and storing it in a NSDictionary & NSArray. I'm trying to add an annotation for each item being pulled in (time, type, latitude, and longitude). So far, I can extract each value from the Ar... | stackexchange/codereview |
I have a string as follows:
'[quote]Originally Posted by <strong>first last</strong><br/>zzzzzzzzz[/quote]adaaaaaaaaaaaaaa'
I would like to get the first occurence of [quote] and the last occurence of [/quote] and remove everything in between.
| stackexchange/codereview |
I wouldn't call myself a master regarding regex, i pretty much just know the basics. I've been playing around with it, but i can't seem to get the desired result. So if someone would help me, i would really appreciate it!
I'm trying to check wether unwanted words exist in a string. I'm working on a math project, and i'... | stackexchange/codereview |
My button doesn't have a blue focus ring around it, even though it has focus.
I've got a component with a RadioButtonGroup and a Button. After a selection is made in the RadioButtonGroup, focus is switched to the Button. I added click="focusManager.setFocus(myCloseButton)" on the VBox.
After, a radioButton is selected... | stackexchange/codereview |
Using Netbeans 6.9.1 on Ubuntu 10.10 Beta, when I try to create a new web application, none of checkboxes on the frameworks page are selectable. Here are my exact steps:
File > New Project
Choose Java Web from Categories and Web Application from Projects, and click Next
Accept the defaults on the Name and Location pa... | stackexchange/codereview |
I'm looking for a class library or namespace that pretty fully represents the HTML 4.0 or HTML 4.01 specification. Does anybody know of anything like this? System.Web.UI looked promising at a glance, but I'm not seeing what I'm looking for there.
| stackexchange/codereview |
When I create an executable jar with dependencies (using this guide), all properties files are packaged into that jar too. How to stop it from happening? Thanks.
UPDATE: I tried to exclude them using the Maven resources plugin, but then my application won't find the properties files when I run it in Eclipse (right clic... | stackexchange/codereview |
I recently started programming my first node.js. However, I discovered that I am unable to create a contact me form that sends straight to my email since I can't find any modules from node that is able to send emails.
Does anyone know of a node.js email library or an sample contact form script?
| stackexchange/codereview |
As someone learning Java from scratch, who knows a little Python, I have been wondering whats with all the access modifiers (public, static, protected...) in Java. I know what they mean, but why use them?
It's just something that's been bugging me, because whenever I write a new class and I write the instance variables... | stackexchange/codereview |
Here's my error:
*** Uncaught remote exception! (Exceptions are not yet supported across processes.)
android.util.AndroidRuntimeException: { what=1008 when=368280372 } This message is already in use.
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:171)
at android.os.Handler.sendMessageAtTime(Handler.java:4... | stackexchange/codereview |
I want to access a webservice to fetch alot of data (e.g. product lists/details/search results) and display this.
Are there any best practices for this type of operations?
Performance-wise, is there any better way than retrieving, parsing and displaying text data on each request and maybe load images in the background?... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.