instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have to implement a kind of FTP server in C++ for a school project. The goal is learn how the FTP works internally.
I'm a lil bit lost in how to start it. I know the FTP Protocol, but I still don't know what can I do to start coding.
Someone can point me a way to start? Some links, libs in C++, etc?
Remembering that ... | stackexchange/codereview |
Is there a way to prevent closed branches from showing up at the top when running the hg view command? I know about the 'limit' option. I don't really need closed branches to completely disappear from the view, but it would be nice if they would stay down (they were closed long ago), rather than popping up near the t... | stackexchange/codereview |
I have to write a build script to checkout the code from subversion repository and perform the build.
I am literally a starter to scripting.
Please let me know some sample scripts that could help me, we use .net and i want to write the script in MSBuild.
What if I have to checkout the code from repository to a remote ... | stackexchange/codereview |
How can I make sure that users cannot access http address on google appengine at all? Now usesrs can use https or http to access site, but is there any way to force users using http protocol to https url?
| stackexchange/codereview |
I want to check the dates on files -- zip, jpg, or whatever -- on my server and, if they are newer than the copies on my iPhone, to download them.
I wrote the following method based on a post here that's about a year old. It has two problems:
+ (NSString *) f_GetServerFileDate:(NSString *)MyURL {
NSURL *oURL = [NSU... | stackexchange/codereview |
I have this Bash Script:
#! /usr/local/bin/bash
SCGI_SOCKET=unix:///tmp/rpc.socket
echo -n rT $(rtxmlrpc system.client_version)/$(rtxmlrpc system.library_version)
echo -n \ [$(rtcontrol -qosize \* | awk '{ SUM += $1} END { print SUM/1024/1024/1024 }') GiB loaded]
echo -n , D:$(rtxmlrpc to_mb $(rtxmlrpc get_down_total))... | stackexchange/codereview |
Check out http://jqueryui.com/demos/draggable/
At the bottom there's a tabbed section. The seconds tabs "Details" gives the example of exactly what I want to accomplish. You can show/hide each row, and you can show/hide the details within that list row.
Is this part of the jQuery UI? If so, does anyone happen to know w... | stackexchange/codereview |
Lets say I have a table called Employees , and each employee has a primarykey called (E_ID)
and I have another table called Positions , and each Position has a primarykey called (P_ID)
and I also have another table called offices , and each office has an ID called (O_ID)
Now I want to create a table that has three prim... | stackexchange/codereview |
What is the easiest way to determine the maximum match length of a regular expression?
Specifically, I am using Python's re module.
E.g. for foo((bar){2,3}|potato) it would be 12.
Obviously, regexes using operators like * and + have theoretically unbounded match lengths; in those cases returning an error or something i... | stackexchange/codereview |
I need help with an algorithm to allocate rooms to people. I need to shuffle through a list of rooms to assign a room to a person and after the fourth person is assigned to the room, it should be out of the list(should be unavailable). I have not had any luck with PHP shuffling and sorting functions yet.
Any help (poin... | stackexchange/codereview |
I'm asking in context of performance. Is stringstream simply a string/vector, so writing to it may result in its whole content being copied to a bigger chunk of memory, or is it done in a more tricky way (say, a list of strings or whatever)?
| stackexchange/codereview |
I am building a site in Wicket. I need to serve a JavaScript file, xyz.js, for other people/websites to read directly — that is, not to be included in one of my HTML pages.
xyz.js needs some dynamic contents based on the path_info that is provided to it during the request, so it needs to be a template that can be inter... | stackexchange/codereview |
I am trying to remove some <span style="something not constant"> from a text and I tried M-x replace-regexp> "<span*>" -> ""
but it does nothing. I made sure the cursor is at the beginning of the file.
| stackexchange/codereview |
echo "$gooshgoosh[$i]['num']";
Does anyone here know why it echos
array['num']
| stackexchange/codereview |
I just started with php. I have a pretty simple site with header and footer includes and the content in between.
Right now, I have each page getting the title with a variable, like so:
<?php $title = "My Company - New Products"; ?>
However, instead of having that on each page, in the header include, I'd just like to ... | stackexchange/codereview |
So I have looked through most of the facebook questions here and it has absolutely confirmed my thoughts. Facebook development may be among some of the worst I've ever used. I'll avoid my rant for now, but as a note to where I'm coming from: tried php sdk, worked decently out of the box, found out I need to put the fun... | stackexchange/codereview |
I have a Direction Enum:
Public Enum Direction
Left
Right
Top
Bottom
End Enum
And Sometimes I need to get the inverse, so it seems nice to write:
SomeDirection.Inverse()
But I can't put a method on an enum! However, I can add an Extension Method (VS2008+) to it.
In VB, Extension Methods must be insid... | stackexchange/codereview |
i am using the Borland c++ 3.1 compiler. I want to work with exceptions, i've written the following code:
void main (void) {
int a = 0;
int b = 1;
int c;
try {
throw 1;
}
catch(int a) {
b = a;
}
}
The compiler returns a syntax error. what's wrong?
| stackexchange/codereview |
I use IntelliJ for most of my Java programming, but every once in a while I need to make certain changes which are much easier done in VIM.
Thus, the question:
While I'm editing a file in IntelliJ, it is somehow possible to tell IntelliJ to start VIM with the same file that is currently under cursor.
Thanks !!
| stackexchange/codereview |
Given two arrays of doubles, how Can I compute the F Test?
(F test is defined here: http://www.excelfunctions.net/Excel-Ftest-Function.html)
I am looking for answer like this one:
How can I efficiently calculate the binomial cumulative distribution function?
| stackexchange/codereview |
Possible Duplicate:
How do i Loop through the hidden field items and put in Session using PHP
I have a hidden Field which contains this format which contains the Set of rows separated by ';'(semicolon)
and each row contains some columns name separated by ':' (colon) and each column value separated by ',' (c... | stackexchange/codereview |
Is there a convenient method or tool available which will do the following for me from within visual studio 2010.
Fire up ILDasm
Load a current assembly from within Visual Studio within ILDasm.
As opposed to me firing up a visual studio command prompt
Fire up Ildasm
navigating to the bin folder of the assembly I wish t... | stackexchange/codereview |
I've just started programming in VB.Net and don't want to use Dreamweaver to do it all.
I use a Mac for all my other work like design work and coding in Dreamweaver but would like to know if there is an alternative to Visual Studio Express so that I can do all my vb.net stuff on the mac too.
Any suggestions?
| stackexchange/codereview |
I have a VB 6.0 application which contains some images inside a imagelist control. I want to know where these images get stored in the system (because I want to use these images in another application and I don't have the images separately in the system).
So, the only way is to take the images from Visual Basic 6.0 pro... | stackexchange/codereview |
Suppose you have an application that consists of two layers:
A: A data layer that stores all the data loaded from a database or from a file
B: A layer that shows the data in a nice user interface, e.g. a graphical report
Now, data is changed in layer A. We have 2 approaches to make sure that the reports from layer B... | stackexchange/codereview |
I made a mistake and removed a file. I'd like to go back to my previous commit!
I tried with revert and backout with had no luck...
Any tip?
Edit: I did exactly this:
hg forget file
hg commit -m "Blah"
hg push
The revision number of this last push is 17.
Now file is not tracked anymore. I'd like to get it back to re... | stackexchange/codereview |
I am calling this:
facebook requestWithGraphPath:@"me/friends" andDelegate:self]
Now I am confused on what facbook returns to me in the delegate?
How should I parse this in the (void) request:(FBRequest*) request didLoad:(id) result method? Is it returned as a dictionary?
| stackexchange/codereview |
When non-focused EditText clicked, it becomes focused, but cursor does not move to new location. I should click it again to move cursor to a new position.
Q: How can I focus and move cursor with only one click?
| stackexchange/codereview |
What am i doing wrong here?
var navbar = document.getElementById("navbar").getElementsByTagName("li");
var hover;
var moname;
var slider;
var newPos=new Object();
var body=document.getElementsByTagName('body')[0];
for (x in navbar) {
if (x != 'length') {
moname=(x+"-mo");... | stackexchange/codereview |
Here is my code:
<style type="text/css">
div.page {
text-align:center;
border: 1px solid rgb(0,0,0);
width:20px;
height:20px;
}
span.page {
text-align:center;
border: 1px solid rgb(0,0,0);
width:20px;
height:20px;
}
</style>
... | stackexchange/codereview |
Is it somehow possible to detect whether program was started by a user or it was started automatically from registry at Windows start up?
| stackexchange/codereview |
I'm using boost log in my application for logging.
However, in some sections of my code I have some log statements that could occur very often if something goes wrong. I'd want some kind of guard that can limit log messages when it detects that the same log message appears constantly.
e.g. (This is a simplified example... | stackexchange/codereview |
I can't seem to find any documentation saying this is possible, but Google turned up a few apps that claim to be able to accomplish it.
I'd like to, ideally, be able to play an audio track and have it sent as the caller's voice.
| stackexchange/codereview |
I wrote a simple test program in c++ but why does this crash on:
s[i] = s[i] - 'a' + 'A';
with the exception: Access violation writing location 0x01327808
#include "stdafx.h"
#include <iostream>
using namespace std;
class String
{
public:
char *s;
int len();
void upper();
String(char*);
};
String::String(... | stackexchange/codereview |
This question requires some hypothetical background. Let's consider an employee table that has columns name, date_of_birth, title, salary, using MySQL as the RDBMS. Since if any given person has the same name and birth date as another person, they are, by definition, the same person (barring amazing coincidences where ... | stackexchange/codereview |
I am looking for some advice on how to do custom validation on formsets.
This is what I have right now and it returns the following error that I do not entirely know how to deal with.
Exception Value:
'MilestoneFormFormSet' object has no attribute 'save'
Forms.py
class BaseMilestoneFormSet(BaseFormSet):
def cle... | stackexchange/codereview |
The login form works fine, but any other form I submit (things like editing or creating data) I get a CSRF attack detected error. I have tried to clear symfony and browser cache, deleted cookies, tried multiple browsers and multiple computers.
What can cause this? When I turn off the CSRF protection it works fine.
| stackexchange/codereview |
Our data access layer uses command objects to communicate with sql server.
In most cases I've hard-coded the field size (that matches the column size in sql server) into the command param builder.
Such as:
SqlParameter param = new SqlParameter("@name", NVarChar, 4000);
What's the advantage to specifying a value here (... | stackexchange/codereview |
I have an iframe loading a page, and I would like to manipulate the contents.
For example:
<iframe id="myIframe" src="http://www.google.com"></iframe>
<script>
$(document).ready(function(){
$(iframeContents).css('background-color', '#000');
});
</script>
How can I do this?
| stackexchange/codereview |
As for the background, I am writing a web service in Clojure (using Compojure i this case).
I am not worried about performance, that seems to be good enough and I can always fire upp more server instances.
Even if a Clojure implementation would be 2-10 times slower than the corresponding Java implementation, I would al... | stackexchange/codereview |
I have four rows in my table. Only three are shown.
$query = "SELECT * FROM table";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
while($row = mysql_fetch_array($result)) {
echo $row['id'];
}
The result is 234, but should be 1234.
What am I doing wrong?
| stackexchange/codereview |
i allready updated php on my server to version 5.2.14 from webtatic repository (http://repo.webtatic.com/yum/centos/5/x86_64/). But i can't find SQLITE.
Can someone help me?
| stackexchange/codereview |
First off I would like to say, that I am not trying to hack a game. I am actually employed by the company whose process I am trying to inject. :)
I would like to know how to call a function from an already injected DLL.
So, I have successfully injected and loaded my DLL in the target using CreateRemoteThread(). Below ... | stackexchange/codereview |
I have ASP.NET form with an upload control for users to post an image. On the server I load that image (using the Bitmap class) and resize it.
Is there any danger in doing that when users upload malicious or affected files or will the code just throw an exception at some point and stop the whole process?
| stackexchange/codereview |
How cat I get list of validations defined in model
Example:
class ModelName
validates_presence_of :field_name
validates_inclusion_of :sex, :in => %w(M F)
end
I need Hash like:
{:field_name => 'required', :sex => 'Must be in: M, F'}
| stackexchange/codereview |
I am trying to get started with Spring 3, using Eclipse 3.6 and Spring STS. I have also installed m2eclipse.
I have checked out and imported the Spring3 mvc-basic sample app.
When I try to run it (via eclipse/run/run on server) I get a number of errors in the webapp startup on tomcat, all relating to jstl1.2.jar:
org.... | stackexchange/codereview |
I have an application w/ 2 side-by-side pages of text. I have the VDivided box set up so the user can drag it to make one of the documents bigger or smaller.
Is there a way to get the look of a VDivided box & the functionality of an Accordian, so that when the user clicks the VDivided box (or double clicks, I haven't ... | stackexchange/codereview |
When I use localhost the index page is displayed. When I use the IP outside of my network or within my network I get a not found 404 error. Please suggest possible issues or fixes.
| stackexchange/codereview |
Browsing through examples all over the web, I can see that people generate the path using something like "parent_id.node_id". Examples:-
uid | name | tree_id
--------------------
1 | Ali | 1.
2 | Abu | 2.
3 | Ita | 1.3.
4 | Ira | 1.3.
5 | Yui | 1.3.4
But as explained in this question - Sorting... | stackexchange/codereview |
Consider the following definition from a DTD:
<!ELEMENT application (calculator)?>
<!ATTLIST application
uri CDATA #REQUIRED
>
My problem is that I want the uri attribute to be defined if and only if there is not a calculator element.
Is there a way to require this?
| stackexchange/codereview |
probably a newbie question, but after looking through the 'net, still cannot find an answer... I have an XML object like this:
<questionpools>
<questionpool id="1">
<name>Sample test bank</name>
<description>This is a Sample test bank description</description>
<createdate>2010.10.10</createdate>
<moddate>2010.... | stackexchange/codereview |
I am writing a function that will sit in a external file that creates tables within a web DB. This is all being done with Javascript and HTML 5 local databases. I want to pass in a variable to generate the table name like:
mydb.transaction(function(tx) {
tx.executeSql('CREATE TABLE IF NOT EXISTS **?** (id INTEGER PRI... | stackexchange/codereview |
I'm building a website for my friend's startup.
I'm currently building it on PHP, MySQL, Apache. Everything is going pretty smooth till now, but one of my friend recommends i move to a Java framework because that'd be better when the site becomes bigger.
I don't have any Java Knowledge and I have adequate knowledge of... | stackexchange/codereview |
Update:
In a fit of desperation, I did the following in a shell:
REDIRECT_STATUS=true
SCRIPT_FILENAME=/var/www/...
REQUEST_METHOD=POST
GATEWAY_INTERFACE=CGI/1.1
export REDIRECT_STATUS
export SCRIPT_FILENAME
export REQUEST_METHOD
export GATEWAY_INTERFACE
echo "test=1" | php-cgi
...and STILL no $_POST variables are show... | stackexchange/codereview |
I am looking forward to create a javascript API that contains most of the functions that facebook Javascript API provides.
FB.api
FB.init
FB.logout
FB.getLoginStatus
FB.login
FB.ui
I can just embed script tag in remote website and need to do all the ajax calls from that page to my server. I am creating an architecture... | stackexchange/codereview |
After reading:
Memory management of a view controller in Objective-c
and
Does UIView's addSubview really retain the view?
I wrote the following code to toggle a subview:
@synthesize switchableView, viewSelector, currentSubview;
//...
if(switchableView.subviews.count != 0)
[[switchableView.subviews objectAtIndex:0] ... | stackexchange/codereview |
I am using a panel and then I create a literal in it, than I create :
string temp ="
<input type="checkbox" id="forum0">
<input type="checkbox" id="forum1">
<input type="checkbox" id="forum2">
<input type="checkbox" id="forum3">
<input type="checkbox" id="forum4">
<input type="checkbox" id="forum5">
" ...
and then as... | stackexchange/codereview |
I want to communicate with my serial port in python. I installed pyserial, and uspp for linux. Still, when I run the following code:
import serial
ser = serial.Serial('/dev/pts/1', 19200, timeout=1)
print ser.portstr #check which port was really used
ser.write("hello") #write a string
ser.close() #
it gives the ... | stackexchange/codereview |
I've a string, '12/10/2010 00:00:00'. How do I show this as ''12/10/2010' using C#?
| stackexchange/codereview |
I have created an installer using Inno Setup in which I am executing an exe that I created to create a small service inside Windows XP. I need to pass two arguments to the exe - "-install" and the path of the installation directory. I have no way of expanding the constant {app} to pass the actual value inside of {app}.... | stackexchange/codereview |
How do I get C # FACEBOOK SDK to always respond in the same language no matter what language the profile?
eg. relationship_status gives me "mand" (male in Danish) with a Danish profile, but "male" with an English profile.
| stackexchange/codereview |
i am using jquery and jquery ui plugins in my web application.
and i have some asp.net server controls that they register their scripts on the page.
Since my application should be work Local could i put all scripts in master page ?
all scripts i mean jquery script and jquery Ui scripts such as DatePicker Dialog and eff... | stackexchange/codereview |
I have a following form:
class PlayForwardPageForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(PlayForwardPageForm, self).__init__(*args, **kwargs)
class Meta:
model = PlayForwardPage
exclude = ( 'id',)
def save(self, *args, **kwargs):
post = s... | stackexchange/codereview |
Lets say i am running some code in dispatch async. .. is there a way to terminate the thread it creates before it completes? like when the user clicks cancel
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
//start doing something here.. break bofore it finishes?
dispatch_asy... | stackexchange/codereview |
I'm a full time c# developer, but I want to get more into Python. At the same time, I have a friend who will learn it with me, he however has no programming knowledge.
I was thinking about starting with some visual programming. I.E: having buttons, labels and text boxes on a form.
Does some kind of IDE exist which al... | stackexchange/codereview |
I'm using _viewstart.cshtml to automagically assign the same Razor Layout to my views.
It's a dead simple file in the root of my Views folder that looks like this:
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
This is more DRY than adding the @Layout directive to every single view.
However, this poses a problem f... | stackexchange/codereview |
I have more than one form on the same page:
I would like to know if there is any way I can submit the right form when the user press the "return keyboard key" ?
Thanks
| stackexchange/codereview |
Sorry to bother again. I have searched tried my best, looked everywhere and still cannot solve the problem. Could you please help? - I would try my best to explain the problem.
Problem:
I have a list of times with an ID and I want to loop through those time within an ID to get the start times and end times. This is an ... | stackexchange/codereview |
I am unable to connect to mySQl db using pyodbc.
Here is a snippet of my script:
import pyodbc
import csv
cnxn = pyodbc.connect("DRIVER={MySQL ODBC 3.51 Driver}; SERVER=localhost;DATABASE=mydb; UID=root; PASSWORD=thatwouldbetelling;")
crsr = cnxn.cursor()
with open('C:\\skunkworks\\archive\\data\\myfile.csv','r') as... | stackexchange/codereview |
I'm newbie in ASP.NET
I have a page to show a thread content, it take the ID of the thread from the query string.
depending on the ID, I show the content using the FormView control.
how could I then change the page title depending on the databinding result?
I've figured out that I can do that before the databinding in... | stackexchange/codereview |
my knowledge of flash and other web technologies isn't that good, but I was wondering, how do sites with their own API for applications (e.g. Facebook) authenticate calls from an application? I'm not really familiar with Facebook API, but Vkontakte (similar site) uses a secret key, session id and method parameters to g... | stackexchange/codereview |
The Data Presentation Widgets in GWT 2.1 seem to have it all sewn up: model, view and presenter. So how does all of this data presentation goodness fit in with MVP? For example; how might I associate presenter (aka Activity) instances with the nodes of a CellTree? And is that even something that I should be trying to d... | stackexchange/codereview |
I wanted to display an Alert Dialogue inside thread or alternatively such a way that AlertDialogue opens up directly after finding some records in database negative, w/o clicking on any button..
Alert dialogue may contain Few lines and 2-3 buttons..
referred following link and tried on my own but not getting how to cre... | stackexchange/codereview |
I know that to alter the default behavior of operators in python you can override some default methods like __add__ or __sub__ for + and -, but didn't find anything to override the behavior of the and and or keywords, while there are some for the bitwise operators &, |: respectively __and__ and __or__.
Do you know if t... | stackexchange/codereview |
Given the following module:
class Dummy(dict):
def __init__(self, data):
for key, value in data.iteritems():
self.__setattr__(key, value)
def __getattr__(self, attr):
return self.get(attr, None)
__setattr__=dict.__setitem__
__delattr__=dict.__delitem__
foo=Dummy({"one":1, ... | stackexchange/codereview |
I am trying to replace contents of a div with a link. The website is set up so that the link sets the div to a new "stream", and I need to modify contents of that stream after.
Essentially, I need my onClick even to fire after the href link. How can I achieve this? I am working in Chrome, it appears to fire the onClick... | stackexchange/codereview |
I'm a noob, and I'm sorry because the question is really stupid. I have An NSArray which contains titles for UITableView rows in NSDictionaries in Russian and I need to sort these titles in alphabetical order. How can I do it?
Help me, please.
Thanks in advance!
| stackexchange/codereview |
I have a question regarding Djanog views
here is a sample code
def example register ( request ) :
if request.method == ’POST ’ :
username = request.POST.get ( ’ username ’ )
password = request.POST.get ( ’ password ’ )
email = request.POST.get (’email’)
user = User.objects .create_user ( username
, email
, password )... | stackexchange/codereview |
I want to run an .exe file from my Flash/Flex/AIR Application, How is it possible?
What I need is to build an Interface to open a xls file and convert it into swf, I have the converter file which is an exe file, when I run convert.exe infile.xls outFile.swf.
once the conversion is done, I need to show all swfs inside m... | stackexchange/codereview |
I have a user preference in my app, which gets used by different activities. I would like to know the best way to utilize those preferences between different activities in my App.
I have this idea to create a shared preference object from the main activity and from there send intents to the different activities to tak... | stackexchange/codereview |
i am looking for a java application server to install on my machine to deploy a project in an EXPLODED war way but i need this server to support php. i tried using tomcat 6 with apache 2.2 but i failed in doing this.
| stackexchange/codereview |
I need some guidance on how best to run this program. Im trying to come up with a python program that accepts input from the user and prints them out until the word quit is inputted in which the program quits but not before printing the inputs twice..
For example
2.0'
6.0
3.5
quit
2.0
6.0
3.5
2.0
6.0
3.5
Thanks so m... | stackexchange/codereview |
What should someone study at university level if he/she wants to get into robotics and build robotics? So far 'Mechatronics' seems to be the field I'm looking for? I looked at a few plain 'robotics' courses but they seem to be only about the electrical and computer work, and don't include any details on building the me... | stackexchange/codereview |
I have a query that errors out when I use it in a MVC 2.0 project, but not when I run unit tests against it (works fine). Below is the query, "User" is an entity. The error I get shows up on the Known issues to consider for EF (http://msdn.microsoft.com/en-us/library/bb896317.aspx) but it seems pretty basic this shou... | stackexchange/codereview |
Why this error is appearing? I was just setting some default values in a dataset designer... its second time that this is appearing...
"Custom tool error Failed to generate code. Exception of type 'System.OutOfMemoryException' was thrown"
| stackexchange/codereview |
So I have been playing with a Ruby gem for a work project that manipulates and extracts data from PDF documents. I wanted to change a method to parallel another, since the functionality was limited. I am not a Ruby expert by any stretch, just started learning two weeks ago, but this is boilerplate. I checked the the... | stackexchange/codereview |
I'm looking for a library which will enable me to visualize some xml entities I have, and manipulate them graphically (something similar to a UML design package, but simpler), like a cyclic flow graph.
Anybody have any ideas where I should start? Preferrably I would like something managed, but if it's easier to do a HT... | stackexchange/codereview |
i have a free theme on my wordpress. but it have links on its footer. and when i see its footer.php i see only like this..:
<?php eval(stripslashes(gzinflate(base64_decode("dVLLboMwEDwTKf+wyqEhF7g3lKh/UCWRqkpIyOAltgQY2U5IpH58/YBAk5YL652dnd2xd+lyAbNvOiUx5ZcBHePlIkhMBJy+ZatC0Fsu+YnpbDXrMhUoTrEgMidUmYpk17EOeBVW57bUXLQ5Xrn... | stackexchange/codereview |
['7', 'Google', '100T', 'Chrome', '10', 'Python']
I'd like the result to be all numbers at the end and the rest sorted. The numbers need not be sorted.
Chrome
Google
Python
100T
7
10
It's slightly more complicated though, because I sort a dictionary by value.
def sortname(k): return get[k]['NAME']
sortedbyname = sort... | stackexchange/codereview |
Is ADO.NET 4 the same as Entity Framework 4? I'm looking for a book on Entitry Framework and saw this Title. Not sure if what I'm looking for though.
Thanks
| stackexchange/codereview |
How can you let jquery reload itself? when i puch a button i would like to tell jquery that it should run the .ready function again.Whats the best way to do this.
| stackexchange/codereview |
I need to model the following relationships and would like some advice on how to properly model it.
There is a user, house, apartment, garden, furniture
So a user can either have a house or an apartment but not both.
Both house and apartment can have furniture but only the house can have garden.
So the biggest issue ... | stackexchange/codereview |
I have a query that does some magical sort-group-joining that works just fine on Android 2.2 (froyo) version of SQLite:
SELECT channels.*, p.*
FROM channels
LEFT JOIN programs p ON channels._id = p.channel_id
JOIN (select p2.channel_id, max(p2.airdate) max_air FROM programs p2
GROUP BY p2.channel_id) pj
ON pj.c... | stackexchange/codereview |
I have 2 table stacked at a single page,one for filtering previous year and 2nd table for the current year and i pass in the same value from the DataSet to these two table , the only difference is that i need to filter it with the year using the Tablix Properties. Right now i am filtering the Year with the hardcoded va... | stackexchange/codereview |
What ASP.NET page lifecycle event can I write code in to determine the size of the viewstate that being sent out? Also, is it possible to determine the size without parsing through the rendered HTML (like a property on the page object) or is parsing the only way?
What I'd like to do is log the sizes, specifically if t... | stackexchange/codereview |
I have a web application with a user base. I want to add a forum, but I don't want users to register there again.
I'm using Rails/Postgresql.
Is it possible to integrate the forum so that after registering in my site, a user will also be registered in a forum?
Thanks
| stackexchange/codereview |
I'm doing an Information Retrieval Task. As part of pre-processing I want to doing.
Stopword removal
Tokenization
Stemming (Porter Stemmer)
Initially, I skipped tokenization. As a result I got terms like this:
broker
broker'
broker,
broker.
broker/deal
broker/dealer'
broker/dealer,
broker/dealer.
broker/dealer;
brok... | stackexchange/codereview |
How do I check if the current batch script has admin rights?
I know how to make it call itself with runas but not how to check for admin rights. The only solutions I've seen are crude hack jobs or use external programs. Well, actually I don't care if it is a hack job as long as it works on Windows XP and newer.
| stackexchange/codereview |
I have a generic class with ICommand properties. This is a composite object that use as child object that have is hown ICommand properties.
I was searching a system to define during runtime the interface to use with this class and the command properties of child object that have to be "used" like the ICommand property... | stackexchange/codereview |
I'd like to store objective-c block in a property for later use. I wasn't sure how to do it so I googled a bit and there is very little info about the subject. But I've managed to find the solution eventually and I've thought that it might be worth sharing for other newbies like me.
Initially I've thought that I would... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.