instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
So I can't seem to completely exit the application, I want this to happen when the user clicks the (x) button. is there a certain command like application.exit I can put somewhere (maybe FormClosed()?)
Thank you!
| stackexchange/codereview |
I'm writing a basic scripting system using lua in C++. One of my glue functions is called from this:
lua_register(luaVM, "openFile", l_dial.l_specifyF);
And is coded as follows:
static int l_specifyF(lua_State* luaVM) {
const char* c = lua_tostring(luaVM, -1);
cDialogManager::getSingletonPtr()->clearVector();
... | stackexchange/codereview |
I wanted to change from Reach to HiDef and when i tried that i got this error :
Error 1 Building content threw AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Microsoft.Xna.Framework.Content.Pipeline.FbxImporter.Cleanup()
at ... | stackexchange/codereview |
I have a C++ code in which I have multiple data types. Importantly, I have a class:
class coordinate{
int x, y;
public:
void set_values(int, int);
}
I then might say:
coordinate* origin = new coordinate;
Obviously, to recover memory allocated to origin I would finally say:
delete(origin);
So far, so goo... | stackexchange/codereview |
in a 'native' Zend Framework application I would enable the use of ezComponents by adding the autoloader of ezComponents to Zends autoloader:
$autoLoader = Zend_Loader_Autoloader::getInstance();
require_once('../library/EZComponents/Base/src/base.php');
$autoLoader->pushAutoloader(array('ezcBase', 'autoload'), 'ezc'); ... | stackexchange/codereview |
If we don't want to implement init method in our class, and bearing in mind that init in NSObject only returns an instance of the object without initialization, I don't see the point of calling init if we already get the instance with alloc. I have tried and it works, but I am not sure it won't cause future problems.
m... | stackexchange/codereview |
I have the following models. Users have UserActions, and one possible UserAction can be a ContactAction (UserAction is a polymorphism). There are other actions like LoginAction etc. So
class User < AR::Base
has_many :contact_requests, :class_name => "ContactAction"
has_many :user_actions
has_many_polymorphs :us... | stackexchange/codereview |
In the django admin, I have an inline that I want to have the viewing user filled in automatically. During the clean function, it fills in the created_by field with request.user. The problem is that since the created_by field is excluded by the form, the value that gets inserted into cleaned_fields gets ignored apparen... | stackexchange/codereview |
I have a custom user control loaded into a sublayout in Sitecore. When I click on a menu tree item I would like to reference the name of the menu item in my control. How can I get a reference to the selected menu item? I can get a reference to the content folder that the menu items are sitting in, but not to the select... | stackexchange/codereview |
Will the elements in myList always be visited in the same order with a For Each loop (assuming I don't alter the list)?
Dim myList As New List(Of MyElement)
....
For Each myElem As MyElement In myList
' yadda yadda yadda
Next
| stackexchange/codereview |
Python 3.1
I am doing some calculations on a data that has missing values. Any calculation that involves a missing value should result in a missing value.
I am thinking of using float('nan') to represent missing values. Is it safe? At the end I'll just check
def is_missing(x):
return x!=x # I hope it's safe to use to... | stackexchange/codereview |
I want to store my results from neural network in MATLAB to Access database, and also store video with it to the same database. For other time when everyone result the same pic from neural network the output for him is video that was stored before in DB...
Can you help me?
| stackexchange/codereview |
Hi
I have to add support for other languages in my application. Almost entire application is ready however I have a problem with translating a tooltip which is 'loaded' from resourcesDictioanry file.
For couple element in my application I have the same tooltip. So instead of writting the same code over and over again I... | stackexchange/codereview |
We are a small company developing a browser game. As planned we need a forum, wiki and a blog. The initial idea was to code everything by ourselves but time is short as always and we need to cut some corners. What we need is simple applications that have the general functionality. If you have used/developed something l... | stackexchange/codereview |
I have 20 GB of (uncompressed) log files. They're initially compressed though (as one 70 KB .gz file per log file) and total about 700 MB. I need to browse and search them to diagnose some issues. I don't know exactly what I'm searching for and I probably will need to quickly browse through a couple thousand hits for a... | stackexchange/codereview |
My problem is in the last line:
module A where
data A = A { f :: Int }
defaultA = A { f = 0 }
and
module B where
import A as A
data B = B { f :: Int }
bToA :: B -> A
bToA x = defaultA { A.f = f x }
gives
B.hs:8:26:
Ambiguous occurrence `f'
It could refer to either `B.f', defined at B.hs:5:13
... | stackexchange/codereview |
I have an ec2 instance, but when i run mysql, it gives me this error
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Similarly, when i run
/etc/init.d/mysql start
Oct 31 11:29:16 domU-12-31-38-00-A8-62 /etc/init.d/mysql[5263]: error: 'Can't connect to local My... | stackexchange/codereview |
I am somewhat new to MVVM. I am not sure what the best way is to do what I am trying to do.
Here is the scenario:
I have a VM that is going to show another window. I can call myNewWindowView.Show(), but first I need to set some data in the VM of my new window.
Should I expose both the myNewWindowView and the NewWindo... | stackexchange/codereview |
I have written a small android app that grabs some data and displays it in a ListView.
I want to have the list sorted in ascending order (no prob). But when I add a new item it stays at the bottom of the list even when the view/app is reloaded. It seems the only data that is being sorted is the entries that were create... | stackexchange/codereview |
Hi I am trying to change an individual item in a listCtrl in erlang.
I initialize listCtrl then I goto set the item as follows:
wxListCtrl:setItem(ListCtrl, Row, 1, io_lib:format("~.2f",[VolumeB + 0.00 ])),
wxListCtrl:setItemBackgroundColour(ListCtrl, 1, ?wxRED),
Problem is the background color of the entire row i... | stackexchange/codereview |
I'm developing a two player checkers website. The idea is to allow people sign up and add to a list of friends they have. They can then send or accept requests to/from a friend on their list to play a game of checkers via the site.
I'm using Ruby on Rails to develop it (It’s mandatory in case people think another langu... | stackexchange/codereview |
I have a range of objects that have a long field whose value uniquely identifies a particular object across my entire system, much like a GUID. I have overriden Object.equals() to use this id for comparison, beause I want it to work with copies of the object. Now I want to override Object.hashCode(), too, which basical... | stackexchange/codereview |
Can anyone give me clear picture about dynamic property and its usage? y not use the usual @property everywhere?
| stackexchange/codereview |
I am using a listview with 6 items per page. When I choose an item from the 6 items it should take me to a page with 3 items per page BUT the selected item (on previous page) as FIRST item in the list on the new page. Basically how do I set which items shows first in the listview? Is that a property?
| stackexchange/codereview |
I was looking at this question and it gave me about 80% of what I needed. The "problem" for me is that my XML is strucutred differently and I am not quite sure how I would go about using Linq to get at what I need.
My XML looks like this (By the way, its generated by the ConvertTo-XMl PowerShell Cmdlet)
<?xml version="... | stackexchange/codereview |
Hi
In a single server Windows domain, does anyone know how to get the servername.
For example, in my test environment, we have a single Windows Small Business Server 2008 called horatio, it is the domain controller for longtest.local.
I have played around with the system.dns (with no positive results) :
Dim myIP As... | stackexchange/codereview |
Hello
In C++ you can do the following:
int x = 5
cout << x;
// prints 5
int* px = &x;
(*px)++;
cout <<x;
// prints 6
Is there an equivalent construct in Java
| stackexchange/codereview |
stackexchange/codereview | |
I'm following the sportsStore tutorial from the Apress Pro Mvc 2 Framework book.
It's been a while since I touched .net, and I'm completely new to Mvc and I've fallen at the first stumbling block!
I have the following error:
foreach statement cannot operate on
variables of type
'IENumerable'
because
'IENumera... | stackexchange/codereview |
With MVC possible in both ASP.NET MVC and PHP (CodeIgniter, CakePHP etc) what are the options when it comes to using a view engine that could work with both platforms, enabling copy/paste without any changes? Ones I can think of are:
NHaml / PHPHaml (not updated for 3 years though) / PHamlP
I am assuming this works w... | stackexchange/codereview |
I am facing trouble in doing password validation. I am taking the min and max value for the range of password from the java class called applicationconstants and calling that in the servlets. I am using the validation function in another java class and calling that in servlet. Please help me in solving this problem.
se... | stackexchange/codereview |
I have a complex struct i want to put as a key of the std::map to make a list of all unique objects fast:
union somecomplexstruct {
struct {
more_structs val1, val2;
even_more_structs val3, val4;
lots_of_more_structs val5;
};
unsigned int DATA[3];
};
typedef map<somecomplexstruct... | stackexchange/codereview |
I'm doing a join like this in SQLAlchemy:
items = Item.query\
.outerjoin((ItemInfo, ItemInfo.item_id==Item.id))
items.add_columns(ItemInfo.count)
This causes SQLAlchemy to return tuples:
>>> items.first()
(<Item ...>, 2)
I'd much prefer it if the "count" value would instead be returned as an attribute of the ... | stackexchange/codereview |
I am using maven-exec-plugin to generate java sources of Thrift. It invokes the external Thrift compiler and using -o to specify the output directory, "target/generated-sources/thrift".
The problem is neither maven-exec-plugin nor Thrift compiler automatically create the output directory, I have to manually create it.... | stackexchange/codereview |
I have a WCF service hosted and I'm trying to use it within an iPhone app as a JSON POST request. I plan on using the JSON serializer later, but this is what I have for the request:
NSString *jsonRequest = @"{\"username\":\"user\",\"password\":\"letmein\"}";
NSLog(@"Request: %@", jsonRequest);
NSURL *url =... | stackexchange/codereview |
Does the Netbeans Rich-Client Platform Development provide the same in Java as MEF in .NET?
Is there is any other built-in easy way in JAVA to do pluggable applications?
Thanks
| stackexchange/codereview |
I'm trying to call Visual Basic's CreateObject method from my C++ code. In VB, I'd simply type:
Dim obj As Object
obj = CreateObject("WScript.Network")
And that returns me the object from which I can call more methods. But how can I do that in C++? I'm following the MSDN documentation in http://msdn.microsoft.com/en-us... | stackexchange/codereview |
http://admin:123456@192.168.1.178/videostream.cgi
To access a url that doesn't require http authenticate it's quite easy:
telnet 192.168.1.178 80
Get /videostream.cgi HTTP/1.1
Accept: text/html;text/plain
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.13) Gecko/20100914 Firefox/3.5.13
Connection... | stackexchange/codereview |
Is it possible to do that in C#?
Queue<string> helperStrings = {"right", "left", "up", "down"};
or do I have to produce an array first for that?
| stackexchange/codereview |
I have a 3D matrix with the dimensions 6, 2, and 10. I want the row dimension to switch places with the height dimension, that is, 10-2-6. reshape doesn't achieve this the way I want.
How can this be done? Can I rotate the matrix?
| stackexchange/codereview |
H!
I have source in C, which is use the
socket(AF_INET, SOCK_STREAM, 0); C method.
I use the NDK and make the jni. Everything is fine, but the application don't work correctly;
The original C method return 5 in the console. In Android that value is -1.
I try to add the C source file the #include < socket.h>, but this i... | stackexchange/codereview |
I have a need to use the FullCalendar plugin's month view, but with a small twist... I need the month view to be a calendar month (4 weeks) from the currently selected date, not a month proper (Jan, Feb, etc). In other words, I need the top left column to be the currently selected date, with the calendar rendering 4 we... | stackexchange/codereview |
How to avoid error if key is null?
//Getter/setter
public static Dictionary<string, string> Dictionary
{
get { return Global.dictionary; }
set { Global.dictionary = value; }
}
UPDATE:
Dictionary.Add("Key1", "Text1");
Dictionary["Key2"] <-error! so what can I write in the GET to avoid error?
Thanks.
regards
| stackexchange/codereview |
In one of my application i want to use dynamic column diaply using stored procedure.
How can i achieve that ???
USE [ASIF]
GO
/****** Object: StoredProcedure [dbo].[USP_GET_TABLE] Script Date: 11/03/2010 15:45:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[USP_GET_TABLE]
@TABLEN... | stackexchange/codereview |
I have a class which inherits from BindingList to apply sorting to a bindinglist. The sorting works fine, but when I add or remove an item from the list the bounded control isn't updated. I think i miss something in the class, but I don't know what.
I've found the code of the class somewhere online, but I don't know w... | stackexchange/codereview |
I'm trying to determine the best approach to providing an Ajax based terminal using PHP. I haven't made an attempt at writing it yet but having rolled the idea around, the only way I could see it possible, would be 2 scripts:
Script 1; handles Ajax communication
between server and client browser. when a
request is mad... | stackexchange/codereview |
I am having an anchor link in aspx page like:
<a id="Anchor"class="myAnchor" href="Myproject/Mypage.aspx?myTag=asp">Go</a>
I need to access the "myTag" value using jquery.How to do this?
| stackexchange/codereview |
Currently i am using Mac OS X 10.6.4 and i want to know what are the tools(automated & manual) that i can install in my mac for testing purpose.Generally i need this for different kind of Website & Mobile platform testing.
| stackexchange/codereview |
In an every article the answer to a question "How to append a string to a JEditorPane?" is something like
jep.setText(jep.getText + "new string");
I have tried this:
jep.setText("<b>Termination time : </b>" +
CriterionFunction.estimateIndividual_top(individual) + " </br>");
jep.setText(jep.get... | stackexchange/codereview |
So I have this index.php page:
<?php
include main.php;
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css" />
<title>MySite</title>
</head>
<body>
<a id = "submit" href="submit.php">Submit</a>
<br />
<br />
<br />
<br />
<br />
<p id = "playing">Message</p>
<?php
getM... | stackexchange/codereview |
I know that recursive make is deemed evil, etc. Please bear with me anyway.
We manage a relatively large project with GNU make, which heavily uses make includes to keep the individual make files simple. I'd like to add a target which gets executed after other targeted. More precisely, the problem is the following:
I... | stackexchange/codereview |
In .NET MVC 2 you can apply the <RequireHttps()> attribute to make a method be secured by SSL.
<RequireHttps()>
Function Index() As ActionResult
Return View()
End Function
Let's say that your SSL certificate is issued for mysite.com. If the user visits your site by entering http://www.mysite.com, <RequireHttps()> ... | stackexchange/codereview |
As I understand default(object) where 'object' is any reference type always returns null, but can I specify what a default is? For instance, I want default(object) == new object();
| stackexchange/codereview |
I have a requirement to allow portal Admins the ability to impersonate a site user, not the Host account(s) and limit the users the Admin can impersonate to only users of the portal. Can this be done in DotNetNuke or would this require all custom coding/module development?
| stackexchange/codereview |
I have a large list of error messages that my biz code can return based on what's entered. The list may end up with more than a thousand.
I'd like to just enum these all out, using the [Description("")] attribute to record the friendly message.
Something like:
public enum ErrorMessage
{
[Description("A first name... | stackexchange/codereview |
ctags -x --c-kinds=f *.c
will give me functions defined in these C files.
But I want instead just the functions called in these C files.
I couldn't find that option in ctags, and cscope appears only interactive.
How can I get a list of the functions called in one or more C files, sent to stdout for further piping/filt... | stackexchange/codereview |
I'm building a wp7 app.
I have a UserControl that displays a news article headline, teaser, and image. The entire class is pretty short:
public partial class StoryControl : UserControl
{
public Story Story { get; private set; }
public StoryControl()
{
InitializeComponent();
}
internal Stor... | stackexchange/codereview |
I am working on a VB.NET project that grabs data from an Access DB file. All the code snipeets I have come across open the DB, do stuff and close it for each operation. I currently have the DB open for the entire time the application is running and only close it when the application exits.
My question is: Is there a be... | stackexchange/codereview |
We have:
vector<int> f(int);
vector<int> v;
This works:
f(x).swap(v);
This doesn't:
v.swap(f(x));
And why?
| stackexchange/codereview |
why this error
xhr: [object XMLHttpRequest]
textStatus: parsererror
errorThrown: Invalid JSON: [ { "id": "10000000", "label": "10000000" }, { "id": "10000001", "label": "10000001" }, { "id": "10000003", "label": "10000003" }, { "id": "10000005", "label": "10000005" }, { "id": "10000006", "label": "10000006" } ]
| stackexchange/codereview |
I need to recursively reverse a HUGE array that has many levels of sub arrays, and I need to preserve all of the keys (which some are int keys, and some are string keys), can someone please help me? Perhaps an example using array_reverse somehow? Also, is using array_reverse the only/best method of doing this?
Thanks... | stackexchange/codereview |
I'm trying to read an email using ruby mail gem.
But mail.body.decoded returns me not just the body message. How can I clean up this body message and remove unwanted text like:
-20cf30433c9a437cc304939017ef\nContent-Type: text/plain; charset=ISO-8859-1\nContent-
message = $stdin.read
mail = Mail.read_from_string(mes... | stackexchange/codereview |
I have 4.5 years experience as a professional PHP developer, I have loads of experience with session handling, etc.
I am wanting to learn how to build Facebook applications. I have gone through the process of downloading the Facebook Developer application, I have used to it Create an App, I have set the canvas URL to w... | stackexchange/codereview |
In the function below, I want to match the keyword case insensitive (should match "Blue Yoga Mats" and "blue yoga mats")...
However, it currently only matches if the keyword is the same case.
$mykeyword = "Blue Yoga Mats";
$post->post_content = preg_replace_callback("/\b($mykeyword)\b/","doReplace", $post->post_content... | stackexchange/codereview |
I have a script module whose .psm1 file runs a command that will fail if a certain registry value is not present. I want to ignore this failure, so the .psm1 script runs the command as:
CommandThatMayFail -ea SilentlyContinue
This works just fine when I import the module in a PowerShell session. But one of the funct... | stackexchange/codereview |
I am trying to write a JAVA based comet HTTP streaming. I am using apache httpClient 4.x for this. Since, it is comet HTTP streaming, all the events are coming to the client in the form of chunked data. Since the connection may stay opended for long time, I am trying to implement the dynamic setting of SO_TIMEOUT after... | stackexchange/codereview |
In code:
string s = "Executing".TrimStart(@"Exec ".ToCharArray());
or
string s = "Executing".TrimStart("Exec ".ToCharArray());
s will equal "uting" in spite of the trailing space character while
bool t = "Executing".StartsWith("Exec ");
t will equal False?
| stackexchange/codereview |
I'd like to know if it's possible to do the following using a single sqlite statement:
My table looks something like this:
|AnId|UserId|SomeDate|SomeData|
|123 |A |1/1/2010|aadsljvs|
| 87 |A |2/9/2010|asda fas|
|193 |A |2/4/2010|aadsljvs|
|927 |A |7/3/2010|aadsasdf|
|816 |B |1/1/2010|aa32973v|
|109 ... | stackexchange/codereview |
I'm trying create a Thread that keeps track of the time elapsed if a certain event has occurred/is happening. I want to be able to use the elapsed time outside of the thread, like:
if(theChecker.elapsedTime > 5)
doThis();
The code that I have basically looks like this:
public class Checker extends Thread {
pu... | stackexchange/codereview |
How do browsers understand HTML?
What is the actual processing that takes place internally so that the browser renders HTML in the proper viewable way?
| stackexchange/codereview |
I am trying to obtain the pitch, the level, and other stuff from my microphone using Python. I am trying using pyaudio, but I read that I need to use other libraries to generate the maths. I can’t find how mix pyaudio with the math library.
| stackexchange/codereview |
I am using jQuery 1.4. I want create the timer which starts on keyup event and resets on key press event. I want to use $.ajax request to send the time interval to the server. All I could find was countdown timers.
I appreciate any help.
| stackexchange/codereview |
I am using USPS(http://www.usps.com) for rate calculation between 2 zip codes. USPS accepts xml and returns response in xml. I want extract response data of the xml by php. show me a easy way to extract xml in php. thanks in advance.
| stackexchange/codereview |
I have a project which uses Rhino.ActiveRecord's ARRepository, unfortunatly the project is no longer maintained and both of NHibernate's and ActiveRecord's versions are very old and we really need to upgrade.
How do I detach the dependency from my project while still maintaing the same API of ARRepository?
It seems tha... | stackexchange/codereview |
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
CGFloat coef = tempCount / 20;
while(tempCount >= 0)
{
[imgView setTransform: CGAffineTransformRotate([imgView transform], -1*coef)];
tempCount -=coef;
[NSThread sleepForTimeInterval: 0.09];
}
}
And the problem is in than, that my image on th... | stackexchange/codereview |
I'm using a script which imports some modules, one being codecs. When the script is executed, I'll get a Traceback (most recent call last): on the import codecs line and SyntaxError: ('no viable alternative at input \'""\'', ('C:\\Python26\\lib\\codecs.py', 268, 17, ' return (b"", 0)\n')). This only occurs when... | stackexchange/codereview |
First off; I've been an avid reader of SO for a good while now. This is my first question. I'm surprised it's going to be related to databases! Note that I think the problem might somehow be specific to my setup so I'm not sure if you'll be able to help me out, but I thought I'd give it a shot!
Problem:
So, I'm complet... | stackexchange/codereview |
Some text (or html) document from web is not encoded as UTF-8, so I want to convert encoding of text document to UTF-8.
Do you have any clues for dealing with text encoding?
And I found that, when application draws element with encoding-broken text (such as "¿©¼º ½̾ ±â"), the application is often killed with alert di... | stackexchange/codereview |
Desktop Windows OSs have a "StackWalk64" function, upon which Jochen Kalmbach made a library for decoding the call stack into something human-readable.
I need a similar tool, but for Windows CE. WinCE has a function to get the call stack, GetThreadCallStack, but once I have the raw return addresses, how do I
Determine... | stackexchange/codereview |
I am using Java print service API to select PrintService and then pass it to JasperReport's JRPrintServiceExporter. The basic idea is to just send a document to the provided PrintService. It is actually using java.awt.print.PrinterJob.print().
It seems like you cannot send a print job to a printer that has PrinterIsAcc... | stackexchange/codereview |
On simulator when I switch from portrait to landscape in Tableview my searchbar expands.
but on device it is not expanding.
Any Idea I am very upset due to that.
Thanks.
| stackexchange/codereview |
Could anyone please give me a short working example of a C# class which can be compiled to a DLL, and an example of VB.NET-code creating an object based on this class and using its members (methods). The C# class has to have a namespace, at least one class definition (obviously) and some methods or whatever they ought ... | stackexchange/codereview |
We create a lot of console apps, ssis packages to extract data from our database to be used in downstream applications. Some are excel files, some are CSV files.
What i'm looking to do is build a dynamic, configurable extract engine that I can customize what elements the group wants and have those files extracted.
Has... | stackexchange/codereview |
Hi
I am trying to get device id of windows 7 phone using following code
byte[] result = null;
String id = null;
object uniqueId;
if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))
result = (byte[])uniqueId;
Problem is that I need this result in String. Can anyone tell me how to do this?... | stackexchange/codereview |
I have the following situation:
One product which I want to translate, that has two separate websites, one for admins, one for customers.
The codebase is CakePHP.
Both sites are completely separate from each other, they are complete CakePHP sites.
And they both have A LOT of strings in common.
So, with CakePHP I genera... | stackexchange/codereview |
I want to display a table like the following in an iPhone app
Recommendations History
Current 1 Month Ago 2 Months Ago 3 Months Ago
Strong Buy 29 27 27 26
Moderate Buy 5 4 4 4
Hold 3 4 3 ... | stackexchange/codereview |
I'm using ab to test my app, and I'm having trouble passing the correct cookie. My cookie data looks like this:
messages=95925d68c34fcc68b3fcc2e5061a45278c35af41$[[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"Data\\\\"]]
I can't figure out how to get the second part of the string to ab to send to my server. I'm doing ... | stackexchange/codereview |
In MonoDevelop, at least, I find that nunit tests launch with a CurrentDirectory of the bin directory. There's no apparent run option to change that.
Is there some nunit-y nice way to locate data files, or should I just set an environment variable in the run configuration?
| stackexchange/codereview |
I'm looking for some help with finishing some code on setting the region on a MKMapView based on the current location annotation and an annotation I have set.
I want to calculate the distance between the two and set the center between the two and then zoom out so both are in view. It appears to work fine in Simulator f... | stackexchange/codereview |
I'm starting to use web deploy to build and deploy a web application. So far I can build a package and deploy it, but it's not doing much more than a xcopy deployment would do.
so my command to build the package is this:
msbuild EMP.WebAdmin.csproj /T:Package /P:Configuration=Release;PackageLocation="D:\Packages\WebAdm... | stackexchange/codereview |
I'm trying to make a simple drawing tool using JS and Canvas element. My problem is that I would like to have several canvases and user should be able to draw one line through all of them. Here's a little page I did:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax... | stackexchange/codereview |
How would i combined 2 html forms
I am trying to combined to forms that are in different position. so i can post all the data at once.
Here is a eg
<form action="actions.php">
<input type="text">
<input type="text">
<input type="submit" name="button" id="button" value="submit" />
</form>
<form>
<input type="text">... | stackexchange/codereview |
I have quite a few html files with datasets and huge tables and about 8-9 MB in size. These are currently saved on my hard disk and are not being served through a web server.
I am looking to deflate/gzip these similar to what a webserver does. The end goal is to reduce the size and when opened in a browser, the file op... | stackexchange/codereview |
I have a webpage that needs to selectively show or hide a substantial number of controls. Each control's visibility is determined based on which of 3 conditions are true.
So, for example, given the conditions A, B, and C;
Control1 needs to be visible only when A and B are true and C is false.
Control2 needs to be visi... | stackexchange/codereview |
i have a project and I'm using socket.io with express ,
so what i need (i tried) is broadcasting a message but from an express action.
is this possible i don't know how to get a reference to send or broadcast.
app.get('/', function(req, res) {
//i need to send messages from here
});
Other things like using both expre... | stackexchange/codereview |
I'm doing a project with omnet++ (which is based on Eclipse) and I wanted to create an online repository on projectlocker.com for it, so I typed:
svn import /home/paul/myProject https://pl3.projectlocker.com/myaccount/myrepository --username=myUsername
Now, by just going into my project folder, how can I store all t... | stackexchange/codereview |
Using Google App Engine and GQL and Python:
in my datastore I have something like the following
class Thing(db.Model):
domain = db.StringProperty(required=True)
name = db.StringProperty()
...more...
and in my handler I have
currentThing = db.GqlQuery("SELECT * FROM Thing WHERE domain=:1 LIMIT 1",
... | stackexchange/codereview |
Hi I've got problem with foreach statement. I have my controller method:
public ActionResult ShowComments(int id)
{
EntryBox entrybox = new EntryBox();
entrybox.entry = (from e in BlogDB.Enteries
where e.id == id
select e) as Entry;
entrybox.comments = (from c in ... | stackexchange/codereview |
How can export Master/Detail data to Excel in C#?
I wont to have some think like these without the dropdownlist:
http://blogs.msdn.com/blogfiles/excel/WindowsLiveWriter/CreatingaMasterDetailViewinExcel_12A09/image_thumb_5.png
How these can be done???
| stackexchange/codereview |
I have OpenCV 2.1 and Qt (Creator) installed on Windows.
Using the OpenCV C API I can link, build and run apps in Qt using OpenCV.
However, the when using the OpenCV C++ API, I am getting linking problems.
This is probably due to C++ ABI problems, since I'm using the pre-built binaries (built with MSVC-2008) for Window... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.