instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Is it possible to have an inner tbody inside an outer tbody like this:
here is a sample css:
<style type="text/css">
.class1 {background-color:#ff0000;}
.class2 {background-color:#00ff00;}
</style>
Here is the sample HTML
<table>
<tbody id="outer" class="class1">
<tr>
<td>...</td>
<td>...... | stackexchange/codereview |
I'm looking to distinguish a difference between my troubled page and my finished page in the icon placement in my leftcol <div>. For some reason, the icons on the troubled page are all over the place.
I have used Firebug with FF to try and find a difference, but I cannot.
I'm sorry if it's super simple but I've been ... | stackexchange/codereview |
I want to use the following code just to check the input.
#include <stdio.h>
#include <iostream>
#include <ctype.h>
int main()
{
int number1;
puts("Enter number 1 please:");
scanf_s("%d",&number1);
if (isdigit(number1))
{
puts("Input is correct.");
}
else
{
puts("Y... | stackexchange/codereview |
I am working on a simple game in Java, everything goes fine, except I have a situation where I need to evenly spread out nodes on the circumference of a circle.
For instance, if there are exactly 4 nodes, then one would go straight to the north, one to the south, one to the east and one to the west. Of course there cou... | stackexchange/codereview |
I have made a Tic Tac Toe game. Everything is working fine, except that when the game is finished I am unable to reset the view to it's original state (without popping the view of the navigation stack and popping a new one back on). I have reset the model, but how do I then reset the view?
People are pretty on the ball... | stackexchange/codereview |
I have a two tables. One table is actually populated by daily events while the other is just a summary of the other table. I have a stored procedure which deletes the values stored in the Daily Table. Now every after delete, the Summary table should also be updated such that the SUM will now be updated less the value o... | stackexchange/codereview |
What is a neat way to hold pairs of strings which are not necessarily key-values (might have duplicate keys), for a small collection? List[List[String]] works obviously but looks dirty.
Cheers
Parsa
| stackexchange/codereview |
I use Python 3.1 inside Windows XP and when I try to use more than one module at the same time, the Python shell restarts. What can I do?
This is my module benutzer.py:
class Benutzer(object):
def __init__(self,benutzer):
self.name = benutzer
self.email = None
def setzeEmail(self, adresse):
... | stackexchange/codereview |
I want to make a "section" which has an image and some text below it.
Should I be subclassing UIView or UIViewController?
I'm thinking UIView as it won't know what image or what text to display, just that there will be both.
Also if it is UIView, what method do I add the subviews (UIImageView and UILabel) in as subview... | stackexchange/codereview |
I want to check raw data string (raw xml) received by my web service methods (for logging and debugging purposes).
I saw recommendations: to handle 'BeginRequest' event in HttpApplication. But I don't see which field of 'Request' object contains this POST data?
| stackexchange/codereview |
This always confuses me. I hope for help from native English speakers who mind their language.
Let's say I have:
x := 5
I can say "x is assigned 5". Fine. But then I bring in a preposition. Which of the following expresses what happens: "5 is assigned to x" or "x is assigned to 5"?
I can get one intuition by drawing an... | stackexchange/codereview |
Hey there, I want to simulate the press of iPhone home button and power/standby button. Could anyone tell me how to do this?
| stackexchange/codereview |
I have latitude and longitude defined as decimal(9, 6) in my zip code table, per the zip code database company's instructions.
I take a lat/lon feed it to a function in my c# program and it gives me lat/lon in boundaries for getting a list of lat/lon from the database (radius distance)
The sql code does not work with t... | stackexchange/codereview |
We have a fairly large website with several master pages. Right now the titles are being controlled by Session variables in individual pages and set by the master page. The code is bad and needs to be redone. With the current system, since the master page is executed last, we can't completely overwrite the page titl... | stackexchange/codereview |
It's looks like they are using an all javascript based solution.
Are they using a package out there are did they roll their own solution?
| stackexchange/codereview |
I have a project that was created with VS2008. I'm trying to build it with MSBuild 4.0, but still targeting the 3.5 framework. When I do so, I get the exception:
[exec] ResGen : error RG0000: Could not load referenced assembly "C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\PresentationUI\v4.0_4.0.0.0__31bf3856ad364e35\Pre... | stackexchange/codereview |
I've just finished my first year of Java and I've been looking at the JDK source code as an exercise.
I came across something I've never encountered before where there were two assignments to the same variable in the same statement.
e.g.
variable = expression = expression;
What exactly is going on here? Is this a fairl... | stackexchange/codereview |
Hey guys.
I'm having this problem for 2 days now and I really don't know what to do anymore.
When I run the iPhone 4 simulator and click a specific picker, the app crashes with the
error: 'NSRangeException', reason:
'* -[NSMutableArray objectAtIndex:]:
index 4294967295 beyond bounds [0 ..
3]'
However, it doesn... | stackexchange/codereview |
Possible Duplicate:
How to resolve “Waiting for Debugger” message?
This might be helpfull for the one or the other:
If the debugger doesn't attach (hang-up of the screen "waiting for debugger), then you probably use the phone device and the emulator at the same time.
Just unplug the phone or close the emulator and ... | stackexchange/codereview |
I have 3 different instances of a class and when a user taps a button (there are buttons for each of the instances) I want it to add the text of the button to the NSArray. But the NSArray must contain all 3 different sets of "historys"
Should I be using a singleton, or just keep a reference to the NSArray as a property... | stackexchange/codereview |
Lately I run my C++ program that was built and tuned in 32 bit system on a 64 bit system and I notice there are some bad performance changes. In my code, I used a lot float point variables. Now I suspect this may be the reason for the bad changes. Is there anyway to avoid such performance changes when moving code from ... | stackexchange/codereview |
You know when you start searching in an autocomplete search box, you get a list of possible results. From those results, say you click one of the items on the list, I want to take that item and perform another search to give another list of results. Just exaclty like how google works. if you dont understand me try typi... | stackexchange/codereview |
I'm getting data out of a SQL-Server nvarchar(3000) field, which is formatted as html, displaying it in Crystal Reports 11. The data is being saved as bullets, and if I pull out the data and drop it in a text file with an html extension, it shows the bullets. But from Crystal, it does not. I get the new line, but no... | stackexchange/codereview |
This is a fairly straightforward question.
I have Users in my Rails3 Application. I want to give each user the ability to customize their stylesheet through a form so they can essentially have their own themes.
I was wondering how I can go about getting this to happen and what is the best way that you have seen it don... | stackexchange/codereview |
In a SQL Server table, I have a DateTime field and every time I have a login failure for an external web service I write the current DateTime to the table.
I currently have code that parses through the returns and determines if there are > 2 failures within 5 mins. If so I have a flag to turn off calling of the web ser... | stackexchange/codereview |
Our clients are able to edit some text on our "admin" web site, which then displays to their customers on another "client" web site. They now want the ability to add mark-up like bold, italic, underline (and combinations of the above) plus links to web pages. Unfortunately, because we use a web framework that passes ... | stackexchange/codereview |
So I'm wondering what the best way to do static pages in Rails is, or rather Rails 3. I've always been a little confused about this, like should I create a controller or not?
| stackexchange/codereview |
I currently have python code that compares two texts using the cosine similarity measure. I got the code here.
What I want to do is take the two texts and pass them through a dictionary (not a python dictionary, just a dictionary of words) first before calculating the similarity measure. The dictionary will just be a ... | stackexchange/codereview |
I know there are many bug tracking/project management programs out there. For my main project, I use Pivotal Tracker, and it is serving my needs just fine. But I have a side project that I want to also work on, but my full time won't be on that project. Because of that, I don't want to use Pivotal Tracker because it us... | stackexchange/codereview |
I am learning Perl and wrote this script to practice using STDIN. When I run the script, it only shows the first print statement on the console. No matter what I type in, including new lines, the console doesn't show the next print statement. (I'm using ActivePerl on a Windows machine.) It looks like this:
$perl script... | stackexchange/codereview |
Possible Duplicate:
Can regular expressions be used to match nested patterns?
I am writing a regexp to check if the input string is a correct arithmetic expression. The problem is checking if there are enough opening and closing parentheses.
Expressions:
(1)
(((1)
((1))))
I think lookahead and lookbehind are usefu... | stackexchange/codereview |
Can anyone point me to a really simple hello world type of application that introduces ScriptingBridge? Something that takes you step by step to creating a 1 class - 1 method project that can be instantiated from ruby/python/applescript, etc.
I'm having a hard time wrapping my head around what is actually required to c... | stackexchange/codereview |
I always assumed that fortran passed entities "by reference" to a dummy argument. Then I got this answer (the actual argument of the answer was related, but not on this)
The standard never specifies that and,
indeed goes quite a lot out of its way
to avoid such specification. Although
yours is a common misconcep... | stackexchange/codereview |
I have several different sites running off WordPress, and the URLs tend to get fairly long and cumbersome (particularly when I try to publish them via Twitter). I recently purchased a very short domain name, and I'd like to use it as the root of a personal URL shortening service.
So ...
http://www.eamann.com/portfoli... | stackexchange/codereview |
This is my user control :-
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:e... | stackexchange/codereview |
I am trying to simulate the "new identity" button in Vidalia (the Tor GUI) from my program. I asked about that, based on Rob Kennedy's answer, I tried this in my application:
IdTelnet1.Host:='127.0.0.1';
IdTelnet1.Port:=9051;
IdTelnet1.Connect(-1);
IdTelnet1.SendCmd('SIGNAL NEWNYM');
But it has not worked for me. Even... | stackexchange/codereview |
I am trying to get a popup after saving some data into the database. When using the ConfirmButtonExtender and ModalPopupextender, it asks for TargetControlID. So i have given TargetcontrolID as Submit button. So whenever the submit button is clicked, it shows the popup first saying "your password is successfully saved"... | stackexchange/codereview |
I'm using the Spree Rails gem for my ecommerce site. During development I've been using the sample data. After re-bootstrapping the database using "rake db:bootstrap" and this time NOT loading sample data, any time I go to any page on my site, it redirects me to /users/new.
I have removed all my custom route rules.
Any... | stackexchange/codereview |
I am passing a bunch of tabs from a zul file to a java file like so:
tabs.zul
<tabs>
<tab id="tab1" label="Tab1"> </tab>
<tab id="tab2" label="Tab2"> </tab>
</tabs>
<zscript>
testTabs = new TestTabs();
Tab[] tabs = {tab1, tab2}
testTabs.registerTabs(tabs)
</zscript>
TestTabs.java
public class TestTabs {
..... | stackexchange/codereview |
I have a textarea in a form, the data used ind the field comes from an sql call.
When i load the form not all text is displayed, just the first line.
But when i press space, inter, backspace or another button, all text is displayed
anyone have a solution!
/RMalberg
| stackexchange/codereview |
The following query is something i inherited from an old app that adds 2 attributes to an excel stored in the database.
SELECT
row_number() over(order by id) as num
, [id] as mailsort
, 0 as pages
, [xmlRecord].query('/sst-statement/*')
FROM dbo.RPA200_preproc AS [sst-statement]
WHERE rpatype = 201
ORD... | stackexchange/codereview |
I'm trying to convince an EditText-view to only use the SoftKeyboard that I wrote. It's bugging me for a few days already and I can't believe that this isn't possible to do. I might not see the obvious...
So far I managed to write my own SoftKeyboard based on the sample that comes with the Android SDK. I'm able to manu... | stackexchange/codereview |
i would like get the offsets of a div,but when i try to access to that div says me [Object object]... or undefined or 0.0;because i think that my method is wrong :-(
This is the code of the page:
http://pastebin.org/208836
And i have already tried with this code:
var p = $(".product_72ivnj");
var offset = p.offset();
v... | stackexchange/codereview |
Currently I have some event listeners setup to log all insert/update/delete actions that happen. I just go through the list of properties and build a string to insert into an audit table.
What I'd really like to do is get the raw SQL query that NHibernate generates. Just like what NHProf shows.
How would I do this?
| stackexchange/codereview |
In the following code is is guaranteed that "0\n" be printed?
#include <stdio.h>
int main(void)
{
int c = 0;
printf("%d\n",c);
printf("%d,%d\n",++c,++c);
}
More generally, if a program has undefined behavior does the entire program become undefined or only from the sequence point that begins the problema... | stackexchange/codereview |
Is it possible to install Ruby 1.9.2 on Ubuntu not using RVM?
| stackexchange/codereview |
Why does the following code compile?
Why is it allowed to cast a generic list to its type parameter if the parameter is an
interface but not a super-interface of the generic?
What does this mean?
//Connection can be substituted by any interface
List<Connection> list = null;
Connection c = (Connection) list;
| stackexchange/codereview |
If yes then they are really not a pair.
I was trying to figure out how ssh git@github.com resolves my name using my private key. SSH debug suggests public key is passed to server.
| stackexchange/codereview |
I am developing full ajax web app. So I need to develop google crawlable app, also I must create snapshot for googlebot.
Do you know headless browser works with javascript and ajax for ASP.NET ?
I found XBrowser but right now it hasn't JavaScript support.
sorry for my English :).
| stackexchange/codereview |
I have several image files embedded as resources in a DLL file! I want to create my own custom protocol handler to be able to write HTML code to access these resources.
For example, on a computer where this DLL is located I want to be able to (in IE) run HTML code like this:
< IMG SRC="customuri://res/image01.jpg"/ >
T... | stackexchange/codereview |
Consider the following code in Python:
class A(object):
CLASS_ATTRIBUTE = 42
def f(self):
return "CLASS_ATTRIBUTE: %d" % self.CLASS_ATTRIBUTE
class B(A):
CLASS_ATTRIBUTE = 44
Now A().f() and B().f() return "CLASS_ATTRIBUTE: 42" and "CLASS_ATTRIBUTE: 44" respectively.
How can I achieve a similar e... | stackexchange/codereview |
I'm currently running into a problem regarding animation in OpenGL. I have between 200 and 10000 gears on the screen at a time all rotating. When the window is not in maximized view, my CPU runs at about 10-20 % consistently. No spikes, no stuttering in the animation, it runs perfectly smooth regardless of the number o... | stackexchange/codereview |
I have an object called $object formed as follows:
stdClass Object ( [PLAYER_ID] => 141 [STATUS_ID] => 16 [LOGIN_NAME] => mikemo21 [EMAIL] => mmogilefsky@yahoo.com [PT_BALANCE] => 13775 )
I'd like to add a parameter to this, perhaps so it appears as follows:
stdClass Object ( [PLAYER_ID] => 141 [STATUS_ID] => 16 [LOGI... | stackexchange/codereview |
This is an important issue and I would be grateful for a solution.
I convert a document (RTF) with several embedded images to HTML with Word 2010. The original quality of all images is 200 dpi. When saving as "Web Page, Filtered", all images are reduced to 96 dpi, despite of what I set in the "Save As" dialog -> Tools... | stackexchange/codereview |
I have an array of latitudes/longitudes and Descriptions that I want to display on a Google Map.
Does anyone know of an API (or even better a tutorial) that describes a good way to accomplish this or something similar using PHP and/or Javascript?
| stackexchange/codereview |
I don't code with lib linking and dll for most of the time, recently when I do, i realized there could be something very wrong with the way i do my #include.
Is the following the correct/desirable way to do #include?
suppose i have 3 projects (1) dll_A (2) dll_B (3) exe_1. dll_A depends on dll_B, exe_1 depends one dll_... | stackexchange/codereview |
I am using spring security and have an admin jsp page for editing user details. I want to be able to grant or revoke authorities on this page. The following checkboxes tag works to display a given user's existing authorities:
<form:checkboxes path="authorities" items="${roles}" delimiter="<br />" />
where authorites... | stackexchange/codereview |
I have an input field I want to assign a new value and fire an .onchange() event. I did the following:
document.getElementById("range").value='500';
document.getElementById("range").onchange();
Where range is my input Id.
I get the following error:
Uncaught TypeError: Cannot read property 'target' of undefined
Is the... | stackexchange/codereview |
I'm having the following error when closing a form in an application
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
***** Exception Text *******
System.NullReferenceException: Object reference not set to an instance of an object.
at Infragistics.Win.U... | stackexchange/codereview |
In my app, I have a logs mechanism, which offer the possibility to the customer to send the logs via mail.For this, I integrated in my app the Apple MFMailComposeViewController. In case that the customer use a device with low OS version (2.x) or an e-mail account isn't presented on the device, I pushed some UIAlertsVie... | stackexchange/codereview |
I'm trying to write a regular expression that replaces line feeds between certain areas of a text file, but only on plain text content (i.e. excludes text inside HTML attribute contents, like href) but not having much luck past the first part.
Example input:
AUTHOR: Me
DATE: Now
CONTENT:
This is an example. This is ano... | stackexchange/codereview |
I would like to clear the command line of my process from within. For example, when viewing my process in Task Manager/Process Explorer, the command line entry would be empty.
I would like to do this within the currently running process rather than restarting the process if possible.
| stackexchange/codereview |
I'm currently using RedirectToRouteResult as follow:
public void OnAuthorization(AuthorizationContext filterContext)
{
User user = filterContext.HttpContext.Session["user"] as User;
if (user == null || user.Role != expectedRole)
{
filterContext.Result = new RedirectToRouteResult(
new Rou... | stackexchange/codereview |
My specs:
OS: Ubuntu 10.04 LTS amd64
fpc: 2.4.0
lazarus: 0.9.28
I'm trying to compile a WebLaz project just by creating one and then compiling.
Somehow the compiler gets all lost when determinig witch httpd and fpapache Units to use.
I've found similar problems in the forums:
mod_helloworld.lpr Can't find fpapache U... | stackexchange/codereview |
I'm writing a Perl script in which I need to loop over each character of a string. There's a lot of strings, and each is 100 characters long (they're short DNA sequences, in case you're wondering).
So, is it faster to use substr to extract each character one at a time, or is it faster to split the string into an array ... | stackexchange/codereview |
I am building a new WordPress theme using register_post_type to create a custom post type called Listings.
I would like each listing to have the following permalink structure:
http://www.mysite.com/post-author/listing-title
I'm not quite sure how to achieve this with the CPT controls listed in the Codex. Any help or li... | stackexchange/codereview |
I am not sure if this is possible to do, but I need a way to replace a value of a numbered group specified in the my regex expression with a string declared dynamically at runtime, once a match has been made.
Given a simple case, something like...
(/)?([A-Za-z0-9])?(/)?$
I would want to be able to plugin a replacement... | stackexchange/codereview |
Could someone tell me how I can extract and remove all the <script> tags in a HTML document and add them to the end of the document, right before the </body></html>? I'd like to try and avoid using lxml please.
Thanks.
| stackexchange/codereview |
I'm trying to filter a relationship table down to get a subset of the table where two conditions are met (ie: I want all of the id's of the entries who's color_ids are 1 or 2). It's a beefy table, so I'm trying to optimize as much as possible.
I was wondering if anyone could explain my finding in this case:
Why is
SELE... | stackexchange/codereview |
My application has internationalization and the language code is in the first part of every path like "/en/dosomething" and "/de/dosomething"
How do i make a single access rule for the "dosomething" resource instead of 2 and still check for "en" and "de"?
| stackexchange/codereview |
When you need to store sensitive data such as CCs or SSNs, do you:
1) Build your own encryption routine within the application, define a secret key somewhere in a config file, and then manually encrypt/decrypt data going to the database.
2) Push all the problem to the database, using the built in DB capabilities (I thi... | stackexchange/codereview |
I just saw that there is a Ruby to Parrot compiler called Cardinal, which can create code to run on Parrot, which is a VM that can run byte-code. How is the performance of Ruby or any language compile to it and run there because for example, Ruby probably doesn't have pre-compiled byte code. Can it be faster running ... | stackexchange/codereview |
I am new to Div based Page Layouts. My questions is should we design div based page layouts using percentage or fixed pixel?
If percentage, what about cross browser compatibility?
If fixed pixels, what about different screen resolution? What screen resolution should we opt for?
Also, what should be the bases for our de... | stackexchange/codereview |
Let's say you have the following code:
string encoded="9,8,5,4,9";
// Parse the encoded string into a collection of numbers
var nums=from string s in encoded.Split(',')
select int.Parse(s);
That's easy, but what if I want to apply a lambda expression to s in the select, but still keep this as a decla... | stackexchange/codereview |
Regular Expression: Not equal to Account and not begin with Account/
How do I express that in a regular expression?
Thank You.
| stackexchange/codereview |
I recently submitted a new version of my app to the app store, and increased the Deployment Target to 3.2, to make the app no longer able to install on iOS 3.1.3 which is not compatible with it. However, when the app went live on the store, it still is listed as "Compatible with iOS 3.1.3 or later." How can I increase ... | stackexchange/codereview |
Im fairly n00bish when it comes to fluent nhibernate but i have an unexpected error in one of my repositories.
I have a datatype CostCode
public class CostCode
{
public virtual int Id { get; set; }
public virtual String CostCodeCode { get; set; }
public virtual Company Company { get; set; }
public virtu... | stackexchange/codereview |
I have been learning php, by just plugging away at it.
I was hoping someone could point me in the right direction in regards to security, flow and general best practices?
Thanks.
edit--
I suppose a better way to phrase what i am trying to ask is..
What is the best practice:
1.) when processing forms with php, get vs po... | stackexchange/codereview |
Is there functionality in teh live Wallpaper for the service to know where widgets are placed on the homescreen and the size of the widgets? For instance If I created a Live Wallpaper that changed based on widget position is that possible?
Also I want to make a widget with buttons that manipulate the live wallpaper, wo... | stackexchange/codereview |
I'd like to throw an exception when the language doesn't conform to the grammar for a scala combination parser. Here's an example of a rule:
def record: Parser[Record] = "-" ~ opt(recordLabel) ~ repsep(column, ",") ^^ {
case "-" ~ label ~ columns => new Record(label, columns)
}
Let's say in the repsep(column, ",")... | stackexchange/codereview |
This should be relatively simple for the MVC experts out there, but I'm still learning the ropes.
I have a View which is not strongly-typed, simply ViewPage<dynamic>.
On this View, I have a single textbox, which is extended using jQuery's AutoComplete
When the user types something into the textbox, the AutoComplete do... | stackexchange/codereview |
I'm writing an app that will offer OCR of an image captured by the iPhone camera. I want to test the image before I perform the OCR analysis to see if there is sufficient lighting. Anyone have any ideas?
| stackexchange/codereview |
How did it become convention that there is no whitespace in the declaration of a method?
-(UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath
It seems like everyone does it, 90% of the examples I see, the generated templates, other people's code, etc., etc. I suspect it's ... | stackexchange/codereview |
I am well aware that parsing HTML with regex has its many caveats and vociferous opponents. So rather than trying to re-invent the wheel, I'm looking for a tool that I can point to a web page and say "Get me the comments, b*tch".
Anyone able to advise?
I was reading some OWASP documentation or a security blog, and I'm ... | stackexchange/codereview |
The following HTML...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div style="border: 1px solid blue;">
<div style="float: left;">
E... | stackexchange/codereview |
I have a boolean field called showLabels in a Bean class, and I want to provide getter and setter methods for it. The setter will be setShowLabels, but should the getter be isShowingLabels, isShowLabels (that's really weird sounding), or setShowLabels?
| stackexchange/codereview |
Basically, what I need is a way to tap into the current audio output and check the sound level, i.e. I need to be able to check whether there is something playing on the audio device or not.
I do not need to check the volume setting, but the actual playing audio stream's sound level.
Sorry, I was asking about how to do... | stackexchange/codereview |
I am trying to build a table to show me the price of an item each day over a specified time period.
I begin with three tables:
one containing the sale price with a start and end date, one containing the regular price of an item and when it started at that price, and one date table that just has dates for filling in bla... | stackexchange/codereview |
Was wondering if someone could assist with some Postgres. I have a table which has a column called mydate which is a postgres date type. I want to do something like:
SELECT * FROM MyTable WHERE mydate > [Today-1year]
I've never used Postgres before and I'm sure I just need to know the name of some functions- I'll glad... | stackexchange/codereview |
I have a PHP application that works well in every browser except Internet Explorer.
The application generates reports based on MySQL data. Certain fields of each report are clickable and will redirect the user to another page/report after POST using the PHP header() call.
In Safari, Firefox, Opera, etc. when the user ... | stackexchange/codereview |
I'm curious if a service exists that handles file uploads and provides a UI widget.
Ideally it would work as such:
They provide an embeddable and customizable file upload widget (upload progress, multiple files) with good cross browser / device compatibility.
The upload widget detects file types and provides an option... | stackexchange/codereview |
I'm playing around with the UI datepicker widget and I noticed that when the calender is generated, all the dates are inside an anchor tag with href="#". is it possible to change the href to the dateText, or whatever i set the dateFormat to?
ex: <a class="ui-state-default" href="#October-27-2010">27</a>
Thanks in adva... | stackexchange/codereview |
this is only loosely programming related.
I wrote myself a shellscript, that extracts all acronyms from a text and writes them to a file. Now I would like to process that file to add the definitions.
My first google hit suggested using curl and the dict:// url scheme. However I am behind a proxy, which does not seem to... | stackexchange/codereview |
A new project with some interesting requirements has arrived on my desk. I need to develop a searchable directory of businesses, with a focus on delivering relevant results based on arbitrary search queries. The businesses can be of any niche; there's no one area that is more represented than another.
When googling f... | stackexchange/codereview |
I need to reset a root password for one of my mysqld processes. I know in mysql, you can use mysqld_safe with the skip grant tables option, but what do you do when you have multiple mysql processes and want to reset their root user passwords? I can't use this option with mysqld_multi.
thanks,
| stackexchange/codereview |
I'm making a program that can access data stored inside a class. So for example I have this class:
#!/usr/bin/env python
import shelve
cur_dir = '.'
class Person:
def __init__(self, name, score, age=None, yrclass=10):
self.name = name
self.firstname = name.split()[0]
try:
self.... | stackexchange/codereview |
How do I, in effect, "reset" a component in order to have it look the the way it did when it first loaded. For example, I've got 3 buttons in an HBox. They start as red, visible, and have a label. I then programmatically make different changes to them-- change the color of some of them, change the visibility of some of... | stackexchange/codereview |
I created a class where the main task is get data from the DB and mapping it to some object. The problem is the same class needs to map different datareader to different object. So, what I tried to do is to get out the mapping method using delegates.
Here is part of my code. See the important rows in bold.
public class... | stackexchange/codereview |
I have certain classes that have common feature - class factory that I need to put into base class.
// This class needs to be designed
public class Base
{
// this function is no good because it returns object, and needs to return derived class
static object Create(byte[] data)
{
MemoryStream ms = ne... | stackexchange/codereview |
Well,my current situation is like this.
When i search something on my site for ex. http://example.org/web-search.phtml?search=SEARCHED+TEXT the respective content is shown.
As you can see I'm using a GET form to get the data from the previous form.So the first thing i want to do is open a file with the same as SEARCHED... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.