instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to implement the Cascaded Hough Transform (I have already implemented the 'normal' version.) but I'm having trouble understanding the following:
After applying HT on an image, I am left with straight lines in hough space. The Cascaded version of the HT requires me to split the hough space into 3 sub-spaces s... | stackexchange/codereview |
We use a Java upload applet to let clients FTP files to our website.
For security, it uses a "web_user" (as created in PLESK) so this user gets their own area outside the main root e.g
/var/www/vhosts/mydomain.com/web_users/clientuploaduser/
I'm trying to copy the files they upload backto the web root via php so we ca... | stackexchange/codereview |
I would like to have the image appear on top of the grid however they seem to be packed into to different panels.
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
@SuppressWarnings("serial")
public class test4 extends JPanel {
BufferedImage ... | stackexchange/codereview |
I am connecting to a web server from a BlackBerry simulator for the 9630, to get an image and display it on screen.
But while testing this same app in the 8520 and 9700 simulators, it doesn't work. I think it didn't connect to the web service.
I need to be able to connect to a web service from all simulators.
String f... | stackexchange/codereview |
In Java, you explicitly define what exceptions are thrown using the "throws" keyword. That way, anyone calling your method knows what to catch.
Is there something in C#? If not, how do I know what exceptions to catch, or how do I let others know what exceptions to catch?
Also, if I am defining an interface, is there a ... | stackexchange/codereview |
In current table I have a column that holds the date field in ddmmyyyy format and it is of type varchar(8). The column has some string value also. I want to create a computed column that will hold the value in DateTime format if the value in source column is valid date time.
| stackexchange/codereview |
Is there a way to use the popular Console2 cmd.exe replacement for Visual Studio debugging? In other words, when I debug a console app under VS, I want it to use Console2 instead of cmd.exe.
| stackexchange/codereview |
programming in C with the X11 library, is there a way to get notified if a new window has appeared? I found XSetAfterFunction but its intended for debugging purposes only ...
Thanks for your help!
Heinrich
@edit:
This code solves my problem
int main() {
Display* display = XOpenDisplay(":2");
XSetWindowAttributes ... | stackexchange/codereview |
I have been reading through the backlog of answered questions on SO regarding "How to promote an open source project". Not surprisingly, many of the answers pointed people to SoureForge/FreshMeat and other sites etc as well as blogging and whatnot. This started me thinking where is the best place to host a project and ... | stackexchange/codereview |
I'm new to C++ so I'm having trouble converting this into C++. Is there examples that I could see how a C++ arraylist looks. I know java has several classes that can be made but in C++ how would that be made would it be all under one .cpp file.
public class Main {
public static void main(String[] args) {
Inventor... | stackexchange/codereview |
I was reading an article on meta-programming and it showed that you can define a method within another method. This is something that I had known for a while, but it made me ask myself the question: does this have any practical application? Is there any real life uses of defining a method within a method?
Ex:
def outer... | stackexchange/codereview |
Could someone explain what the difference is between epoll, poll and threadpool?
What are the pros / cons?
Any suggestions for frameworks?
Any suggestions for simple/basic tutorials?
It seems that epoll and poll are Linux-specific... Is there an equivalent alternative for Windows?
| stackexchange/codereview |
I have the following code to remember the last selected tab. It is, however, not working at all. I am very new at jQuery, so I'm not sure what I'm doing wrong.
What's wrong with it? I'm not getting any error messages.
//Default Action
$(document).ready(function() {
var currentIndex = $.cookie("currentTab");
// ... | stackexchange/codereview |
I'm using ADO.NET in a simple C# application.
There are two tables, TableA and TableB. TableA is a parent of Table B. TableA contains:
id as a primary key (Int32)
Other columns. I think it's irrelevant so I won't elaborate.
Table B has these columns:
id (primary key) (Int32)
tableAid (foreign key relationship wi... | stackexchange/codereview |
Trying to get a button working in the titlebar is becoming a little difficult. At present the button opens when clicked (calls a window with a webview), and closes when an html button is clicked. But only once. The issue is that after the window is closed, the titlebar button seemingly wont reopen the window...
This is... | stackexchange/codereview |
Why are these not displaying the same colors?
Original Image:
Plane with above Image as texture:
WTF is happening?
The original image is 100x100 pixels, made in paint and saved as a 24 bit bitmap.
Here is my opengl initialization code:
_hdc = GetDC(_hwnd);
PIXELFORMATDESCRIPTOR pfd;
ZeroMemory( &pfd, sizeof( pfd... | stackexchange/codereview |
Im going to develop one android application which transfer music file, contact exchange, voice chat, text chat etc.. through WiFi. Which protocol will suit my application UDP or TCP. Because both protocol having some merits and demerits. Can u give me some suggestion, it will helpful for me..
Thanks in advance
| stackexchange/codereview |
How can I force all items in a horizontal list (menu) to be the same width?
This is my CSS code so far:
a { text-decoration:none; }
#navlist ul { margin:0; padding:0; list-style-type:none; }
#navlist ul li { display:inline; }
#navlist li a {
padding:10px;
margin:2px;
background:grey;
color:white;
}
#navlist li ... | stackexchange/codereview |
I have the below file formatted in the fashion shown below -
DATA THROUGH 2001 YRS JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC ANN
BIRMINGHAM AL 58 8.1 8.7 9.0 8.2 6.8 6.0 5.7 5.4 6.3 6.2 7.2 7.7 7.1
HUNTSVILLE AL 34 9.1 9.4 9.8 9.2 7.9 6.9 6.1 5.8 6.7 7.3 8.1 9.0 7.9
MOBILE AL 53 10.1 10.3 10.7 ... | stackexchange/codereview |
I am trying to make a simple app on the iphone.
I use simple UILabel that I have set on a NSTimer to change a phrase every 24 hours
When the app is closed or suspended I need to know how to use the NSUserPreference to store the data and time for the next phrase to be displayed.
| stackexchange/codereview |
I try to use ehcache with hibernate/spring. My attempt is throwing a NPE.
I am stuck on this hard. And, Googling is no help.
Caused by: java.lang.NullPointerException
at net.sf.ehcache.hibernate.HibernateUtil.loadAndCorrectConfiguration(HibernateUtil.java:48)
at net.sf.ehcache.hibernate.EhCacheRegionFactory.start(EhC... | stackexchange/codereview |
I am trying to use Qt to detect if .Net is installed on the client machine.
QSettings netKey(
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4",
QSettings::NativeFormat);
if(!netKey){ //what do I check here to see if the key was found??
}
Edit:
This works but is detecting a va... | stackexchange/codereview |
I have a root view, and several child views. For each view, I have an info button which causes the view to flip over to reveal an info screen. My problem is that when I flip back, using the back button, it doesn't take me to the screen I'd left -- it takes me back to the root view. It was fine before I went through all... | stackexchange/codereview |
One of the features that really impressed me with Stack Overflow was the simple user registration. This is something I would like to implement on my sites. I've currently been using alot of Drupal and have found the Janrain Engage (formerly RPX) module. It enables simple registration using third party accounts but not ... | stackexchange/codereview |
I have a page which was copied from another site and modified. I am referring to a favicon in my new site. When I view the page it's showing the correct favicon, but when view the source it's showing the favicon for the older site.
What could be the problem?
| stackexchange/codereview |
In mysql, I have a WHERE clause that uses LIKE to match a keyword to a string.
WHERE title LIKE CONCAT('%',?,'%')
This almost works, but I running into a problem where titles with multiple words are returning erroneous matches. For example, the keyword "press" would be matched to the title "depression sucks" - which ... | stackexchange/codereview |
Is there a way that I could create a subview that will stay on the screen even as the user moves back and forth between the different viewControllers in the app?
I have a game where each level is a separate .h/.m/.xib viewController, but I would like to release a free version with ads - trying to figure out how I can g... | stackexchange/codereview |
I want to sort a WPF-Toolkit DataGrid on a column which is bound like this:
<toolkit:DataGrid.Columns>
<toolkit:DataGridTextColumn Header="MyColumn" Binding="{Binding AnObject.AProperty}" />
</toolkit:DataGrid.Columns>
Now when AnObject is null, an ArgumentException with the Message "At least one object must imple... | stackexchange/codereview |
In this fiddle you see a table with a select-field where you should select a name.
Below there are 5 input-fields where one could type in some text and 3 input-fields which are set to readonly.
I wanted to ask whether there is a way to add table cells dynamically when clicking on the button. The result should like this... | stackexchange/codereview |
i have a confusion how gabage collector decides that an object is no more in use, do object have some scope?
like if i have code
class A { in x; m1(){}}
class B {A a=new a(); a.x=10; }
so i want to know that when the object become unusable
i mean in the above code if class be reaches to end line then when it exit that... | stackexchange/codereview |
Our client wants us to implement change history for website articles. What is the best way to do it?
| stackexchange/codereview |
here is the error the flex builder shows:
Unknown error generating output application.xml files. Check the Eclipse error log for more details. /Day View/src/view Unknown AIR application.xml Problem DayView-app.xml
and here is that xml file that is auto generated by flex builder but gives unknown erreor:
<!-- The... | stackexchange/codereview |
Possible Duplicate:
Does setting Java objects to null do anything anymore?
Will dereferncing the unused object(assigning with null) increase performance in lengthy methods? If it increase, is there is any thumb rule for deciding when to assign null. since this requires an extra step in the code.
| stackexchange/codereview |
Is there a nifty trick for PHP's array_pop() in Javascript?
In lieu of any niftiness, I will accept elegance and/or brevity.
| stackexchange/codereview |
I'm new to the Android platform and I'm developing an app that where the main activity
is using the dialog theme.
I have the ui setup pretty much the way I want but gradients don't seem to be working for me.
I've tried a gradient title bar, view, layout, textView etc and in every case the gradient does not display. (I'... | stackexchange/codereview |
I have created an application where I had extended an Activity and got the response from the Web Service Successfully using the Asynctask, Now I want to do the Json Parsing of that received Response in the another class other than in the main activity.
How can do that? How do I use the received Response of the Main Act... | stackexchange/codereview |
Okay, so I'm trying to write a simple show/hide content button, but I want to show and hide the content using two different functions. Now it hides just fine, but it won't re-show.
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function hidecontent(){
document.getElementById("content").style... | stackexchange/codereview |
How do I feed string variable holding multiline value in it to jquery method like prepend? I need it to construct a form pass by drupal search module like - $('#divsearch').prepend('<?php print $search_box; ?>'). Thanks a bunch.
| stackexchange/codereview |
Hi all
Im having a problem with an iphone app that im working on.im using objective c and cocos2d. The frame rate just drops drastically. I have tested for leaks and allocations etc using instruments and all looks good on that front. I am not using any particles or sound at the moment so its not anything like that. its... | stackexchange/codereview |
Is there any way that i can use SAML to authenticate(SSO) to an Idp using an axis2 web service?
| stackexchange/codereview |
I have a C library which I access through NDK. Some operations are time consuming so UI thread freezes on them. As I now the common practice is to use Runnable like that:
myFixedThreadPool.execute(new Runnable()
{
public void run()
{
NativeClass.callToNDKLibrary();
};
});
or threads like that:
Thread t = n... | stackexchange/codereview |
We have various tables in our wiki that use colors for different cells. However, when we print the pages (or view in print preview) the colors are not shown. Colored text is shown.
I have heard from a colleague that this has something to do with stylesheets (CSS?). Does anyone have the solution?
| stackexchange/codereview |
I am dynamically creating a table in C# with ASP.NET, and each row will have a LinkButton for the user to delete the record. Problem is right now is that the page never goes into the command at all - I've put breakpoints there and it just doesn't go into there. Here is my code:
protected void Page_Init(object sender, ... | stackexchange/codereview |
I would like to replace specific String characters based on some integers value passed dynamically to its index.
Unfortunately, String.Replace() expects String value as its arguments. So could anyone please tell me how can I make my requirement possible?
| stackexchange/codereview |
I am developing the website in .NET 3.5, VS 2008.
I have a AjaxControlToolkit TabContainer control within Tabpanels I have many usercontrols and inside usercontrol I have my thrid paty Spell Check Utility, while rendering(Page load) the page many times my panel are not visible but when I refresh the page tabs are visib... | stackexchange/codereview |
I've got a problem. I Have a tool(threads manager) that receives some data and do some computation. I need to write Python client to send data to that tool...I thing I should use .NET Remoting, but how to do that?
pls share some links where I can read or post some code...I can't google info about that...
P.S Python 2.7... | stackexchange/codereview |
I want to customize my button like those UIBarButtonItems on a UIToolbar with tint color. Does any one know how to draw that tint effect?
| stackexchange/codereview |
I'm developing the application that sending MPEG video over IP network using RTP protocol.
In order to test it I'm looking for a software tool that can measure network jitter, recognize RTP packets reordering events and show results as a graph.
Any help is highly appreciated.
| stackexchange/codereview |
I'm trying to make a RESTful Web Service which implements all four CRUD operations. I got stuck in "Create" because somehow I'm not able to obtain the posted data. Here is the method I wrote. Just as a info, I'm using Jersey RI of JAX-RS + JAXB XML to serialize objects.
Here it is:
@POST
@Consumes("application/xml")
pu... | stackexchange/codereview |
Hope the title was OK.
My problem is that I want to generate an XML file, which contains all the ISO 4217 currencies, including their name, code and countries they are used in.
To do this I'm using simple_html_dom to grab the HTML, and select specific data from the page. Then using SimpleXML to construct the XML. I wou... | stackexchange/codereview |
Okay, so here is my problem.
I've been spending probably about 10 hours to try to put a Featured Content Slider on my website. Trying with anything I can come up with. Trying probably 3 different versions of the same slider.
The URL is: http://www.heartofphoto.com/slidetest/
But anyways, here is what I currently have g... | stackexchange/codereview |
If I have a typedef of a struct
typedef struct
{
char SmType;
char SRes;
float SParm;
float EParm;
WORD Count;
char Flags;
char unused;
GPOINT2 Nodes[];
} GPATH2;
and it contains an uninitialized array, how can I create an instance of this type so that is will hold, say, 4 values in Nodes[]?
Edit: ... | stackexchange/codereview |
I have a requirement in my application map page. I have to customize the Callout bubbles. I need to add an image, two labels and a button with specific height and width of each.
I have gone through web and could not find a proper link that explains how to customize the callout bubbles. If any one of you come across or ... | stackexchange/codereview |
Is it a good practice to have an is_deleted column in a SQL Server table or there's another way of dealing with this question?
Another solution I can think of is to delete that row and inserting it to another table for deleted rows.
What's the best solutions?
Thanks in advance.
| stackexchange/codereview |
I have a string with currency format like $35.00 and this has to be converted to 35.
Is that possible to retrieve using String.Format{ }
| stackexchange/codereview |
I want to check last hour browser history on the local machine using a java program. So is there any way around to so that?
Thanks and regards,
Vivek Birdi.
| stackexchange/codereview |
I kept trying to wrap my head around a solution to K&R problem 7-8, until I found this solution (with the original problem) right on this site. I am unable to comment on the answer (probably due to its age); the only way I could actually have input in that question is to post an answer to it, which I felt was inappropr... | stackexchange/codereview |
Is it possible to initialize a static const empty array, please see below code,
//CFoo.h
class CFoo
{
public:
CFoo();
~CFoo();
public:
static const int arr[];
};
//CFoo.cpp
const int arr[] = {0,1,2};
CFoo::CFoo(){}
CFoo::~CFoo(){}
EDIT:
It seems the code is valid, and for followup question, why I can't... | stackexchange/codereview |
in javascript below, variable temp would hold html string like this,
<input type="text" value="initial text" name="msg" />
why this code
$('input[name=msg]').val('hello world');
won't change html string to
<input type="text" value="hello world" name="msg" />
here is the code,
<html>
<head>
<script type="text/ja... | stackexchange/codereview |
I am very new to the world of webdevelopment and jumped into the bandwagon because I find the concept of HTML5 very interesting. I am fairly confident on working with canvas and would now like to move over to websockets part of it. I have come to understand socket.io is by far the framework to work with, when we want t... | stackexchange/codereview |
I have an XML like this ::
<?xml version="1.0" encoding="utf-8" ?>
<Rows>
<Row Id="1">
<Devices>
<Device DeviceId="123">Device 1</Device>
<Device DeviceId="abcd" >Device 2</Device>
</Devices>
<Methods>
<Method>Method 1</Method>
<Method>Method 2</Method>
</Methods>
... | stackexchange/codereview |
our group project(TransactionManager) need to get together(combine) one project
stock management ,customer management ,supplier management ,invoice build by separately
finally we need to combine each project as one project when we add existing item to visual studio it's give errors do not show user interfaces after a... | stackexchange/codereview |
I have two points created, like a line. I want to convert it as a rectangle.
How should I do it?
For example this is how I draw the line. But I want it to be a Rectangle
private PointF start, end;
protected override void OnMouseDown(MouseEventArgs e)
{
start.X = e.X;
start.Y = e.Y;
}
... | stackexchange/codereview |
Our Software project contains Perl, C & VC++ code. I am trying to set up Hudson in the master/slave configuration to manage the build & test process. I have one linux box running as master and windows XP (32-bit), Windows 7 (64-bit), linux boxes running as slaves. The build process involves building specific parts of t... | stackexchange/codereview |
I'm building an app where you can upload images, large resolution images (1000px+ width and height at times)
Issue is, I'm using the following to create a thumbnail with Rails/PaperClip:
:thumb => "100x75>"
What I want is for the image to always fill that dimension (assuming the image is at least that size.
But I don't... | stackexchange/codereview |
I have a .net PropertyGrid. I select an object to view, and a property of that object is a Vector3. I can use ExpandableObjectConverter to automatically expose the properties of the Vector3 into in the PropertyGrid. All fine, except that when the object is selected I'd like the Vector3 to be expanded by default, i.e. s... | stackexchange/codereview |
can i manage a extjs tbar disable/enable from other tbar?
Thanks for your answer. I got solution, something like this:
tbar:[{ id:'tambahid',
disabled:true,
},
{ text: 'Toggle' + (local ? 'Off' : 'On'),
enableToggle: true,
toggleHandler:
function(){
var hidd = Ext.getCmp('tambahid');
if (this.pre... | stackexchange/codereview |
Seems that max_execution_time is 0 but memory_limit is -1.
For max_input_time is it 0 or -1 or both?
| stackexchange/codereview |
I'm working on an application (a web application, asp.net and c#) which is datetime-dependent, so, based on the current date, it will launch forms for the logged user to fill in.
I've been thinking about how we're going to simulate real usage of the application, for debugging and testing purposes.
So I'm talking about ... | stackexchange/codereview |
I'm developing a simple custom Drupal Module for creating Quizz, and I need some help with the SQL part.
I'd like to keep a trace of registered used who answered the Quizz, but don't know how to build the relationship.
Basically, I have 2 tables with these columns:
Users:
id
name
email
status
and
Content_Type_Quizz:
... | stackexchange/codereview |
I'm supposed to implement a bag data structure (also called a multiset), an unordered
collection of homogeneous values (any Java object, excluding null) that may have duplicates, for a project. I've done extensive searching on the internet but have a hard time wrapping my mind around using arrays instead of something l... | stackexchange/codereview |
I am new to moneybookers payment and I am doing payment test. After the payment process, I'm always returned to the stated return_url without the transaction ID that is stated in the manula. Is this because i'm using a test account? can anyone clarify the moneybookers test process? thanks in advance.
| stackexchange/codereview |
Using Linq, trying to select all records not in my local set fails:
var localset = new List<Category>();
localset.Add( new Category { pk1 = 1, pk2 = 1, name = "one" } );
localset.Add( new Category { pk1 = 1, pk2 = 2, name = "two" } );
var dbCategories = dc.Categories;
var diff = dbCategories.Except(localset);
I need... | stackexchange/codereview |
I don't know where to place the db so that when i will have my final app .exe, in it's folder i would have another data folder and in that folder the db.mdf. Here is my connection String :
con.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename='C:\\Users\\alex\\Documents\\Visual Studio 2010\\Projects\\Netw... | stackexchange/codereview |
Are there scenarios, where it makes sense to use WPF together with WCF RIA services?
| stackexchange/codereview |
I have a recursive hierarchy in a relational database, this reflects teams and their position within a hierarchy.
I wish to flatten this hierarchy into a dimension for data warehousing, it's a SQL Server database, using SSIS to SSAS.
I have a table, teams:
teamid Teamname
1 Team 1
2 Team 2
And a table teamhi... | stackexchange/codereview |
Is it somehow possible to only display the fraction digits with fmt:formatNumber? I basically need to render a price-like double in two fields: decimal and fraction digits (123.456 -> 123 456) and I want to avoid string splitting etc. :-)
The solution has also to work with a minimum number of fraction digits in order ... | stackexchange/codereview |
I am using Rails 2.1 and implemented Sunspot search. The server is running fine, but the problem is when I am searching for a text, it is showing an error like this:
undefined method `all_text_fields' for nil:NilClass
Can anybody knowledgeable about the solution to this problem please help me?
Thank you.
| stackexchange/codereview |
I have the following code that simply uses a jquery ui modal dialog to "confirm" any click on a link. If they click OK, then it sends them to the original link. It works fine, so don't bother reading it in too much detail =)
$('.confirm').live('click', function(e) {
e.preventDefault();
var theHref = $(this).att... | stackexchange/codereview |
OK, so there is a page I'm querying on another server that returns a comma separated list of two values. Something it would return would be:
850,640
I have some PHP code that calls file_get_contents on that page and needs to do some numeric calculations based on the two values.
No matter what I try, I can't seem to ge... | stackexchange/codereview |
I Have a view with 3 entity.
When I Click on the submit button, I Would like to save these entities .
In the view
<div class="editor-field ">
<%: Html.TextBoxFor(model => model.ElementAt(0).UserQuestion1)%>
<%: Html.ValidationMessageFor(model => model.ElementAt(0).UserQuestion1)%>
</div>
<div class="editor-fie... | stackexchange/codereview |
Current Query:
SELECT DISTINCT "HSP"."HSP_ACCOUNT_ID", "HSP"."HSP_ACCOUNT_NAME", "HSP"."ADM_DATE_TIME", "HSP"."DISCH_DATE_TIME",
"HSP"."TOT_CHGS", "HSP_ACCT_MULT_DRGS"."DRG_ID_TYPE_ID", "HSP_ACCT_MULT_DRGS"."DRG_MPI_CODE"
FROM "C"."HSP" "HSP" LEFT OUTER JOIN "C"."HSP_ACCT_MULT_DRGS" "HSP_ACC... | stackexchange/codereview |
I've defined an enum at the top of my class header:
enum PresetSeq{kSeqClear=0, kSeqAllBeats, kSeqAllTicks};
But when I try to declare a method for that class using the enum.
-(void)quickSetSeq:(PresetSeq)pattern forChannel:(long)ch;
I get the error: expected ')' before 'PresetSeq'
If I typedef the enum instead:
ty... | stackexchange/codereview |
Say I want to combine transform
CAKeyframeAnimation *animation = [CAKeyframeAnimation
animationWithKeyPath:@"transform"];
and opacity
CAKeyframeAnimation *animation = [CAKeyframeAnimation
animationWithKeyPath:@"opacity"];
into keyframe animation. How do I combine and specify transform/opacity values for each ke... | stackexchange/codereview |
My Application have many graphics and visual components... So i switched on doublebufferd = true in each and every components as possible.
later i wanted to use a panel in order to hold some components( it makes alignment easy)
but at the same time the panel must have a transparent property (then only i can show the gr... | stackexchange/codereview |
I want to communicate with android RIL daemon with my daemon directly.
Could you tell me how to do it without using telephony layer.
Best regards.
| stackexchange/codereview |
So I am laying out a div. Inside this outer div there are 4 more divs, as below.
-----------------------------------
. div 1 . .
................... div 2 .
. . .
. div 3 . .
. (ul list 1) . .
. . ... | stackexchange/codereview |
import java.io.FileInputStream;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Jdbc {
public static void main(String args[]) {
FileInputStream in = null... | stackexchange/codereview |
First of all, I have plenty of experience on iOS development but I am not so keen on Core Animation. I would like to reproduce the effect in Safari (both iPhone and iPad) when the page you're viewing at shrinks itself and 'zooms out' into a thumbnail view, and after you select a given thumbnail, it then 'zooms in' and ... | stackexchange/codereview |
My application is working correctlywhen I debug it against my sql express.
Now i have deployed on IIS on another machine with win2008 web server and changed the database connection string.
I would like that the application uses always the same user to connect to the database and not to use the identity of the connected... | stackexchange/codereview |
I want to use the default user agent for the phone in a HttpClient connection and would like to know if there is a way to obtain the user agent without having to have a WebView to query.
| stackexchange/codereview |
I'm using the code below to create a jQuery dialog box. By default there is a close icon on title bar, but I want to add some of the other icons in title bar as well for different functionality.
The code used for the dialog box is:
$("document").ready(function () {
$("#dialog").dialog({
title: "Dialog Titl... | stackexchange/codereview |
I have website whose home-page's body has a class name: .homepage
Inside the body there is a div with an id: #content.
I just want to give the homepage's #content div a background image with CSS like this:
.homepage #content {
background: #FFFFFF url("image.jpg") no-repeat scroll 90% 30px;
}
This works in all browsers... | stackexchange/codereview |
I'm wondering, what would be a good/efficient way to delimit a string that can contain basically any character. so for instance, I need to concatenate n strings that can look like:
char *str_1 = "foo; for|* 1.234+\"@!`";
char *str_n = "bar; for|* 1.234+%\"@`";
for a final string as:
char *str_final = "foo; for|* 1.23... | stackexchange/codereview |
This example doesn't validate the presence of the title for me:
require 'rubygems'
require 'dm-core'
require 'dm-migrations'
require 'dm-validations'
db_name = 'rvtest.sqlite'
DataMapper::Logger.new($stdout, :debug)
DataMapper.setup(:default, 'sqlite://' + Dir.pwd + '/' + db_name)
class Task
include DataMapper::Re... | stackexchange/codereview |
I have an html file which is shift-JIS encoded (Japanese), and I cannot read it under vim. Setting enc=cp932 or enc=sjis generates garbage. The file looks fine in emacs, so I guess this is vim specific. What can I do to read it as is (besides converting it to a sane encoding like utf-8).
| stackexchange/codereview |
I have code to find a specific occurance of text in a file and give me an offset so I know where this occurance end. Now I want to read the file from that offset to the end of the file. The file contains binary data as well as text. How do I do this in Erlang?
| stackexchange/codereview |
Possible Duplicate:
How to download a file to server PHP?
hello,
i'm trying to write a simple php code to download a file from a server.....can someone guide me how to do it....i've trying to find some guide but each of them is so confusing that i can make anything out of it.......
any help will be highly appreciate... | stackexchange/codereview |
In Windows, is there a way to launch a process in C++ and then read what it spat out into stdout when it's done? The process must be run using elevated privileges (on Vista or later) if necessary.
I'm currently using ShellExecuteEx() to launch the process and running a while-loop until GetExitCodeProcess() no longer re... | stackexchange/codereview |
We have an "access is denied" javascript error occurring on a couple of clients every day (we are notified via webservice call whenever an unhandled js error occurs). The error happens on .04% of page requests so it is by no means common nor has it been reproducible by us.
The error has been observed on IE6, IE7, and... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.