instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a large data-set containing HTTP Header information taken from network measurements. I need to use the UserAgent present in those headers to identify whether the useragent is for a Desktop or a Mobile Device or anything else. After doing that I need to identify the particular mobile device and perform further an... | stackexchange/codereview |
When we use file_get_contents, what does PHP use to resolve the domain name (local DNS??).
I ask because I got this error:
Warning:
file_get_contents(http://external-domain.com)
[function.file-get-contents]: failed
to open stream: A connection attempt
failed because the connected party did
not properly respo... | stackexchange/codereview |
I have a problem with returning a list by executing a Select LINQ query. This is the query:
var data = Repository<EducationString>
.Find()
.ToList()
.Select(p => new EducationStringModel() {
Id = p.Id,
Title = p.Title,
... | stackexchange/codereview |
I have the following HTML:
<div class="top">
<p>Blah.</p>
I want <em>this</em> text.
</div>
What is the XPath notation to extract the string "I want <em>this</em> text."?
EDIT: I don't necessarily want a single XPath expression to extract the string. Selecting multiple nodes, and iterating over them to produce... | stackexchange/codereview |
My app setup is a UITabBar with three tabs. In each tab is a different UINavigationController.
In the first tab there is a refresh button - this loads in a load of data from the web (xml). The data is displayed in the three tab bars.
How do I release the UINavigationControllers whenever someone refreshes the data? The ... | stackexchange/codereview |
So, each rails project i seem to run into this problem and would be really grateful if someone could enlighten me:
With a "normal" setup when the form sits on the view immediately associated with the url/controller it is pretty straightforward, a render => :action on fail will display the validation message.
Now what i... | stackexchange/codereview |
I'm writing a description of how recursive functions are applied within lists using the align environment from amsmath in LaTeX. Here's the code:
\begin{align*}
& \reduce (+, 0, & [1, 2, 3, 4]) \\
= & \reduce (+, 0 + 1, & [2, 3, 4]) \\
= & \reduce (+, 0 + 1 + 2, & [3, 4]) \\
=... | stackexchange/codereview |
$ py twitterDump2.py
Traceback (most recent call last):
File "twitterDump2.py", line 30, in <module>
stream=tweepy.Stream(username,password,listener)
TypeError: __init__() takes exactly 3 arguments (4 given)
My code:
username="abc"
password="abc"
listener = StreamWatcherListener()
stream=tweepy.Stream(username,... | stackexchange/codereview |
The application i'm making starts Internet Explorer with a specific URL.
for instance, this fake url:
&aqi=g10&aql="3"&oq="3"
how can i change that url into this one:
&aqi=g10&aql="2"&oq="2"
by using an item from a combobox?
What i'm trying to do is changing a part of the URL with selecting an item in a combobox and... | stackexchange/codereview |
I have to place selected particular set of string from String Array into another array, here I need to combine both equalsIgnorecase with String startsWith method.
If I have comparator:
String a= "j";
if(a.startswith("j"))
it returns true only "j", but here i need "J" and "j" has case sensitive, how can I get this.
T... | stackexchange/codereview |
I created an object HashSet, and the value is an object (Triple) which is my own class. But I get a strange thing, when there are two equal objects on my HashSet, is it possible? Here is my overriding method for the equals in the class Triple
@Override
public boolean equals(Object other){
if (other == null) return f... | stackexchange/codereview |
I come into a trouble implementing a Flex 3.0.0 client that receives compressed HTTP body from server via a socket HTTP library (not class HTTPService ).
First it seems that nginx supports ONLY gzip compression with gzip on;. (Correct me if I'm wrong.) So, add HTTP header of Accept-Encoding: gzip to request.
Then I ge... | stackexchange/codereview |
Most of the times, when it comes to sort some data, we have two options:
Sort on the SQL server -- use ORDER BY clause
Sort on client one we get the data from the database
When would you use one over the other and why?
| stackexchange/codereview |
i need to set value for drop down box when form is load, so i'm able to create normal html element dynamically using javascript as below,
addOption(document.form[0].templateCategory,i,templateCategory[i]);
function addOption(selectbox, text, value) {
var optn = document.createElement("OPTION");
optn.text = text;
... | stackexchange/codereview |
Is this possible?
I have this right now for my fancybox:
$(document).ready(function() {
$("a#uploadImage").fancybox({
'titleShow' : false,
'width': 560,
'height': 620,
'autoDimensions': false,
'overlayOpacity': 0.6
});
});
Is it possible to later on to do:
$(docum... | stackexchange/codereview |
for a simple demo program I am using the SDL library to play a mpeg movie file.
Unfortunately the demo app should be executed on one of our windows 7 servers and it should be looked at remotely.
The problem is, that when I connect via RDP to the server the SDL window stays black - although the movie becomes played (I h... | stackexchange/codereview |
i'm trying to convert a 'TableController'-Class we used (without ORM) to generate dynamic SQL (actually the order column and direction is appended to the SQL).
Think of this 'TableController' as a class that have a function to return a list of Entities of a given class (known at runtime), in a given order (String colum... | stackexchange/codereview |
I don't know where I got the idea before but a year ago I wrote this in php:
<script type="text/javascript" src="http://www.mydomain.com/getmarkers.php"></script>
Now I'm ready to convert this website to an ASP.NET MVC website and I'm wondering what the best way is to convert this into something more 'normal?'.
The o... | stackexchange/codereview |
I am working with an IBM Maximo database that issues workorders automatically. When the workorders are issued (aka Inserted into the database workorder table), I would like to auto-assign a supervisor, owner, and owner group based on a set of criteria. This only needs to happen IF the supervisor, owner, and owner group... | stackexchange/codereview |
Hi I need to use the nested set model to mange product categories on my site. Does anyoune know of some good pre-built PHP libraries for handling nested sets in MySQL?
| stackexchange/codereview |
I'm doing some project maintenance on the source code for an MVC JS website running on JBoss. The project contains both Java and Javascript and I'm trying to figure out all of the frameworks that were used on this project, seeing that the Javascript code is somewhat lacking in project documentation.
In WEB_INF/lib/, I... | stackexchange/codereview |
Is there any PHP refactoring tool that would transform a huge noodle code to a proper function based one?
| stackexchange/codereview |
I got a Range check error in this piece of code:
{ This procedure is copied from RxLibrary VCLUtils }
procedure CopyParentImage(Control: TControl; Dest: TCanvas);
var
I, Count, X, Y, SaveIndex: Integer;
DC: HDC;
R, SelfR, CtlR: TRect;
begin
if (Control = nil) OR (Control.Parent = nil)
then Exit;
Count := C... | stackexchange/codereview |
I have a Spring WebFlow app that causes me grey hairs. What I'm trying to accomplish if validation succeeds is to simply show the same view with different data. This works. However, when invalid data are entered, I want to show the previous view, but with the erroneous values pre-filled and the error messages telling m... | stackexchange/codereview |
How can I use a parent checkbox to check and un-check all child checkboxes.
E.g.
Checkbox ID = 1
Child Checkbox ID = 1-1
Child Checkbox ID = 1-2
Grand-child Checkbox ID = 1-2-1
Grand-child Checkbox ID = 1-2-2
The code I've written so far uses the hat character ^ to check... | stackexchange/codereview |
Hey guys , thanx for the previous help
Before I try to explain my problem, you guys need to know what the code is about. Its pretty much "To write a game in which a user is to guess a random number between 1 and 1000. The program should read a number from the keyboard, and print whether the guess was too high, too low ... | stackexchange/codereview |
I have a plain ol UITableView, and I want its cells to have the delete button on the left. I know this is done using UITableViewCellStyleDelete.
I set up my tableview like so:
adjustmentTable.rowHeight = 35.0;
[adjustmentTable setEditing:YES animated:YES];
adjustmentTable.allowsSelectionDuringEditing = YES;
adjustment... | stackexchange/codereview |
I'm getting "You do not have sufficient permissions to access this page." when visiting this page from the admin menu /wp-admin/edit.php?page=edit.php But, if I take out the parameters at the end, it works "/wp-admin/edit.php" Also getting it on "/wp-admin/edit.php?post_type=page&page=edit.php?post_type=page"
Any i... | stackexchange/codereview |
I read different opinions about this question. Let's say I have an interface class with a bunch of pure virtual methods. I implement those methods in a class that implements the interface and I do not expect to derive from the implementation.
Is there a need for declaring the methods in the implementation as virtual as... | stackexchange/codereview |
Friends,
I have a problem............
Help me please........
Am getting the image url from my client, i want to store those images in my local folder.
if those images are in less, i will save them manually
But they are greater than 5000 images.........
Please give some code to down load all the images with PHP
| stackexchange/codereview |
If I have something like this:
Is there a way to fire the mouseover events on BOTH divs?
Edit: Sorry all .. I tried to simplify the problem so it was clear to understand and I forgot to mention I have more than 100 divs like that so probably those solutions don't work. I'm going to see if I can adapt them.
| stackexchange/codereview |
When I run java -jar MidiTest.jar, input a MIDI file, it throws:
Exception in thread "main" java.lang.NullPointerException
at com.sun.media.sound.StandardMidiFileReader.getSequence(StandardMidi
leReader.java:209)
at javax.sound.midi.MidiSystem.getSequence(MidiSystem.java:802)
at MidiTest.playMi... | stackexchange/codereview |
I'm making an app for the iPad with TV output to an extra screen. Everything works fine, but for some reason the TV out window disappears when I put the iPad in landscape mode. I commented all the code that makes it go to landscape automatically but as soon as I rotate in iPhone simulator, the tv output window goes awa... | stackexchange/codereview |
I'm attempting to connect to a SQL Server database within a Python script. I'm using SQLNCLI as provider on my connection string.
from win32com.client import Dispatch
connection_string = "Provider=SQLNCLI;server=%s;initial catalog=%s;user id=%s;password=%s"%(server,db_name,user,pwd)
dbConn = Dispatch("ADODB.Connectio... | stackexchange/codereview |
I have a data grid with an Combobox itemRenderer in it. What I have is a grid with a person id and person name (more stuff in grid but I am struggling with this). In the person name column I have an combobox with all the people on then system's names and id's.
What I want to do is when I select a person in the combobox... | stackexchange/codereview |
I have an array of UIImages that contains some .jpg images downloaded from the net when the app starts. I also have a table view that shows some of these images in its cells. The problem is that when I scroll the table, the app's memory consumption always increases up to the point where the app crashes due to low memor... | stackexchange/codereview |
Is there a way to enable a package to be executed as a script? For example:
[~]# easy_install /path/to/foo.egg
...
[~]# python -m foo --name World
Hello World
I've tried creating a __main__.py file inside my package but it's not being executed (I'm using Python 2.6). The following error is raised:
foo is a package an... | stackexchange/codereview |
set -e (or a script starting with #!/bin/sh -e) is extremely useful to automatically bomb out if there is a problem. It saves me having to error check every single command that might fail.
How do I get the equivalent of this inside a function?
For example, I have the following script that exits immediately on error wit... | stackexchange/codereview |
I mixed successfully a video and an audio track together and exported it to a new .m4v file.
My problem is now, that I want to mix the same video file and 2 audio files, which are two AVAssetTrack and have the same time lines, together. Like you do it in an audio editor where you can make a mixdown of two or more sound... | stackexchange/codereview |
I have a LAMP setup, with the mysql database essentially being a catalog of products. Since the database changes frequently as new products are added, it's cumbersome to manually maintain a list of keywords and popular phrases. The need to keep a keyword/phrase list is twofold: (1) for google adwords and other market... | stackexchange/codereview |
I'm experiencing a OutOfMemory error from Tomcat. This error started ever since I added Hibernate into the application.
I'm not using Spring, so I do all the open/close for Hibernate Sessions.
Below are a few Hibernate configs that I'm using. I create my SessionFactory in the Java code.
hibernate.current_session_conte... | stackexchange/codereview |
I want to apologize now for my bad english, i hope you will understand what i want:
I recently used the plugin jquery 'jScrollPane' on my website malossane.fr/sqf/. Everything is ok, but i appeared to not be able to make the only little change i wanted.
In fact , it is very simple in the idea, but my css scripting leve... | stackexchange/codereview |
I find the control+a and control+e hard to press, and for some reason control+shift+e doesn't seem to highlight the entire line.
I want to copy the line into my clipboard. How do I do this?
| stackexchange/codereview |
I'm looking for some strategic advise on the implementation of an application that supports multiple signin methods.
In fact I already have most of it working. In my application, I allow users to sign up and sign in using the classic approach: an account managed by me, where I offer all the user management features, s... | stackexchange/codereview |
I wonder if someone can help me translate a MySQL query to
a (Db)LINQ statement.
I’ve made a test case for what I want to do, so data and structure are
different than what I really want to do, but it’s just meant to get it
working.
In a MySQL database I have this table:
CREATE TABLE `mytable1`
(
`id` int(11) N... | stackexchange/codereview |
I want to have some content on my page (some images) change based on the date. With jQuery, how would this be possible?
Basically, I am leaving on vacation and my client needs something to change while I'm unavailable.
I've been able to do it with ColdFusion for another client, but I don't know how to do it with jQuery... | stackexchange/codereview |
Given I have an Artifact model and a User model: I would like to define two Artifact fields, opened_by and assigned_to, who values are User ids and inherit all of the proper association methods.
What is the proper belongs_to or has_one or has_many options I should set?
The goal is to be able to reference the user's n... | stackexchange/codereview |
I'm going through some book which tries to teach android development. In the book, the author outlines some of the directories found under res/. He mentions res/menu which holds XML based menu specifications. He also makes mention of res/raw which holds "general-purpose files." These folders were not created when I cre... | stackexchange/codereview |
Below is the schema I am trying to conform to:
<?xml version="1.0"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>The name of your data feed</title>
<link>http://www.example.com</link>
<description>A description of your content</description>
<item>
<title... | stackexchange/codereview |
For every entity that I create I write a unit test that just loads one record from the database to see if the query works and the data can be set on the entity correctly. You could see this as a unit test for the basic mapping. This should also confirm that a mapping file exists for the type and is set as embedded reso... | stackexchange/codereview |
I tried the following tutorials to create the push notification in Windows Phone 7.
http://www.sgtconker.com/2010/03/article-windows-phone-7-push-notifications/
http://www.silverlightshow.net/items/Implementing-Push-Notifications-in-Windows-Phone-7.aspx
I can create the channel uri in the WP7 emulator without any erro... | stackexchange/codereview |
I want to run a query, get the results and then iterate through the results of that query with another select statement using the values of the first statement in my 2nd statement (cursor).
I have 40 users in my db.
All the users have the same db schema structure.
I want to get the username via :
SELECT distinct usern... | stackexchange/codereview |
What browsers / engines already support ES5 [strict]?
| stackexchange/codereview |
I need to redirect incoming requests for a page to a subdirectory whilst keeping the URL displayed as originally typed.
This is to manage language pages easier.
For example, I want Spanish pages to be under www.mydomain.com/es. I want the URL displayed to remain www.mydomain.com/es.
But the actual page is held here - w... | stackexchange/codereview |
I need a regular expression that, given an ingredient line, will tell me the quantity of that ingredient. Here are some sample values:
8 ounces semisweet chocolate
6 eggs
3/4 cup sugar
1-tablespoon espresso powder
1/2 cup Dutch processed baking cocoa
1/4 cup unsweetened cocoa
1/2 cup confectioners' sugar
2 cups heavy ... | stackexchange/codereview |
I'm looking for the API to search for networks on the iPhone/iPad, and get data from them.
A private API is also OK, the app's for cydia.
I know it is possible, because I saw some wardriving apps (in the store). I want that functionality in my app too.
Could you please help me out?
Thanks,
Yvan
| stackexchange/codereview |
I'm looking for a symfony-based CMS, and I have heard about Diem and Apostrophe, but none of them offers all of the features I am searching for.
In your opinion, which of these CMS' is the most easy to extend? Do you know any other Symfony-based CMS I would want to consider?
EDIT : By 'to extend' I mean adding probably... | stackexchange/codereview |
I have a xml-structure thar looks a little like this:
<Page>
<Id>Page1</Id>
<Content>
<Header>This is the Header</Header>
<Body>This is the body</Body>
<Nested>
<NestedItem>
<Id>N1</Id>
<Content>This is a nested element</Content>
</NestedItem>
<NestedItem>
<Id>N2</Id>
<Content>This too ... | stackexchange/codereview |
I am using WIX here. 3.0 to be specific. I have created an installer in which I have about 6 features. 2 of which are websites for IIS. the problem is that, when I deselect the 2 web features, the installer still looks for IIS. How can I avoid that? Especially when I want to install the 4 features on a machine that doe... | stackexchange/codereview |
I created a toolbar with a translucent black style like so:
UIToolbar *toolbar = [UIToolbar new];
toolbar.barStyle = UIBarStyleBlack;
toolbar.translucent = YES;
I created a button item for it:
UIBarButtonItem *buttonItem = [[UIBarButtonItem alloc] initWithImage:nil
style:UIBarButtonItemStyl... | stackexchange/codereview |
I write the following code in matlab. from this code I take sequence of images as input from a folder and resize these images. Now I need to store them with new size on output folder. any one help me to update this code.
fileFolder = fullfile('D:','Texture DataBases','images3000');
dirOutput = dir(fullfile(fileFolde... | stackexchange/codereview |
I'm having a problem with non-ASCII characters in a where clause
Say for example a record in my table has :
column_a Bom D� Street
And I want to see if this will find the record:
SELECT * FROM [tbl_test] where column_a = 'Bom D� Street'
This always returns no records.
Is there something you have to do to handle non-AS... | stackexchange/codereview |
I have a button on my Ruby on Rails view file.
Firstly when the button is clicked an Ajax call is made which in response gives a JSON string. So far I have accomplished this task.
Here is where I am stuck: The button also redirects me to another action of the same controller. Now I want to send the JSON string receive... | stackexchange/codereview |
So I was trying to create an orphan branch. I tried a couple of things and one of them (git checkout -b --orphan newbranch) managed to create a branch called "--orphan"; now it won't let me delete it using git branch -d --orphan. I've also tried using quotes and escape characters. Nothing seems to work. I also tried us... | stackexchange/codereview |
When querying two tables (t1, t2) and using a MAX statement for a column in t2, SQL returns multiple entries.
This seems to be because I also query other info from t2 which consists of unique entries.
Simplified table example
t1.number t2.number_id t2.sync_id t2.text
1 1 ... | stackexchange/codereview |
I'm designing the DB for a new app which is something I've done a thousand times, but in this occasion I suddenly start wondering on some aspects that I've never stopped before. Is there some standard/recommendation for the following things?
Whats the recommended data type for storing currencies (no financial operatio... | stackexchange/codereview |
Right now I've finished an application that I want to distribute on Android Market.
It will have a payed version and a free version with some limited features.
While developing it, I was doing obviously just the main project of fully featured release. And now after finished I've included a "boolean" DEMO_VERSION=true t... | stackexchange/codereview |
i'm looking for something as easy and tidy as the ARC2 class for PHP to use in python.
so far i've taken a look at rdflib, but the lack of support for SPARQL and inaccurate docs are putting me off!
is there another python library which will enable me to set up and use a triple store quickly and easily, or am i stuck wi... | stackexchange/codereview |
How can I fire an automatic key press or mouse click event when a color appears on the screen
on other application or browser?
| stackexchange/codereview |
This is using RSpec2 - no matter what happens I seem to get the following error when an expectation is not matched. I'm sure (though I cannot try for a while) in version 1 the following code would state that the method 'methods' was not called.
The code snippet below demo's this problem - when un-commenting the method ... | stackexchange/codereview |
I want to find each LAN connected computer separately. I am fetching ip address but i am assuming if many computers are connected to LAN they may give same ip.How can i differentiate all computers separately in php ?
| stackexchange/codereview |
I've got a registered ActiveX component which I'm referencing in a C# project. However, I'd like to know the original path to the actual component being run. This is not the execution path per se. Is there something saner than searching the registry by hand?
The component is registered with a simple /regserver command,... | stackexchange/codereview |
I'm just starting with .NET data storage and I'm confused by so many different technologies... This is a learning project. You don't need to go on reading, I need to make an architecture proposal first... Thanks so far
My scenario:
e.g. a local app that can store and tag images.
The user can choose if he want to
sto... | stackexchange/codereview |
I have some trouble with this.
I have one database with the following tables:
Countries -> All countries of the world are added
Cities -> The cities are also added
user_profile -> The profile of the user with the fields "country" & "city".
Everything works fine, even the populating of the boxes is working. But I don't ... | stackexchange/codereview |
I am experimenting to Joda time.
final String string_from_3rd_party = "GMT+08:00";
// Works for standard Java TimeZone!
System.out.println(TimeZone.getTimeZone(string_from_3rd_party));
// Exception in thread "main" java.lang.IllegalArgumentException: The datetime zone id is not recognised: GMT+08:00
... | stackexchange/codereview |
For my site I want to have a page which I will call programatically to add content.
The parameters that I will need are some strings and the content of a file.
I will invoke that with WebRequest object form .net.
How can I send the string parameters and the content of a file in a post request and read them in the as... | stackexchange/codereview |
I am planning to write a Role Base Access Control Mechanism. What I thought is to have a set of permissions, which can be associated with each role. Normally Membership provider comes with normal roles and its details not with Permission sets. Roles with permission can be assigned to the new users. Permission Sets t... | stackexchange/codereview |
I am using Zend Framework.
My task is to send JSON data from controller to Javascript.
I have an simple array:
$array = array('a' => 1, 'b' => 2);
After i am encoding this array to json format:
$jsonData = Zend_Json::encode($array);
But I don't know, how I can get this data in Javascript. I send an ajax request with... | stackexchange/codereview |
We are looking at moving away from Perforce (mostly due to the pain of having to always be connected to its sever and the lack of support for moving bug fixes between branches, and also wish to introduce a tool for code reviews)
However we still need all the history that is in Perforce, so is there a way to move to Kil... | stackexchange/codereview |
Below is the code
<?php
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
include('config.php');
// table name
$tbl_name="temp_members_db";
// Random confirmation code
$confirm_code=md5(uniqid(rand()));
// values sent from form
$name=$_POST['name'];
$email=$_POST['email'];
$country=$_POST['country'];
... | stackexchange/codereview |
How would I go about changing a TabItem color from it's unselected color to it's selected color with an animation on SelectionChanged, so that both the unselected and selected TabItems change?
Edit: This is how my CustomTemplate looks like. There is no animation happening at all so what have I done wrong?
<Style Targe... | stackexchange/codereview |
I'm not fluent in more than basic javascript, but I am looking to have a way that the user can draw a box around a certain portion of image, and then have the coordinates accessible so I can save them. Something similar to tagging photos in Facebook. Does anybody know of any libraries I can reuse? Any tips to get start... | stackexchange/codereview |
Previously I ordered my posts as this:
@posts = Post.find(:all, :order => "created_at DESC")
But now I want to replace created_at with a custom method I wrote in the Post model that gives a number as its result.
My guess:
@posts = Post.find(:all, :order => "custom_method DESC")
which fails..
| stackexchange/codereview |
Using .NET string formatting you can plug the same value into a format string multiple times:
Console.Write("{0}{0}{0}", 1) //prints "111"
Is there any way to do this with printf-style formatting, supplying the value only once?
| stackexchange/codereview |
I'm trying to build a model for content pages on my site, and i gave it a self reference named 'Related Page'. Now if i build my models and try to create a new page in the admin generator everything works fine. If i give the page a related page (or more) it works fine too, but if i go to the other page and try to edit ... | stackexchange/codereview |
We would like to do a replace in our string like this:
- Every time a \n (new line) or \t (tab) or \r (carriage return) appears, it should be replaced by the string "\n" or "\t" or "\r".
For example, this string:
"Hello, how
are you?
Fine thanks."
Should be replaced by:
"Hello, how\n\tare you?\nFine thanks."
Could y... | stackexchange/codereview |
This is a general question on doing pagination with models containing multiple entity indexes. This is easier with an example so let us consider the example that Brett Slatkin provided in his video (http://www.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html).
You have your Message model (I have ign... | stackexchange/codereview |
while i can't really think of a practical use-case for such a scenario, but i purely intend this to be a curiosity driven question.
i understand the servlet container holds onto all the instances created of the servlets, and delegates request threads to these instances. it also makes sense to keep these instances man... | stackexchange/codereview |
Is there a way to create functions like these in the Razor view engine?
@{
View.Title = "Clients";
private string GetRowClassName(RowStatus status)
{
if (status == Model.SelectedStatus)
return "selected";
return string.Empty;
}
}
| stackexchange/codereview |
I have a C++ open source project that's available from a public svn repository.
It would help me a lot if there is an online service that I can point to my repository and have it build it with GCC on 32 and 64 bit. Then I know that it builds without errors or warnings.
Running my unit tests would be really nice, but ... | stackexchange/codereview |
I have a value in variable, say it is dim a as integer = 145.98
I tried to take the Left(a,2)
but it returned an error instead of returning 14
I also tried left(a.Tostring,2)
but error is the same.
Please help me solve it.
Thanks
Furqan
| stackexchange/codereview |
So I have about 16,000 75-dimensional data points, and for each point I want to find its k nearest neighbours (using euclidean distance, currently k=2 if this makes it easiser)
My first thought was to use a kd-tree for this, but as it turns out they become rather inefficient as the number of dimension grows. In my samp... | stackexchange/codereview |
OK I have the following code in my Global.asax file:
void Application_Error(object sender, EventArgs e)
{
// Code that runs when an unhandled error occurs
Exception objError = Server.GetLastError().GetBaseException();
Response.Redirect(
String.Format(
"/Error/{0}/{1}",
... | stackexchange/codereview |
i want to build a component that will be able to show a integer number max 5 digits in the style of the old analog car counters and animate the digit change.
that looks something like this maybe...
i have tried searching for this kinda of examples but i couldn't find anything so far.
in your opinion what is the best... | stackexchange/codereview |
I know, I know, now I have two problems 'n all that, but regex here means I don't have to write two complicated loops. Instead, I have a regex that only I understand, and I'll be employed for yonks.
I have a string, say stack.overflow.questions[0].answer[1].postDate, and I need to get the [0] and the [1], preferably ... | stackexchange/codereview |
This may be a silly question. I need to know where is the +alloc method is defined for any Objective-C class?
If it is a class method in NSObject how it is inherited? Because class methods cant be inherited.
Thanks.
| stackexchange/codereview |
I have 3 controls on my page
ListBox A
ListBox B
ComboBox C
ListBox A is databound to a collection of items A
ComboBox C is databound to a collection of items C
ListBox B is databound to a collection of items B
B has a reference to Item A and Item C, the ListBox B should only show the items where Item A is the selec... | stackexchange/codereview |
i'm about to create an app for my client.
Multiple clients of him (of my client) will login to that app and do the same thing.
So in that view, we have a 'generic app': written once, suits every clients needs.
But, before the first line of code is written, we have offcourse the first exception: when client A does actio... | stackexchange/codereview |
I have a 4 UIViews inside a UIScrollView. Assume 1 of it is a chart like in iphone stocks aplication. When I move the finger across the chart I need to draw a vertical line.I can use the touchesMoved for that.
But Also I need to move horizontally scroll my views. Problem is when I move my finger across the chart, UIScr... | stackexchange/codereview |
I would like to use the Session-per-request pattern, as is done frequently when using NHibernate in an ASP.NET environment.
My first thought was to put the code to create the context in the BeginRequest event handler in Global.asax, but I discovered that this event is firing not only for the initial request that actu... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.