instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I need good web crawler written in Python to store complete page into mysql database. Small system that I am experimenting uses now PHP Sphider to crawl and store into database. I need something that works almost exact like sphider, but writen in Python. So just storing database to into table where from other scripts t... | stackexchange/codereview |
I was checking out an online game physics library today and came across the ~~ operator. I know a single ~ is a bitwise NOT, would that make ~~ a NOT of a NOT, which would give back the same value, wouldn't it?
| stackexchange/codereview |
Can same class exist in multiple packages?
In other words, can I have Foo.java class in com.test.package1 and com.test.package2?
Update
Now I copied class from package 1 and placed in to package 2 and now I am creating an instance of that class, I want this instance to point to class present in package 1 but currently... | stackexchange/codereview |
Assume I have a function that reads data from a MySQL table, manipulates it and returns some data.frame. Note the function is just an example whose functionality does not matter itself..., E.g.:
addRowSd <- function(table,con,pattern="^Variable") {
dframe <- dbReadTable(con,table)
cn <- colnames(dframe)
qs <- subset(... | stackexchange/codereview |
I have a web application and I want to make it run offline as well. In this application I just have a form and I am using PHP for submitting it. I am using a manifest.php file like the one described in http://building-iphone-apps.labs.oreilly.com/ch06.html .
The problem is that I need somehow to add the parameters from... | stackexchange/codereview |
I have tried HeidiSQL and ToadMySQL. The problem with these editors is when I want to edit a view, they put the whole query on one line. What I want, is each select clause on its own line, the from on its on line, each join on its own line, and each where clause on its own line.
Any suggestions?
| stackexchange/codereview |
I want to modify my name in xml cv file, but when I use this statement:
XMLOutputFactory xof = XMLOutputFactory.newInstance();
XMLStreamWriter xtw = null;
xtw = xof.createXMLStreamWriter(new FileWriter("eman.xml"));
all the content of the file are removed and it becomes empty. Basically, I want to open (eman.xml) for ... | stackexchange/codereview |
Okay, so I'm fairly new to WPF and data binding, but I've searched and searched and can't seem to find an answer to this.
I have a database (called Inventory), and a dataset (called DevicesDataSet). What I'm trying to do is bind the dataset to a listbox, so that a specific device from the Devices table of the DevicesD... | stackexchange/codereview |
When Creating and Adjusting Controls on Winforms visual studio has its intellisense ruler so you can Arrange all controls symetrically.
Now My Problem is i dont know how to Enable this again in VS.Where can i see the option to enable that tools again.
Thanks in Regards
| stackexchange/codereview |
In regards to C what is a stub routine? Also an example would be much appreciated as well.
| stackexchange/codereview |
I added following code in wordpress custom_function.php file a while ago to display google adsense. Now I want to remove the code but my website breaks when I comment out the following code. I don't understand why. Please provide your input on this.
function sidebar_ads() {
?>
<script type="text/javascript"><!--
google... | stackexchange/codereview |
I have about 50 discrete boolean values that I need to store in the database. These are logged every few seconds so I will be storing a lot of them over time.
The way this data would be used is:
1) Access a bulk of time to see flag status history
2) Find times at which flag changed status
Once stored, the records will... | stackexchange/codereview |
What are the unit-testing frameworks for MATLAB out there, and how do they compare? How should I choose one for our project? What are their pros and cons?
| stackexchange/codereview |
I'm playing around with an embedded device, running a linux kernel. It has web access via a proxy. My question is, is it possible to login via the unix console?
I can retrieve the login page using wget http://m.facebook.com, but I'm not sure where to go from there.
Thanks in advance.
| stackexchange/codereview |
my python version is 2.4.3.
Now I am developing a CLI with cmd module from python for a CD player. I have some classes like CDContainer (with method like addCD, removeCD, etc), CD (with method like play, stop, pause). Now, I want to add some options for the commands and also if the options inputs are not correct, the C... | stackexchange/codereview |
i want to change layout without calling the onCreate method. i also define android:configChanges="orientation|keyboardHidden" in my activity and it is not calling the onCreate method but the layout not adjust appropriately on landscape mode.
my current layout look like as follows.
after change orientation as landscap... | stackexchange/codereview |
I have a string:
B<T>::B() [with T = int]
Is there any way I can get
B<T> [with T = int] from this before run time somehow? :)
Simplifying: Is there any way to get X & Y separately from a static string XY defined as a preprocessor macro in any form before runtime?
| stackexchange/codereview |
I am getting an error on javascript when doing post back. The code is as follows:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3... | stackexchange/codereview |
It's possible to create properties using either of these methods:
<Target Name="A">
<PropertyGroup>
<DogSound>Bark</DogSound>
</PropertyGroup>
</Target>
<Target Name="B">
<CreateProperty Value="Bark">
<Output TaskParameter="Value" PropertyName="DogSound"/>
</CreateProperty>
</Target>
B... | stackexchange/codereview |
The ultimate goal is to specify contracts for a class that resides in an external assembly that I don't have control over (i.e. I cannot just add contracts to that class directly).
What I have tried so far:
ContractClassFor attribute.
Doesn't work, because the target class must point back to the contract class.
Manu... | stackexchange/codereview |
This is a very frustrating and bizarre issue and I would appreciate any advice on how to resolve it.
I have an object with a private variable:
private DateTime _maturityDate = DateTime.MaxValue;
It has a corresponding property:
public DateTime MaturityDate { get; set; }
I have a method which updates the data in the ... | stackexchange/codereview |
I'm using Fluent(1.1.0) NHibernate(2.1.2) and I've got a (sub)subclass with a many-to-many reference to another class:
(Sub)Sub Class --< Cross Table >-- Other Class
or
FloorplanObject (base class)
Geometry (Subclass)
Stand (SubSubclass) --< ExhibitorStand >-- Exhibitor
Base Class:
public class FloorplanObject
{
pu... | stackexchange/codereview |
Using ImageMagick on the command line I can say
convert -background '#0000' -fill white -stroke black -strokewidth 3 -gravity center -pointsize 78 -size 568x1000 caption:'Lorem ipsum etc etc' -trim +repage out.png
And produce the output I'm looking for. What I'd like to do is the same thing but within PerlMagick so t... | stackexchange/codereview |
Can I overload operators for class A in class B in C#? For example:
class A
{
}
class B
{
public static A operator+(A x, A y)
{
...
}
}
| stackexchange/codereview |
I would need one or more regular expressions to match some invalid urls of a website, that have uppercase letters before OR after a certain pattern.
These are the structure rules to match the invalid URLs:
a defined website
zero, or more uppercase letters if zero uppercase letters after the pattern
a pattern
zero, o... | stackexchange/codereview |
A way to draw the curve corresponding to a given function is this:
fun1 <- function(x) sin(cos(x)*exp(-x/2))
plot (fun1, -8, 5)
How can I add another function's curve (e.g. fun2, which is also defined by its mathematical formula) in the same plot?
| stackexchange/codereview |
Can anyone recommend the best way to use version control system in Visual Studio 2010.
I'm currently working on a asp.net mvc 2 web application and want to use version control system.
A SVN repository has been setup, and internaly in my company they use Tortoise. I have no issues in using Tortoise, but I wondered if th... | stackexchange/codereview |
When I click on a button in Silverlight I want to run a method 2 seconds later once only for each time I click the button .. in the meantime the rest of the app keeps working .. obviously Thread.Sleep stops the whole UI .. how do I do this?
| stackexchange/codereview |
I have a image inside a div which is 100*100 , i want to move the image inside the div like various company's does. for example www.zazzle.com does that.
I tried the below code ,but it is pushing all other divs down ,the divs are getting expanded.
any idea how to do this.
$item.animate({height: '+=5', width: '+=5'}, '... | stackexchange/codereview |
When building a WIXLIB from Visual Studio using Votive, how do you specify to candle where to find additional WXS files that are not part of the Visual Studio project (and are also not part of a referenced project)?
I do not want to add the WXS files to the project because they are updated by heat.exe during the build ... | stackexchange/codereview |
i have combobox (in fact, several of them), with elements that are added dynamicly.
using jQuery, i don't know how to implement function that will return id of item i selected in combo...
i know that it have to be something using .live(), something like
$(".foo").live("change", function() {
do something;
});
... but... | stackexchange/codereview |
I don't have much experience with programming. I am working (to learn) on a project. I am using C# 4.0 and WPF 4 with EF (SQLite). I am having problemw with LINQ.
Here is the code in question (I hope this is enough, let me know if more is needed)
private void cboSelectCompany_SelectionChanged(object sender,... | stackexchange/codereview |
I have a rails 2.3.8 app with rspec tests (not written by me, just trying to get them running). When I run "rake spec" I get this error:
gem_original_require': no such file to load -- spec/rails (MissingSourceFile)
I have the following rspec-related gems installed:
rails (2.3.8, 2.3.5)
rspec (2.0.1, 1.3.0, 1.2.9, 1.2... | stackexchange/codereview |
I have one public website where users have option to upload pdf file and read that pdf when they need.
I use php command
$error = copy($tmp_name, $fpath);
to save file to server....
the issue I am facing is
any one can upload any type (.exe, bat) of file but I only need pdf?
when try to browse pdf file, if some one ... | stackexchange/codereview |
Here's the site in question: http://cbcsettlementfunding.com/dev/
Almost finished up with development, just have a few bugs left to fix in IE6, one of which is particularly annoying: horizontal scrollbars on every page of the site.
Firstly, I can't readily identify what is causing this since it's only happening in IE6... | stackexchange/codereview |
The company I am working at is required to develop a web service API. Currently the company does not have in house software or web developers, we are primarily MySQL database developers.
We would like suggestions on languages and frameworks that will allow rapid development of a web service that is basically acting as ... | stackexchange/codereview |
I'm trying to add localisation to my web app which is built with Spring WebFlow and facelets. I want to add support for english and french. I've created my two messages_fr.properties and messages_en.properties files.
My template which I use for all my jsf pages has the following code to define the messages bundle and t... | stackexchange/codereview |
I have MenuStrip with some static items. To this MenuStrip I am adding items programmatically. Some of these items has child items (DropDownItems).
At some point I would like to remove all added items to recreate menu with different items. How to do it right?
Example situation:
mainMenu
-staticItem1
-added1
-added... | stackexchange/codereview |
On one of my sites have a lot of restricted pages which is only available to logged-in users, and for everyone else it outputs a default "you have to be logged in ... " view.
The problem is; a lot of these pages are listed on Google with the not-logged-in-view, and it looks pretty bad when 80% of the pages in the list ... | stackexchange/codereview |
I am usin location service for getting latitude and longitude of my location.While running my program it will give me wrong latitude and longitude.How can i get my current location details accurately? Is there any settings in mobile /device ?
String locationProvider = LocationManager.GPS_PROVIDER;
if(!locationM... | stackexchange/codereview |
i want to create a folder in our app local directories ...
the file structure i want to create will look like
current date year/month/date the root directory of this structure is year inside that current month inside that current date folders ..
this way i hav to create the folders...
any help appreciated...
| stackexchange/codereview |
Basically I am looking to select the contents of a pdf into a table.
I am using this query:
SELECT *
FROM OPENROWSET(BULK N'\\Server\Share\filename.pdf', SINGLE_BLOB) rs
The query won't run because my username doesn't have permissions on that server (nor should it), but I need to be able to authenticate as a differe... | stackexchange/codereview |
We've been taught various syntax and told how to write definitions, but we've never written any code an ran it. What is the order that Scheme code runs in?
Thanks!
| stackexchange/codereview |
This is my Makefile:
REBAR=./rebar
REBAR_COMPILE=$(REBAR) get-deps compile
all: compile
compile:
$(REBAR_COMPILE)
test:
$(REBAR_COMPILE) skip_deps=true eunit
clean:
-rm -rf deps ebin priv doc/*
docs:
$(REBAR_COMPILE) doc
ifeq ($(wildcard dialyzer/sqlite3.plt),)
static:
$(REBAR_COMPILE) build_p... | stackexchange/codereview |
I have a series of checkboxes, and everything works except their default behavior has been altered unintentionally so I can no longer check them which is odd since the reason I was using this bit of jquery was to highlight the li around them when they got checked in the first place.
Any ideas?
//Tag cloud
$(".tag-cloud... | stackexchange/codereview |
How do I protect a webservice if it is called from ajax ?
Update: I realize that my question didn't reflect what I intended to ask. I don't want user to be able to do the request by pointing to it with its webbrowser but only in the context of my app.
| stackexchange/codereview |
I have tried to get an XML file to sort and have had no luck. After a day and a-half, I need some help from an expert. Thanks.
My XML File (shortened for the example):
<?xml version="1.0" encoding="iso-8859-1"?>
<deadlines>
<deadline>
<date>2010-06-01</date>
<text>Application for Summer Due</text>
... | stackexchange/codereview |
We have got multiple application that uses different way of authetication to authenticate user. Almost all application are developed in WPF but there are few application which are developed in ASP.NET and Silverlight.
Our ultimate goal is that every application that we had developed already and those we develop in futu... | stackexchange/codereview |
Is there any way to select a record and update it in a single query?
I tried this:
UPDATE arrc_Voucher
SET ActivatedDT = now()
WHERE (SELECT VoucherNbr, VoucherID
FROM arrc_Voucher
WHERE ActivatedDT IS NULL
AND BalanceInit IS NULL
AND TypeFlag = 'V'
LIMIT 1 )
which I ho... | stackexchange/codereview |
I'm writing a game where the player tilt the phone to control a character.
The problem is: the music(when playing loud) and sound effect(like gun shots) disturbs the accelerometer values. This result in weird character movement.
Please give me some advice on how to solve this.
Thank you in advance!
| stackexchange/codereview |
If you have 4 tabs, what is the best way to inform one of the view controllers that it has been "deselected". In other words, that another tab was selected?
I can't just use viewDidDisappear, because that may happen anyway. Is there another way for a view controller to know that it is no longer the active tab?
The TabB... | stackexchange/codereview |
I am using the iPad, and I have videos/movies stored in the "Videos" folder on the iPad.
Note: I'm not try to access videos saved in the Photos Section, I can already access videos saved in here by using;
UIImagePickerController* picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
[picker setMe... | stackexchange/codereview |
Hey guys, I can only apologise for asking such a noob question, but this is the second time today I'm going to be relying on this awesome forum :)
I have a string that is made up of values from an array, taken from an excel sheet, only some of these values are blank. I'm outputting these values to a CSV file, but don't... | stackexchange/codereview |
Is it possible to do a left join like this in Nhibernate:
SELECT T.title_id, T.title, S.qty
FROM titles T
LEFT JOIN sales S on
T.title_id = S.title_id
AND S.stor_id = '7131'
ORDER BY T.title
The important part to note is the extra clause (AND S.stor_id = '7131') in the LEFT JOIN expression.
Can I do this in Nh... | stackexchange/codereview |
I can not find any related layout implementation in android build in layouts.
I found one implementation in this post, Line-breaking widget layout for Android, but in that post's case, there is a precondition that the child's width is not wider than the parent's.
But in my case, the child's width is wider than the pare... | stackexchange/codereview |
In algorithms, I've mostly been self-taught and that's largely been fine. However, I'm having trouble grasping graph algorithns. I'm looking for some kind of reference that has concepts and actual code so I can not only learn the theory (which I usually do ok with) but also get a feel for how graphs are represented and... | stackexchange/codereview |
I don't want to allow people to go directly to the pages in the AJAX directory but they still need to be served from their parent page. I have tried numerous .htaccess lines but they all block it from the main page as well. to sum up, I dont want people to be able to type in http://www.mysite.com/AJAX/page1.html and vi... | stackexchange/codereview |
Has anyone got or know if a printer friendly css file is available for the Django Admin site?
| stackexchange/codereview |
Using javascript with jQuery, I am adding an iframe with a youtube url to display a video on a website however the embed code that gets loaded in the iframe from youtube doesnt have wmode="Opaque", therefore the modal boxes on the page are shown beneath the youtube video.
Any ideas how to solve the issue?
| stackexchange/codereview |
I have created a WebView programmatically. This works perfect. The code is below.
What I need to try and do now is inject NSStrings into it. I have an array of 30 strings. 15 Headings and 15 body-texts.
Is it possible to get these displayed inside the WebView? I'm guessing I need to change them into a HTML, i may be r... | stackexchange/codereview |
I was wondering if developing ASP.NET applications on Windows Server 2008 was a good idea, and if not why not.
At work we have to use Windows Server 2008 as our desktop OS for developing (as it is closer to the production environment apparently). Using a server OS as your development environment doesn't seem right to m... | stackexchange/codereview |
Here's an interesting problem. I have an ETL script written in c# that I have been running manually on a somewhat regular basis. It is used to update my web app's database.
I want to automate the ETL process AND create an interface for the web app admins to manually start the ETL process.
I could have sql server kick ... | stackexchange/codereview |
SELECT DISTINCT sectionID FROM (
(SELECT sectionID,MATCH (content) AGAINST ('blah') AS relevance
FROM sectioncontent WHERE MATCH (content) AGAINST ('blah')) AS alias
UNION DISTINCT
(SELECT sectionID,MATCH (name, description) AGAINST ('blah') AS relevance
FROM sections WHERE MATCH (name, description) AGAIN... | stackexchange/codereview |
I have a page that displays some data. The source of the data is not Drupal nodes, so Views is of no use me:
function mymodule_main_page($arg1, $arg2, $arg3) {
$results = call_remote_api_and_get_lots_of_results($arg1, $arg2, $arg3);
return theme('mymodule_page', $results, $arg1, $arg2, $arg3);
}
My module also dis... | stackexchange/codereview |
I have a Flex 4 application which connects to ASP.NET webservice based on FluorineFx. It is authenticated by cookies via RemoteObject.setCreadentials()
Both applications connect to FMS server and talks to each other via RTMFP direct connection (P2P).
I want to debug both instances of this application in Firefox and Int... | stackexchange/codereview |
In gcc 4.5 the stack must be aligned to a 16-byte boundary when calling a function (previous versions only required a 4-byte alignment).
4-byte is reasonable for 32-bit machine.
16-byte is easy to align by just "and 0xfffffff0, %esp".
But it might cost much more memory than 4-byte boundary, doesn't it?
In short, My que... | stackexchange/codereview |
I was trying to pass an additional parameter to my form, which is anObject to ForeignKey relation. But dunno why form returns __init__() got an unexpected keyword argument 'parent' when I'm pretty sure that it is possible to send additional parameters to form's __init__ (ie here : Simple form not validating). Am I wron... | stackexchange/codereview |
I've began work in an SVN repository. I've cloned a subfolder of it into a local Hg repo with hg clone.
Afterwards, I wanted to share this with a colleague who does not have access to the SVN repository. I've created a private BitBucket repository, and we occasionally pushed the changes, and hence I had to pull them.
... | stackexchange/codereview |
Here is a sample of my data:
ABC*12345ABC
BCD*234()
CDE*3456789(&(&
DEF*4567A*B*C
Using SQL Server 2008 or SSIS, I need to parse this data and return the following result:
12345
234
3456789
4567
As you can see, the asterisk (*) is my first delimiter. The second "delimiter" (I use this term loosely) is when the sequenc... | stackexchange/codereview |
Greetings all,
I have a question: How to remove an EJB session bean (especially Stateless beans) ?
There's of course remove() method, however it cannot be called while the session object is in transaction i.e. session bean A is called by another session bean B in it's business method.
| stackexchange/codereview |
I'm trying to do crop animated gif on VDS with this configuration:
~800MHz and 256 RAM
And it's not working. It just eats memory and processor and after a ~minute returns no responce.
http://i192.photobucket.com/albums/z228/Somebi/no-responce.jpg
http://imm.io/1OID
On local machine i'v created a virtual machine with 25... | stackexchange/codereview |
Why do a lot of people use both these functions on a string?
I see a lot of stripslashes(strip_tags($field)); (or the other way around)
Isn't strip_tags enough to filter any xss stuff and such things?
| stackexchange/codereview |
for example i have two strings 0000 and 0001 then
0000
0001
----
result= 000- here difference is indicated by - sign
| stackexchange/codereview |
Let me illustrate this question with a simplified example. Assume I am building a project using python with a PostgreSQL relational database. In my database I have two tables "parent" and "child" which are N to M related through the table "parent_child". I want to be able to retrieve some data about a specific child ow... | stackexchange/codereview |
I am trying to implement a html5 drawing app. Currently, I can allow for a drawn image to be saved. I want to be able to have a replay feature that redraws the image the same way that it was originally drawn almost as if it were a video. Any ideas?
| stackexchange/codereview |
I am working with Joomla. I would like to display a certain module if the user has all browsers, except FireFox, and display another module if user has FireFox browser. I know that I can do targeted browser CSS styling, but in my case I need the user's browser to choose between an excerpt of HTML code (for all browsers... | stackexchange/codereview |
i have a small application i am implementing with django and i'm having a slight challenge. I'm trying to limit the queryset for my relationships within my application by a particular property. Now the catch is, the exact value of the property isn't known until the user logs into the application. an example is limiting... | stackexchange/codereview |
I can define global strings like this:
// .h
extern NSString * const myString;
// .m
NSString * const myString = @"String";
Now I need to define UIcolor similarly, How can I do it?
I'm trying:
// .h
extern UIColor * const myColor;
// .m
UIColor * const myColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:1.0... | stackexchange/codereview |
I've included all jars the application requires, I'm trying to use Jetty Embedded
I have a simple java class with a main method that has the following setup, servlets still work correctly just can't get JSP's to work. All required jars are included, started with basic Jetty jars then added all from the jsp folder.
Ser... | stackexchange/codereview |
Im looking to create a web application using ASP.NET MVC or PHP (not decided yet!) and I want to use the local ActiveDirectory to register users. Can anyone point out how to do this on PHP or ASP.NET?
Would like answers on any of the technologies
Best regards,
David
| stackexchange/codereview |
A) If I have a java application which starts up and waits for socket connections on a specified port. Is there a way i could maintain a session connection in php after a user validates, i.e a persistent connection?
B) I mean, I'm trying to understand how its done with mysql and php. How does mysql or php know what the ... | stackexchange/codereview |
One of my entity objects (EF4) has a property that is a decimal. The field in the database is Decimal(18,2)
If I set the value to 30.4777 it only sends 30.47 over to the db in the insert statement (as confirmed by the tracer). Is there a way to get it to send 30.4777 and then just let the database round it off (whic... | stackexchange/codereview |
I have to log slow queries , let's say queries which takes more than 3ms to run
should be logged
Most of the times these queries are SELECT
how to log them in Oracle ?
| stackexchange/codereview |
I'll write it, but if there's a ready, tested code snippet that does this I'll be happy to steal it.
COUNT(*) SUM(cnt)
0 1
Edit - Thanks for the votes to close, I can always count on the good souls in Stack Overflow to be quick with the close votes. I'll add some details to the question.
I am looking for a java c... | stackexchange/codereview |
I write in my struts.xml this interceptor stack
<interceptor-stack name="project-interceptors-stack">
<interceptor-ref name="my1-i" />
<interceptor-ref name="my2-i" />
<interceptor-ref name="paramsPrepareParamsStack" />
<interceptor-ref nam... | stackexchange/codereview |
What is the correct event to use with autocomplete-type functionality? I'm doing something similar to autocomplete and tried using the "keypress" event, however, when I go to get the text out of the input that fired the even, it only has the text before the event was fired. Should I be using a different event, or per... | stackexchange/codereview |
I'm trying to get justhost.com to compile a python CGI script (helloworld.py) without much luck. The site says python works, but I can't find much.
I'm using http://webpython.codepoint.net/cgi_tutorial
Has anyone gotten it to work?
| stackexchange/codereview |
EDIT: Sorry, forgot to mention this was a C++/CLI project.
Does it show it somewhere or does it just target one by default?
Also, can you change this in VS2005 or was this new to the later VS versions?
| stackexchange/codereview |
Is it correct to change the color of text inside an H1, H2, H3, H4, H5, or H6 element? Are they block-level elements?
For example:
<h1><span style="color:#ABAB">#500</span> Hello world</h1>
| stackexchange/codereview |
I want to do
var testData = new[] { "aap", "aal", "noot", "mies", "wim", "zus", "jet" };
bool result = testData.Or(s => s.Contains("z"));
but there is no 'Or' method on IEnumerable.
I've tried programming an Or extension method using
public static class extensions
{
public static bool Or<TSource>(this IEnumerable... | stackexchange/codereview |
What is the right way to test whether a Django FileField is blank, i.e., when no file has been uploaded?
It looks like the name attribute is u'' when the field is blank, but I don't know whether that is reliable.
| stackexchange/codereview |
I've got a list of 400 numbers, and i want to but them in a 20x20 grid using Python.
I've made a "2d array" (not really because Python doesn't support them, I've had to use a list of lists.)
When i try to loop through and assign each subsequnt item to the next box in the grid, it fails. i end up assinging the last ite... | stackexchange/codereview |
Do you know a class to merge two MP3 files using PHP?
I've found nothing on Google.
| stackexchange/codereview |
I want to know if I build up a decision tree A like ID3 from training and validation set,but A is unpruned.
At the same time,I have another decision tree B also in ID3 generated from the same training and validation set,but B is pruned.
Now I test both A and B on a future unlabeled test set,is it always the case that p... | stackexchange/codereview |
I'm Interested in writing gedit-plugins in C. I've checked Gedit/NewMDIPluginHowTo
...but haven't had any luck with it.
How can I get more information about writing gedit plugins in C?
| stackexchange/codereview |
We have a site and we developed a chat system for it using strophe.js library and ejabberd XMPP server. We use session attachment that was initiated with PHP (using an in-house library). What we do is get the RID and SID from the PHP script, then use strophe's session attachment. The said RID and SID is stored on a coo... | stackexchange/codereview |
Please bear with me as I am newbie in SSAS/MDX. I want DISTINCTCOUNT measure on ID column of my fact table but after filtering -1 i.e. unknown IDs. I like to slice/dice on it as well.
Here are my tables
DimStudent
----------------------------
ID Name
-1 Unknown
1 Joe
2 Tim
... | stackexchange/codereview |
I am using Rails 3 to load a partial (form) into another page with the code below. The problem is that I want to use :remote => true on the form and use ajax upon it (validation) etc.
$("#form_open").bind("ajax:complete", function(et, e){
$("#form_area").html(e.responseText);
$("#form_open").html("Add contact ... | stackexchange/codereview |
I need to know if I can decide in the action method of the Buttons of UIAlertView whether to dismiss the alertView or not. In short On click of certain buttons of AlertView, I dont want my alert view to dismiss.
| stackexchange/codereview |
I'm trying to write a function that allows a contenteditable div to do some auto formatting while the user is typing in the div. So far I only manage to make it work in IE. Anyone can help me?
function formatOnKeyUp(){
if (window.getSelection) {
// ???????
} else if (document.selection) {
cursor... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.