instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have built a C#.NET WinForms App. I now need to build a MSI installer for the same so that I can ship it to my clients.
I am stuck at the following place.
I use log4net for Logging. How do I write my App.Config in such a way that the LogFile folder is based on where my end user installs the Application. That is, i... | stackexchange/codereview |
It seems I should use tinyint(); but I don't know how to implement it?
The question is what is your recommendation if I need to have a boolean field in MySQL DB and modify it´s value with PHP
| stackexchange/codereview |
In my situation, xml data are saved in a text column, how to query this against this column? For example:
create table t1
(
id INT IDENTITY(1, 1) PRIMARY KEY,
content text
)
insert into t1(content) values ('<?xml version="1.0"?>
<people>
<person>
<firstName>ooo</firstName>
<lastName>ppp</l... | stackexchange/codereview |
I have a custom attribute that checks conditions and redirects the user to parts of the application as is necessary per business requirements. The code below is typical:
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
// ...
if (condition)
{
RouteValueDictionary redirectTarget... | stackexchange/codereview |
// Calculate the quarters of a set of integers
#include <iostream>
#include <vector>
#include <algorithm>
#include <conio.h>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
using std::sort;
int main()
{
// Ask for a set of integers
cout << "Please input a set of integers: "
<< endl;
// Rea... | stackexchange/codereview |
I am trying to write a pager from my application which require to get the total number of albums. I can fetch all albums from the orkut but it slow down the transfer rate since I only need the total not the data in the albums.
Does opensocial v9 has a function I can check how many albums a viewer has? or maybe I fetch... | stackexchange/codereview |
I want to use an ORM, and have been looking at EF 4. Is this platform scalable. I see a lot of stuff on the web, but everything looks very biased in one way or the other. Anyone know of benchmarks or non-subjective information.
On that point, does EF prevent SQL injection or XSS. I know that it used parametrized querie... | stackexchange/codereview |
I want to put an icon in the status bar when ever my application is running, including when it is running in the background. How can I do this?
| stackexchange/codereview |
HI all,
i am developing a puzzle game in iPhone using cocos2d.I need a progress bar (like uiprogress bar) to show the game progress time.But i can't find any good example...
can anyone tell me the way???
| stackexchange/codereview |
whenever I click on the EditText, the screen readjusts and the edittext-view moves up. But this is not enough and the soft-keyboard still covers the view to not show what a user typing.
My layout is as follows:
A listview occupying 65% of screen height, followed by an editetxt view and a button
LISTVIEW
_____________... | stackexchange/codereview |
I have WCF service.. couple times it was working ok.. but after certain point in time the function returns "Function evaluation timedout".. what the heck is this? also, when I checked the state of the proxy it was opened.. can anyone please help?
thanks
| stackexchange/codereview |
I am trying to launch a websearch using data input from a user. The data is input through TextEdit boxes. Upon submission of the data, i would like my program to: 1) search for a specific webpage based on the user input 2)Find specific elements at the webpage 3) Display the webpage.
Here is an example:
User Input (in ... | stackexchange/codereview |
I want to draw something like a pie chart segment filled with a certain color.
I know we can draw a circle using the Me.Circle function in a PictureBox to get a filled circle. However, when you add the start and end the circle becomes just a single lined arc.
Can anyone offer me a solution?
| stackexchange/codereview |
I have these three lines in bash that work really nicely. I want to add them to some existing perl script but I have never used perl before ....
could somebody rewrite them for me? I tried to use them as they are and it didn't work
note that $SSH_CLIENT is a run-time parameter you get if you type set in bash (linux)
us... | stackexchange/codereview |
I would like the user to import the files into my Access VBA, I wonder if I can make the interface to be a bit like Windows Explorer:
With the window split into 2 halves, user can highlight the directory on the left half, and then the right half will show the files inside (even better if it can filter the file with spe... | stackexchange/codereview |
How to make query in SQL to delete all record exist in every table.
There possible to write every name table using command delete. But it will take long time to write every single name table.
I am already try DELETE FROM * in MySQL but it got error:
You have an error in your SQL syntax; check the manual that correspon... | stackexchange/codereview |
I would like to know the complete expansion of log(a + b).
For example
log(a * b) = log(a) + log(b);
log(a / b) = log(a) - log(b);
Similar to this, is there any expansion for log(a + b)?
| stackexchange/codereview |
What browsers support the placeholder html tag for text inputs? Does Internet Explorer support it? (I have a JavaScript placeholder that I can use for the browsers that do not support it.)
<input type=TEXT placeholder="placeholder here" />
| stackexchange/codereview |
I have created a web user control I want to change the iframe' src value when the user click on the link but the problem is that I dont have access to iframe inside the page from web user control I think there is a way because my control is in the page they have some relation perhaps I like to find something like this ... | stackexchange/codereview |
Let's say that I have two entities, Team and Match. In every Match, there are two teams, the HomeTeam and the AwayTeam. A Team can have many matches, but HomeTeam and AwayTeam can only have one team each. Sometimes Team is a HomeTeam, and sometimes the same Team is an AwayTeam. I have provided just the basics for each ... | stackexchange/codereview |
Possible Duplicates:
What's the point of a candidate key?
Superkey vs. Candidate key
Thanks in advance.
| stackexchange/codereview |
I've got a jqgrid (version 3.5.3) on my site which gets its results from an ajax call to a web service. Often the query is complicated and it takes a few seconds to load the result. While it is loading the user sees a box [Loading...].
In case the users realise they're searching for the wrong thing, the client has ask... | stackexchange/codereview |
I'd like to monitor details of my HBA's and not sure how to extract info from my PowerPath console or anything from my QLogic HBA's.
Any detail or information would be great. From what I can tell, Microsoft uses something called HBAAPI when installing the Exchange Best Practice tools...
| stackexchange/codereview |
I am developing a plugin and have a quick question...I first developed my plugin as an individual 'webpage' and am now integrating (wrapping) it into a WP plugin. It all functioned correctly before WP and almost functions correctly now but I have run into an interesting issue. Anyways, to my question...is there some so... | stackexchange/codereview |
I want to keep a list of existing log files from the log directory. whenever this list reached the max limitation, say 20 files, I will delete the oldest log file.
Each time when application is launched, it will check the log directory and keep all log file names in a list. but this list should be sorted with the crea... | stackexchange/codereview |
I'd like to allow possible inputs of 0-9, "," or "-" for EditText and couldn't find an answer.
I know using the "|" as an separator is possible:
android:inputType="number|text"
But how can I archive something like this (too bad it doesn't work):
android:inputType="number|,|-"
Does anyone know?
Regards,
cody
Addition... | stackexchange/codereview |
I would like to parse a html page and extract the meaningful text from it. Anyone knows some good algorithms to do this?
I develop my applications on Rails, but I think ruby is a bit slow in this, so I think if exists some good library in c for this it would be appropriate.
Thanks!!
PD: Please do not recommend anythin... | stackexchange/codereview |
I'm trying to subscribe to onTimeIndexChanged mediaplayer event. It works fine, as long as view that I'm subscribing in stays focused. When I press back button, or widgets button, my view gets blurred and it no longer receives events.
Is it possible for this subscription to persist through switching views? Are there wi... | stackexchange/codereview |
I have five ul lists that I am using and each list might have an input in it.
Here is an example:
<form id="testForm">
<ul id="1">
<li>TEST</li>
<li>Gender:
<select id="gender" name="gender">
<option value="0">Male</option>
<option value="2">Female</option>
<... | stackexchange/codereview |
I'm currently trying to dynamically send an rdl report to my ReportViewer .net object.
I keep getting the error when I do it: A data source instance has not been supplied for the data source "blah"
I'm trying to define "blah" in my code behind at runtime.
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.Pr... | stackexchange/codereview |
I have my directory structure like this:
root/
sift/
__init__.py
sift_descriptors.proto
sift_descriptors_pb2.py
project/
__init__.py
filtered_descriptors.proto
filtered_descriptors_pb2.py
filtered_descriptors_test.py
The root directory is in my $PYTHONPATH.
I build root/sift/sift_descri... | stackexchange/codereview |
My app consist of the main-process and two threads, all running concurrently and making use of three fifo-queues:
The fifo-q's are Qmain, Q1 and Q2. Internally the queues each use a counter that is incremented when an item is put into the queue, and decremented when an item is 'get'ed from the queue.
The processing inv... | stackexchange/codereview |
Ok, I'm developing for the blackberry Bold 9700 and I'm trying to get a 1X4 grid (1 row, 4 columns) to span the entire width of the blackberry screen, but it keeps coming up short. I mean, the grid is aligned to the left by default, which is fine if I can get the whole grid to span the entire width (it won't matter the... | stackexchange/codereview |
I want to write a library that to use, you only need to include one header file. However, if you have multiple source files and include the header in both, you'll get multiple definition errors, because the library is both declared and defined in the header. I have seen header-only libraries, in Boost I think. How did ... | stackexchange/codereview |
I'm looking to upgrade my ASP.NET web app to the .NET 4 framework. Would I see performance improvements right away?
| stackexchange/codereview |
in curl i do this:
curl -u email:password http://api.foursquare.com/v1/venue.json?vid=2393749
How i can do this same thing in python?
| stackexchange/codereview |
I'm in need of a way to fetch the friends of a user but only those who are 21+.
I'm aware of "admin.setRestrictionInfo" but it doesn't seem to be working.
Seeing as how the Facebook documentation is in a constant state of disarray I wouldn't put it past Facebook to deprecate the call and not update the docs.
Any help w... | stackexchange/codereview |
OK. We know the following code cannot be compiled.
char source[1024];
char dest[1024];
// Fail. Use memcpy(dest, source, sizeof(source)); instead.
dest = source;
But, the following code can be compiled and behave correctly.
class A {
char data[1024];
};
A source;
B dest;
dest = source;
I was wondering, in operato... | stackexchange/codereview |
I want to programatically set a text in my UITableView. I do not want to do it from
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
I tried something like
[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0]].textField.text = @"tes... | stackexchange/codereview |
Can anyone tell me why, even when my alert shows that my regular expression strings match, the if statement is not triggered? I have sample code below. Thanks in advance.
$(document).ready(function () {
$('div#primaryNavigation').find('a').each(function () {
var pattern = /my-link1|my-link2|my-link3|my-link... | stackexchange/codereview |
There are conflict with inherited_resources and Ryan Bates's cancan gem.
I have some simple controller
class IssuesController < InheritedResources::Base
respond_to :html
load_and_authorize_resource
def tag
@issues = Issue.tagged_with(params[:tag]).recent.paginate(:page => params[:page])
end
protected
... | stackexchange/codereview |
Im trying to make a a cleint/server web application where eventually the client application will be deploy on the internet. People told me to use visual studio WCF duplex but im confuse on how that works. I know for a simple server/client application using sockets, u can just use console for the server and then a win... | stackexchange/codereview |
I have a grid based game (platformer) where I've based everything on tiles. I have tiles that are solid and liquid. I'm trying to find of a good way to make water tiles simulate water in a rough way.
At the moment I have the current system:
When a water tile is added above another water tile, it adds 1 to the water ti... | stackexchange/codereview |
I'm trying to take up node.js for a comet-based program. Essentially I'm going to have information coming in from either an SQL database or a XML feed, but the end result needs to be the same. I'm confused upon the implementation and here's my road blocks, help would be greatly appreciated.
Streaming - I've been able ... | stackexchange/codereview |
I've got a simple class called object that I'm having a problem with. Theres one method which causes a segfault if I call it. I don't understand why.
typedef class object
{
private:
short id;
std::string name;
SDL_Rect offset;
public:
object();
object(short i, std::string n);
... | stackexchange/codereview |
I want select every inputbox of type text and transform by a fixed amount, when checkbox is checked, so far I have this. However I wondered if there was a way to do this without iterating over every element ...
$("#myID").change(function(){
if($(this).is(':checked')){
//I can't do this :
... | stackexchange/codereview |
I need to create a SDI form with a formview that has two tabs, which encapsulate multiple dialogs as the tab content. But the form has to have a colored background.
And things like these makes me hate programming.
First, I tried CTabControl, via resource editor, tried different things, but the undocumented behavior and... | stackexchange/codereview |
Why do we need an IP address when the MAC address is unique? Cant we communicate only with the MAC address?
| stackexchange/codereview |
I'm using following code:
$config['base_url'] = "http://www.aaa.com/";
Also Im using Flash navigation:
on(release) {
getURL("http://www.aaa.com/xxx/index");
}
The Problem is When I give url as http://aaa.com in address bar Flash navigation link is not working. If i give link from http://www.aaa.com its work perfectly... | stackexchange/codereview |
I search for a round-trip programming solution which does generate PHP and SQL code from a UML Model
It sould also include state and activity diagrams which were compiled into PHP/SQL.
Or does someone know some software who offers the possibility to create my own PHP / UML interpreter?
thanx in advance
| stackexchange/codereview |
I am using an SPGridView control with an ObjectDataSource control in a SharePoint 2010 solution. The SPGridview allows me to sort and page through a list items OK, but I have noticed a problem when two SPGridView controls are placed on the same page. When I sort the lower SPGridView control by clicking on a column's h... | stackexchange/codereview |
I have one mxml file that process xml, and display the graphics on panel.
I need to display first mxml in another mxml file, in some area(HBox, VBox, Panel, dont care). How i can do this?
| stackexchange/codereview |
Is it possible to do these things in Perl?
truncate a file if already exists, and
create,and
write, and
moving the cursor to end for append
| stackexchange/codereview |
I have a WPF application that displays an ObservableCollection. It's about 182 rows, and the object (let's call it PositionLight) inside the collection has about 70 properties to display.
All calculation to input data in these properties are made in a second thread which will recalc everything every 20 secondes, and wi... | stackexchange/codereview |
In our application we have different themes and each theme has its own default content in the following structure:
ROWS
COLUMNS
CONTENT
HTML DATA 1
CONTENT
HTML DATA 2
There could be multiple rows, column and content elements. We need to store this data in a file (manually) and then read & ... | stackexchange/codereview |
Trying to exit fullscreen of a swf using javascript.
Managed to do so by hiding the showing the player. With jQuery, like this...
$('.player').hide();
$('.player').show();
Was wondering if there was a better way to do this?
Thanks
Edit: also I'm using swfobject if that helps in anyway.
| stackexchange/codereview |
I am trying to get the GPS location in a widget application on a blackberry, but the API always returns a latitude and longitude of 0,0.
Simulator: storm 2 (9550)/ bold(9700) and OS: 5.0/5.0
IDE:Eclipse
the html page code as below:
var modeCellsite = 0;
var modeAssisted = 1;
var modeAutonomous = 2;
function locat... | stackexchange/codereview |
I was asked an interview question to change the entry point of a C or C++ program from main() to any other function. How is it possible?
| stackexchange/codereview |
I know we can call like this:
os.system("ant compile")
But how to know whether the ant task is successful or not?
And is there another way to invoke ant task?
| stackexchange/codereview |
What are the strengths and weaknesses of various MVVM frameworks for Silverlight?
I know similar questions have been asked before, but the field is moving quickly and the answers given are rapidly out of date.
I'm specifically looking for a brief assessment of the following frameworks -
Prism
Caliburn
Cinch
Goldlig... | stackexchange/codereview |
I was wondering if it is possible to intercept keyboard input on a global level on Android. For example a user types in text into an edittext (does not matter which application) I would like to access said text to check for certain words. Is this even possible with Android's security model (yes I am aware this kind of ... | stackexchange/codereview |
So I have an array with variables with values from textfields
var data = [name, address, city, country];
then the command
transaction.executeSql("INSERT INTO Customer(name, address, city, country) VALUES (?, ?, ?, ?)", [data[0], data[1], data[2], data[3]]);
It works fine but in the real database I have about 50 fiel... | stackexchange/codereview |
How can I find out what notifications the iPhone has registered?
for instance:
notify_post("com.apple.springboard/Prefs");
| stackexchange/codereview |
Greetings Friends,
What is the best way (least amount of keystrokes) to get Visual Studio 2010 to automatically insert the current date and my name/initials whenever I put a single line comment into my codebase? This should support C# and it'd be even better if it worked in my .aspx pages too.
Thanks -- I know someone ... | stackexchange/codereview |
I come from a Java background, and I see a lot of people say namespaces = packages, but looking around at available code it doesn't seem to me that people use namespaces like they used packages.
Currently I'm working on a DLL to manage all my data access to a database to be shared between two Windows Applications. So ... | stackexchange/codereview |
I've been trying to trace down a bug for hours now and it has come down to this:
Dim length as Integer = 300
Dim buffer() As Byte = binaryReader.ReadBytes(length)
Dim text As String = System.Text.Encoding.UTF8.GetString(buffer, 0, buffer.Length)
The problem is the buffer contains 300 bytes but the length of the string... | stackexchange/codereview |
No matter what I try, I'm not able to get the beforeShow event to fire on my datepicker. Here's my code:
$('#calendar').datepicker({
inline: true,
dateFormat: 'mm,dd,yy',
beforeShow: function(input, inst) { alert('before'); }
});
I've added beforeShowDay and onSelect events to my datepicker, and they do fire correctl... | stackexchange/codereview |
Righty oh now I believe ive set this application up right but correct me if im wrong, for simple sake i have in my bootstrapper 3 modules loaded, one is a navigation module, and two others the views.
Independently in code if i load the modules and in the initialize method add them to a region that all works fine, howev... | stackexchange/codereview |
I am trying to create a number of WCF services. These services will expose certain public methods and require to consume each other (i.e. call WCF Service methods from another WCF Service)
Is there any good reference tutorial material that I can refer to for this?
Thanks all in advance!
| stackexchange/codereview |
In my website I have a small gallery with about 100 images only. It would be cool if facebook users could "like" an image so that this appears on their wall and all their friends see the image. I'm not sure if this is possible with facebook. Maybe someone knows?
| stackexchange/codereview |
I have written a small piece of code to open/close a cd/dvd drive tray using the DeviceIoControl API and the proper IOCTL but I don't seem to be able to check the tray status.
According to the msdn page (http://msdn.microsoft.com/en-us/library/aa363404%28v=VS.85%29.aspx), IOCTL_STORAGE_CHECK_VERIFY is supposed to succe... | stackexchange/codereview |
I want to use a look-ahead regex for replacement with the System.Text.RegularExpression.Replace(...) method.
Now I am wondering what's wrong. Look at this example code:
string input = "stackoverflow";
string replacement = "#";
var pattern1 = "(?=[a-z])o";
var result1 = Regex.Replace(inp... | stackexchange/codereview |
I'm iterating through a solution and its projects and items and need to retrieve the path to the items on disk.
I can retrieve the project file name from Project.FullName and can get a project items path using ProjectItem.Properites.Item("FullPath").
However, for an item in the solutions 'Solution Items' folder, the i... | stackexchange/codereview |
first of all I describe my objective I want to achive. I want to visualise a continuous data stream (maximum 1000 values per second but could be reduced). This data stream should be visualised as a chart - being more precise it's a visualisation of an ECG among other things.
My first idea was using polyline and bind ... | stackexchange/codereview |
How can I go to specific URL programmatically in Silverlight?
| stackexchange/codereview |
I have been looking at using in C# and I want to know if the following code is equivalent;
using (SqlConnection connection1 = new SqlConnection(), connection2 = new SqlConnection())
{
}
To this code;
using (SqlConnection connection1 = new SqlConnection())
using (SqlConnection connection2 = new SqlConnection())
{
}
| stackexchange/codereview |
I have a set of A tags with display set to block. Each each is specifically has a border on the right. They fit perfectly into a container. However, when the page is zoomed out using the browser's zoom control, everything but the borders scale and the layout is broken. Is there a way to fix this?
This behavior can be r... | stackexchange/codereview |
I need to call a WCF service to update when my SilverLight app exits.
it is an out-of-browser app and I'm using SL4.
Since the WCF in SL works only async it is not possible to do on Application.Exit
I tried also MainWindow.Closing which is available for OOB but this didn't work either.
Tried to make the Closing func... | stackexchange/codereview |
I just want to know if there is any known issue, or if I'm doing something wrong. Everytime I do something like the example below, I get an error "the server failed to resume the transaction".
I had already asked another question about this error, but now I've figured out it only appears in the foreach loops
... | stackexchange/codereview |
I originally posted this question over at the Zend Forums but figured it would also be wise to post here.
What has to happen, exactly, for a job to retry? I've tried timeouts, 50x response codes, and setting the status to "FAILED".
I have a simple script that creates a job...
$job_url = 'http://localhost/consumer.php?t... | stackexchange/codereview |
I am developing a website that many pages share the same header/footer/sidebar/topbar.
Say I have three pages: one/index.php, second/index.php, third/index.php. They all share the same header/footer/sidebar.
The problem is where should I put the header/etc and its corresponding css file, since a piece of html code cou... | stackexchange/codereview |
I'm working on a simple mark management system for a school department (let's assume it's the Maths department). They want a simple system for users to enter marks for each student as they progress, entering marks for each term, getting yearly averages, sorting by teacher, etc.
Speaking to the person in-charge of the d... | stackexchange/codereview |
I have simple C# console application:
static int main(string[] args){
return SomeBoolMethod() ? 1:0;
}
How in WiX 2.0 should I define property and set this value to it? I don't care about future upgrade/uninstall
UPD
I want latter use this property in condition: so the group B will not execute if MYPROPERTY == 0 ... | stackexchange/codereview |
I'm having a huge problem with my application and Tomcat 7. My application needs to set session cookie to "/" path instead of "/context" path. In tomcat 6 it was a matter of adding another property to Connector (emptySessionPath="true") and Tomcat 7 doesn't recognize this thing. I know that Servlet 3.0 spec allows to c... | stackexchange/codereview |
I am using SQLite JDBC driver from xerial project. What do we mean when we say encrypting the sqlite db ? I would like to know the best way to encrypt either the data in the db or the whole sqlite DB. For that, do I need to encrypt each field value and then write it in to DB or should I simply encrypt the .db file usin... | stackexchange/codereview |
I am using SOAPUI to test an application. To initiate the test, I send a JMS message to the software from SOAPUI.
There are multiple hooks in the code that are built to respond to this JMS message, including a few that respond by making web service requests to services I intend to mock with SOAPUI. I cannot predict... | stackexchange/codereview |
To make a long story short...
I'm building a web app in which the user can select any combination of about 40 parameters. However, for one of the results they want(investment experience), I have to extract information from a different table and compare the values in six different columns(stock exp, mutual funds exp, et... | stackexchange/codereview |
I'm making my first CakePHP project (apart from all the tutorials I did...).
I'm making a site for trainers and athletes in the athletics sport.
now in my database I have a user table with fields: id, username, firstname, lastname, email, password, ...
then I have 2 other tables with the fields:
trainers: id, type_id(s... | stackexchange/codereview |
So, C++ allows overloading the unary operator &(address). Are you aware of any real-world example when operator & was rightfully overloaded? And a second, more specific question, are you aware of any real-world example when operator & was rightfully overloaded while preserving address semantics? TIA
| stackexchange/codereview |
Possible Duplicate:
Overriding equals and hashCode in Java
All,
I have defined my class and which to override equals() and hashCode () methods as well. But I have no idea of what specifically these methods should be implemented for my own class. Can anyone please shed some light on the implementation of these method... | stackexchange/codereview |
I am looking for an API that can remove bundle items added in a main bundle product.
Can some one guide me to that API?
regards,
Irfan
| stackexchange/codereview |
There is a web site, what i want to parse. The source is the following
<tr> <td><a
href="http://www.z104.com/"><b>WNVZ</b></a>
- Z104</td> <td>Norfolk</td> <td>Virginia</td> <td><img
src="mp3.gif" alt="MP3" width="12"
height="12"></td> <td><a
href="http://provisioning.streamtheworld.com/pls/WNVZFM.pls">64
Kbps</... | stackexchange/codereview |
I have a datatable which has been dynamically generated from FoxPro tables using a UNION Select statement. e.g.
SELECT * FROM x UNION SELECT * FROM y UNION SELECT * FROM Z ORDER By v_alue1
This produces a datatable with about 100 rows, each containing many fields, one of which is c_olor. From this datatable, I would l... | stackexchange/codereview |
My Lotus Notes document has a rich text item that stores an attachment. I want to edit the attachment and after this to save the attachment back to the Lotus Notes document. This is the script that launches the attachment:
@Command([EditGotoField];"Attachment");
@Command([EditSelectAll]);
@Command([AttachmentLaunch])... | stackexchange/codereview |
I'm trying to insert data after an existing DOM element. I'm getting an error "Invalid argument." -- this.parentNode.insertBefore
This is not working in IE8 or IE7. Ideas?
Jfiddle example: http://jsfiddle.net/zJ3Fe/
<a href="#" id="delete_promo">Click</a>
<div id="customer-info" class="span-12">
<form id="Use... | stackexchange/codereview |
I am currently working on an android app that is causing me some trouble. My app is heavily dependent on images that are fitted correctly to the screen they are being displayed on. Unfortunately things like the FWVGA/WVGA resolution difference 854 vs 800 is causing me some real problems, and that's aside from the other... | stackexchange/codereview |
Per the title - are there good built-in options in C#/.NET for fail-safe iteration over an IList or an IDictionary?
Where I'm running into problems is with code similar to the following:
IList<Foo> someList = new List<Foo>();
//...
foreach (Foo foo in someList) {
if (foo.Bar) {
someList.remove(foo);
}
}
whic... | stackexchange/codereview |
I'm looking to reset my application completely when it becomes inactive.
I dont want any states retained, is there an easy way to do this?
Would this be done in the Background Method? or any other of the State Methods within the application delegate?
| stackexchange/codereview |
For this picture:
Draw histogram of R, G, B components of color (not using imhist)
Change picture to binary so brown exoskeleton of insect is white
Measure insect's exoskeleton's width and height
EDIT:
1:
I did that:
a = imread('C:\a.jpg');
r = a(:,:,1);
g = a(:,:,2);
b = a(:,:,3);
rhist = zeros(1,256);
[w h] = siz... | stackexchange/codereview |
How can I create a "Contact Us" hyperlink as the one present on the top-right of this page?
I am particalarly interested on the balloon style.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.