instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to store an HTML code in an SQL database. It stores everything fine except when there are attributes defined such as border="0".
I think single quotation mark is not an issue. How do i avoid this from happening.
The error: Error: You have an error in your SQL syntax; check the manual that corresponds to your MyS... | stackexchange/codereview |
I am having trouble doing what i want to do with the following setup.
I would like to remove all WWW, and also forward index.html to root dir. I would like this to be for all domains, so i am doing inside httpd.conf directory directive.
I tried many variations with no success. Latest version is below (domains are insid... | stackexchange/codereview |
I am struggling to apply an existing 32bit COM addin to 64bit Microsoft Word 2010.
To make the addin visible to Word, I have used the dllsurrogate-method, as it described here.
The problem is that now addin caused some strange exception when tries to add its toolbar and menu to office's. I cannot figure out, what it i... | stackexchange/codereview |
How can I take screenshot from code?
| stackexchange/codereview |
I'm trying to build a relatively simple game review site. There should be a 1-to-1 relationship between games and reviews (each review is for one game, and there will only ever be one review for a game). My tables are pretty simple. The relevant parts are:
Reviews Table:
ReviewID - int, primary key
Text - text
GameI... | stackexchange/codereview |
what parameters do I pass to this function ?
invalidate(left, top, right, bottom)
for use with google map on android ?
thanks
-
ahsan
| stackexchange/codereview |
The bug is the inputTextarea I have below. Only the last row can record any input from the inputTextarea, in other word, only the last row, hook it value to #{PostComment.comment.comment}. Why is this?
<h:form id="userCommentList" >
<p:dataTable value="#{CentralFeed.profileComments}" var="item">
<p:column> ... | stackexchange/codereview |
My WPF application has a style manager that I have built on blend.
My problem is this: I've got a login button that blinks occasionally and i can't figure out how to remove this behavior.
Here's the style code for my login box:
<Style x:Key="LoginBoxGrid" TargetType="{x:Type Grid}">
<Setter Property="Background">
... | stackexchange/codereview |
In my ivy.xml file I have dependency statements like:
<dependency conf="*->*" org="gnu" name="gcc" rev="4.2.1" changing="false">
<artifact name="gcc" ext="tbz2" e:classifier="src"/>
</dependency>
'rev=' can be a fixed value or 'latest' or whatever.
In my build file I would like to get hold of the value of 'rev' to... | stackexchange/codereview |
I'm having some issue here. Let me explain.
So I was about done with migration of this project and I've decided to run the test suite to make sure the logic was still working as expected. Unfortunately, it didn't... but that's not the issue.
At the end of the suite, there was a nice script that execute a delete on the ... | stackexchange/codereview |
I am having problems returning a VARCHAR out of a derived column.
Below are extremely simplified code examples.
I have been able to do this before:
SELECT *, message =
CASE
WHEN (status = 0)
THEN 'aaa'
END
FROM products
But when I introduce a Common Table Expression or Derived Table:
WITH CTE_products AS (SELECT * fro... | stackexchange/codereview |
I am wondering how to start a screen session from PHP, I have tried with shell_exec(), system() and passthru(), but no avail.
I have gotten the screen session started for the execution time of the script, but after it has finished loading, it kills the screen session it just created. (By starting a screen session and e... | stackexchange/codereview |
ok so here is my HTML
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<!-- XHTML ADVANCED -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Find Hotels</title>
<style type="text/css">
a:visted {col... | stackexchange/codereview |
I was wondering wether there is a way to include some html content inside another html using only html?
A replacement to PHP's
<?php include("file.php"); ?>
Is this possible?
EDIT:
This has brought up some confusion, what I needed was "almost an html tag" that had the functionality of including a html document in anot... | stackexchange/codereview |
I have a issue when I look up a user name using the code below if the user has \v in their name. For Example, if their user name is xxx\vtest, it can't find the backslash when using the LastIndexOf function.
string strUser = this.Context.User.Identity.Name;
strUser = strUser.Substring(strUser.LastIndexOf("\\") + 1);... | stackexchange/codereview |
A piece of code to update DB raw:
private EditText et;
//...
private void updateRecipe(){
SQLiteDatabase db=recipes.getWritableDatabase();
ContentValues values=new ContentValues();
values.put(RECIPE, et.getText().toString());
db.update(RECIPES_TABLE, values, "id=?", new String[]{id});
}
When ran, an error oc... | stackexchange/codereview |
I installed the ODP 11 lateset version, which suposed to wupport EF4.
But when i'm trying to add entity data model in the VS2010, I don't have the option to select Oracle Database.
Is there anything else i need to do?
Also, I have running on my pc Oracle Express 10g - Is the 11 ODP will work with this DB?
| stackexchange/codereview |
Possible Duplicate:
How to iterate through two lists in parallel?
I have 2 lists:
l = ["a", "b", "c"]
m = ["x", "y", "z"]
And I want to iterate through both at the same time, something like this:
for e, f in l, m:
print e, f
Must show:
a x
b y
c z
The thing is that is totally illegal. How can I do something l... | stackexchange/codereview |
we are building product that can be used by other systems. As we have SOA, we develop only a service (WCF). We had several controversial discussions about how to design an interface of that service. We are choosing between procedural and OO design for service.
As our service will be used from .NET and Java some say tha... | stackexchange/codereview |
I'm trying to get access to the metadata about podcasts, such as the show notes/description, the show title and the icon image. I'm at least partially using ContentResolver to query for most of the AudioColumns information, but for some reason ALBUM_ART is missing, there seems to be no column for the description, and i... | stackexchange/codereview |
In the controller, I'd like to do:
@options = { :obj_id => @obj.id, :obj2_id => @obj2.id }
And in the view:
<%=
remote_form_for(:model_object, :url => { :action => 'some_action' }) do |f|
@options.each { |k, v|
f.hidden_field(k, { :value => v })
}
}
%>
The code above currently will just output the st... | stackexchange/codereview |
I find the behaviour of this piece of code puzzling, why is the constructor of child not Child? Can someone please explain this to me?
function Parent() {
this.prop1 = "value1";
this.prop2 = "value2";
}
function Child() {
this.prop1 = "value1b";
this.prop3 = "value3";
}
Child.prototype = new Parent();
... | stackexchange/codereview |
I have the following C# code.
namespace MyMath {
public class Arith {
public Arith() {}
public int Add(int x, int y) {
return x + y;
}
}
}
And I came up with the F# code named testcs.fs to use this object.
open MyMath.Arith
let x = Add(10,20)
When I run the following comman... | stackexchange/codereview |
I wrote a bot for controlling racing game using Java Robot. The bot works well for Need For Speed Underground except for key "Down" (Up, Left, Right keys work very well). However my bot can't control Need For Speed Most Wanted.
The bot works fine, but the Game doesn't accept the simulated key events. I did some search... | stackexchange/codereview |
Hi, everyone!
I'm writing Asp.Net MVC 2 site.
I have TimeController and TimeView, CountDownHelper for render time on TimeView page.
Also I have JavaScript that updates current time, that is used in CountDownHelper.
I need to call AJAX from this JavaScript to get current Time on server.
How I can to do it? Please ... | stackexchange/codereview |
In a lot of autogenerated code in Java, the common practice is to preface the name of variables that could potentially clash with user variables with a dollar sign. By convention, manually written code doesn't use dollar signs. However, in C# that character isn't valid in identifiers. Is there a standard practice for n... | stackexchange/codereview |
Is there anyway to run an event after i selected a file in a Fileupload control, so i can set Label1.Text = FileUpload.FileName;
Or if any of you got another idea that would be awesome too(maybe some javascript)! :)
| stackexchange/codereview |
Is there any existing way to get a Calendar populated with time at epoch using Calendar API's other than explicitly setting them at epoch? All I was able to do was to get the current time.
| stackexchange/codereview |
I need something like this:
Chapter 1
Preliminaries
1.1 Banach Algebras
I tried this:
\chapter{}
\section*{Preliminaries}
\subsection{Banach Algebras}
The problem is: As soon as I hide the section number using \section*{Preliminaries}, it changes the numbering of the subsection to 0.1 Banach Algebras.
How do I hide ... | stackexchange/codereview |
Is there an equivalent function in JavaScript or jQuery similar to strpos in PHP?
I want to locate a string inside an element on a page. The string I'm looking for is:
td class="SeparateColumn"
I would like something where I can run it like this to find:
if $("anystring")
then do it
| stackexchange/codereview |
I am using mahout to cluster text documents indexed using solr.
I have used the "text" field in the document to form vectors. Then I used the k-means driver in mahout for clustering and then the clusterdumper utility to dump the results.
I am having difficulty in understanding the output results from the dumper. I cou... | stackexchange/codereview |
My Database contains three tables: PermissionCategories, Permissions, and Users. There is a many to many relationship between Permissions and Users which is resolved by a UserPermissions table.
Using Entity Framework projection I'm trying to get all the PermissionCategories and include (eager load) the permissions filt... | stackexchange/codereview |
I'm having problems with running multiple different classes from one JAR file. I know that I can set one of the classes inside JAR to by Main class that will be run after command java -jar myjar.jar, but what I want is something like:
java -jar myjar.jar MyClass
Is it possible to do this that way, or do I have to cr... | stackexchange/codereview |
I'm creating ContentProvider which is a proxy of another ContentProvider (for security issues and to give access to part of functionality of full app).
public class GFContactsProvider extends ContactsProvider implements
DatabaseConstants {
private Context mContext;
private ContentResolver mContentResolve... | stackexchange/codereview |
I just got stuck with the following C++ compiler error:
no matching function for call "EPTDerivedException::HandleClass( BaseClass& )"
candidates are: void EPTDerivedException::HandleClass( DerivedClass )
I cannot explain this, because there should be a function HandleClass( BaseClass ). This is the calling code:
Base... | stackexchange/codereview |
My website (http://www.webbuddies.co.za) works perfectly, but when viewed at 1280x1024 resolution, there's a bit of white visible at the bottom of the page that I'd like to get rid of.
The background is a gradient image and rather than recreating the image, I want to just change the color of the background to match the... | stackexchange/codereview |
Im having trouble with json in mako. I do this:
${ to_json( dict( a = 1, b = 2 ) ) }
where to_json is:
<%!
import simplejson as json
def to_json( d ):
return json.dumps( d )
%>
however, instead of giving me
{"a": "1", "b": "2"}
its giving me
{"a": 1, "b": 2}
so mako changes the... | stackexchange/codereview |
I have an application that I have designed and this app has a pretty decent core dll that contains an API that my main view's exe uses. I would like to allow other developers to access this core dll as well but I don't want them to have as much access as me since it would be a security risk. What is the standard way ... | stackexchange/codereview |
Disclaimer: I'm an SQL newb and this is for a class, but I could really use a poke in the right direction.
I've got these three tables:
student(_sid_, sname, sex, age, year, gpa)
section(_dname_, _cno_, _sectno_, pname)
enroll(_sid_, grade, _dname_, _cno_, _sectno_)
(primary keys denoted by underscores)
I'm trying to... | stackexchange/codereview |
I have the following HTML markup and I want the menu div tag to always be 5px away from the bottom border of the parent container.
I can manually through trial and error position it using margin-top, but if I were to change the logo or modify the div size I'd have to change this value again using trial and error. A muc... | stackexchange/codereview |
I want to call a specific operator of specific base class of some class. For simple functions it's easy: I just write SpecificBaseClass::function( args );. How should I implement the same for operators without casting trickery?
Isolated problem:
class A
{
public:
A operator+( const A &other ) const {...}
};
... | stackexchange/codereview |
I have some pins that the user can add. In the callout there is a button.
When the user presses the button, I want a new pin to drop in that location, and I want to get rid of the pin that the user pressed (different types of pins).
Basically the first pin is draggable, and when the user has found a proper location th... | stackexchange/codereview |
I have implemented an evolutionary algorithm in C# which kind of works but I have the assumption that the cloning does not. The algorithm maintains a population of object trees. Each object (tree) can be the result of cloning (e.g. after ‘natural selection’) and should be a unique object consisting of unique objects. ... | stackexchange/codereview |
Hopefully a quick one? I am creating a custom uitableviewcell and have added an imageview.
I have some PNG images which are around 200x200 in size. I want to create a thumbnail to put in the tableview, but when I resize the image, it results in a poor quality image.
I use UIViewContentModeScaleAspectFit to resize it t... | stackexchange/codereview |
I do not know what to call my "setters" on immutable objects?
For a mutable object Person, setters work like this:
class Person(private var _name: String) {
def name = "Mr " + _name
def name_=(newName: String) {
_name = newName
}
}
val p = new Person("Olle")
println("Hi "+ p.name)
p.name = "Pelle"
println("H... | stackexchange/codereview |
So I am getting the same exception as a lot of other people when I am trying to run an execute statement into my SQLite database in my Windows Forms project in Visual Studio 2010. The exception reads:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime withou... | stackexchange/codereview |
My Xcode speed has come down to a crawl. I have no idea why. CPU activity is very low on both cores, gobs of memory.
It's almost as if it's waiting for something but I have no idea what. I have disconnected all USB and FireWire devices but it helped only a little bit.
Any ideas?
| stackexchange/codereview |
I need to convert double to string with two decimal digits separated with 'dot'
My concern is that dot must be always used as separator.
| stackexchange/codereview |
I process xml which contains tabs ("\t") and line breaks ("\n") in its attributes values. When I parse it using XDocument.Parse(), the tabs and line breaks are converted to spaces, even with the LoadOptions.PreserveWhitespace parameter.
How can I get a XDocument with original attributes values?
| stackexchange/codereview |
I am having weired problem, after adding my virtual host conf entry localhost is not working (getting forbiden 403) but 127.0.0.1 does (all accessed via browser - http), here you have my conf:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/MyData/__www/default"
ServerName localhost
<Location />
Order de... | stackexchange/codereview |
In CSH, is it possible to nest the test for an existance of a variable with the test for its value in the same if-clause?
#!/bin/csh
# This seems to work...
if ( $?VAR ) then
echo "VAR exists"
if ( $VAR == true ) then
echo "VAR is true"
endif
endif
# I want something more like this:
if (( ... | stackexchange/codereview |
i configured my app push notification enabled.
should u collect the devicetoken id to my database? i dont send any particular message to some clients. i will inform all clients (push notification is accepted on device).
should i save the devietokenid in didRegisterForRemoteNotificationsWithDeviceToken event?
is it poss... | stackexchange/codereview |
I am referring to the portlet example here
All the divs of the class 'portlet-content' are displayed when the demo starts. I am trying to get them to collapse when the page loads, and I tried this:
$('.portlet-content').toggle();
Inside the document.ready(). However this doesn't work.
However, if I enter the statement... | stackexchange/codereview |
How can I create a function that copies some item from one Sharepoint discussion board to another? Everything is quite simple except field name Posted By, MyEditor, and Editor.
| stackexchange/codereview |
I am trying to write a regular expression to do a find and replace operation. Assume Java regex syntax. Below are examples of what I am trying to find:
12341+1
12241+1R1
100001+1R2
So, I am searching for a string beginning with one or more digits, followed by a "1+1" substring, followed by 0 or more characters. I hav... | stackexchange/codereview |
I'm going to try to keep this question database agnostic, but I have an interesting problem that I need to tackle and I thought I'd open up the floor for suggestions and feedback.
I need to be able to download data from a feed source and store it in a database of some kind, the data needs to be merged into the existing... | stackexchange/codereview |
Not a long question. Can anyone explain what the word "translation" means in the context of graphics? Thanks a lot.
| stackexchange/codereview |
Let's say I have a simple view controller with one UITableView property:
@interface MyViewController : UIViewController {
UITableView *tv; // <-- DO I NEED THIS??
}
@property (nonatomic, retain) IBOutlet UITableView *tv;
@end
Do I actually need to declare the UITableView *tv ? I've found that even if I don't decl... | stackexchange/codereview |
Just scouting for ideas here, but what would be a good way to implemenent mulitple screens in a game. I am thinking of a 2d game where when the player hits the edge of one screen it scroll to the next room.
Thanks all,
Martin
| stackexchange/codereview |
I have a page where I open a popup window and the original window is supposed to stay usable. In IE and Chrome, I can switch back and forth between the parent and child, but in Firefox, if I click on the parent window, focus goes to the child (which just flashes tauntingly).
I look at Firefox's popup options, and the o... | stackexchange/codereview |
I am using the following method to make a programmatic login after registration
private void autoLogin(User user,
HttpServletRequest request)
{
GrantedAuthority[] grantedAuthorities = new GrantedAuthority[] { new GrantedAuthorityImpl(
"ROLE_ADMIN") };
UsernamePasswordAuthentic... | stackexchange/codereview |
I've got some C functions which I am calling through JNI which take a pointer to a structure, and some other functions which will allocate/free a pointer to the same type of structure so that it is a bit easier to deal with my wrapper. Surprisingly, the JNI documentation says very little about how to deal with C struc... | stackexchange/codereview |
I am using a python script to execute an application to install a program. Using os.system('dir\\application.exe') works. However the installer has 2 installation parts and after completing the first one, it will hang there. The second one will only execute when I exit the python script. How can I get the whole instal... | stackexchange/codereview |
How can I know if the radio button checked property is true in PHP, can anyone give me an example?
Thanks..
| stackexchange/codereview |
I'm currently trying to deploy a Silverlight app with a RIA services link to a Web Application Project. This app also uses Devart dotConnect for Oracle (an EF system for oracle).
When running MSBuild on the csproj file I am getting the error:
C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Ria.Clien... | stackexchange/codereview |
I have two .net applications communicating with sockets on port 5672 and everthing works fine.
On server side, i open the connection with this simple code lines:
IPAddress localAddr = Dns.GetHostEntry("localhost").AddressList[0];
TcpListener socket = new TcpListener(localAddr, 5672);
socket.Start();
If i try ... | stackexchange/codereview |
I have 3 build configurations for my solution: Release, Debug, and Custom. Also I have WebSite (yes, not a WebApplication) project type. By default, when you create WebSite VisualStudio 2008 adds to the solution file following sections:
Debug.AspNetCompiler.VirtualPath = "/MyWebSite"
Debug.AspNetCompiler.PhysicalPath =... | stackexchange/codereview |
In my code I use initWithArray like so :
vendorArray = [[NSMutableArray alloc] initWithArray:resultsCore.availableVendors];
But changes I make to the vendorArray also seem to be made to restultsCore.availableVendors.
This was not what I had desired.
I want populate vendorArray with restultsCore.availableVendors but th... | stackexchange/codereview |
I'm trying to define a route in routes.rb and I can't do anything from this Ruby on Rails routing guide that will let this error pass.
No route matches {:controller=>"devise/home"}
Here's my routes.rb source.
SchoolCMS::Application.routes.draw do
root :to => "home#index"
devise_for :teachers, :admin
resources ... | stackexchange/codereview |
Alright so here it is. I need to figure out the average amount of days between two columns.
Column 1 is recieved_date and column 2 is fix_date
Just want to know how to take the two dates find the difference in days, do that for every row and pop out a number stating the average amount of days it takes to fix something.... | stackexchange/codereview |
I am running msysgit 1.7.3.1. If I run stash apply, and there is a conflict,
all of my stash changes get staged. Is this the correct behaviour? I found it a
little surprising.
Another question: if I have stashed 10 files, and there is a conflict in one of
them, will stash apply abort when it has a conflict, or will it... | stackexchange/codereview |
I am writing a little diff tool and need to be able to change the color of a character depending on if its the same, added, removed. What would be the best way to handle this? Is a textblock a good control to start with?
| stackexchange/codereview |
There is no problem with portrait mode but when i try my app on landscape mode it doesn't look how it should.What is general aproach to solve this problem.My first idea is replacing X and Y places.If i am on the right track how should i do this ? Should i use an if statement at the beginning of the onDraw() function an... | stackexchange/codereview |
I have finally gotten my first app to work properly and I'm attempting to send it to the App Store. In my Application Loader, I'm getting this error:
Info.plist does not contain a CFBundleResourceSpecification
I have read on the following SO question that this could be because I am Building on the simulator and then z... | stackexchange/codereview |
In WebKit innerText seems to return the text of the element that the user sees which is exactly what I need.
Are there any polyfills for Firefox?
For example:
<div id='1'><br> f<div style='display:none'>no</div>oo bar</div>
<script>
function test(){ return document.getElementById('1').innerText }
</script>
The fun... | stackexchange/codereview |
I heard Silverlight support high quality definition video, which flash does not support. Is that true? If yes, any other benefits comparing Silverlight to Flash?
If anyone could provide some document to make a reference, it will be appreciated!
thanks in advance,
George
| stackexchange/codereview |
I am following through the RailsCasts episode on PayPal security. I am try to port this code to C# and am using OpenSSL.NET
Also is it possible to do this without using the OpenSSL wrapper library as that uses some unmanaged code?
The ruby code that I am trying to port is this:
def encrypt_for_paypal(values)
signed =... | stackexchange/codereview |
I'm writing some Cocoa code and having trouble with the iTunes track persistent IDs returned by Scripting Bridge and Distributed Notifications.
Taking one track as an example - in a Scripting Bridge call I get the following values:
Persistent ID: 2FBA59E028DC5E51 (NSString) - Hexadecimal?
...but from a Distributed Not... | stackexchange/codereview |
Does anyone have advice for using the params in C# for method argument passing. I'm contemplating making overloads for the first 6 arguments and then a 7th using the params feature. My reasoning is to avoid the extra array allocation the params feature require. This is for some high performant utility methods. Any advi... | stackexchange/codereview |
I have a daemon script written in ruby which responds to commands like daemon start and daemon stop. It's executable with shebang #!/usr/bin/env ruby and it works invoked from terminal. I need to start the daemon on login and stop it on logout.
Background info: KDE, zsh.
I already tried to make two separate shell scrip... | stackexchange/codereview |
This error is being thrown when running a Linq query over a List.
I am using Unity3D 3.0 with C# (Unity3D uses Mono 2.6). Unity3D, as far as I know, is single-threaded. It works by attaching "scripts" (c# .cs files) that inherit a baseclass, to a "GameObject". Also, Unity controls instantiation and serialization of scr... | stackexchange/codereview |
I am new to Eclipse plugin development. I am developing a plugin which is only available inside an intranet and the user has to be prompted everytime a new version of the plugin is available. The plugin has an update site.
Whats the best way to do this? Is it possible to install the new version programatically?
I am ta... | stackexchange/codereview |
I'm including one thirdparty reference to my coding.But when i use it my coding it shows error.
My code: In TagInfo.h
ref class Globals
{
public:
static DUAL_INOUTLib::DualInOut^ objVM;
};
Im using it in my coding as In TagInfo.cpp
void CTagController :: ReceiveLivePoints()
{
float PV,SV,MV,P,I,D; ... | stackexchange/codereview |
Table1
Date v1
05/01/2010 26
05/02/2010 31
05/03/2010 50
Table2
Date v2 v3
05/01/2010 42 jkl
05/02/2010 28 mno
05/03/2010 12 pqr
05/04/2010 13 stv
05/06/2010 48 8965
How can I join the above two tables so that my result look similar to below
Date v1 v2 v3... | stackexchange/codereview |
I have the following table and trigger but the trigger isn't setting the create_dt value to now() on the insert event:
CREATE TABLE `user` (
`user_id` int(10) NOT NULL auto_increment,
`user_name` varchar(255) NOT NULL default '',
`password` varchar(255) NOT NULL default '',
`first_name` varchar(255) NOT NULL de... | stackexchange/codereview |
I have url structure like index.php?option=mycomponent&id=12
I would like to rewrite id=12 to something like "blue car" where blue car I can place somewhere in mysql.
Is it possible?
| stackexchange/codereview |
A small debate flared up in a question about protected member variables regarding the use of getters/setters. There are lots of questions already over whether getters/setters are evil, however one particular argument against them, which was posed by two separate individuals with much higher reputation than myself, str... | stackexchange/codereview |
I'm getting this crash when selecting a row: '-[__NSCFArray objectAtIndex:]: index (1) beyond bounds (1)',
I moved the data out of the viewWillAppear because we though it was causing a crash. I now have it loading on ViewDidLoad.
However if the [self.tableview reloadData]; is on, I get this crash.
Ideas?
-(void) lo... | stackexchange/codereview |
how can I handle message box reply example if the user click on yes do something if the user click on NO do another thing ?
| stackexchange/codereview |
I need this div to enlarge when hovered and shrink back to default when the mouse is away from the div.
I did this:
$('.box').live('hover', function()
{
if($(this).height() == 145 && $(this).width() == 100)
{
$(this).animate({ height: '+=30px', width: '+=30px' }, 500)
$('.image img').animate({ h... | stackexchange/codereview |
I have a datepicker on a textbox txtDate. I need to remove the datepicker, if a particular checkbox chkBox is checked. And to reapply the datepicker if the checkbox is not checked.
I tried making the textbox readonly, but datepicker is still working. How to do this.
EDIT: On the same checkbox event, I also want to ma... | stackexchange/codereview |
I currently use nginx with passenger to serve my rails app. considering including a caching reverse proxy to the equation. Can I use the same instance of nginx as a reverse proxy (running on port 80, serving static as well as e-tagged actions) as well or would I need a different instance of nginx or a totally different... | stackexchange/codereview |
just a quick question. I have been looking around searching for information about the order of elements in the serialization xml document for an object.
As far as I know the order (unless specified using XmlElement attributes) will be the order the properties are present in the type's code. This order, however, is not ... | stackexchange/codereview |
in order to remove the duplicate data in table section view i am doing this now i dont know whether this is good or not so kindly help
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//UILabel *labelb;
UILabel *labela;
UILabel *labelt;
static NSStrin... | stackexchange/codereview |
I have spent the last few days trying to parse a SOAP response but I can't get it to work. I would like to be able to get all the "oproduct" objects.
EDIT: I am doing it this way instead of using the built in SOAP client because I need to do parallel requests using multi_curl.
Here is my code:
$xml = simplexml_load_str... | stackexchange/codereview |
I'm new to the iPhone SDK and I wonder, where I get some standard buttons, that a lot of applications use. I wanted to have that button:
http://4.bp.blogspot.com/_fAv06gZ6FPU/SumCCleuwpI/AAAAAAAAAFs/0mtPapm8EFg/s1600-h/Screen+shot+2009-10-29+at+11.47.20.png
in an UIToolbar. Any advices please? :-)
Thanks in advance... ... | stackexchange/codereview |
My ASP.NET MVC site requires forms-based authentication for some resources (downloads, discussion forum, etc). This works great with the [Authorize] attribute.
However, I need my admin site (`~/Areas/Admin/*) to authenticate against active directory.
With regular ASP.NET or classic ASP, I would just go into the IIS con... | stackexchange/codereview |
I'd like to be able to open two windows in Emacs, select a region of text in each window, and get a comparison of the difference between the two selections.
This would be very handy for a large-scale maintenance project, where I'm working on a version tree with multiple branches, lots of copy/paste, and code that is b... | stackexchange/codereview |
This is a tricky one to explain (and very weird), so bear with me. I will explain the problem, and the fix for it, but I would like to see if anyone can explain why it works the way it works :)
I have a web application that uses mod_perl. It uses MySQL database, and I am writing data to a database on regular basis. It ... | stackexchange/codereview |
I am trying to extract the header of a CSV file in Python by using the CSV module.
The CSV file is quite flat, and looks something like:
This, That, The Other
1, 2, 3
I am doing the following:
Read in the CSV file and make the reader object
push the reader's iterator to the next line to force it to access the first ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.