instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have written following xaml code:
<Window x:Class="WpfApplication3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="200" Width="200">
<StackPanel>
<ListBox Name="listBox">... | stackexchange/codereview |
It's pretty obvious on every platform to see the amount of free mem, but I need to get the value in a batch script.
good old mem command is limited to 64MB
What should I use?
| stackexchange/codereview |
I am using sqlite database in Android. I'm not creating any database I'm using created database and it has successfully opened but when I am using
Cursor cursor= db.query(tablename, null, null, null, null, null, null);
then it gives this table does not exists. Please let me know complete procedure for accessing sqli... | stackexchange/codereview |
I have a .qtz that loads the last line of the latest .log file, to show the currently played song from a player.
Here is the source, with 2 .log files as an example: LastTrack.zip (read the instructions inside the .zip)
It works, but manually. You need to run it again from the Viewer to get the last played song. If yo... | stackexchange/codereview |
I need to produce some quality screen shots of screens in my app.
I'd like to use them as a backgrounds in some help screens.
But I don't have an iPhone 4.
How else can I create them ?
| stackexchange/codereview |
As the question explains: I would like to add some debugging code that only runs when the program is attached to the debugger. I would imagine that this flag or pre-processor variable would be different for every compiler...
In my case I am using Microsoft Visual Studio 2010 with C++.
I also use Eclipse on another com... | stackexchange/codereview |
I'm trying to get a basic Apache 2.2 load balancer running on top of two Tomcat 6 installations. I'm reading through all the documentation and I'm having trouble getting it working correctly. I'm fairly certain I have the Apache configuration correct, but I think I'm missing something in my Tomcat settings that's pre... | stackexchange/codereview |
I've tried it, but perhaps the syntax is wrong:
course.totalScore = function get():int
{
...
}
I get "1084: Syntax error: expecting leftparen before get."
My impression is that this keyword is meant for use in classes only, i.e. it doesn't apply to AS3's underlying prototypal nature.
NOTE The example given is within a... | stackexchange/codereview |
Hi
I'm a beginner in WPF C# and i developed a simple C# WPF application which is a simple window containing an image control and i want to drag any image file from my computer and drop it on the image control for displaying it.And i wrote the code below for dong this
in the XML File
<Image Height="150" Name="image1" ... | stackexchange/codereview |
I'm writing an ASP.NET MVC website, using autofac for dependency injection, and Mindscape's Lightspeed as the ORM. There's a UserRepository class, which depends on a lightspeed UnitOfWork, and which services the Logon controller.
Problem: The UnitOfWork gets disposed before the UserRepository is finished using it.
pu... | stackexchange/codereview |
I have two divs set at 100 pixels absolutely positioned on the left and right sides of the page. I have a content section margined between them. I want the images to scroll with the page as you scroll from top to bottom of the larger pages. There are seven total pages in my site of varying sizes and i am trying to use ... | stackexchange/codereview |
Today for one of my app (Android 2.1), I wanted to stream a video from an URL.
As far as I explored Android SDK it's quite good and I loved almost every piece of it.
But now that it comes to video stream I am kind of lost.
For any information you need about Android SDK you have thousands of blogs telling you how to do ... | stackexchange/codereview |
I'm a new code monkey in training, and I'm currently having issues working with arrays and structs.
Currently I have a main file where I have a an Array of Records declared. I pass that array to an external function, where a quick sort is performed on the with of the fields in the record. Mainly the first name. I'm hav... | stackexchange/codereview |
I wondering if something similar to this is possible. Basically, I have a templated class that occasionally takes objects of templated classes. I would like to specialize it (or just a member function)for a specific templated class, but the 'generic' form of that class.
template<typename T, typename S>
class SomeRa... | stackexchange/codereview |
I have a simple question, hope that anyone can help.
I have this code from a ?wdsl service :
<xsd:complexType name="LoginInfo">
<xsd:sequence>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="user" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:c... | stackexchange/codereview |
First of all this is not a question about how can I use http client on server, it's more about JS.
I have a protected area on site (let say /myprotected/ ), all css and images are on it. I want to html post it all (let say /htmlconverter) . And on server side finally convert it to looks like offline page. Something l... | stackexchange/codereview |
I don't know if stackoverflow is the correct place for this question. If not, feel free to move it in the correct site.
I have two swf files:
http://www.austintxgaragedoor.com/special-mail.swf
http://www.austintxgaragedoor.com/special.swf
My client wants to convert them to something so the text will be in the html code... | stackexchange/codereview |
I have a PHP script that finds out the number of users on each of my servers and inputs it into a MySQL database. I want the user to be redirected to the page with the least users on it, defined by the MySQL database.
How can this be done?
Thanks in advance,
Callum
| stackexchange/codereview |
Let's say I have a list of words that are not spelled correctly. I have a dictionary that corrects them but there may be some words not present in the dictionary. Is there a way for me to search those misspelled words in Google and retrieve the first "Did you mean:" suggestion made by Google.
| stackexchange/codereview |
i am using validation plugin. i am trying to figure out how to clear a text field, if the field is invalid .
my javascript code is as follows
$(document).ready(function() {
$("#enrollForm").validate({
rules: {
email: {
required: true,
email: true
},
vemail: {
... | stackexchange/codereview |
I have a WinForms app that instantiates the WP7 emulator. Everything works great locally (of course). But I've created a VM to test installations and XCopies. Getting the following exception upon attempts to pull up the emulator with my app in the VM:
"Could not load file or assembly 'Microsoft.VisualStudio.DeviceConne... | stackexchange/codereview |
I work on multiple ASP.NET/SharePoint C# projects. During development we use to put elaborate comments for better understanding. But before i want to give a release build i want to hide all the comments (not to remove them). Is there any VS plugin or some tool to do this?
| stackexchange/codereview |
I am looking for examples of a DirectShow Source filter that would display a Desktop Window. I am sure there should be examples, but I haven't yet found them. Perhaps I am using the wrong terminology.
This is for grabbing live output of a Window, and processing that has video.
Lee
| stackexchange/codereview |
I need to be able to enable and disable a linkbutton using javascript as part of a custom validator that I'm writing.
I discovered that setting "disabled=true" will disable a standard button, but it does nothing to a linkbutton.
After mucking about in JQuery I discovered that the following will actually disable the but... | stackexchange/codereview |
Using Advantage Server 9x, I am trying to create a copy of a DBF/CDX table structure using the following code:
table1.AdsCopyTableStructure(d.AdsConnectionTemp.connectPath+'table.dbf');
The table that is created is of the type ttAdsADT, even though the original table is ttAdsCDX.
I tried using AdsConvertTable on the... | stackexchange/codereview |
I cannot for the life of me get this to work. The validation errors appear fine, I don't get syntax errors but nothing happens. The form just submits to the page. I can't get the success or error alerts to work either...
<form id="contact" class="validation" method="post" action="">
<fieldset>
<ol class="comment_fields... | stackexchange/codereview |
<td>
<a name="corner"></a>
<div>
<div style="aaaaa">
<div class="class-a">My name is alis</div>
</div>
<div>
<span><span class="class-b " title="My title"><span>Very Good</span></span> </span>
<b>My Description</b><br />
My Name is Alis I am a python learner...
</div>
<div class="class-3" style="style... | stackexchange/codereview |
I do my development in a development branch and then merge into trunk before creating a tag for release. I've been finding that one file continually shows up as changed when committing after the merge. It has not changed. I am posting this in hope that someone else has experienced the issue and knows what is going o... | stackexchange/codereview |
The hyperlinks I was imagining is something like this as a header:
Foo | Bar | Baz
This is how I am doing it:
Hyperlink foo = new Hyperlink("Foo", "foo");
Hyperlink bar = new Hyperlink("Bar", "bar");
Label spacer = new Label(" | ");
header.add(statistics);
header.add(spacer);
header.add(admin);
RootPanel.get("headerD... | stackexchange/codereview |
With following code I can not click on labels in jqtouch (on iphone simulator and iphone itself):
<ul class="rounded">
<li>
<label for="user_name">Name</label>
<input type="text" name="user_name" id="user_name"/>
</li>
</ul>
It is working well in safari, I have checked this also in demo of jquery-mobile an... | stackexchange/codereview |
I'm trying to learn on C multithreading, and I've seen a couple of rare things.
I understand that passing parameters to a thread must be done with pointers. I've found an example which I don't understand. I'll copy the relevant lines:
pthread_t tid[MAX_THREADS]
int n_veg
pthread_create(&tid[n],NULL,caracter,(void *)n_v... | stackexchange/codereview |
Im looking to create a site that will attach a piece of media to a user.
So for example if a user has watched a new movie, they can click on the movie and have that added to there profile as being watched.
I have two databases for users and movies, each has an Id, but im not sure how to attach the movie to the users ... | stackexchange/codereview |
I have a panasonic webcam which contains an internal web server. It displays a page the shows the webcam video stream as well as a bunch of controls like pan and tilt. I am framing the page presented by the webcam in an iframe so I can surround it with additional content. Unfortunately the webcam's html also uses frame... | stackexchange/codereview |
$sqlsl = "select * from newmessage where sendto='".$userid."' order by inboxid limit 10";
Pease help me,
Above table retrieve first 10 rows in my badabase in ASC order.
My database contain 100 recordes.
I want only first 10 recordes in DESCing order
| stackexchange/codereview |
In my code I have a query that looks like this:
$load_query = "LOAD DATA LOCAL INFILE '{$file}' INTO TABLE `{$table}`
FIELDS TERMINATED BY ',' ENCLOSED BY '\"';";
Here is an example row included in the file that I am trying to load:
"MC318199","06160","1","P","00750","00000","TN598792","04/16/2009","91X" ... | stackexchange/codereview |
I'm a student, and for my next job, I have to program a module which is very similar to the features of the VTK (http://www.vtk.org/VTK/project/imagegallery.php).
I've had some success with the vtk, but now we're having problems, that not even my boss can solve. I want to try my luck with learning one of the frameworks... | stackexchange/codereview |
I have an Excel VBA sub that (among other things) pastes a lookup formula into some cells. The lookup formula is presently of the form
LOOKUP(RC5,lookup.xlsx!Item,lookup.xlsx!R2C:R559C)
but the size of the lookup table will change. Is there a good way to find the size of the lookup table, that is, the last row?
In a... | stackexchange/codereview |
I have an array, inside an array. I'd like to search the values in that nestled array.
Currently I'm trying:
foreach($retval as $k=>$v){
if (is_array($v)){
$search = array_search($group_name,$v);
}
}
if($search == FALSE) {
// Nothing was found
} else {
... | stackexchange/codereview |
Hello everybody :)
I have a problem that couldn't be solved using google(!) so I turn fr your help!
I created an app with one activity, and it works just fine.
Having though more about the app, I decided to add another activity which be the welcome screen of the app, with a nice logo and some buttons. This app should d... | stackexchange/codereview |
I load a html page in web view in this way:
NSString *description = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://www.mypage.html"] encoding:NSUTF8StringEncoding error:nil];
[self.webView loadHTMLString:pRova baseURL:nil];
I need to remove:
<img src="http://www.mypage/image" align="left" style="paddi... | stackexchange/codereview |
Can i create static function in a class in action script 1 ?
please provide an example.
thanks
| stackexchange/codereview |
I have no clue how to achieve this, I tried for hours now. I implemented a drag&drop of a list and now I want to save the change of the order in my db. I think for this is an order field needed which stores an int. But the problem is: how should I populate this field?
E.g. I want to do an operation like "insert a new ... | stackexchange/codereview |
At the moment we are discussing to buy a commercial control/component suite for Windows Forms and WPF. There are several suppliers on the market, like Telerik, DevExpress, VIBlend and others. Which of them would you recommend? What are the differences? Which suites have the best price-performance ratio? Which are easy ... | stackexchange/codereview |
What does resolve_variable do? And could I use it for accessing the request outside of the view?
Edit
So template.Variable is the correct way to go - but I'm still unsure of its purpose. The documentation doesn't really help.
Cheers guys.
| stackexchange/codereview |
how to get count of satellites in Android 2.1 when ever am using loction.getExtras().getInt("satellites"); my app automatically closed please any one help me how to resolve it.
And one more thing in android 1.5 its working fine .....
| stackexchange/codereview |
I hava slight doubt regarding the Output of the Program of Constructor Chaining I showed Below:
class Cube {
int length;
int breadth;
int height;
public int getVolume() {
return (length * breadth * height);
}
Cube() {
this(10, 10);
System.out.println("Finished with Defau... | stackexchange/codereview |
Well here is my code but I just can not filter the listing using the objFile.Extension i am sure it is some thing silly
Set objFSO = CreateObject("Scripting.FileSystemObject")
objStartFolder = "C:\dev"
Set objFolder = objFSO.GetFolder(objStartFolder)
Wscript.Echo objFolder.Path
Set colFiles = objFolder.Files
For Eac... | stackexchange/codereview |
I'm using Drupal 6 to run a gallery I've created. I need to take a parameter from the AJAX request lets say "food" and pass that argument to a view I've created (Views 2) where "food" is a taxonomy term that I am using to get the data I want in return. Everything is working just fine and in my module's method for loadi... | stackexchange/codereview |
In the Webkit Inspector, I can go to the elements panel and unfold the DOM elements so I can see what I'm interested in.
So far, when I find what I'm looking for, change code, and reload the page, the DOM tree in the Elements panel is folded back up.
Is there any way to either, A) Get the Inspector to remember where I ... | stackexchange/codereview |
Using LINQ-to-Entities 4.0, is there a correct pattern or construct for safely implementing "if not exists then insert"?
For example, I currently have a table that tracks "user favorites" - users can add or remove articles from their list of favorites.
The underlying table is not a true many-to-many relationship, but i... | stackexchange/codereview |
i have a game whene the user can win something.
as soon as he wins he has 60 seconds to fill in his adress name etcotherwise he lose his price and someone else can take it.
when he not fills in the adress in 60 seconds then he gets redirected to a sorry too late page and he lose his price.
when he fills in his adress h... | stackexchange/codereview |
I have an absolutely positioned div over a p, and it causes links in the p to not be clickable, and none of the text is selectable either.
The div doesn't have any background, just a border. How can I fix this?
| stackexchange/codereview |
What's going on here:
printf("result = %d\n", 1);
printf("result = %f\n", 1);
outputs:
result = 1
result = 0.000000
If I ensure the type of these variables before trying to print them, it works fine of course. Why is the second print statement not getting implicitly converted to 1.00000?
| stackexchange/codereview |
How can I display the page load time in the view, similar to how the log file shows "Completed 200 OK in 19ms (Views: 16.8ms | Models: 0.497ms)"
| stackexchange/codereview |
I'm making an AJAX request to the server, and keep getting this error message in Chrome:
jquery-1.4.3.min.js:31Uncaught SyntaxError: Unexpected token <
threadss:-1Resource interpreted as image but transferred with MIME type text/html.
I'm using Rails 3. Anyone seen this?
| stackexchange/codereview |
I have a list of Controls that are held in a List<Control> and I want to be able to check their type. As my list holds only Controls, doing typeof() isn't going to get me too far, I want to be able to ask if List<Control>[0] is a Checkbox, TextBox, Label, etc.
How do I go about finding out what specific type of Contro... | stackexchange/codereview |
In Python, I understand that default arguments come at the end and that non-default arguments cannot follow a default argument. That is fine. Like for example:
>>> def foo(x=0, y):
return x, y
SyntaxError: non-default argument follows default argument
That is OK as expected.
However, what about the case when I... | stackexchange/codereview |
Here in the program, am cycling through LEDs using timer interrupt & if someone presses a switch, it should stop the first interrupt & trigger second one that should lit the led according to the switch pressed. Here, am a little confused which interrupt is being called. I referred some books for Pin Change Interrupt & ... | stackexchange/codereview |
I am trying to increase the timestamp of all files in a directory tree by one hour (to correct for DST change). After a lot of tinkering and searching I have figured out how to do it with find, stat and touch, but when I put all together in one command it fails.
the command is:
find ~/dir -type f -exec touch -m --date=... | stackexchange/codereview |
Update from 2021: just use MathJax; you shouldn't be supporting old versions of IE any more.
I want to use MathJax to display MathML equations, but its performance in IE is unacceptably slow (yes, I read about using EmulateIE7, this is also unacceptable as it would break other areas of the site).
I don't need to suppor... | stackexchange/codereview |
What is the C# equivalent of the following C code:
while((c = getchar())!= EOF)
putchar(c);
I know getchar() and putchar() are going to be replaced by Console.Read and Console.Write respectively but what about the EOF. Especially keeping in mind, C# works with unicode and C with ASCII, what are the implications of ... | stackexchange/codereview |
I would like to know, that if I am having a single line string, then how to count the frequency of a particular word in that string, using simple java code?!
Thanks in advance..
What I am looking for is a sample logical code in java which is used to search a particular word in a sentence. I am building one spam filter... | stackexchange/codereview |
I have a problem using JSF 2.0, PrimeFaces and the tuckey.org UrlRewriteFilter.
The problem is, that if i add a PrimeFaces-component (e.g. ), the page (or wherever exactly the resources are coming from) doesn't load the core.js where the PrimeFaces-object is defined. Accordingly, the component doesn't load.
The core.js... | stackexchange/codereview |
I am I thinking right? Do I need to put any restrictions here if I use simpletype? Console has alues like ABc, pjs, hefgehw,...like that.
| stackexchange/codereview |
just can't get my head around this.
I just finished my own WYSIWYG editor. It allows my users to upload images to embed in their article they are writing.
But how can i keep track of those user uploads ? I want them to be attached to the article, so that when i remove an article all images will also be removed. (keep m... | stackexchange/codereview |
I have a login database, from my Android client I have to pass the password in a secure manner. I want to implement a login screen which is capable of doing encryption.
How to implement the security encryption in my application?
| stackexchange/codereview |
please explain me how this code is working and why it will trough an error in class B
public class A
{
protected int x;
static void F(A a, B b) {
a.x = 1; // Ok
b.x = 1; // Ok
}
}
public class B: A
{
static void F(A a, B b) {
... | stackexchange/codereview |
I have a postgresql database that has this column structure:
Author
id
name
Book
id
name
author_id
And Groovy Domain Classes that repressent those tables:
class Author {
static hasMany = [ books : Book ]
Integer id
String name
}
class Book {
static belongsTo = Author
Integer id
Integ... | stackexchange/codereview |
I'm having a twitter feed automatically added by a script. I want to add a <br/> with jquery in it. Now it's like this
<ul id="twitter_update_list">
<li><span>something</span> <a href="#">about 4 hours ago</a></li>
<li><span>something</span> <a href="#">about 6 hours ago</a></li>
</ul>
I want to ad... | stackexchange/codereview |
What protocol does a Kindle 3 WiFi use to communicate with Amazon and download files on your kindle.com/free.kindle.com account?
I know I can use some network sniffing software to find it out, but I just need a quick answer.
| stackexchange/codereview |
I am facing a problem with jetty character encoding. When installed the jetty server on Mac (OSX), it works fine. But, when it is installed on Ubuntu (10.10), the character encoding is not proper.
The word in the page (not URL) having problem is: The New York Times® Bestsellers
It is shown as "The New York Times� Bes... | stackexchange/codereview |
Given an Array arr of size 100000, each element 0 <= arr[i] < 100. (not sorted, contains duplicates)
Find out how many triplets (i,j,k) are present such that arr[i] ^ arr[j] ^ arr[k] == 0
Note : ^ is the Xor operator. also 0 <= i <= j <= k <= 100000
I have a feeling i have to calculate the frequencies and do some calcu... | stackexchange/codereview |
I have a comma separated value as nvarchar in sql. which i need to convert into table. Please advise.
example of string
'f143bda4-a917-479c-8360-b63943b91d91,f312f49b-203e-4bba-a74e-82ea356ed6d3'
I am using sql server 2005
| stackexchange/codereview |
I'm trying to import some data from excel into a database . i got the following code from http://www.davidhayden.com/blog/dave/archive/2006/05/31/2976.aspx . I have a x86 arhitecture so that's not the problem . when i run the code the program says at connection.Open(); that The 'Microsoft .Jet.OLEDB.4.0' provider i... | stackexchange/codereview |
Hopefully someone can shed some light on this issue through either an example, or perhaps some suggested reading. I'm wondering what is the best design approach for modeling tables after their class hierarchy equivalencies. This can best be described through an example:
abstract class Card{
private $_name = '';
... | stackexchange/codereview |
How can we show/hide some columns in JTable?
| stackexchange/codereview |
In my iPhone project, there are a lot of files including: image files, audio files, and text files.
Now the issue is finding the best file type to manage these files. The image files are related with the audio files and the text files.
I need a file that show the relationship of these files.I am currently using txt typ... | stackexchange/codereview |
I am learning this trade and is currently focusing on NSDictionary. I am currently doing examples from the book "Beginning iPhone Development Exploring the iPhone SDK" (Dave Mark / jeff LaMarche).
The example i am working on is in chapter 7 (page 166), Tab Bars and Pickers.
I would like to ask why they use Dictionaries... | stackexchange/codereview |
Experimenting with Application Messaging over email for Applications. I have already created my SMTP Server but now missing a centralised delivery mechanism. I can create a propriety delivery mechanism very easily but I am trying to use protocol standards. I am not interested in HTTP, FTP or SOAP but only the mail prot... | stackexchange/codereview |
Basically I am making a class that is supposed to read a series of integers from another class.
The other class is System.out.printing the integers in the following order:
i i i i
i i i i
... etc.
So I basically want to make a String file or whatever works, that I can read this output from in the first class.
I'm pre... | stackexchange/codereview |
I want to be able to do complex searches on grails objects. This is presently implemented using stored procedures on my site that build up a SQL query and parses all of those results.
Will something like the searchable plugin allow me to simplify this task? My guess is not, since it mostly is doing text based searching... | stackexchange/codereview |
I need to profile the rake task. Cause I'm noob I know only how to profile .rb code
like this: ruby -Ilib -S ruby-prof -p graph_html profile.rb > profile.html
But how do I profile a specific Rake task?
| stackexchange/codereview |
Alright I have a table where I need to get the relevant date from a GROUP BY function...
Here is a sample of the data:
min_price, day
140000 2010-09-26
130000 2010-09-27
154991 2010-10-08
143000 2010-10-09
156470 2010-10-10
I would like this result:
130000 2010-09-27
143000 2010-10-09
Here... | stackexchange/codereview |
UPDATE1:
here is what i am getting when i copy and paste the service url in the IE browser:
http://myservername/myservices.svc?wsdl
- <wsdl:message name="ILodge_GetCountfor">
<wsdl:part name="parameters" element="tns:GetCountfor" />
</wsdl:message>
- <wsdl:message name="ILodge_GetCountfore">
<wsdl:part name="par... | stackexchange/codereview |
I am using ublas::Compressed Matrix to work with UMFPACK, a sparse linear solver. Since I am doing a simulation, so every time the linear system is constructed slightly differently that might involve enlarging/shrinking the coefficient matrix and some sparse matrix multiplications. The scale of the linear system is aro... | stackexchange/codereview |
I am trying to figure out the best way to go about my design for an enum. Let's say I have a class and enum:
public enum ActionType
{
Acceptable = 1,
Unacceptable = 2,
PendingReview = 3
}
public class Report
{
public ActionType Action { get; set; }
}
Let's say I also have a database table that ... | stackexchange/codereview |
I'm trying to make a self-referential many-to-many relationship (it means that Line can have many parent lines and many child lines) in sqlalchemy like this:
Base = declarative_base()
class Association(Base):
__tablename__ = 'association'
prev_id = Column(Integer, ForeignKey('line.id'), primary_key=True) ... | stackexchange/codereview |
In case of Union objects, may a compiler be smart enough to detect at which points what amount of union's memory is used so that the rest memory of union can be used for other purposes as an memory-usage optimization or this is not even allowed due to how standard defines union?
| stackexchange/codereview |
Good Morning,
I am an iOS/Mac Developer.
I am developing an application that grab flv link from a website: now I want to play this flv file in streaming.
I find in AppStore BUZZPlayer, an application that can play flv video streaming: http://itunes.apple.com/it/app/buzz-player/id389744738?mt=8
Searching on Google I fin... | stackexchange/codereview |
I'm an absolute hql newbie so bear with me...
How do I write a hql query to retrieve the parent object of a child object?
I've got an object/table TrackClass with a one-to-many relationship with Track. Knowing Track, I would like to get the parent TrackClass. Right now I'm resorting to SQL, but I'm sure it could be wri... | stackexchange/codereview |
The default build action has been changed from "None" to "Content", as I understand to support Visual Studio publish/deploy.
For a particular project, I do not use the Visual Studio publish/deploy method, nor need to compile from the command line.
Setting build action to "Compile" still seems to compile, with the added... | stackexchange/codereview |
for a unit test I am trying to add a value to the HttpApplicationState object, which is the Application property of the HttpContext.Current class. I try with the following code
TextWriter tw = new StringWriter();
HttpWorkerRequest wr = new SimpleWorkerRequest("/webapp", @"path...", "logon.asp", "", tw);... | stackexchange/codereview |
as my title says, i would like to save the output of a curl perform to a vector..
can any1 please give me a sample code?
i was able to save it into a structure in c. but i want to save it to a vector that too in c++ and i'm a little unconfortable with c++.
vector<string> contents;
size_t handle_data(void *ptr, siz... | stackexchange/codereview |
I have a form that takes a path as input, analyzes files and subfolders in that directory, stores information in a database, then displays some statistics to the user about the files just parsed. This is done currently using a Django view and render_to_response.
According to everything I have read, it's incorrect to... | stackexchange/codereview |
Is it possible to call an IronRuby method from C# with a delegate as parameter in such a way that yield would work?
The following gives me a wrong number of arguments (1 for 0) exception.
Action<string> action = Console.WriteLine;
var runtime = Ruby.CreateRuntime();
var engine = runtime.GetEngine("rb");
engine.Execute(... | stackexchange/codereview |
I lost last 3 hours trying to do this. Im making an app that will ship with a DB filled with populated tables that would not change on clients devices.
I managed to do this by putting it in the assets folder and copying it as a stream of bytes to the appropriate data folder on the phone. Problem is when I wish to upda... | stackexchange/codereview |
I want to have one DateWrapper - representing a date (built for Hibernate persistance, but this is another story) - at most existing at the same time for the same date.
I'm a bit confused about collisions and good keys for hashing. I'm writing a factory for a DateWrapper object, and I thought to use the milliseconds of... | stackexchange/codereview |
I have a few years of experience writing Unix command line tools (no GUI experience) in python, C and C++, and only recently crossed into the GUI world (Cocoa and IOS only). I've learned quite a bit of objective-C and am getting to understand how cocoa MVC works. However, one of the apps I am developing needs a Windows... | stackexchange/codereview |
I have rows of data that I want to present in fixed-size columns. For example:
Name City Number
Adam Anaheim 714 555 5555
Bob Barstow 760 555 5555
... ... ...
However, occasionally one of the column's data is too big to fit. If that happens, I want it to affect as few neighboring ... | stackexchange/codereview |
I would like to know if i can put a semicolon in a SQL table.
Or would that mess things up like an injection attack.
Basically what I'm trying to put in is my HTTP_USER_AGENT info and that includes a semicolon.
Or Basically there a way i can turn that semicolon into the html symbol for it?
Thank You So Much
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.