instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
hi i want to make a OmmWriter clone for my shell terminal. in python with QT there are some wrappers for Konsole, or something similar, or whatever? some advice?
stackexchange/codereview
<div style="float: left;">Left</div> <div style="float: right;">Right</div> <div style="clear: both; margin-top: 200px;">Main Data</div> Why is the margin:top for 'Main Data' not working in the code above?
stackexchange/codereview
I've been lately looking at build systems and I can't find anything close to what I want. I consider too low end, I don't like the syntax of bjam and CMake, and I really don't like that they are only for C/C++. Ant and NAnt are also too language oriented. I really like the idea of a build tool that uses a real programm...
stackexchange/codereview
I have a GridView and when some data has been inserted I have called the DataBind() method on the GridView and the ObjectDataSource the GridView is bound to, but the GridView does not display the new data. How do I get it to refresh? Here's my ASP.NET code: <asp:GridView ID="grdOrderSignals" runat="server" ...
stackexchange/codereview
I have a webform with a TextBox, SaveButton, RequiredFieldValidator, DataGrid and a paging button. They're all in a single UpdatePanel. SaveButton saves TextBox value to the database and refreshes the DataGrid. Paging button retrieves next n records and refreshes the DataGrid. The problem is, when I click paging button...
stackexchange/codereview
I have the following pages. index.php <?php require('configure.php'); ?> configure.php <?php die(); ?> The above outputs a "-" (dash) when i copy it, it looks as if it's a new line or something of that nature. Its the first time i get this kind of behaviour. The problem stands that if anything is before the the brow...
stackexchange/codereview
Im using Drupal 6.19.In my Drupal page i have the input format set to PHP code.I have included a JS file using the following line of PHP: print "<script src=\"my_site_includes/js/script.js\"> </script>"; The page is set as the front page and attached to a primary menu item.But the js is not executed when i access the ...
stackexchange/codereview
I am using URL Routing for web based form with .NET 3.5 SP1. Its work fine on my devlopement machine but when I host it with windowxp cause exception. even I m unable to open home page. any one plz what is the problem.. Public Sub HyperLinkRoutes() System.Web.Routing.RouteTable.Routes.Add("Kms_Hyperlink_Document", Ne...
stackexchange/codereview
i am using DTSWizard to export my data on local database to Database server. Initially when i tried to first execute the create scripts of tables and then tried to export data then the Id's of all the data is changed and hence the data become garbage for me. Then i tried to export data directly without using the creat...
stackexchange/codereview
Is there an html attribute that i can set so that my html.dropdownlist behaves like combobox, such that the user can type and have an autocomplete or suggest/suggest-append? Id really love to not have to use telerik and rip up alot of my code. Not sure if its relavent, but im using C#, asp.net mvc 2
stackexchange/codereview
How do I pass parameters to a Rails application using a normal web url? For instance if I have.. http://0.0.0.0:3000/lists/create/list[name]=Paul&list[age]=39&list[tag]=misc So I have created a controller called lists and I want to pass a name, age and a tag.. In my example I am passing.. name = Paul age = 39 tag = mis...
stackexchange/codereview
I'm writing a simple client/server application and I found that using DataInputStream to read data was very convenient because it allows you to chose what to read (without having to convert it yourself from bytes), but I'm wondering if it would be best to wrap it in a BufferedInputStream too, or if that would just add ...
stackexchange/codereview
I am debugging some Entity Framework code in Visual Studio 2008, and I'm trying to retrieve actual values from the database. I expect to see a set of ID, Name pairs from one static table. using (MyModel context = new MyModel()) { var stat = context.StatusSet.First(x => x.ID == 1); //... } When I look into cont...
stackexchange/codereview
I've created a class (MyControl) that inherits from UserControl but I can't find in the documentation the method that is called to draw the control. Is there a Draw() method or something that I'm supposed to implement to provide my own drawing logic ? And where it is located (UIElement ?) ? Thanks by advance, Eric.
stackexchange/codereview
I'm aware that there probably isn't a "perfect" solution to my question (this sounds like a variation of the knapsack or the bin packing problem), but here's my scenario: I want to divide a list of SQL database tables into n (let's say 7) roughly equally-sized piles (so I can spread some maintenance tasks roughly equa...
stackexchange/codereview
Possible Duplicate: What's “@Override” there for in java? I've never put "@Override" before a method until now. I see some code examples with it, but I don't understand its utility. I'd love some explanation. Many thanks, JDelage
stackexchange/codereview
I have an ActiveX control in my web page to print out bills. It works fine on local but when I try in remote server, I can't print out, it gives me this error. System.Security.SecurityException: Request for the permission of type 'System.Drawing.Printing.PrintingPermission, System.Drawing, Version=2.0.0.0, Culture=neut...
stackexchange/codereview
I need to perform some actions (prepare gettext *.mo message files) on my project everytime I run git pull. Is there any suitable git hook, which I could use for this purpose please?
stackexchange/codereview
I want to convert object value to byte array in c#. EX: step 1. Input : 2200 step 2. After converting Byte : 0898 step 3. take first byte(08) Output: 08 thanks
stackexchange/codereview
I have a list which I call #gallery in which I've defined a couple of li boxes. e.g. <ul id="gallery"> <li style="display: list-item; ui-draggable">A</li> </li> and a box to drop them into ... <div id="conditions-box" class="ui-droppable"> <ul class="gallery ui-helper-reset ui-sortable"></ul> </div>...
stackexchange/codereview
Basically, I am making a XML stylesheet. So I am using the below method: e.g. Now it will create, the headers but what about the name and phone under a header.
stackexchange/codereview
I'm very new to dealing with bits and have got stuck on the following warning when compiling: 7: warning: left shift count >= width of type My line 7 looks like this unsigned long int x = 1 << 32; This would make sense if the size of long on my system was 32 bits. However, sizeof(long) returns 8 and CHAR_BIT is de...
stackexchange/codereview
everyone! I couldn't find a tutorial explaining the right way to code this. I think it will be clear from the title and the code what I'm trying to do. The two errors I'm receiving is that my if statement is in the wrong place, and that the variable 'Arrow' is assigned but never used. I know this comes down to simp...
stackexchange/codereview
Please tell me what's the different between Class1 and Class2 or the different between Event and Delegate ? I test my class in Form1 and have the same result //Class1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; class Class1EventArgs { public StringBuilder CallStack; ...
stackexchange/codereview
Just as a learning experience, I am trying to make en element rotate on its yAxis upon clicking a link, but I am having no luck. Here is the code I am using. Any ideas? $('rotate').click(function(){ $('object').style.webkitTransform = "rotateY(90deg)";});
stackexchange/codereview
This may be easy but I am new to this so here it goes. I am trying to find if a string can be found in a mysql database field. The following will only find exactly match SELECT mycontact, userid FROM mytable WHERE email = #form.email#' The following will return result if the field email is contain in the form.email ...
stackexchange/codereview
Has anyone gotten NUnit successfully integrated with TFS 2010? I can see how to nunit-console and get it run, the question is around the reporting. Has anyone got it to work reliably? I've seen: http://nunit4teambuild.codeplex.com/ but the last activity is an alpha release in May. Has anyone tried this or another solut...
stackexchange/codereview
My simple application arranges weblinks on the image and depending on the type of image number of weblinks is different. I use ImageMap control and add in code behind hot spots. Coordinates and url are get from the data base. Below there is a code: protected void ArrangeMapHotSpots(int voivodshipId) { PolygonHotSpo...
stackexchange/codereview
I'm parsing a web page written in spanish with scrapy. The problem is that I can't save the text because of the wrong encoding. This is the parse function: def parse(self, response): hxs = HtmlXPathSelector(response) text = hxs.select('//text()').extract() # Ex: [u' Sustancia mineral, m\xe1s o menos dur...
stackexchange/codereview
We have written this script. Essentially, it limits the input into a form field, to numerics only. However we get an ie. error of 'value' is null or not an object. Any suggestions as to a fix please. function numbersonly(e, decimal) { var key; var keychar; if (window.event) { key = window.event.keyCode; } else if (...
stackexchange/codereview
I would like to convert an absolute path into a relative path. This is what the current absolute code looks like $sitefolder = "/wmt/"; $adminfolder = "/wmt/admin/"; $site_path = $_SERVER["DOCUMENT_ROOT"]."$sitefolder"; // $site_path ="//winam/refiller/"; $admin_path = $site_path . "$adminfolder"; $site_url = ...
stackexchange/codereview
Looking for a method or to be pointed in the right direction so I can return an hash equal to the hash returned by FormsAuthentication.HashPasswordForStoringInConfigFile("asdf", "MD5"). I've been trying code like: ASCIIEncoding encoding = new ASCIIEncoding(); encoding.GetBytes("asdf"); var has...
stackexchange/codereview
What can I do to make this code work? <xsl:choose> <xsl:when test='type = 6'> <xsl:variable name='title' select='root/info/title' /> </xsl:when> <xsl:when test='type = 7'> <xsl:variable name='title' select='root/name' /> </xsl:when> <xsl:otherwise> <xsl:variable name='title'>unknown</xsl:variable>...
stackexchange/codereview
I have many MySQL databases that have same tables with the same structure. I am looking for simple way how can I alter table structure in all of the databases at once ( in one query or using one tool).
stackexchange/codereview
Can I have a case statement in a HAVING clause in SQL server 2005? Below is my HAVING statement. It is giving me a syntax error. @CLIENTPK_NEW IS NULL OR ( CLIENT.OH_PK = @CLIENTPK_NEW and CASE WHEN @RelatedOrgs <> '11' then CLIENT.OH_PK= @CLIENTPK_NEW ELSE CLIENT.OH_PK in ( SE...
stackexchange/codereview
I have to implement a strange requirement that goes as follows: Users can hover on a link and get a descriptive text like "some text here" Users can click on the very same link and get a completely different text that might also contain markup (Example : some other text here) I have looked at some jQuery plugins but...
stackexchange/codereview
I'm working on a ASP.NET MVC 2 application and i test my Viewmodels Like this [TestMethod] public void EmailNeedsToBeSet() { var pvm = new ProfileViewModel {Email = ""}; var validationResults = new ValidationResults(); var result = Validator.TryValidateObject(pvm, new ValidationContext(pvm, null, null), val...
stackexchange/codereview
I'm happy to see 4.0.2 has support for .net 3.5, however there are no samples to understand how to use it, without dynamic keyword. For example I have FacebookApp app = new FacebookApp(GetSettings()); object result = app.Fql(string.Format("SELECT id,name,type FROM profile WHERE id={0}", strID)); What ...
stackexchange/codereview
I added an alias in my .bash_profile file in my home directory on Mac Leopard. For example, alias preview = "open -a preview" alias lsall = "ls -l" When I try to run these commands from the command line, I get the message that command not found Any idea what I might be doing wrong? Thanks!
stackexchange/codereview
I have a little DIV like this: <div id="counter">2</div> I'd like to use jQUery to either subtract or add by let say 1, resulting in 3 or 1... is there a way in jquery to do this? convert a string to a int maybe?
stackexchange/codereview
Is it possible to override particular tag generations with VS2010? Right now when you type <table>, VS will create the matching </table> tag to close the statement. When I type <table>, I'd like VS to generate <tr><td></td></tr></table>. I'm pretty sure I could do this with a Macro, but it would be nice to be able to t...
stackexchange/codereview
I'm currently making a game for Android and it's all nice and working, but during my game sometimes errors pop up about other apps (like Twitter/Facebook or some HTC Sense related processes) not responding. Am I doing something wrong with my game that those apps don't get enough CPU or RAM or what could that be? Hints ...
stackexchange/codereview
I'm looking at options to connect directly--without a web server or middleware--to a PostgreSQL server using JavaScript from a web browser client. On github, I found three projects: node_postgres node-postgres postgres-js They all appear to be in early but at least somewhat active development. Do they all do roughly...
stackexchange/codereview
I found very little information on the difference between C7 compatible and Program Database (there is a third one, Program Database Edit and Continue, but that should be the same as Program Database with the ability to edit and continue). The only solid information I could find was that C7 compatible embeds the debug ...
stackexchange/codereview
I have a <div>, and I need two divs in it. One should be 30px tall and the other should fill in the rest of div (this one will also have overflow) ----------------- | | ----------------- | | | | | | ----------------- I've tried to do it like this: <s...
stackexchange/codereview
I wanted to print something using printf() function in C, without including stdio.h, so I wrote program as : int printf(char *, ...); int main(void) { printf("hello world\n"); return 0; } Is the above program correct ?
stackexchange/codereview
Is it possible to test a php site's performance for hundred thousands of users before it actually achieves that user base? What are the tools? Can it really be realistically judged based on these tools?
stackexchange/codereview
I'd like to find out the internals of how JOINss performed in MySQL. To be exact, the logic, etc. How and in which order it "does" things, including caring of indexes/etc, Thanks!
stackexchange/codereview
First of all I want to say I am not a programmer but I have been playing around with some simple php scripts today and I have a quick question for those in the know. How could I simplify the following code so it does not use all of those OR logical operators? $number = ""; if ("$number" == 2 || "$number" == 3 || "$num...
stackexchange/codereview
I would like to use my mouse wheel to increment and decrement a JSpinner. Is this possible?
stackexchange/codereview
I have now tried to get this to work for a few hours but just cannot get it right. I have the following code: NSDictionary* dict = [NSDictionary dictionaryWithObjectsAndKeys: [NSArray arrayWithObjects:@"currentGame1", @"currentGameType1", @"currentGameQuestion1", @"currentGameRightAnswers1", @"currentGameType1", @"n...
stackexchange/codereview
It's very easy to explain NoSQL from high level view - it is basically "key-value" storage. Of course with thousand minor and important things, but in general it's just key value storage. What's the best way to explain Hadoop and Map/Reduce? May be some "real world" example which can be easy to give an compare for even...
stackexchange/codereview
I am converting a control to a bitmap and print it: using (MemoryStream ms = new MemoryStream()) { chart1.SaveImage(ms, ChartImageFormat.Bmp); Bitmap bm = new Bitmap(ms); PrintDocument doc = new PrintDocument(); doc.PrintPage += (s, ev) => { ev.Graphics.DrawImage(bm, Point.Empty); // adjust...
stackexchange/codereview
Python 3.1.2 (r312:79147, Nov 9 2010, 09:41:54) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> open("/home/madsc13ntist/test_file.txt", "r").readlines()[6] Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/pyt...
stackexchange/codereview
When you come from the Eclipse world you surely miss Mylyn (a task focused interface). As I have to use Netbeans at the moment I am looking for something similiar. I would even be satisfied with some little helper to associate some files to a task, so that I can switch my working files at once to work on another projec...
stackexchange/codereview
This is a tough design question for a application I'm working on. I have 2 different items in my app that both will use comments. What but I can't decide how to design my database. There are 2 possibilities here. The first is a different comment table for every table that needs comments (normalized way): movies -> movi...
stackexchange/codereview
Consider the following python class: class Event(Document): name = StringField() time = DateField() location = GeoPointField() def __unicode__(self): return self.name Now I create a list of Events: x = [Event(name='California Wine Mixer'), Event(name='American Civil War'), Event(name='Immaculate Conce...
stackexchange/codereview
Horizontally, I want to display two bitmaps, and between them display a label field. The code seems straightforward, but all the fields are added on the left side of the screen. HorizontalFieldManager hfm = new HorizontalFieldManager(); callbmp = new BitmapField(ei.getBitmap(),Field.FOCUSABLE |BitmapField.FIELD_LEFT)...
stackexchange/codereview
I am currently developing an ASP.net application, where I generate a word document in server and I want to save it in client machine who access that feature with out user interactions. How can I download it and save it in client machine, using Javascript?
stackexchange/codereview
I need some help at designing a model and widget for a custom-sorted M2M relationship. The typical application scenario would be books and authors. In particular, when the order of authors in a book does matter. The current version of my Publication model is: class Publication(models.Model): """ A scientific pu...
stackexchange/codereview
How can I rewrite the [a-zA-Z0-9!$* \t\r\n] pattern to match hyphen along with the existing characters?
stackexchange/codereview
I'm looking into doing some development for the Azure platform. I don't need the full Relational stuff that you get from SQL Azure and I would be quite interested to use Table Storage instead. Now the one Relational thing I do need to be able to do is represent one-to-many and many-to-many relationships between tables ...
stackexchange/codereview
I am using the Albaharis PredicateBuilder as found here http://www.albahari.com/nutshell/predicatebuilder.aspx to filter results in a Linq-to-SQL application. This has been working great. What I am trying to do now, is reuse the existing filtering predicate expression to filter an object that has the existing filtered ...
stackexchange/codereview
In my code, every time I need a new object attribute for my class, I typically copy/paste its name in 4 different places! The declaration in the header file (NSObject * myObject;) The @property() line The @synthesize() line in the implementation Releasing it under dealloc: (only for objects of course) I do this becau...
stackexchange/codereview
Does anyone have any experience with deployment options for Prism Apps? I tried ClickOnce and found it to be too buggy and too hard for my users (With Prism 4 and .NET 4). Clearly I could just go make a normal installer using installshield or something. But what I really want is something that lets me leverage the fac...
stackexchange/codereview
So, here's the problem. iPhones are awesome, but bandwidth and latency are serious issues with apps that have serverside requirements. My initial plan to solve this was to make multiple requests for bits of data (pun unintended) and have that be how the issue of lots of incoming//outgoing data was handled. This is a...
stackexchange/codereview
I have some code which connects to a URL to download a file, and then performs some processing on it. However, sometimes I am receiving the error java.net.SocketException: Connection reset. I would like to retry to download the file when I receive this error, say a maximum of 3 times before giving up on it. I would lik...
stackexchange/codereview
I am new to SQL and been given a task. Following are the details: What I have: A C# desktop application for User login and view user status (only two options: user logs in and check status of all users that are dummy created) A table named USER containing id username datecreated A table named LOGINSTAT containing ...
stackexchange/codereview
I recently made a change to one of my app engine models. I changed a Key field to a String. I forgot to remove all the old records. I have already added new records that have strings in the key fields. If I do a query for all the records I get an error, can not cast Key to String. If I try and change the class bac...
stackexchange/codereview
I'm in the process of trying to learn Unicode? For me the most difficult part is the Encoding. Can BSTRs (Basic String) content code points U+10000 or higher? If no, then what's the encoding for BSTRs?
stackexchange/codereview
How can i use a SQLParameter as as the table name and column name? SELECT * FROM @TableName Where @ColumName=@Value I get errors when i try to do something like that.
stackexchange/codereview
I am attempting to make a Java program in which a user can select any .class or .jar file from their computer. My program will then pop up a JInternalFrame with a JEditorPane in it as the console, capturing any console output from the user's program. Note that I do not want to capture just System.err or System.out call...
stackexchange/codereview
I created a script template to generate the extendend properties to basically to include the data dictionary in the database, however, i couldn't find any macro to read-out the table comment from the model. Is there any hack for this?
stackexchange/codereview
Hopefully I can explain completely providing real info To start with then we have a LinkButton whose text is actually an image tag. The image it links to is a Png and resides in a folder in the web directory. This is IIS V6 and win Server 2003. The path is http://webaddress/Admin/Images/image.png Admin is a virtual di...
stackexchange/codereview
I have a JPanel that is not part of a JFrame. For various reasons I have to call the panel's paint method through my own "update" method. This is my code: public void onLoad () { panel = new JPanel (); panel.setBounds (0,0,Main.WIDTH,Main.HEIGHT); panel.setLayout (new BoxLayout (panel, BoxLayout.Y_AXIS)); ...
stackexchange/codereview
I have to draw a graph with many nodes, and I thought that an user interface like what Google maps offers could be nice to navigate the graph. I'm currently using Java for my application (a web application): what technologies/libraries should I use to build an interface like google maps? What approach? edit: I'm inte...
stackexchange/codereview
The function proto type like int xxxx(int) or void xxx(int)
stackexchange/codereview
Using Windows Forms, when I click on a TreeView node, the highlight colour is blue. Is there a way to change this?
stackexchange/codereview
Using the Facebook SDK, I can login and store my access_token into a database. When I try to create a post, the Facebook wall is still empty on both my phone and emulator due to these problems: 1) I fetch an access_token from the database and pass the access_token to Facebook, but I'm not allowed to post on a wall. 2) ...
stackexchange/codereview
I have a (my)SQL question. If I have a table, let's say called Cars with various columns, two of which are INT which I want to add together, one called backwheels and the other called frontwheels. I can do this query to add them together when I select select (backwheels+frontwheels) as totalwheels from Cars; which work...
stackexchange/codereview
one other question $_SESSION['files'][] = $sid . '-' . $data['Id'] . '-reg' $_SESSION['files'][] = $sid . '-' . $data['Id'] . '-nor' ... the files session should look like this when echoed 317e2b5a2376dd19cb5fc431bced949a-56-reg how do i take $_SESSION['files'][] and separate the data into these variable $sid, $id, $...
stackexchange/codereview
I have a function that changes the hash in the url and inserts/removes a div from my main page. I did this was so that I can have a page that you can maneuver through without a reload, but at the same time i wanted people to be able to bookmark a certain section and go to it later without having to go through the page ...
stackexchange/codereview
In my Spring MVC project I have an update page for Class1 that must display a list of form:checkbox tags that is bound to a collection of entities on Class1. Class1.java: class Class1 { private Set<Class2> set; //... other fields } In updateclass1.jspx: <c:forEach items="${allClass2Instances}" var="class2"> <...
stackexchange/codereview
I am creating nested spans as follows: <span id="1"> text1 <span id="2"> text 2</span> </span> But somehow text 2 is being desplayed on new line , may be it is styles sheet issue but i cant chnage style sheet due to some other resons.How can i overide default style sheet and make text 2 to be displayed on same ...
stackexchange/codereview
I want to find out how to shear images in IOS 4.0. I have an image. The output should look like the following image... I have seen the Affine transform method specified here. But couldnt solve my problem. It would be of great help of i can find any solution or tutorials to my problem.
stackexchange/codereview
I have a problem using Hibernate and PostgreSQL for production and HSQLDB for testing. I am using top-down approach letting Hibernate create database schema. I am also using annotations; mapping part of hibernate.cfg.xml only contains lines like <mapping class="package.subpackage.ClassName" /> Hibernate defaults Strin...
stackexchange/codereview
I have installed python-ghostscript on Linux. I can run gs from the command line and it will create a jpg from a pdf. Here is the code that works: ~$ gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=jpeg -sOutputFile=/home/user/output.jpg /home/user/downloads/test.pdf I am trying to run that process in Python but I cannot get th...
stackexchange/codereview
I can't figure out why this script won't work unless i create a reference to $(this) and assign it to another variable like $_this = $(this); this was the only solution i got, but was wondering if there is a better one - a less newbie one. Observe that i want to be able to use it in the $_this.prepend("Choose"+res) par...
stackexchange/codereview
How can I give input to threads in java eg: class BTT extends Threads { int ag1; int ag2; void build(int k) { void build(k+1); } } I want to set the values of ag1 and k in build different in different threads. How can i do that?
stackexchange/codereview
I have two class, Node and Group, the Group is Node's sub-class. @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Node", propOrder = { "id", "children" }) public class Node { protected int id; protected List<Node> children; } then Group class @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name =...
stackexchange/codereview
In lots of cases I have seen the greatness of how jQuery modifies the this keyword to give the object that you would expect to be there actually be there. Great.... However how do you deal with situation where you have custom objects that have custom methods which reference the this keyword but are called thru jQuery. ...
stackexchange/codereview
I am trying to map drives based on groups. I am using the 'Hey Scripting Guy Article' to do so. I am getting an error on one of my groups when I start my 'For Each' loop stating 'Object is not a Collection'. I know this is because when the group in question is 'NoAccess' it returns a string instead of an array. I a...
stackexchange/codereview
How do I get rid of this? The reason I want to get rid of it is that every so often, I will move my mouse down toward the bottom of the screen, and when I mouseover this area, the mouse jumps all the way to the top-left of my screen. It's real annoying. I actually have to make my mouse go around this "feature" which I...
stackexchange/codereview
This is a follow-up question to Combinatorics in Python I have a tree or directed acyclic graph if you will with a structure as: Where r are root nodes, p are parent nodes, c are child nodes and b are hypothetical branches. The root nodes are not directly linked to the parent nodes, it is only a reference. I am intres...
stackexchange/codereview
I added an Image to the header of all pages. Is there a way to remove this image from all pages in one go?
stackexchange/codereview
What is this RUBY regex doing: match = /^plus_([0-9]+)$/.match(m.to_s) It seems to be matching 'plus_' and then a number. But what is the .match(m.to_s) part doing? is it chaining to itself? I don't understand. Sorry its Ruby.
stackexchange/codereview
So, according to Ayende Lazy Loading Properties are already in the NHibernate trunk. My Problem is: I can't use the trunk for I have FluentNHibernate and LinQ for NHibernate, so I depend on the version they are linked against (Versio 2.x). I can't and don't want to build all the assemblies myself against the newest ver...
stackexchange/codereview
I have the following select statement: $res = mysql_query("select * from Table where Name='{$_REQUEST['name']}'"); However, since this kind of query is prone to SQL injection, I am using a more secured way for the selection: $escaped_name=mysql_real_escape_string($_REQUEST['name']); $res = mysql_query("select * from T...
stackexchange/codereview
I have a GridView and a SqlDataSource, which I have set to automatically generate Delete/Insert/Update statements. I then just enabled Deleting on the GridView, and usually away I'd go. For some reason though, the row is not being deleted - the page is posting back but the row is still there. When Delete is clicked, Ro...
stackexchange/codereview
I am developing an application and I am displaying images from URl using xml parsing. When internet gets disconnected I pop up alert window. Now I wan my current activity automatically reboot, when my device connect net.
stackexchange/codereview