instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have an ASP.NET page that creates directories, and in another page I upload some files in these folders, but when I upload a file in a directory, the below error appears:
Access to the path 'my path' is denied.
| stackexchange/codereview |
How can I set SEO friendl urls like http://bodyharmonynutrition.com/eating-a-heart-healthy-diet/ in my site ?
Thanks a lot for your time
| stackexchange/codereview |
I have a following test file :
Jon Smith 1980-01-01
Matt Walker 1990-05-12
What is the best way to parse through each line of this file, creating object with (name, surname, birthdate) ? Of course this is just a sample, the real file has many records.
| stackexchange/codereview |
I just fired up Reflector and peered into MultiCastDelegate.CombineImpl and saw some very lengthy code... every time two delegates are combined (read: every time you attached more than one event handler to an event), the following code gets run, which seems inefficient for such a fundamental performance critical fea... | stackexchange/codereview |
I need a drop and drag functionality for my email client application.
I have some e-mails in my Inbox, I want them to move to my user defined folders by using drag and drop functionality by using JavaScript.
Looking forward for your response.
| stackexchange/codereview |
I have got a strange problem with my deployment of an Qt application. I created a Zip with all the necessary dlls and my binary on my Windows XP 32 bit box, where the application worked just fine,
Then I tested this on my laptop running windows 7 64 bit, giving me strange results. The window icons are back to the defau... | stackexchange/codereview |
I have a problem with embeded html in foreach loop:
HTML:
<div class="head">
<div class="wins">
<div class="images">
<a href="#"><img src="images/1.jpg" alt=""></a>
<a href="#"><img src="images/2.jpg" alt=""></a>
<a href="#"><img src="images/3.jpg" alt=""></a>
</div>
<div class="B... | stackexchange/codereview |
1) Does adding a Dispose(), or finalize method, have any impact on making an object be GC'd soon? I ask this as my manager wrote some code, adding a finalize() method, in the hope it would be GC'd.
But I argued that the object has to be "marked" for collection first, if it meets certain criteria.
2) Does writing "o = n... | stackexchange/codereview |
Hello I m new with asp scripts i have not mores ideas as well in asp. i have worked in asp.net.
Now I facing a problem to bind data with DropDown and Grid.
Please suggest me any ideas to bind data with drop down.
And second thing how can i want to bind data with Grid with sorting feature.
Please Suggest me Idea to do ... | stackexchange/codereview |
I'd like to change to rendering of the checkboxes. By default, it's this:
<dt><label>%name%</label></dt>
<dd>%element% %error %description%</dd>
I'd like to have the following (a bit like the multiCheckbox):
<dt> </dt>
<dd><label>%element% %name</label> %error% %description%</dd>
I override the Zend_Form_Element... | stackexchange/codereview |
I'm attempting to render xml from a service application.
In the model, the relationship is defined as:
class Customer < ActiveRecord::Base
has_many :licenses
accepts_nested_attributes_for :licenses
end
In my Controller, I have the following code:
if @customer.save
render :xml => @customer, :status => :crea... | stackexchange/codereview |
I have given the javascript code like this
self.location = OmanPath()
+ "Customer/Registration/UploadedPhoto/SampleImages.zip";
But this is not working in IE6. What may be the reason
This code not working for zip file download. It is working in IE7 and IE8
| stackexchange/codereview |
Is there some possible way of picking images from picture folder?
| stackexchange/codereview |
How can I alter this xpath to find if the content contains an img tag with an alt containing my keyword phrase?
$xPath->evaluate('count(/html/body//'.$tag.'[contains(.,"'.$keyword.'")])');
| stackexchange/codereview |
I don't know what is the concrete purpose of the AssemblyFileVersion attribute. I know that AssemblyVersion is part of the strong name, which is the 4-pla (assembly name, assembly version, culture, public key token), but I have no idea on how correctly use the Assembly*File*Version.
I currently use the BuildVersionIncr... | stackexchange/codereview |
I have a list where i want the type to be definined by the call for example in the class i want something like
public class ClassName
{
public ListType<T> ListName { get; set; }
// other class items
}
and then the usage to be what sets the class type like
var className = new ClassName()
{
ListType<int> = d... | stackexchange/codereview |
If I run this command in windows chrome it works fine, but on mobile safari it doesn't work at all (hidden div just appears, no fade effect):
jQuery(function($){$('#message').fadeIn("slow");});
Does anyone know why this isn't working? I'm using the default jquery library and this command is being executed inside a fun... | stackexchange/codereview |
I am programming an iPhone game and I want to show to the users the game global scores as DoodleJump or Canabalt do. Programming with iOS, what is the best way to store the global scores information?
Thanks for reading.
EDITED: I am reading about Game Center leaders board and is a good option to do what I want. Anyway,... | stackexchange/codereview |
I have a profile object in session with profile information for the currently logged in user. I wand to be able to inject it into my business classes so I can do validation etc in them without having to pass it in the parameter list in every method.
I have tried something like this in my ninject module:
Profile profil... | stackexchange/codereview |
My data is as follows:
ORDER_ID CLIENT_ID DATE VALUE
1881 51 2010-07-19 100.17
1882 50 2010-07-19 100.17
2754 50 2010-07-25 135.27
2756 50 2010-07-25 100.28
5514 50 2010-07-27 121.76
5515 50 2010-07-28 109.59
5516 50 2010-... | stackexchange/codereview |
I've come across the term "straightforward uf" to describe the solution (algorithm ?) to the following facebook engineering puzzle: liarliar. Does anyone know what this means?
| stackexchange/codereview |
I have a page with the container in a table I need to align it to the topmost of the page, but there is a gap. Also need to center the page horizontally.
I tried
body {
margin:0px;
padding:0px;
}
| stackexchange/codereview |
I am working on designing a SQL Server database connection class in VB.net 2005. The idea behind doing this will be so a developer can can call the class, pass it a stored procedure name along with the parameters, and get return values back (if any).
My question is, how would I design the class so the stored proc param... | stackexchange/codereview |
I came across these lines of code
ClassA classAObject;
//some lines of code that hydrate 'classAObject'
DerivedFromClassA derivedObject = classAObject as DerivedFromClassA;
whats going on, on the last line? Is it assigning to derivedObject only those values that are in common between derivedObject and classAObject ?
| stackexchange/codereview |
I'm trying to send an HttpRequest from an iPhone app with some parameters. The form is like this:
foo.jsp
<form action="/foo" method="post">
<div>
<input type="hidden" name="id" value="1" />
<input type="hidden" name="vendidas" value="25" />
</div>
<div><input type="submit" value="Send!" /></div>
</form>
So in... | stackexchange/codereview |
I want to implement a function in java that finds the null points of the sinus function. I know how to do that but I do not really understand the following definition of that problem:
Implement a function that searches for null points in the sinus function in a interval between a and b. The search-interval[lower limit,... | stackexchange/codereview |
I am doing what I thought was something very simple - finding a user and incrementing an integer.
@user = User.where("created_at > ?", Time.now.midnight).select(:visit_count)
@user.visit_count += 1
@user.save(:validate=>false)
I get the following error:
undefined method `visit_count' for [#<ActiveLink visit_count: 1>]... | stackexchange/codereview |
Why compiler does not translate Scala
(1,2,3,4,5,6).foldRight(10)(_ * _)
to Java equivalent
final int[] intArray = new int[]{1,2,3,4,5,6};
int accumulator = 10;
for(int i = intArray.legth - 1; i >=0; i--) {
accumulator = intArray[i] * accumulator;
}
The question is: Why foldLeft and reduceLeft are tail recursive, ... | stackexchange/codereview |
I recently read a sample job interview question:
Write a function to convert an integer
to a string. Assume you do not have
access to library functions i.e.,
itoa(), etc...
How would you go about this?
| stackexchange/codereview |
When we create a project in TFS, we always follow these steps:
1) Create new team project
2) Create workspace, assocate to source control folder and local folder
3) Create three folders under team project (Main, Dev, Release)
4) Check in source to Main
5) Convert Main to branch
6) Create Dev/Dev and Release/Release bra... | stackexchange/codereview |
I have a weird situation: Visual Studio 2010 will hang up indefinitely on me when opening certain websites. It prompts me for my credentials and loads up much of the project tree, and then just hangs at the "Preparing Solution..." dialog, which just then never goes away. In every case, the status bar of VS says that it... | stackexchange/codereview |
I have a script that is running every 5 seconds, as a polling ajax http request.
I want to send an incrementing amount through it, on each request (1,2,3,4,5,6 etc...)
I have this so far, but the code just sends '1' through all the time.
// set the value to 1
var state = {
recordId: 1
};
$.ajaxPoll({
... | stackexchange/codereview |
I have a contentEditable div with following text for example:
<div contentEditable='true'> This document is classified</div>
Now for example if user clicks on 'm' in word document I want to show a context menu containing few text choices. That context menu will be contained in a div element. I want to replace the word... | stackexchange/codereview |
I was wondering if I could copy some text to the iphone keyboard via code - I.E. They press a button named "Copy Link to Clipboard" and it would copy a link to the Clipboard?
Thanks.
| stackexchange/codereview |
I am writing a web app which uses SQL as input. This SQL must always be a CREATE TABLE statement, and what my app needs to do is getting the following attributes from it:
Field name
Type
Length (if available)
Binary (if available)
Allow NULL (if available)
Auto increment (if available)
Example SQL:
CREATE TABLE custo... | stackexchange/codereview |
I need to place 1 to 100 nodes (actually 25px dots) on a html5 canvas. I need to make them look randomly distributed so using some kind of grid is out. I also need to ensure these dots are not touching or overlapping. I would also like to not have big blank areas. Can someone tell me what this kind of algorithm is cal... | stackexchange/codereview |
I've tried the following code in Chrome, Firefox, and Safari, but my div isn't quite being centered.
HTML:
<!DOCTYPE html>
<html>
<head>
<link href="custom.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="center">Hello!</div>
</body>
</html>
custom.css:
.center {
widt... | stackexchange/codereview |
I'm wondering why the declare-before-use rule of C++ doesn't hold inside a class.
Look at this example:
#ifdef BASE
struct Base {
#endif
struct B;
struct A {
B *b;
A(){ b->foo(); }
};
struct B {
void foo() {}
};
#ifdef BASE
};
#endif
int main( ) { return 0; }
If BASE is de... | stackexchange/codereview |
i developed a website
ut when i share any page
in facebook
facebook should recognize my page
and select images to select a thumbnail
but this do not happen in my website
as if facebook can not recognize my page
or cannot read it and select images from it
what should i do
to let facebook recognize my page
and load all... | stackexchange/codereview |
Is there a possibility to load Google Chart API asynchronously like Google Maps API? I've tried out two different things:
$.getJSON('http://www.google.com/jsapi');
and
$.getScript('http://www.google.com/jsapi');
both are not working.
Any suggestions?
| stackexchange/codereview |
dreiNplusEins :: Integer -> [Integer]
dreiNplusEins n = if n == 1 then [1] else if n `mod` 2 == 0 then
[n] ++ dreiNplusEins (n `div` 2)
else
[n] ++ dreiNplusEins (n * 3 + 1)
maxZyklus :: UntereGrenze -> ObereGrenze -> (UntereGrenze... | stackexchange/codereview |
I have the following queries and I want to put them in an sql CASE statement so I would have only one query but I don't know how to do that. Can somebody help me?
IF (SELECT EtlLoadId
FROM ssislogs.audit.processcontrol
WHERE SubjectArea = 'UaqaFacetsImp') > 0
SELECT pc.SrcFileName + ' - '+ CONVERT(VARCHAR(10), pc... | stackexchange/codereview |
Okay so basically, I switched my DocumentRoot in Apache2 default to look like this:
DocumentRoot /home/scott/MySite/
That works. I have a file called index.php in that root.
I created a Zend Studio project, pointing to /home/scott/MySite/, and was able to create my project use this line as it's source, modify the .php... | stackexchange/codereview |
I am trying to write a webserver that processes requests from multiple clients simultaneously. The way it is designed, only one request can be processed at a time.
What I need is a way to call nextPendingConnection() and then dispatch the connection to a separate thread for processing.
Is there any way to do this?
| stackexchange/codereview |
I realize this is a hotly debated, controversial topic for Java programmers, but I believe my problem is somewhat unique. My algorithm REQUIRES pass by reference. I am doing a clockwise/counterclockwise pre-order traversal of a general tree (i.e. n-children) to assign virtual (x,y) coordinates. This simply means I coun... | stackexchange/codereview |
i'm triing to get this code to work on j2me
(it is working a java program)
but not yet in j2me
public static String generate(String plaintext, String passphase) throws Exception {
try {
PBEKeySpec pbeKeySpec = new PBEKeySpec(passphase.toCharArray());
PBEParameterSpec pbeParamSpec;
... | stackexchange/codereview |
I was surprised recently to discover that the compiler is apparently not strict about comparing interface references and am wondering why it works this way.
Consider this code:
class Program
{
interface I1 {}
interface I2 {}
class C1 : I1 {}
class C2 : I2 {}
static void Main(string[] args)
{
... | stackexchange/codereview |
What is the difference between the string and character array?
How can each element of the string be accessed in C++?
| stackexchange/codereview |
I am learning Symfony and I'm working with the following URI:
url_for('newItem/show?id='.$item->getId().'&name='.$item->getName().'&summary='.$item->getSummary())
With the below routing.yml
item_show_user:
url: /newItem/:name/:summary
param: {module: newItem, action: show}
# default rules
homepage:
url: ... | stackexchange/codereview |
in php I do this:
<?php
function displaySomething($list) {
foreach ($list as $item) {
?>
<html code here><?php echo $item["field"] ?><html code again etc>
<?php }
}
?>
And then I use it to display different lists in different places in my page.
Is there a way to achieve this with jsp? Create metho... | stackexchange/codereview |
I'm coding a WinForm component where I start a Task to do the actual processing and trap the exception on a continuation. From there I want to show the exception message on a UI element.
Task myTask = Task.Factory.StartNew (() => SomeMethod(someArgs));
myTask.ContinueWith (antecedant => uiTextBox.Text = antecedant.Exce... | stackexchange/codereview |
CreatePen GDI function does not work on Windows 7 when pen width is 3 or 4 (LineTo draws nothing). It works for 0 - 2 width. In all cases PS_SOLID pen style was used.
| stackexchange/codereview |
Is there a templating library/system/engine/technique written in javascript that:
Doesn't screw up plain-text (non-html) templates ( like tabs and line breaks )
But also works with HTML
Doesn't have it's own DSL for loops and conditions (uses pure JS)
Can be run server-side without the DOM
...and is open-source licen... | stackexchange/codereview |
Could anybody tell me why I'm getting this error, and how to fix the problem?
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/stax2/ri/Stax2ReaderAdapter
at org.codehaus.staxmate.dom.DOMConverter._build(DOMConverter.java:188)
at org.codehaus.staxmate.dom.DOMConverter.buildDo... | stackexchange/codereview |
I am designing an API for my webapp.
I was thinking to support only JSON responses (not XML) because more streamlined.
But I have just bumped to this XML:
<folders>
<folder id="123" private="0" archived="0" order="1">Shopping</folder>
</folders>
and I was wondering how the corresponding JSON would be. I have the f... | stackexchange/codereview |
Is there a way I can access network drives on the school network from my home.
| stackexchange/codereview |
UPDATE: Ok, I was able to debug this and found that the by doing this select @@max_sp_recursion_depth I can see that the variable is set at 15, however, when I run the call back to itself with CALL single_limb_portfolio_list(xaccount_id, xparent_portfolio_id); I get the error stating the Recursive Limit 0 was reached, ... | stackexchange/codereview |
I have a large div housing my background image. Generally, it will be centered with the sides going off the screen. Because it is background, I don't want scrollbars to show up on the browser- is there a solution here?
Thanks
EDIT: Let me clarify based on the answers:
I have a large image that extends beyond the brow... | stackexchange/codereview |
My html page loads a bit slowly because of the jquery that's in it. I want an image that tells the user that it's loading, until the entire page get loaded. How should I go about doing this?
Many thanks in advance.
<script type="text/javascript">
$(document).ready(function(){
//my jquery here....
});
</scr... | stackexchange/codereview |
Can you recommend me a good decision tree C++ class with support for continous features and pruning(its very important)? Im writing a simple classifier(two classes) using 9 features. I've been using Waffles recently, but looks like tree is overfitting so i get Precision around 82% but Recall is around 51% which is inac... | stackexchange/codereview |
I am developping an AJAX website. Now I've ran into some differences between Standard JavaScript and Microsoft's JavaScript dialect.
For examle .textContent (standard) vs .text (microsoft)
I could make two files, one for standard browsers and one for microsoft browsers, but if I make a change I need to do so twice, so... | stackexchange/codereview |
i need decode this Json with the PHP, but i dont know how. I saw this function php.net/json, but it haven't how to decode this type of data.
{"c":[{"v":"0","e":"","n":"45","cc":"PSDB - PTB \/ PPS \/ DEM \/ PMN \/ PSDB \/ PT do B","nm":"JOSÉ SERRA","nv":"VICE: ÃNDIO DA COSTA"},{"v":"0","e":"","n":"13","cc":"PT - PRB \/... | stackexchange/codereview |
Possible Duplicate:
Objective-C properties: atomic vs nonatomic
By default all properties in Objective-C are atomic. If I need nonatomic I have to declare it. But I wonder why should I ever use nonatomic? Even if my applications are not multi threaded, atomic seems like the way to do it. What are the advantages of n... | stackexchange/codereview |
I have the following regexp (/\?(.*?)\&/) which when I use it in the following javascript code it removes the "?" from the replacement result.
href=href.replace((/\?(.*?)\&/),"")
The beginning href value is this...
/ShoppingCart.asp?ProductCode=238HOSE&CouponCode=test
I get this as my result right now...
/ShoppingCar... | stackexchange/codereview |
im programmer in PHP, AS2, AS3 and others, i want to develop a flash application for facebook, i know a litle bit about how to start with the API configuration and that kind of thinks, i know how to integrate PHP scripts with flash (but in AS2).
So, i cant find a good (and simple) example of an app made in flash (AS3) ... | stackexchange/codereview |
I'm a Haskell newbie, and having a bit of trouble figuring out how to pattern match a ByteString. The [Char] version of my function looks like:
dropAB :: String -> String
dropAB [] = []
dropAB (x:[]) = x:[]
dropAB (x:y:xs) = if x=='a' && y=='b'
then dropAB xs
else x:(dropAB ... | stackexchange/codereview |
I'd like to write a sandbox virtual machine for executing a compiled program. How do you think: which of these two languages would be better to use if we consider performance? Or maybe you suggest another one?
| stackexchange/codereview |
So I'm trying to draw a solid red oval on a transparent window. I later want to do something more complex with multiple shapes, so using setWindowShape isn't what I'm looking for. This is the code I'm using so far:
import java.awt.*;
import javax.swing.*;
public class JavaDock extends JFrame{
public JavaDock(){
... | stackexchange/codereview |
When comparing MVC to ASP.NET Forms, which one offers a better design-time experience for a web designer? ... which is better for the developer?
I was just looking at the new Razor MVC syntax and think that designers may simply delete stray } that are used in for..each loops. One might say that ASP.NET WebForms offer... | stackexchange/codereview |
i want to read a website in C# using this:
WebRequest myWebRequest = WebRequest.Create("http://www.myurl.com/test.aspx");
WebResponse myWebResponse = myWebRequest.GetResponse();
Stream ReceiveStream = myWebResponse.GetResponseStream();
Encoding encode = System.Text.Encoding.GetEncoding("... | stackexchange/codereview |
Is there any good library to calculate linear least squares OLS (Ordinary Least Squares) in python?
Thanks.
Edit:
Thanks for the SciKits and Scipy.
@ars: Can X be a matrix? An example:
y(1) = a(1)*x(11) + a(2)*x(12) + a(3)*x(13)
y(2) = a(1)*x(21) + a(2)*x(22) + a(3)*x(23)
...........................................
y(... | stackexchange/codereview |
I want to turn off a code contract warning, but only for specific code lines. How do I do that?
For instance, I get:
Warning 87 CodeContracts: requires unproven: key != null
for:
return HttpContext.Current.Items[typeof(T).AssemblyQualifiedName];
which will never happen in our applications.
| stackexchange/codereview |
Does anyone know how to record videos from an iphone app without making it to close..
it would be greatly helpful, if any one provides the sample code...
| stackexchange/codereview |
I am using the following code snippet to fetch a <div> element with a particular id, but it kind of messes up at times. Does anyone have a better code, or fix for this?
function getData(html,id){
var curSectionId = id;
var subStr=html.substring(html.indexOf("id=\""+curSectionId+"\""),html.length-1);
var divsStrs... | stackexchange/codereview |
Use the same i.e. with the title.
| stackexchange/codereview |
I am in situation where i m nt able to figure out where i am wrong.
I am calling web service using jquery.It is working fine as it call webmethod done the operation .but it call function service failed on error clause than success in $.ajax call
it should alert me 'hi' if the service is successfule.but it is calling Se... | stackexchange/codereview |
I am unable to get activemq-web-console up and running after following instructions located at:
http://activemq.apache.org/osgi-integration.html
or
this thread:
unable to install activemq-web-console in Fuse service mix
In short, the steps I followed:
1) Fresh copy of Fuse Servicemix.
2) Install activemq-spring
3) cr... | stackexchange/codereview |
I have some bitmap A which I modify to produce bitmap B. I want to efficiently produce a bitmap D by XORing the pixels values of A and B together such that D XOR A produces bitmap B and D XOR B produces bitmap A. I want to store the differences between the bitmaps so I can reverse changes that I've made.
So far I've tr... | stackexchange/codereview |
I have 2 tables like this: (Please note the non-standard db schema naming)
table T_Pen
TP_ID
TP_PrimaryColorID
TP_SecondaryColorID
...
table E_Color
EC_ID
EC_ColorName
...
And I want to create a mapping of the 2 tables to a domain object Pen using Fluent NHibernate.
class Pen
{
PenID;
PrimaryCol... | stackexchange/codereview |
I am sending HTML emails with embedded images (as attachments) and the images display as expected in GMail. However they also show up as attachments under the email. Does anyone know how to avoid this i.e. I want them in the email only and not listed as attachments. I have used "Content-Disposition: inline". I am using... | stackexchange/codereview |
When i like a certain Javascript (for menu highlighting or so) used by some website, it would be pretty easy to copy this script from that site's source-code and use it in mine.
I would consider doing so as unauthorized use of intellectual property, since I have been granted the right to use this javascript in my brows... | stackexchange/codereview |
in gVim, I am trying to do
q 2 dd j q
Then
@2
at several points later. It works the first time (meaning vim deletes three lines and moves down when I type @2), but anytime after that, my screen blinks and the cursor moves down once.
Is there a setting I need in vimrc or something to allow this macro?
| stackexchange/codereview |
I have this code in my project:
id mappedData = [dataWithContentsOfMappedFile: path]
Obviously, if mappedData is nil it didn't succeed. But how can I get details about why it didn't succeed? There's no dataWithContentsOfMappedFile:withError:.
| stackexchange/codereview |
I have this routing defined in my module's init.php;
Route::set('store', 'store/<store_id>(/<controller>(/<action>(/<id>)))',
array(
'store_id' => '\d+'
))
->defaults(array(
'controller' => 'main',
'action' => 'index',
));
and the default route in bootstrap.php is still intact.
Route::set('d... | stackexchange/codereview |
How can we increase or Decrease width of a DIV using setTimeout() ??
| stackexchange/codereview |
I have created database in microsoft sql server 2005 can i use that particular database in mysql server 5.0 .
| stackexchange/codereview |
I am working on a web application that allows the user to create a "movie" which is implemented as javascript-driven animation. I would like to give the user the ability to post their movie to YouTube.
The user could of course do this by getting some screen-capture software, but I would like to automate the process --... | stackexchange/codereview |
Hey,
I am using Visual Studio 2008, with CUDA 3.2. I am trying to debug into a function with this signature:
MatrixMultiplication_Kernel<<<dimGrid, dimBlock>>>(Md, Nd, Pd, Width);
I can step into the function, however when I get into the function it doesn't let me step over any of the code and tells me that no source... | stackexchange/codereview |
Can anyone help me on how can I fix this one.
I'm using vb.net 2003 and I've tried to generate a report in Excel using POI, but I have a problem when the records is above 2000, cell formats has been missing or corrupted for the next 2000 and above records. And when I'm opening the generated report and It shows a messag... | stackexchange/codereview |
Our application uses IGraphBuilder::RenderFile to build filter graph. On Windows 7, this application can play MPEG-PS videos smoothly, but it cannot open/play MPEG-TS(transport stream) videos. IGraphBuilder::RenderFile returns an error code VFW_E_UNSUPPORTED_STREAM.
On my Windows 7, Windows Media Player can open/play t... | stackexchange/codereview |
What is the difference between these two methods?
select count(*) from `table` where `column` = 'value';
and
select count(`column` = 'value') from `table`;
To me they seem to do the same thing; I assume this is not the case for the database. Does one method leverage indexes better than the other?
In this case I use M... | stackexchange/codereview |
I have created a project with cocos2d 0.99.5 + box2d.
When I rotate my iphone, Screen automatically rotated too.
So the boxes Flew up into the ceiling.
How to disable auto-rotation?
plz
| stackexchange/codereview |
<!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" dir="ltr">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script>
<style type="text/css">
.u... | stackexchange/codereview |
I have a div like this :
<div id="div1" style="width: 100%; height: 30px; background-color: Blue" onclick="function1()"></div>
from this function1() which is a javascript function I want to call a function which written in c# code behind so that i can access the controls of the page and do my manipulation whatever i... | stackexchange/codereview |
I want to know how to find out if the preprocessor macro __PRETTY_FUNCTION__ can be used with a given compiler (As it is supposed to be non-standard). How do I check this in a header file? What I want to do is something like:
#ifndef __PRETTY_FUNCTION__
#define __PRETTY_FUNCTION__ __func__
#endif
But, I'm guessing ... | stackexchange/codereview |
I have the following simple piece of code:
NSMutableArray *array = [[NSMutableArray alloc] init];
NSObject *o = [[NSObject alloc] init];
NSObject *o1 = [[NSObject alloc] init];
NSObject *o2 = [[NSObject alloc] init];
[array addObject:o];
[array addObject:o1];
[array addObject:o2];
NSLog(@"... | stackexchange/codereview |
I'm trying to use libcurl with a program I'm making, but I'm having some problems with it. So far I've only tried the examples from libcurl's website, but they crash as soon as the program gets to the curl initialization.
My current code:
#include <iostream>
#include <curl/curl.h>
int main(int argc, char *argv[])
{
... | stackexchange/codereview |
I m tring to implement ajax polling in my code but i want to make sure that the server has an update before requesting for the data.How can I accomplish this?
| stackexchange/codereview |
An error occurred when we have special characters
<input value="Search Today's Deals" onfocus="if(this.getValue() == 'Search Today's Deals'){this.setValue('')}" />
When I click this textbox it show issue:
Failed to processs FBML JavaScript. Exception = "Javascript parse error, unexpected: RCURLY"
Please help me a... | stackexchange/codereview |
How can I "listen" for the focus lost event of a textbox in a .NET web form? Is the only way using OnBlur in combination with JavaScript?
Thanks :-)
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.