instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I don't know if they really using a RewriteRule (Apache mod_rewrite) for this, but if we append an URL after the URL of bit.ly (ie: http://bit.ly/http://www.somesite.com/), it takes the URL appended as a parameter (http://bit.ly/?u=http%3A%2F%2Fwww.somesite.com%2F).
Someone knows how to do that, maybe with a RewriteRul... | stackexchange/codereview |
I'd like to output a form button:
<% content_tag :button :type => :submit, :class => :positive do %>
<%= image_tag "icons/tick.png"%>
Save
<% end %>
Which should generate:
<button type="submit" class="positive">
<img src="/images/icons/tick.png" alt=""/>
Save
</button>
I have this throughout my site, ... | stackexchange/codereview |
I am using VS2010 , and I built a .mdf file using SQL server 2008
I want to use this database file in my wpf application so that I can add rows to it and delete rows from it
the problem is , I can't access this file , and all the insertion and deleting is actually hapening to the datacontexct i created .
I used myDataC... | stackexchange/codereview |
I need to choose a property to animate and then, do animation.
The code should be like a following:
var prop = "background-color";
switch( val )
{
case 1: prop = "color";
case 2: prop = "border-color";
// ...
}
item.animate( {prop: "#00FF00"}, 1000 );
JavaScript complains about using "prop" variable.
When i j... | stackexchange/codereview |
I added this in the head section of my page as told in the article..added the following two additional lines to get rid of the background image(RADEditor on my page is inheriting master page's bg image)
.reContentCell
{
background-image:none;
background-color:White;
}
... | stackexchange/codereview |
With javascript functions in the head section of a webpage, I've been able to parse the querystring and send that as a flashvar to an swf, constructing the object embed with one of the JS functions like so:
...
function writeFlash() {
var width = '1024'
var height = '500'
var src = 'j.swf'
var queries = 'im='+Quer... | stackexchange/codereview |
I have a pretty simple piece of C# code (it's a controller action in an MVC 2 that is called by the jQuery async post method). Basically I pass in 3 strings and do the following:
var g1 = new Guid(string1);
var g2 = new Guid(string2);
var g3 = new Guid(string3);
However on the 3rd guid creation I get a null reference e... | stackexchange/codereview |
In SAS, how do you obtain the folder in which the file is located?
| stackexchange/codereview |
chaychu = document.getElementById('chaychu');
chaychu.onMouseOver ="chaychu.stop";
How to make this code works- what is wrong with it?
| stackexchange/codereview |
When importing the javax.servlet package in the java file, this package is found by eclipse. However, when running an Ant build I get the error 'package javax.servlet does not exist'. I'm guessing this is a build path issue but I'm not sure how to fix it. I've refreshed and cleaned the project, changed the order of t... | stackexchange/codereview |
We were given an assignment to create a LinkedList from scratch, and there are absolutely no readings given to guide us on this migrane-causing task. Also everything online seems to just use Java's built in LinkedList methods and stuff. Anyway, linked lists make perfect sense when using Java's default stuff, but creati... | stackexchange/codereview |
I have a postgres database with several million rows, which drives a web app. The data is static: users don't write to it.
I would like to be able to offer users query-able aggregates (e.g. the sum of all rows with a certain foreign key value), but the size of the database now means it takes 10-15 minutes to calculate... | stackexchange/codereview |
I'm wondering can I use static libraries (lib*.a files) compiled with one
version of MingW and use them on the other version ? Or do I have to recompile all libraries ?
| stackexchange/codereview |
I've built a carousel in Papervision3D using Flash CS5, everything works fine but when it's embedded in a web-page (local or online) the BitmapFileMaterial assets don't seem to load.
I've tried everything and like I said, it works locally, just not when it's embedded. Is there something I'm missing?
It's a carousel mad... | stackexchange/codereview |
Just a curiousity rather than an acutal need, I've never thought about this, but I can't think of any html which would do this. I could do it in Javascript or Serverside easy enough, but curious if browers can implement this anyway.
Say I'm at a url: http://www.mysite.com/?param1=10
and I have an <a> tag, is there anyw... | stackexchange/codereview |
As it says in the title, I'm looking for multiple excerpt lengths in WordPress.
I understand you can do this in functions.php:
function twentyten_excerpt_length( $length ) {
return 15;
}
add_filter( 'excerpt_length', 'twentyten_excerpt_length' );
What I want to know is how you can have multiple of these each retur... | stackexchange/codereview |
I have a C++ program that is launched by another executable that ingests the output of that program via a pipe. In certain conditions, the parent process reads slower than the child writes, and the child blocks when the pipe buffer in the pipe manager (QNX) becomes full.
Is there a standard way to test if cout << will ... | stackexchange/codereview |
In Ruby, is there a way to dynamically add a instance variable to a class? For Example:
class MyClass
def initialize
create_attribute("name")
end
def create_attribute(name)
attr_accessor name.to_sym
end
end
o = MyClass.new
o.name = "Bob"
o.name
| stackexchange/codereview |
Let me start by saying I know nothing about Joomla or PHP so i might be comparing apples to oranges here but....
I keep seeing JRequest::getVar($var) and $var in some code i've been looking at. Can someone explain what the difference between these two is?
According to Joomlas' documentation getVar , "Fetches and retur... | stackexchange/codereview |
How do I install iOS 4.2 so that MonoTouch 3.1.3 can target the iOS 4.2 Simulator?
| stackexchange/codereview |
I have a css layout which is centered, with 100% height. Everything looks good except that I need borders on the left and right side, with background images, that also must extend to 100% height of the page.
I've tried lots of different options but can't seem to get this worked out.
Please take a look at my code and l... | stackexchange/codereview |
I'm looking for a method to get a stack dump without killing the running process in win32 platform, which means that the thread dumping its stack should return to the original context after stack dumping. (like usual function call) Is it possible in windows?
| stackexchange/codereview |
<div id="MySampleListTable">
<table width="80%" class="newClass">
<tr>
<xsl:if test="count(List) > 0">
<td valign =" "top"
<table width="100%" class="mygrid" cellpadding="0" cellspacing="0">
<caption></caption>
<tr style="text-align: left;">
<th id="ColHeader">
... | stackexchange/codereview |
I am using PHP to retrieve content for a given URL and XPATH.
I use DOMDocument / DOMXPath (with query or evaluate).
For small xpath, I obtain correct result, but for longer xpath, it does not work. (And this xpath seems to be good (I obtained them with Xpather (firefox plugin) and re-test them with YQL).
Do you have a... | stackexchange/codereview |
Which method is better (performance-wise) if I have DataBoundControl such as GridView, Repeater, and/or DataList and I use the following method to display data:
Eval("ColumnName")
or handling the ItemDataBound or RowDataBound event like:
void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
// my... | stackexchange/codereview |
I am using select like this and it is fetching record successfully:
$table = new Bugs();
$select = $table->select();
$select->where('bug_status = ?', 'NEW');
$rows = $table->fetchAll($select);
But Now I want to update same record. For example in simple MySQL.
UPDATE TableName Set id='2' WHERE id='1';
How to execute a... | stackexchange/codereview |
I have a .NT class which has multiple delegates for callbacks from native code. Is it necessary to allocate all the delegates? I mean does GCHandle.Alloc() protects just the delegate or the entire class that owns the delegate from being collected?
| stackexchange/codereview |
I'm relatively new to the whole WPF and MVVM idea and I'm looking for advice on a best practice. I have a solution that works but it feels like I might be missing some great XAML syntax that would simplify the whole thing.
I have a string field in a database table that is stored as a CSV, e.g. "CAT, DOG". Perhaps I sho... | stackexchange/codereview |
I've searched for this problem and I always get stuck on the step after you've generated a .cs file using the command "wsdl.exe myfile.wsdl /l:CS /ServerInterface" in the Microsoft Visual Studio prompt. I've imported the .cs file into a Visual Studio web service project. and It have a service1.asmx.cs file I dont know ... | stackexchange/codereview |
I created a simple java function to truncate a string to be displayed in my list view. I am displaying a news title and below this a news summary. I would like to have the same behavior as the image below. Currently, i am truncating the news title with 45 chars and then appending "..." at the end of it. However, when I... | stackexchange/codereview |
I would like to get a list of plugins my eclipse installation has, is there a config file inside eclipse where I could get that info?
More or less I need the same info I get if I go to
Help -> About Eclipse Platform -> Installation Details -> Installed Software
If I get a single entry per plugin even better (in Insta... | stackexchange/codereview |
this is a tricky question
I need to look into an app get the number of icons and the sizes
1-extract the icon(s) with keeping the transparent info
2-so when I show it on a winform it will be with no colored background?
so the alpha-channel in the icon is needed
any solution that cover both or any of the question will b... | stackexchange/codereview |
The issue I am having is when I try to do something like the below code, the window will be blocked by pop-up blockers. I am using getScript so that I can make cross domain requests. I am using jQuery 1.4.2 to do the below.
Example of code that will be blocked:
//Code that gets blocked by pop-up blockers
$(document).re... | stackexchange/codereview |
I'm working on a new Windows Phone 7 project. Unfortunately, I have only access to a VMware Fusion instance of Windows, from where I run Visual Studio and the Phone Emulator.
My problem is that the phone emulator takes ages (well, seconds) just to show up for example the keyboard for user input (when selecting a TextBo... | stackexchange/codereview |
Assuming the 64bit integer 0x000000000000FFFF which would be represented as
00000000 00000000 00000000 00000000
00000000 00000000 >11111111 11111111
How do I find the amount of unset bits to the left of the most significant set bit (the one marked with >) ?
| stackexchange/codereview |
In vim, FIXME and TODO are highlighted, but I can't get FIXME: and TODO: (note the colon after the keyword) to highlight? What should I put in my .vimrc to make this happen?
| stackexchange/codereview |
It is possible to delete records based on a satisfied condition with a join query?
For instance, I have a linking table joining 3 records. The query I have at the moment deletes records from this table where one of the id's isn't IN() an imploded Php array. I've come to realise that the query should only remove records... | stackexchange/codereview |
Having recently read "Growing OO systems guided by tests", I am very impressed with the windowlicker testing utility for java/junit. Basically it wraps the GUI and GUI-interaction with drivers and gestures, so your integration/end-to-end tests can be written neatly like:
//setup
ui.enterUserDetailsFor(newUser)
ui.sendF... | stackexchange/codereview |
What is the best way to to perform this query. I have the following table
mytable with columns
x y
1 a
2 b
3 c
and I would like to (in pseudo sql)
select x as x1 ,x as x2, x as x3 from mytable where ????
when
x1 is x where y=a
x2 is x where y=b
x3 is x where y=c
so I would like as a result
1, 2, 3
I am current... | stackexchange/codereview |
I use LINQ 2 SQL in one of my projects and i have numerous relationships Customer -> Documents1, Documents2, Documents3, Address, Invoices etc....
When using the LoadWith(p => p.Documents1)...etc
I have performance issues, imagine 2000 customers with all these numerous relationships loaded in List in memory!
The other ... | stackexchange/codereview |
I'm trying to query mssql database with Doctrine. I set up connection, built schema from database and built classes. All went smoothly, but now when I try to query database:
symfony doctrine:dql "from TABLE_NAME"
I get an error Invalid column name 'column_name', because our mssql database server is setup to use CASE S... | stackexchange/codereview |
I need to store the machine name in a database field, so I need to know how big to make the field.
So is there a limit on the length of a machine name?
If so what is the limit?
Can I machine name be Unicode?
| stackexchange/codereview |
please could anyone help me. I have a.htaccess file that worked locally on php application uisng zend frame work. Now my application is hosted on windows with iis6.0. My application doest not load when open it on the browser. i quess there is a way one can convert .htaccess file to web.config file.
this is the re-writ... | stackexchange/codereview |
When I say non-standard libraries, I am referring to things like Boost, libCurl and anything else that may be able to do this far easier than standard C++ can. The reason for this is that I am writing an application as a piece of coursework (the class is dedicated to C++) and I am required to use only standard librarie... | stackexchange/codereview |
is there anyway to build rich animation with C++?
I have been using OpenCV for object detection, and I want to show the detected object with rich animation, Is there any easy way to realize this?
I know flash can be used to easily build rich animation. But can flash be reliably integrated with C++ and How?
Also, Can O... | stackexchange/codereview |
I am using sed to replace a line with NULL in a file. The command i used is
sed -i "s/.*shayam.*//g" FILE
This is working fine in linux. shayam is replaced with blank in the FILE. But when i used this in solaris it is showing some error.
sed: illegal option -- i
How to use -i functionality of sed in solaris. Kindl... | stackexchange/codereview |
Display ajax loading image before loading anycontrol ......... means if i wanna show textbox on button click after showing loading images using ajax toolkit or ajax extension in vb.net ?
| stackexchange/codereview |
when I am using include() with my wordpress plugin which says an error as follows.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/wordpress3/wp-content/plugins/new/listAllItems.php:10) in /var/www/wordpress3/wp-content/themes/thesi... | stackexchange/codereview |
I've found a useful article that explains how to make Jersey to use SLF4J instead of JUL. Now my unit test looks like (and it works perfectly):
public class FooTest extends JerseyTest {
@BeforeClass
public static void initLogger() {
java.util.logging.Logger rootLogger =
java.util.logging.LogManager.getLog... | stackexchange/codereview |
typedef struct Radios_Frequencia {
char tipo_radio[3];
int qt_radio;
int frequencia;
}Radiof;
typedef struct Radio_Cidade {
char nome_cidade[30];
char nome_radio[30];
char dono_radio[3];
int numero_horas;
int audiencia;
Radiof *fre;
}R_cidade;
void Cadastrar_Radio(R_cidade**q)... | stackexchange/codereview |
i want to pass a string value from one page to another.Also i have some text boxes and the values entered in it needs to be passed to a new page.How do i do it?
I have a string S
String S = Editor1.Content.ToString();
i want to pass value in string S onto a new page i.e Default2.aspx how can i do this in ASP.net C#
| stackexchange/codereview |
I'm getting some content from Twitter API, and I have a little problem, indeed I sometimes get a tweet ending with only one backslash.
More precisely, I'm using simplejson to parse Twitter stream.
How can I escape this backslash ?
From what I have read, such raw string shouldn't exist ...
Even if I add one backslash (w... | stackexchange/codereview |
there is a procedure
begin
if (exists(select * from dogovor where dog_main = :dog_no))
then
begin
for select
r.ref_str,
ar.name,
ar.inn,
o.object_type_naz,
cast((((cr1.CALC_total-cr1.calc_appear)*d.a_year)/m.a_year+0.00001)*100 as integer)/100,
cast(((cr1.CALC_total*d.a_yea... | stackexchange/codereview |
I have this HTML.<html><body>
<a href="http://mydomain.com/video.mp4">PLAY ME!!!!!</a>
</body></html> So if somebody clicks on the link then native media player loads and browser goes into background and when video ends it comes to foreground with the same page. Is there a way to detect this i.e. browser going backgrou... | stackexchange/codereview |
I'm getting real tired of pressing shift every time I want to type $ or #. I've checked out key remapping programs like SharpKeys and a few others, but they don't support the SHIFT+[key] actions. The problem is they modify the registry value for a single key only (I think).
I want to flip over my number keys so when ... | stackexchange/codereview |
I need to run a bat file using a java code. I did that in the following way
Process process =Runtime.getRuntime().exec("cmd /c start D:\\Work\\BOSync\\TestFoxPro\\ATSFill.bat");
int exitVal = process.waitFor();
Problem is I can run the bat but the task of the bat not happened. I run the bat to load data from CSV fil... | stackexchange/codereview |
Is there any third party solution , VCL ,Plugins etc to do automatic garbage collection in Delphi for win32
| stackexchange/codereview |
In the Telerik.Web.UI.xml file I found this entry
<member name="P:Telerik.Web.UI.RadDataBoundControl.Skin">
<summary>Gets or sets the skin name for the control user interface.</summary>
<value>A string containing the skin name for the control user interface. The default is string.Empty.</value>... | stackexchange/codereview |
I'm using this configuration in my Latex document:
\documentclass[a4paper,landscape, twocolumn, 10pt]{article}
I'm using twocolumn because I want to have two columns on every page. But now I want to have one page (only one) with only one column (as if I didn't use the twocolumn option) and have the remainder of the do... | stackexchange/codereview |
I'm trying to implement multi-threading using merge sort. I have it making new threads at the point where it cuts an array in half.
The array is sorted depending on the:
[size of the array] vs [how many times I create new threads]
For instance: the array will be sorted if I let it create merely two threads on an arra... | stackexchange/codereview |
I am using lxml.html to parse some hmtl to get links, however when it hits a link which contains an image it just returns blank, what it'd really like is to be able to detect if it's an image, and then try and return the image alt text.
So it looks like this...
from lxml.html import parse, fromstring
doc = fromstring(... | stackexchange/codereview |
I am trying to add a datatable to a database. Here's what I've been trying:
Dim newDataTable As DataTable = New DataTable("Example")
VocabularyDataSet.Tables.Add(newDataTable)
SqlDataAdapter1.Fill(VocabularyDataSet.Tables("Example"))
I've tried various incarnations of Fill and Update. But the tables will... | stackexchange/codereview |
I'd like to save the output from a "Select * FROM table1" in console to a file in PHP.
What would be the most efficient way to do this in php?
Edit:
I'd like the output to be like the type in the console ie.
+--------+--------+
| thing1 | thing2 |
+--------+--------+
| item1a | item2a |
| item1b | item2b |
+--------+--... | stackexchange/codereview |
This question is in relation to another question I have asked, but what are the reasons as to why you would use openSession() over getCurrentSession()? I know you would use openSession() so that you could self-manage the closing and flushing of the session, however, why would you want to do this manually?
I have used ... | stackexchange/codereview |
I need to load a custom compiler config when compiling my project with textmate (as3 project)
How can i do this?
| stackexchange/codereview |
Snape’s “Unfriendly Algorithms for Wizards” textbook claims the running time of merge
sort is O(n^4). Is this claim correct?
Solution: Yes. This claim is technically correct, because O(n^4) only gives an upper
bound for how long the algorithm takes. However, it’s an obnoxiously unhelpful answer,
since the tight bound i... | stackexchange/codereview |
I have the following model:
class Advisor < ActiveRecord::Base
belongs_to :course
end
class Course < ActiveRecord::Base
has_many :advisors
has_many :sessions
has_many :materials, :through=>:sessions
end
class Session < ActiveRecord::Base
belongs_to :course
has_many :materials
end
class Material < ActiveR... | stackexchange/codereview |
I am writing this in PHP
$edit_window = $database_info->timestamp + 86400;
$current_timestamp = time ();
if ($current_timestamp > $edit_window){
$database_info->editable = TRUE;
}
else {
$database_info->editable = FALSE;
}
then
if ($database_info->editable){
//do some major stuff
}
Somehow... | stackexchange/codereview |
How do I program one Mojo to set another Mojo's configuration? For example: Mojo A requires configuration parameter A.foo to be defined. A user can either specify A.foo manually or run plugin B which will calculate the value for him/her.
| stackexchange/codereview |
I am working on a project in Cygwin. In an attempt to create multiple threads in C, and each thread calls another executable through the command line using the system() function, it turns out things are not working properly. Specifically, the code I have is like this:
#include <pthread.h>
#include <stdio.h>
#define NUM... | stackexchange/codereview |
I have the following code:
<table>
<thead>
<tr>
<th>Service</th>
<th>Status</th>
</tr>
</thead>
<?php $result = mysql_query("SELECT Service, Status FROM services WHERE Company='Company 1'");
while ($row = mysql_fetch_array($result)) {
// ^ must be a single '=' !!!!
echo '<tr><td>' . $row[... | stackexchange/codereview |
I want to pull a dynamic content, which consists of a long text input with some images, into a div with a fixed width (300px) and height (1000px), the challenge is I cannot use overflow: auto in css when the content's length is exceeding the div's height (1000px), instead, I am asked to split the long content into page... | stackexchange/codereview |
writing a server that runs on linux (Ubuntu) using mono. and a client that runs on windows using .net, can i connect to the server in linux. i will use c# for both server and client programming.
| stackexchange/codereview |
I am using an alertDialog to display data similar to a spinner. Is there a way to move the active selection (like in setSingleChoice) using setItems ?
I want the displayed list to look like a spinner, without the radio buttons.
| stackexchange/codereview |
I was looking at websites like http://itstrending.com/, facediggs.com/ and I'm questioning myself how do they extract the most shared topics from facebook? I would like to build a similar widget for my blog. I searched the API but couldn't find anything.
| stackexchange/codereview |
With the change to 1.9.2, the current directory is no longer in the load path. The announcement suggests against relying on the current directory in your code, but gives no suggestions for alternatives. What is a "better" way to keep code constrained than separate files linked with require?
| stackexchange/codereview |
Is there a way to prevent a specific file from being opcode cached with APC? The use case is as follows:
An application that sits on the cloud, which dynamically resizes itself (spinning up and down servers as required). The config.php script must know of the new IPs as they become available or unavailable.
Since these... | stackexchange/codereview |
Is it possible to send an anonymous message to an object? I want to compose three objects like this (think FP):
" find inner product "
reduce + (applyToAll * (transpose #(1 2 3) #(4 5 6)))
where reduce, applyToAll and transpose are objects and +, * and the two arrays are arguments passed to anonymous messages sent t... | stackexchange/codereview |
I have installed Oracle 10g and now want to install 11g also...How can I do it?.. I know that ORACLE_HOME environment variable need to be configured for each "oracle"..
Can you describe me steps how to do this?
Thank you very much in previous.
| stackexchange/codereview |
Just for fun, I tried to compare the stack performance of a couple of programming languages calculating the Fibonacci series using the naive recursive algorithm. The code is mainly the same in all languages, i'll post a java version:
public class Fib {
public static int fib(int n) {
if (n < 2) return 1;
return fib... | stackexchange/codereview |
I have the following class method to execute an AppleScript:
+ (NSString *) executeAppleScript:(NSString *) scriptToRun{
NSAutoreleasePool *thePool = [[NSAutoreleasePool alloc] init];
NSAppleScript *appleScriptObject = [[NSAppleScript alloc] initWithSource:scriptToRun];
NSAppleEventDescriptor *objectRetur... | stackexchange/codereview |
var inputDate = '20/4/2010'.split('/');
var dateFormatted = new Date(parseInt(inputDate[2]), parseInt(inputDate[1]), parseInt(inputDate[0]));
var expiryDate = (dateFormatted.getDate() - 1) + '/' + dateFormatted.getMonth() + '/' + (dateFormatted.getFullYear() + year);
This is the Javascript code I'm using to work ... | stackexchange/codereview |
Im using NSOperation to do a task: download some files with NSURLConnection and then merge files that spend much cpu and memory
I need to excute the task in new/background thread
So I add some these tasks to NSOperationQueue and set maxConcurrentOperationCount = 2
But the result is when merging files it will block the ... | stackexchange/codereview |
How can I add variables into my selectors :
function addCurrentClass(){
var loc = window.location;
$('#nav li a[href = "' + loc + '"]').addClass('currentpage');
}
I've tried many variations of the above using different types of selectors and can't get it to change to the value contained in var loc.
Any ideas?... | stackexchange/codereview |
In Windows, I would have done a search for finding a word inside a folder. Similarly, I want to know if a specific word occurs inside a directory containing many sub-directories and files. My searches for grep syntax shows I must specify the filename, i.e. grep string filename.
Now, I do not know the filename, so what ... | stackexchange/codereview |
Everytime when New iOs comes, Apple gives features in end user perspectively in their website.but how can
developer know the programming features(which is not available in previous versions)? For Example
App will start from beginning (with first tab in tabbar controller)in iphone 3.0.but in iphone 4.0 , app starts
f... | stackexchange/codereview |
i have an NSMutableArray;
NSMutableArray
--NSMutableArray
----NSDictionary
----NSDictionary
----NSDictionary
--NSMutableArray
----NSDictionary
----NSDictionary
----NSDictionary
i want to move first NSDictionary to second NSMutableArray.
here is the code:
id tempObject = [[tableData objectAtIndex:fromSection] objectAtI... | stackexchange/codereview |
I have structure declaration in a header
globalStruct.h
#ifndef _GLOBALSTRUCT_H
#define _GLOBALSTRUCT_H
typedef struct
{
Int32 frameID;
Int32 slotIndx;
Int32 symNumber;
} recControlList;
recControlList *recControlListPtr;
#endif
fun.h is
include "global... | stackexchange/codereview |
Can I get which button is clicked in the jquery dialog(if 'OK' is clicked or 'Cancel' is clicked) in my spring controller?? I am doing response.sendRedirect from the controller with a querystring, which i use to check for a condition to show the jquery dialog box. I need to return to this controller function with the v... | stackexchange/codereview |
I have a Wicket page, and I need to print my records on the screen. I keep the records in my database. How can I do it with DataView? I need code samples.
| stackexchange/codereview |
Given a expression like 4 * 5 + 9, how can we build a expression tree out of this?
I was reading this interview question on job portal and thought of trying it.
The problem is if this had been parenthesized, it would had been little easier to build
For example ((4 * 5) + 9).
Then with the opening of left parenthes... | stackexchange/codereview |
I am retrieving data with linq from sproc and get an exception "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.". Weird thing is that it runs OK from SQL server Management studio.
The sproc is this:
BEGIN
DECLARE @L... | stackexchange/codereview |
Is it possible for an iphone to send UDP messages through an IP on port 3330?
Thanks!
Elijah
| stackexchange/codereview |
I develop a software with Oracle form builder for my final thesis. I want to prepare some of software development document for my final thesis report.
as you know oracle forms blow ver 8.0 is procedural base... I use oracle form 6...
I need to prepare Software Requirement Specification (SRS) and Software design documen... | stackexchange/codereview |
I have 2 programs that share a header file. This header file defines a structure with a few members. There is then a #define: #define STRUCTURE_SIZE sizeof(OUR_STRUCTURE).
This structure is then used in shared memory with STRUCTURE_SIZE being used for the size argument to shmget().
Unfortunately, for the one program,... | stackexchange/codereview |
I'm trying to build BIRT 2.5.2 from source to fix some bugs (I know about BIRT 2.6 but not all of our customers are on BIRT 2.6, yet).
I downloaded the BIRT 2.5.2 source ZIP and I found a couple of product files in there. I unpacked the sources, copied features and plugins to a build directory. Now I run this build.xml... | stackexchange/codereview |
I would like to select an html element A which has assigned class CSS1, but it's parent is not element B. Can anybody tell me how to achieve this using jQuery?
| stackexchange/codereview |
In this Herb Sutter's article 'Write What You Know, and Know What You Write', he warns about the dangerous idioms in C++.
T& T::operator=( const T& other )
{
if( this != &other )
{
this->~T();
new (this) T(other);
}
return *this;
}
Does C# solve this kind of dangerous cases? Is C# a better programmi... | stackexchange/codereview |
I'm experimenting arround with template engines lately and am stuck in a very early stage at a regular expression.
The first Step in my template engine should be to extract all template constructs. So I wrote following regular expression:
# Split all relevant parts apart to merger them later on.
exp_tags = re.compile(... | stackexchange/codereview |
To see the example please visit the web page: spam
and click one photo you will see many photos appearing. How can I make it using JS or JQuery or what else? I will use .NET for active server pages.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.