instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm sure someone already asked this question, but after searching for more than 1 hour on google, I decided to ask my question here.
I want to itterate over an array excisting of different strings/texts.
These texts contain strings with both ##valuetoreplace## and #valuetoreplace#
I want to make to preg_matches:
$patt... | stackexchange/codereview |
I want to create a usercontrol that behaves like the Label usercontrol or the HyperLink usercontrol.
What I mean - the Label usercontrol has the Text attribute, and the text can also be set with the following way:
<asp:Label runat="server" id="lblTest">Text Here</asp:Label>
If I wish to create a usercontrol that can s... | stackexchange/codereview |
I'm new to jquery, and after doing quite a bit of reading and experimentation without solving this myself would like help with two problems on sqlsolver_dot_com:
1) The last tab visited always stays the a:visited color, even with a page refresh. Visiting another tab changes that but I'd like them all to appear unselect... | stackexchange/codereview |
In the properties windows i have selected "Collect CPU Counters" and moved "L2 misses" to the right column. I ran the CPU sampling for console app. Where can i see this value?
| stackexchange/codereview |
I am working on a project where we need to fetch data from a WCF service. The service code looks up the database thru the Entity Framework. However inorder to prevent sending down EF generated classes across the wire into the proxy generated by the client we have decided to map the values from the EF classes to custom ... | stackexchange/codereview |
module <name> =
struct
..
end;;
module type <name> =
struct (* should have been sig *)
..
end;;
| stackexchange/codereview |
[See update for a more precise specification ...]
I recently started using the jquery jeditable plugin for my asp.net mvc app. So far so good.
The last post at http://forums.asp.net/p/1541654/3789265.aspx has been incredibly useful and I ended up using it almost verbatim. However, the modeled error behavior is not quit... | stackexchange/codereview |
Consider the following code that I'm using when displaying a Customer's mailing address inside a table in a view:
<%: Customer.MailingAddress == null ? "" : Customer.MailingAddress.City %>
I find myself using a fair amount of these ternary conditional statements and I am wondering if there is a way to refer back to th... | stackexchange/codereview |
I need to build a batch file that runs on a directory and digs inside for suitable c# projects to compile. (and compile them of course).
I don't know the name of the projects inside the directory.
I can assume all project are in c# and written in VS2008 and above (if that helps).
| stackexchange/codereview |
I'm looking for a Ruby on Rails CMS and I want it to support multi-language text input.
I mean, for example, I would like to insert a text into a section, in three different languages. But, I don't need a multi-language admin panel though.
Could anyone recommend me any?
Thanks,
Brian
| stackexchange/codereview |
I have a strange problem: I want to generate a new sound file out of two soundfiles and silence.
sound1: 2 seconds long
+
silence: 2 seconds silence
+
sound2: 2 seconds long
When I try the code below, I get a 6 seconds long soundfile with all the parts, but in a different order! The order is: sound1, sound2, silence
I ... | stackexchange/codereview |
I have a table tbl_sky that has 2 properties name and model and I would use Hibernate annotation like;
@Entity
@Table(name="tbl_sky")
public class Sky implements Serializable {
private String name;
private String model;
private String status;
@Id
public String getName() {
return name;
}... | stackexchange/codereview |
I need some advice regarding an application I wrote. The issues I am having are due to my DAL and connections to my SQL Server 2008 database not being closed, however I have looked at my code and each connection is always being closed.
The application is a multithreaded application that retrieves a set of records and ... | stackexchange/codereview |
What, if any, is the difference between list and list[:] in python?
| stackexchange/codereview |
this is an example of the XML I want to scrape:
http://www.dreamincode.net/forums/xml.php?showuser=335389
Notice that the contactinformation tag has many contact elements, each similar but with different values.
For example, the element that has the AIM content in it, how can I get the content of the Value tag that's i... | stackexchange/codereview |
I have 3 code snippets:
(1)
x = array([[]]) #x.ndim=2
x=append(x,[[1,2]]) #after this, x.ndim=1???????????????????
x=append(x,[[3,4]],axis=0) #error b/c dimension
(2)
x = array([[]]) #x.ndim=2
x=append(x,[[1,2]],axis=0) #error b/c dimension?????????????????
(3)
x=append([[1,2]],[[3,4]],axis=0) #Good
Th... | stackexchange/codereview |
Is there a workaround for the Flash 10 clipboard restriction that will only activate the clipboard if interacting with the flash movie? More info here: http://www.adobe.com/devnet/flashplayer/articles/fplayer10_uia_requirements.html This basically will stop you from automatically assigning the clipboard from Javascript... | stackexchange/codereview |
I am working in a java application. It is desktop application for Windows Operating System. I am creating a installer for my application. My application works fine for the system where jdk is insalled. I also want to run my application where jdk/jre is not present.
For this i am providing jre1.7 along with the installe... | stackexchange/codereview |
I am trying to download Xcode from the Apple Developer site using just wget or curl. I think I am successfully storing the cookie I need to download the .dmg file, but I am not completely sure.
When I run this command:
wget \
--post-data="theAccountName=USERNAME&theAccountPW=PASSWORD" \
--cookies=on \
-... | stackexchange/codereview |
I have a div the contents of which constantly changes based on a server side process. Currently I use jQuery load to poll the server every 3 seconds to get any updates.
This is what I have:
function poll() {
reloadPage();
setTimeout("poll();", 3000);
}
function reloadPage() {
$("#mydiv").load(locati... | stackexchange/codereview |
What is the advantage of using
git archive master/foo | tar -x -C ~/destination
to deploy a copy of /foo vs. just copying from the the working copy with
cp foo ~/destination/foo
So, unless for some reason you don't want to copy everything over from that sub directory foo in master (or whatever branch you happening t... | stackexchange/codereview |
I need to replace a path stored in an Oracle DB text field. However paths have been specified with different cases (ie MYPATH, MyPath, Mypath, mypath). When using a combination of REPLACE and UPPER, it does not work as I need it to, ie:
UPDATE Actions
SET Destination = REPLACE(UPPER(Destination), 'MYPATH', 'My_New_Pat... | stackexchange/codereview |
I am trying to validate a textfiled value on ajax request call.
and I want to turn the color of the border of text field as green if the value is valid.
I tried doing so by calling Ext.getCmp('loginid').style = 'valid-text';
and also I tried Ext.getCmp('loginid').filedClass = 'valid-text';
where valid-text has the code... | stackexchange/codereview |
I have a bunch of table rows that I'm hiding/showing using checkboxes and jQuery. The checkboxes have id="game-XYZ" and the rows have class="XYZ". Currently, I'm using the seriously bloated jQuery:
$(document).ready(function(){
if ($("#game-9man").is(":checked")){ $(".9man").show(); }
else{ $(".9man").hide(); }... | stackexchange/codereview |
I stripped down my app but this should give you an example of what i'm doing
def run_app(f):
p = Popen(['/usr/bin/app'],stdout=PIPE)
while True:
o = p.stdout.readline()
if o == '' and p.poll() != None: break
reactor.callFromThread(f, o)
class Echo(Protocol):
def connectionMade(self... | stackexchange/codereview |
We're using the Google Maps API for Flash (v1.19a) and when we add a marker to it or an overlay, the map gets blurry...
Does anyone have a workaround for this?
| stackexchange/codereview |
Here are three log exmaples:
127.0.0.1 - - [17/Sep/2010:14:03:07 +0800] "GET /docs/logging.html HTTP/1.1" 200 24040 "http://localhost:8000/docs/manager-howto.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
0:0:0:0:0:0:0:1 - - [26/Oct/2010:09:53:30 +0800] "GET /docs/images/tomcat.gif... | stackexchange/codereview |
After taking a photograph with an Android phone, I would like to put a timestamp in the lower right corner. How can one do this without exhausting address space/memory? Typically, when I open large images, I get out of memory errors.
Do some phones support a Camera.Parameters option to do this?
| stackexchange/codereview |
I'm writing an API wrapper to a couple of different web services.
I have a method that has an article url, and I want to extract text from it using alchemyapi.
def extractText(self):
#All Extract Text Methods ---------------------------------------------------------//
#Extract page text from a web URL (ignoring... | stackexchange/codereview |
Where can i found sample code for using IOSharedDataQueue ( i want to send data from user-space to kernel-space)?
| stackexchange/codereview |
In my application i have datagrid with simple type of cells - string, integer.
I want to change one of the cell from string to be combobox.
i try to populate the in each line different inomration, but did not see anything.
It means that i see comboBox in each cell of the column but the comboBox is empty.
DataGridViewCo... | stackexchange/codereview |
As the title says: How can I plot a legend outside the plotting area when using base graphics?
I thought about fiddling around with layout and produce an empty plot to only contain the legend, but I would be interested in a way using just the base graph facilities and e.g., par(mar = ) to get some space on the right of... | stackexchange/codereview |
i have two view helper
module Admin::CategoriesHelper
def test
return "a"
end
module CategoriesHelper
def test
return "b"
end
i invoke test method in views/admin/categories/index.html.erb
====================================================================
if i use Admin::CategoriesHelp... | stackexchange/codereview |
According to the documentation:
The configuration file consists of
sections, led by a [section] header
and followed by name: value entries,
with continuations in the style of RFC
822 (see section 3.1.1, “LONG HEADER
FIELDS”); name=value is also accepted.
Python Docs
However, writing a config file always u... | stackexchange/codereview |
I am encountering an issue while posting a variable with Xcode:
While running this code the app crashes while posting the variable to a webservice:
NSArray *array = [stringFromFile componentsSeparatedByString: @","];
NSString *time = [array objectAtIndex:1];
UTCorLocal = time;
NSLog(@"%@", UTCorLocal);
UTCorLocal vari... | stackexchange/codereview |
I am wondering what do the new C# 5.0 asynchronous features mean for Rx - Reactive Extensions? It seems to be not a replacement but they seem to overlap - Task and IObservable.
| stackexchange/codereview |
I have a asp.net page with a datalist with a textbox and a button on it, on page load the textbox gets text in it, if I change the text and press the button the text doesn't get updated.
What am I doing wrong?
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataTable table = ... | stackexchange/codereview |
If I have a designer make the necessary graphics, what do I need to learn to make a flash based game?
Is it action script only?
I already understand the backend server work that would need to talk to the 'front end' part of the game i.e. how the flash game will make requests to the backend servers for storing/retrievin... | stackexchange/codereview |
I need to filter an array of objects using a flat array of whitelisted values.
$objects = [
3 => (object) ['tid' => 3],
12 => (object) ['tid' => 12],
9 => (object) ['tid' => 9],
];
$whitelist = [3, 4, 9, 11];
The whitelist doesn't contain 12, so that object should be removed.
Desired output:
[
3 => (o... | stackexchange/codereview |
I try to populate the content of a c++ map within a loop scope.
#include <set>
#include <map>
map<int, set<int> > maps;
for (int i=0; i<10; i++) {
set<int> seti; // content: a set of integers
seti.insert(i);
seti.insert(...);
maps.insert ( pair<int,set<int> >(i,seti) );
}
The question is:
does maps.i... | stackexchange/codereview |
I am working with a schedule that specifies times of day, such as 10:30 AM. I do not know the dates, however. I'm going to store these as values in a NSDictionary and would like to deal with them in a straightforward way.
I can't use NSDate, since I don't have a date. At least, not in a straightforward way.
The other w... | stackexchange/codereview |
again i have got a problem with socket programming in Android. My Problem is Selector.select() returns zero that there are no SocketChannels ready for writing. And again the same code works in normal Java but does not work in Android. Here is my code:
package com.test;
import java.io.IOException;
import java.net.InetS... | stackexchange/codereview |
<?php
$parent_cat = 57;
$child_cats = get_categories('child_of='.$parent_cat);
if($child_cats) :
echo '{ ';
foreach($child_cats as $cat) {
echo $sep . $cat->cat_name;
$sep = ', ';
}
echo ' }';
endif;
?>
The above code outputs a number of categorys in this format:
A Cut Above,A20Labs,AMCH,
how would... | stackexchange/codereview |
I have the following code:
tabBarViewController = [[TabBarViewController alloc] init];
mvc = [[MapViewController alloc] init];
tvc = [[TableViewController alloc] init];
tabBarViewController.viewControllers = [NSArray arrayWithObjects: tvc, mvc, nil];
However, when opening up in the simulator, I don't see any title or ... | stackexchange/codereview |
Any help would be much appreciated. Here is the code:
<?php include 'header_admin.php'; ?>
<?php
include 'dbc.php';
page_protect();
checkAdmin();
?>
<?PHP
require_once "Mail.php";
$con = mysql_connect("host","username","pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("db_name", $con... | stackexchange/codereview |
I am working on a windows form app like most development it is usually useful to see output. I am wondering what methods you use to see output in a windows form app.
PS. I am new to visual studio in general.
| stackexchange/codereview |
I am trying to assign different actions to same html form according to different submit buttons.
Can I do something like this ?
<FORM>
------
<INPUT type="submit" value="DoSomething" action="DoSomething.pl" method="POST">
<INPUT type="submit" value="DoSomethingElse" action="DoSomethingElse.pl" method="POST">
<FORM/>
| stackexchange/codereview |
Consider a TFS 2010 server with "Build Service", "Build Controller" and "Build Agent" running on the same system. Things work 'most of the time', however occasionally I have to restart the 'Build Service'. Few questions:
What is the Build Service?
Do the build agents talk to anything other than the build controller (... | stackexchange/codereview |
This is the question:
Im using Lucene.Net, and Im importing like ~255k documents with ~6 fields each. Ive tried a few things, but the process takes a lot (~1day). Im not using any strange analyzer, just the standard analizer and Im tokenizing only one of the fields. I tried changing the max merge docs and nothing.
Has ... | stackexchange/codereview |
I am using httpwebrequest and httpwebresponse to send request and get response respectively.
For some reason my connection gets closed before the response is recieved.
Here is my code :
WebRequest webRequest = WebRequest.Create (uri);
webRequest.ContentType = "application/x-www-form-urlencoded";
... | stackexchange/codereview |
public class Zoo{
public static void main (String[] args){
Animal animal1 = new Animal ("Giraffe", 5, 'M');
Animal animal2 = new Animal ("Lion", 10, 'F');
System.out.println (animal1.getName () + " " + animal1.getAge () + " " + animal1.getGender ());
System.out.println (animal2.get... | stackexchange/codereview |
hi folks
I use jquery and it gives me error : "Microsoft JScript runtime error: 'url' is null or not an object"
when I use "$.ajax(window.location.href");" inside window.location.href is like this : "http://localaddress/mypage.aspx?id=2"
How I can solve it ?
| stackexchange/codereview |
I am sending a POST request to a URL. It works correctly in python but in php-curl, I always get a bad request error (i.e. my POST data is not as expected by the server)
Python code: (works correctly. 200 OK)
import httplib, urllib, json
def SendRequest(param1):
url = "api.xyz.com"
body = {"version": "1.0", "d... | stackexchange/codereview |
I'm trying to debug a WordPress video player theme which is using this standard AJAX request to populate a list of videos in a category:
function getdata(What) {
try {
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) {}
xmlhttp.onreadystatechange = Screen... | stackexchange/codereview |
I have a class declaration
public class Customer
{
public string id { get;set;}
public Address CustomerAddress { get;set;}
...
...
...
public string EmailAddress {get;set;}
..
..
..
}
during debugging i want to hide some properties from being displayed like (id,CustomerAddress),what is the way to... | stackexchange/codereview |
I have an array of classes and IDs and am trying to iterate through and append to those elements. The code below works in all browsers apart from IE7 and below. IE7 and below throw an exception telling me that 'length' is null or undefined. Been wrestling with it for a while now. Any ideas?
Code is here: http://gist.gi... | stackexchange/codereview |
this is an odd request but here is the scenario. I am writing custom maven plugins that basically manipulate build versions then will install or deploy the modified jar. The plugin is called both via command line and a build profile.
The plugins all have similar behavior, so the solution will work for all. Currently I... | stackexchange/codereview |
Just In Time Compilation has a number of theoretical advantages: it has more information about the machine, the state of flags, and how the code is used.
It allows you to avoid time-consuming compilation before running, speeding up the development cycle.
Simplistically, JIT compilation seems superior as an approach; th... | stackexchange/codereview |
I'm trying to make an app that records video and stores the files In a table view. I want to be able to see a preview on each cell and when I press a cell, a video that was previously recorded and stored here starts to play. What's the best way to do this and if there's any tutorials or video tutorials, can someone red... | stackexchange/codereview |
I get the error PHP Fatal error: Call to a member function execute() on a non-object refering to the ....->execute() line whenever I call something like
$select_str = 'select id, stamp, lat, lng, spd from gps';
$select = $db->prepare($select_str);
$select->execute();
or
$insert = $db->prepare('insert into gps (id, la... | stackexchange/codereview |
When I implement the RoleProvider class and call Roles.IsUserInRole(string username, string roleName), code execution first goes to the method 'GetRolesForUser(string username)'. Why is this? I don't want to iterate all roles when I am just looking for the single value of whether that user belongs in one role. Is th... | stackexchange/codereview |
I'm trying to get the number of registers per thread for each of my kernels in my CUDA program. This will help me use the CUDA Occupancy Calculator (http://developer.download.nvidia.com/compute/cuda/CUDA_Occupancy_calculator.xls) as to determine the highest occupancy of the GPU for my program.
However, I have generated... | stackexchange/codereview |
Wonder if anyone can help me. I have a setup whereby a main menu presents the main game as a modal view controller. At this point it also stops playing the main menu music.
The problem is that when the game view controller dismisses itself (e.g when user quits game) and returns to the main menu I cannot get the main me... | stackexchange/codereview |
I want to make an http server on one android application and get its contents from another emulator.
Also other than http protocol, is there any other networking API + sample code that someone give me to connect and get content from one emulator to another?
| stackexchange/codereview |
I want to do this:
enum Foo
{
[Display="Item One"]
ItemOne,
}
So that Intellisense will display it like in the attribute instead of the actual name.
I know it's possible, I've seen it before.
| stackexchange/codereview |
I am using C#. net and SQL server 2005.
I am uploading files (Word, PDF) into the database, and displaying on page using grid view.
I have different claim numbers, like co50000006 (like 10 rows). I mean the claim number has different files. I have other claim numbers on my table. (like c08000131, c01000001).
I want to ... | stackexchange/codereview |
I have a domain and port number (636) as well as a username and password.
I am trying to figure out a way to connect to this AD via Secure LDAP and get a users 'givenname', 'sn', 'mail', and probably a few custom attributes.
However I have no idea how to do this in C#.
I think that Microsoft may have a method for th... | stackexchange/codereview |
Is it possible to have a DynamicObject implementation that can be called in chain keeping a null reference to end if anywhere in the path a null reference is encountered, without throwing any exceptions?
a.b.c.e
for example: if a is null then a.b.c.e is null, or if c is null c.e is null etc.?
Very much like the Maybe ... | stackexchange/codereview |
The problem happens only in IE7:
When I go to the next tab some elements (text input fields, buttons) from the previous tab are not completely 'hidden' and shown on the next tab (just on top of it). Buttons disappear when I mouse over them, but text inputs stay there forever.
I am using jQuery 1.4 and JqueryUI 1.8
Has ... | stackexchange/codereview |
I have a common GWT application that is using (trying to) Rocket-Framework to implement a CometServerServlet.
After I have registered my servlet in web.xml and my app.gwt.xml, like this:
App.gwt.xml:
<servlet path="/server" class="myapp.server.MyCometServlet"/>
web.xml
<servlet>
<servlet-name>myCometServlet</servlet... | stackexchange/codereview |
Does anybody knows how to fill up a NSTableView using binding values from a NSDictionary?
Thanks in advance.
| stackexchange/codereview |
I would like to be able to take 2 csv files as input, join them (SQL style) on a specific column, and output a new csv file which contains all file1 data, plus one of the columns of data from file2.
Any tips on what the best way to achieve this would be? Since SQL offerse the join command then possibly some method of t... | stackexchange/codereview |
I have this bounding box expressed in latlong:
POLYGON ((51.2913 -13.5599, 51.2913 13.1589,
35.0325 13.1589, 35.0325 -13.5599, 51.2913 -13.5599))
widthDeg="26.7188" heightDeg="16.2588" areaDeg="434.4156254400001"
I'd like to get the equivalent width/height/area in metres.
I found this formula:
1 degree of longitude ... | stackexchange/codereview |
Is it possible to find all entries in a crontab that run between time X and time Y without having to parse the cron time entries myself? I'm mainly concerned with time hour and minute, not so much the other 3 time fields.
| stackexchange/codereview |
I'm attempting to run this Oracle query...
SELECT COUNT(*) as total,
q1
FROM exit_responses
WHERE sdate BETWEEN '03-Aug-10 12:00:00 AM' AND '03-Nov-10 12:00:00 AM'
GROUP BY q1;
...but I keep getting this error...
Error starting at line 3 in command:
SELECT COUNT(*) as total, q1 FROM exit_response... | stackexchange/codereview |
Does anyone know of documentation that describes all of the default settings for a binding in WCF? It would be great to know the default settings on both the client and server side.
Maybe there's an easy way to programmatically display all the current settings of a binding if documentation doesn't exist???
For example... | stackexchange/codereview |
Assumptions for question:
Database Agnostic
Both queries will return just one row due to the values of X and Y
Question:
Which query is faster, and is one a better practice?:
SELECT * FROM my_table WHERE X = 'some value' AND Y = 'other value';
Or
SELECT * FROM my_table WHERE X = 'some value';
Basically, do you bene... | stackexchange/codereview |
I am new to programming (previously only did html/css/design) trying to start learning RoR via the book Simply Rails 2. However I want to start with the most recent versions of Ruby(1.9.2) and Rails (3) so I am forced to get everything configured without the book. I have looked a lot via google and on stackoverflow. Wh... | stackexchange/codereview |
I keep getting an error saying that a specific column, doesn't exist for b.BookCode But I am fully aware that it does exist! I just wanted to make sure after staring at this for so long that I am not missing something obvious.
SELECT AuthorLast, AuthorFirst, OnHand, Title
FROM (Inventory i, Author a, Book b)
WHERE (i... | stackexchange/codereview |
Firstly, my HTTP POST through a URL accepts 4 parameters. (Param1, Param2, Param3, Param4).
Can I pass the parameters from the database?
Once the URL is entered, the information returned will be in text format using JSON
format.
The JSON will return either {"Status" : "Yes"} or {"Status" : "No"}
How shall I do this i... | stackexchange/codereview |
Ok, let me start out by saying that I am brand new to MVC. With that out of the way, I am using the version of MVC that ship with Visual Studio 2010. This is also using Visual Basic, but I am sure that you can figure that out once you see the code.
I am trying to validate my data, and the validation process is working ... | stackexchange/codereview |
I have a program in which the user needs to login with user name and password.
I'm checking the name from the sys.syslogins table in master db.
But for the password I receive a string with (probably) coded characters like this (1?????????????).
Now what can I do in order to decode that string and take the password in o... | stackexchange/codereview |
I have a c# winform application that uses SQL 2005 Express. The application is typically deployed on home computers and laptops.
The user can purchase more content for their database from my web server.
When they do this, I want to let the user update their database by running an SQL script stored on my web server; ... | stackexchange/codereview |
I'm looking to make a library that can be either merged into a swf at compile time or loaded into a swf at runtime. The way I understand it, .swc files are generally merged into a swf at compile time, and .swf files are generally loaded into a swf at runtime. Is there a way I can have one file that can do both?
| stackexchange/codereview |
This is the un-redirected output (if you don't know what module is, it doesn't matter much):
$ module help null
----------- Module Specific Help for 'null' -----------------------
This module does absolutely nothing.
It's meant simply as a place holder in your
dot file initialization.
... | stackexchange/codereview |
How can I hide a ListViewItem in a bound ListView? Note: I do not want to remove it.
| stackexchange/codereview |
i am getting following error
#|2010-10-31T19:13:38.127+0530|SEVERE|glassfish|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=Thread-3;|StandardWrapperValve[Grizzly Cometd Servlet]: PWC1406: Servlet.service() for servlet Grizzly Cometd Servlet threw exception
java.lang.IllegalStateException: Make sure yo... | stackexchange/codereview |
Essentially, I currently have an iPhone app that can query and parse an XML file on my server. Right now, I currently have to manually update and upload my XML file every morning so my users can have the updated information. I would like to automate this process, which would essentially entail parsing various websites ... | stackexchange/codereview |
I need some help accessing a value in my arrayCollection in Flex 3.
var f:String;
I need to access the photoFilePath where series = f. So if f=2, then I need /pics/my2.png
So, pseudo code: myAc.(series="f").photoFilePath
<mx:ArrayCollection id="myAC">
<mx:Object label="Label 1" series="1" photoFilePath="/pics/my1.... | stackexchange/codereview |
Is there a good site for tracking what your app's ranking is per category on Android market. A long time ago androidstats.com seemed to work, but its long history.
| stackexchange/codereview |
I don't quite understand this Markov... it takes two words a prefix and suffix saves up a list of them and makes random word?
/* Copyright (C) 1999 Lucent Technologies */
/* Excerpted from 'The Practice of Programming' */
/* by Brian W. Kernighan and Rob Pike */
#include <time.h>
#include <iostream>
#include <stri... | stackexchange/codereview |
I am trying to define the best way to refactor the project I am working on.
Due to lack of good design almost all project is made up of:
1) forms containing business logic
2) huge datamodules (1 per form + some extra ones)
3) some units that contain common code (libraries)
There is no OOP (except for some small areas),... | stackexchange/codereview |
I have a little question very simple this time I think...
How Have I to write my htaccess to do this instructions :
IF IS "/uploads" PATH INTO MY REQUEST, NOT REDIRECT AT ALL, JUST DO THE REGULAR REQUEST
ELSE DO THE REWRITERULE : RewriteRule (.*) http://theDestinationDomain.com/$1 [P,L]
I Have tested that :
RewriteEngi... | stackexchange/codereview |
How to test fileupload using SOAP UI.
There is a service which accepts file as input
I want to simulate that using SOAP UI
It gives me .
content should be inline .
| stackexchange/codereview |
From the Getting Started with Game Center doc...
Always check for network errors when reporting achievement progress to Game Center. If there
was an error, it is important for your app to store any progress updates for later retransmission.
This retransmission should occur at the soonest opportunity and without requiri... | stackexchange/codereview |
how can I export an AutoCAD file to PNG format in Java?
regards,
Wim
| stackexchange/codereview |
I'm building a jira soap client that will allow me to update Jira issues.
Problem is when I look up an issue using the getIssue() method, a RemoteIssue object is returned but has nil values in all the standard attributes like: key, summary, description, etc.
Here is my simplified code:
require 'rubygems'
require 'ji... | stackexchange/codereview |
I am in a predicament with input files. The project I am working on has added a jQuery extension that masks all input types and makes them more 'vibrant'. However it has also caused a lot of trouble in the updating of what is listed in these inputs. One such problem is the input with type file. It currently will not ch... | stackexchange/codereview |
mysql
create temporary table t2
select min(id)
from mycontent
group by download_link;
ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction
| stackexchange/codereview |
Assuming I had a collection like this..
var list = new List<Item>
{
new Item
{
Name = "Software",
Price = 100
},
new Item
{
Name = "Software",
Price = 200
},
new Item
{
Name = "Hardware",
Price = 100
}
};
And the 'Names' are not going to be known, I want to write a LINQ query that will return a l... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.