instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
http://www.ibm.com/developerworks/rational/library/05/0816_GuptaPalanki/#javaexample The Author across the code says that there is memory leakage. public class LeakExample { static Vector myVector = new Vector(); static HashSet pendingRequests = new HashSet(); public void slowlyLeakingVector(int iter, int ...
stackexchange/codereview
PHP's __autoload() (documentation) is pretty interesting to me. Here's how it works: You try to use a class, like new Toast_Mitten()(footnote1) The class hasn't been loaded into memory. PHP pulls back its fist to sock you with an error. It pauses. "Wait," it says. "There's an __autoload() function defined." It runs it...
stackexchange/codereview
I've been using Linq-to-SQL for quite awhile and it works great. However, lately I've been experimenting with using it to pull really large amounts of data and am running across some issues. (Of course, I understand that L2S may not be the right tool for this particular kind of processing, but that's why I'm experime...
stackexchange/codereview
I'm trying to make an existing ASP.NET web forms app more unit testable by using some of the ASP.NET MVC objects, specifically HttpContextWrapper. I've seen examples of its usage and they always create a new object. I disassembled the source with Reflector and see all it does is store the passed HttpContext. But I was ...
stackexchange/codereview
I'm using watir in a Windows environment with FireFox 3.6 via FireWatir. I can successfully run a single watir test without issue. I need to be able to either: a. Create and manage multiple browser instances or tabs from a single test script or b. Run two test scripts simultaneously from separate instances of ruby ...
stackexchange/codereview
I have two scripts in which I'm experimenting with CSV_XS. In the first, I hard-coded everything: source directory, filename, and the csv delimiter I wanted to look for. The script works great. In the second, however, I try to dynamically discover as much as possible. That script seems to run, but it outputs nothing. ...
stackexchange/codereview
I'm building a site where my users will be able to specify locations (say, their residence, etc.). Then, I want to do 2 things to this information: Plot these location on a mapping service (such as Google Map) Allow users to search by location (e.g. find all users that live in or are in a certain radius from XYZ city)...
stackexchange/codereview
I have a patch file containing the output from git diff. I want to get a summary of all the files that, according to the patch file, have been added or modified. What command can I use to achieve this?
stackexchange/codereview
Here is what I am using: class something { char flags[26][80]; } a; std::fill(&a.flags[0][0], &a.flags[0][0] + 26 * 80, 0); (Update: I should have made it clear earlier that I am using this inside a class.)
stackexchange/codereview
Compare this method: void doStuff(String val) { if (val == null) { val = DEFAULT_VALUE; } // lots of complex processing on val } ... to this method: void doStuff(String origVal) { String val = origVal; if (val == null) { val = DEFAULT_VALUE; } // lots of complex processing...
stackexchange/codereview
Douglas Crockford wrote in his book (Page 4): Throughout the book, a method method is used to define new methods, This is its definition: Function.prototype.method = function (name, func) { this.prototype[name] = func; return this; }; Then he starts to use this method to add method in Number, String, Function,...
stackexchange/codereview
I have problem probably the same like this guy: When clicking on text field, after entering data, "done" button doesn't work?? Is it iphone simulator issue? Please tell me how to get the "done" button work with Interface Builder only. Solution: After googling for 50min I finally understood my problem. And now in plain ...
stackexchange/codereview
I need to create animation that images of water come out from bottom of view and then at middle of view at fall like water fall on wall or on ground and drops spread out here and there using core animation. I tried to use transformation & scaling with CABasicAnimation but failed to create that type of animation. how to...
stackexchange/codereview
I would like to break a line (at the location of the cursor) in to two lines without leaving normal mode (entering insert or command-line mode). Is this possible? I currently get to the location I want and hit 'i' to enter insert mode, 'enter' to break the line in two, then 'esc' to return to normal mode. I am not tryi...
stackexchange/codereview
Is it possible to use the ObjectDataProvider method to bind a ListBox to an enum, and style it somehow to display the Description attriibute? If so how would one go about doing this...?
stackexchange/codereview
I have an app which uses the navigation window. THe page is designed this way. <Page> <Grid> <ComboBox/> <TextBox/> <Grid> <TextBox/> </Grid> <Grid> <TextBox/> </Grid> <ListBox/> </Grid> </Page> Now when i click a "new", i create a page, Page1 pg1 = new Page1(); this.NavigationService.Navigate(pg1); Now...
stackexchange/codereview
I am trying to send up an xml file and get back an xml file as a response. The file I am trying to send up is slightly over 20,000 KB. I tried adding a timeout, and setting keepalive to false, but neither one works. I've searched around but I can't find anything that is applicable to me. As of now I've just broken the ...
stackexchange/codereview
I want to create a flowchart in OpenOffice Draw. Since there's a lot of steps to show (and may change in future) but I can extract the data, I want to automate the creation with the following steps: Create a new ODG document with specified page settings. Insert flow chart shapes with specified properties. Connect thos...
stackexchange/codereview
Currently I am looking to move my websites images to a storage service. I have two websites developed in PHP and ASP.NET. Using Amazon S3 service we can host all our images and videos to serve web pages. But there are some limitations using S3 service when we want to serve images. If website needs different thumbnail ...
stackexchange/codereview
I have an app that requires multiple progress bars to be added dynamically to a form (whenever a new upload is added and started). I've been Googling and the results suggested embedding progress bars in a ListView or a DataGridView. Can anyone suggest any other techniques, as neither ListView or DataGridView hacks I've...
stackexchange/codereview
I am writing a marquee script because I do not like the fact that with most marquee scripts when the marquee reaches the last item (thinking using a ul, so last item is the last li), it waits till that item is off screen, and then resets the position of the ul, and starts the scrolling all over agian. My approach is to...
stackexchange/codereview
Does anyone know of any good NFA and DFA implementation in C#, possibly implementing as well conversions between both? What I would like would be to be able to construct a NFA and then convert it automatically to a DFA, but without having to write my own code which would take a very long time. There is this Python code...
stackexchange/codereview
I've got a custom component based on a TitleWindow. I want to put an event listener in my main app that listens for the Titlewindow's modal button's click Custom Component: <mx:TitleWindow showCloseButton="true" close="closeHandler(event)"> blah blah... <mx:TitleWindow> In the main app: I've got a variable call...
stackexchange/codereview
I started to use the Twitter Search API to create a view into our company's multiple twitter streams. For one of the accounts, the Search API only returns mentions of the account (i.e. in other people's tweets), but does not return tweets from the account. That account does not have it's tweets protected. Does anyone k...
stackexchange/codereview
i am planning to get some Data Entry done for the records of Restaurant info which i later want to upload to MySQL table. Is there some kinda rules i need to follow because i read some place that we have to mention some kinda delimiter like , ; etc. not sure how to do that in Excel. Secondly can i use Google Forms whic...
stackexchange/codereview
i am new to vaadin and i have installed vaadin eclipse plugin and i cannot find the create custom widget in the File->New project->vaadin and i cant find create themes etc ..as i see these things in the tutorial video and i cant find the visual editor also in the eclipse and i am using linux (operating system)
stackexchange/codereview
I've a TListBox on a Windows form with 966 elements in it. When I click a button on my form, a subset of these strings are selected (roughly 200 of them). If I now unfocus my application by clicking somewhere on the task bar, the entries from my TListBox bleed upward, so as they are visible above the boundaries of the...
stackexchange/codereview
I'm developing a simple image processing app and I've encountered an issue on my test unit (iPhone 3G) that generally any image over 1024x1024 pixels will cause the app to crash when saving. The process my app follows: User selects an image via UIImagePicker A working copy of the selected image is created and resize...
stackexchange/codereview
I'm calling soap webservice in android app. its working fine and getting the response in SOAP object. I don't know what to do after that. I'm searching for tutorial but I didnt find any. I'm really very fed up. I need to parse the reponse. Can anybody please help me in this case. filter.setOnClickListener(new OnCl...
stackexchange/codereview
I have some textboxes and checkboxes inside a RoleGroup of a LoginView. How can I access these controls in my code-behind? <asp:LoginView ID="lgvAdmin" runat="server"> <RoleGroups> <asp:RoleGroup Roles="Administrator"> <ContentTemplate> <div class="floatL"> ...
stackexchange/codereview
My assignment is a Binary Search Tree derived from a Binary Tree, in my driver program this is how I've created a BST object. But I am slightly confused because I know there must be a constructor but no where in my assignment does it actually call for a constructor for the derived class. int main() { int x = 0; i...
stackexchange/codereview
I'm building an application that is multi-lingual, multi-timezoned and n-tier. All dates are stored in the database in UTC and all model objects are populated with UTC times. However UTC times are never displayed (unless the user happens to have their timezone set at UTC). This then means that I need to convert time pr...
stackexchange/codereview
Two Questions Does using Copy or paste cause monodevelop to crash, or is it just me? If you have Monodevelop installed, please can you test this, I fount that both shortcuts and from the menus cause it to crash. I seem unable to find information about this on google, though would personally consider this quite a major...
stackexchange/codereview
I am wondering if my codes here can view a specific pdf file using existing PDF viewer in Android Phone (HTC Desire).. If i would like to open pdf files from local folder.. What should i do? public class ghcm_Submenu1 extends Activity { private ListView lv1; private String lv_arr[]= {"item1", "item2"}; @Override ...
stackexchange/codereview
I have a simple ListView, essentially creating a MxN grid. "FullRowSelect" is off. Essentially we have a grid of cells. I am trying to find out of the mouse is over a cell that contains an Item, and if so, what Item it is. GetItemAt(...) is close to what I want to do, but not quite. If there is text in the "cell", t...
stackexchange/codereview
I recently needed to find the .NET equivalent to ShellExecute, and I was happily able to find the answer quickly at StackOverflow. But surely there must be document or a list somewhere which would have given me this answer just a little quicker. Back when I went from ANSI programming to UNICODE, Microsoft had this han...
stackexchange/codereview
Hay, I have some markup like this <div id="some-id"> <h2><a href="#">Title</a></h2> </div> and some jQuery like this $(this).parent().parent().attr("id") $(this) is referring to the 'a' tag within the 'h2' Is there an easier way to select the parent div without using parent() twice. I tried $(this).parent("div")....
stackexchange/codereview
In preparation for the data structures midterm, the professor gave us last year's test, one question which deals with re-arranging an example tree into a complete binary search tree. I've tried several different versions of writing out the tree, but this complete binary tree example from Wolfram Mathematica didn't hel...
stackexchange/codereview
This seems like such a silly question, but I can't for the life of me figure out how to use the WrapPanel in the most recent (April 2010) Silverlight toolkit. Apparently they thought it was a good idea to change the namespaces/assemblies around, and not put anything on their codeplex site about this. And their samples...
stackexchange/codereview
Has to be free. Has to support all versions of Excel files. Has to have C# .NET API. I need to do all of the specified actions (reading/creating/updating). Has anyone used any library l this kind sucessfully Update: I read a lot of bad things about Ole DB, and Interop is not an option since this is a web application r...
stackexchange/codereview
I have encountered a problem while inserting a large amounts of text into my MySql database. Can I please get any pointers (what column types to use & any other issues I need to know) as to how I can achieve this, the code works fine with small amounts. Thanks in advance. Clarification The text blocks have around 7,000...
stackexchange/codereview
This has me baffled. I need to copy the Bitmap from one ImageView into another. I do not want to simply copy one ImageView to another because I need to do some changes to the bitmap on its way over. Here is some code that doesn't work. ImageView ivSrc = (ImageView) findViewById(R.id.photo); ivSrc.setDrawingCacheEnab...
stackexchange/codereview
I'm creating an application using Struts2 and I want to have friendly URLs. Si, i set the following params in struts.xml: <constant name="struts.action.extension" value=""/> <constant name="struts.enable.SlashesInActionNames" value="true"/> <constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/> and m...
stackexchange/codereview
I have a list of data which I am showing in linearlayout. I am not using ListView as I dont want scrollbar, I want all my data visible at once. I am already processing using AsyncTask but now I want to fetch the images also. I want 1st AsynTask to complete its task and call another AsyncTask to load the images, but whe...
stackexchange/codereview
In a small team where everyone is coding away on a project for a little while I want to encourage some different thinking to keep people increasing their iOS knowledge as well as to get a bit more variety in their daily activities. I'm not looking for interview questions involving manhole covers, nor very specific ques...
stackexchange/codereview
I use the async BeginReceive method of System.Net.Sockets.Socket. This requires a callback to an OnReceive function. However, nothing bugging in this section seems to be taken in charge by the debugger. So if anything goes wrong (uncatched exception), the app just crashes. Any idea how to fix that?
stackexchange/codereview
How can I get the unicode value of a char? For example, I know that I can do this with ascii: i = Asc("a") // i == 97 (correct) What if I have a unicode char though? i = Asc("•") // i == 149 (incorrect... should return 8226) Obviously the second example doesn't work since that character is not in the Ascii set. Is th...
stackexchange/codereview
I have two python applications. I need to send commands and data between them (between two processes). What is the best way to do that? One program is a daemon who should accept commands and parameters from another GUI application. How can I make daemon to monitor comands from GUI, while making it's job? I prefer solut...
stackexchange/codereview
I have a header , listfield and footer in my application's main page. I use horizontalfield manager for footer and header.The header is a banner and footer is a tabs container. I add the header, the listfield and the footer to the screen respectively. So I can fix the header but the footer is below the listfield and t...
stackexchange/codereview
Is there a way to add css from a string in the javascript file to the head of a document with javascript? Let's say we have a webpage, which has a lightbox script, this script requires a css file to function. Now adding this css file with <link> will make the css file download even for people that don't have js enable...
stackexchange/codereview
I have a ListActivity with obviously a ListView on it. This ListView consists of different sections, each of them have a header. When I display the list of items to the user, first header is on top. If user scrolls, header is hidden and rest of items are displayed. I know how to make that simple header static, always o...
stackexchange/codereview
I have, for example, such class: class Base { public: void SomeFunc() { std::cout << "la-la-la\n"; } }; I derive new one from it: class Child : public Base { void SomeFunc() { // Call somehow code from base class std::cout << "Hello from child\n"; } }; And I want to see: la-la-la Hello from ch...
stackexchange/codereview
I have several projects that opened just fine in Visual Studio Web Developer 2008 Express Edition, but can't be opened in VS 2008 Professional Edition! These projects are just .NET Framework 3.5 class libraries, and they are on the same machine. The error is "The project [myproject.csproj] cannot be opened. The project...
stackexchange/codereview
i try to add child in uibinder i get error in a text-only context. Perhaps you are trying to use unescaped HTML where text is required, as in a HasText widget? Element <package:ListItem..... my parent look like below public class ListItem extends ComplexPanel implements HasText, HasHTML, HasClickHandlers, HasKeyDownHan...
stackexchange/codereview
I like to migrate a COM-Class from 2.0 to 4.0. Would you recommend also to generate new guids for the classes and a different ProgId? The old Class would not be used anymore. I know I have to re-register the Class, for the new Path of the mscorlib. MS-Access create an instance auf my COM-Server Class with CreateObject ...
stackexchange/codereview
I am developing a Silverlight 4 application which is based upon Business Application Template. I am interested to ask user to login and display a login form as soon as user arrives to my site. I need to makes sure that the user cannot see/navigate to any other page of the application until he/she logs in. How can I ach...
stackexchange/codereview
I'm supposed to resize an image given to me by half using arrays. I have no idea where to begin. I'm given a function public static int[][] resizeImage(int[][] original, int newWd, int newHt) and I'm supposed to use 2d arrays to map pixels from original to new image. Not sure if I'm giving enough info. I don't want ...
stackexchange/codereview
I have an XML File like : <company> <dept> <name> Dept-A</name> <proj> <id> A1 </id> <noOfPeople> 5 </noOfPeople> <proj> <id>A11</id> <noOfPeople> 2 </noOfPeople> </proj> </proj> </dept> <dept> .... </dept> </company> Now: I want to have a list of a...
stackexchange/codereview
I am willing to create a simple desktop application for myself which will be able to download wallpapers from various sites and which can set and rotate the desktop wallpaper. [ desktop manager kind of thing ]. Please suggest which programming language to choose for this application. I know java but don' mind learnin...
stackexchange/codereview
Does Lotus notes client be running or opened in the background to send emails using Lotus Notes with .Net? I am working on a task where my .net application should send emails using Lotus Notes client ( NOT SMTP) with .NET using Dominos.dll. I am able to send mails also. But the problem comes when i close my Lotus Notes...
stackexchange/codereview
Anyone know a python package that's the dateutil of distance strings? It would be great if something was out there that worked something like the following: >>> from awesome_dist_module import Distance >>> d = Distance("100 ft") >>> d.meters 30.48 >>> d = Distance("100 feet") >>> d.meters 30.48 >>> d.miles 0.018939393...
stackexchange/codereview
I have used Visual Studio 2008 to compile and run CUDA applications before. I have switched to Visual Studio 2010 and Windows 7. I've been trying to get integration set up all morning, but haven't had complete success. I've downloaded the toolkit, installed Nsight, made sure the libraries/include/bin paths are set, ...
stackexchange/codereview
We are looking into upgrading our asp.net 2.0 application to run on the 4.0 framework. We currently use system.web.extensions 1.0 and AjaxControlToolkit 1.0. We made modifications to the toolkit and so we haven't upgraded it since. When I upgrade our solution and dependent projects to 4.0 I get the "sys is not defi...
stackexchange/codereview
Could you help me please. I'm writing a component (something like TListView), In my component I perform 3 procedures one by one: procedure findFiles(Path:String); // using FindFirst, FindNext procedure ArrangeItems; // assigns Item Position procedure SetIcons; // Loads Images, resizes, adds to ImageList I can not ...
stackexchange/codereview
To enter my site users are required to enter their password in the .htaccess box that pops up. I also want to restrict access to the .svn directory. The password part is working fine but when I add the last bit about blocking access to anything under .svn I'm unable to access any page on my site :/ AuthUserFile /path/t...
stackexchange/codereview
div img:hover { outline:2px solid #4d3326; } The above code is not working in ie , its working fine in firefox and chrome , may i know what is the problem or any alternative Thanks
stackexchange/codereview
I have a Rails 3 application that needs to use both Prototype and JQuery libraries. Now I am having problems when it comes to making different kinds of remote calls. I am able to do a remote_function call and return RJS and that works just fine. But, on another page I want to do a form_for :remote => true, but that ...
stackexchange/codereview
Suppose we have a connected and undirected graph: G=(V,E). Definition of connected-set: a group of points belonging to V of G forms a valid connected-set iff every point in this group is within T-1 edges away from any other point in the same group, T is the number of points in the group. Pls note that a connected set...
stackexchange/codereview
I was able to build one application up to this morning, then I don't know what happened as I try to build I have [DCC Error] myunit.pas(1710): E2056 String literals may have at most 255 element` Why this if this was working? (1710) was not edited in last month. I checked with a colleague project options and environeme...
stackexchange/codereview
I'm trying to create a tag cloud and need help in creating a function that can calculate the color needed to apply to each tag link. I have 3 variables: individual tag importance (from 0.1 to 1) largest (most important) tag color (hex code, eg. 'fff000') (hex code) smallest (less important) tag color (hex code)
stackexchange/codereview
Perhaps my brain is not working today but i cant figure out how to create a list from 2 character strings. I've currently got scale_lab [1] "Very Poor" "Poor" "Average" "Good" "Very Good" [6] "Don't Know" and scale_rep [1] "1" "2" "3" "4" "5" "9" So what I want to do is combine the two into a list s...
stackexchange/codereview
I have a UITabBarController with a set of tabs. Some of them, when selected, show you a table. The cells of the table, if touched, bring the user to a detail screen of the object in the cell itself using a "pushViewController". When I click to a different tab, and I am in the detail page, I see the new tab page. And th...
stackexchange/codereview
I've created a tabs using tabhost (Let's called tab "A") Tab "A" is the originator for activity 1 In activity 1, it is containing a button widget Question is .... Is it possible for A to handle more than 1 activities (switching), this is done by pressing the button appeared in activity 1 (I need the switched activity i...
stackexchange/codereview
First time python user here, be gentle.... ;-) Python 2.6 on OSX Got a class which just has some wrappers around sqlite... here it is from pysqlite2 import dbapi2 as sqlite class SqliteDB: connection = '' curser = '' def connect(self): try: self.connection = sqlite.connect("pagespeed.s...
stackexchange/codereview
We've been given a requirement that our new project be JSR 286 compliant so that it can eventually be hosted in SharePoint. But in the same breath we were told that we're not being asked to write a portlet. Just be compliant with the standard. We were originally thinking of using Struts 2 and just writing a normal a...
stackexchange/codereview
I am trying to access height and width of an System.Drawing.Image. Image image = Image.FromFile(PostedImage.ImageUrl.ToString()); int ActualWidth = image.Width; int ActualHeight = image.Height; I am getting error URI formats are not supported. How can this be done?
stackexchange/codereview
I have a space separated string that I want to make into an array. I am using the .split(' ') method to do this. Will the resulting array have those spaces in it? For example if my string is "joe walked down the street" and I performed the method on it would the array look like this ["joe", "walked", "down", "the", "st...
stackexchange/codereview
I'm trying to write a graphical effect where a circle moves around an image smudging the image as it goes (like the way the smudge tool in Gimp or Photoshop would work). The basic algorithm I'm using is: the circle moves from position A to position B on the bitmap copy a circle of pixels from position A into a tempora...
stackexchange/codereview
I have a tableview inside a viewcontroller I would like to edit/delete rows. It is not inside a navigation controller. I have a button set up to call this method: -(IBAction)setEditingStyleOfTable{ [favsTable setEditing:TRUE animated:TRUE]; } The editing buttons appear in my cells correctly, either by tapping that...
stackexchange/codereview
I'm working on an existing modular project that was built in PureMVC. Instead of converting everything over to RobotLegs, I want to create a new module using RobotLegs and plug it into the pureMVC shell. Currently, when the module loads, I get the following flash error: ReferenceError: Error #1065: Variable IMediatorMa...
stackexchange/codereview
I am implementing single sign on and i have the login name and password from the parent site and would like to insert this values in the login and password field of the child site. How can i do this in C#, MVC. as of now i am able to populate the login name using viewdata but i m unable to populate the password.
stackexchange/codereview
I have a JMS queue with a gazillion messages to be processed. I'm going to have a good few listeners that I'm implementing using spring-jms to read from this queue. I'm getting a bit lost on the different ListenerContainers and their possible configurations. My requirements are: Obviously asynchronous processing. No n...
stackexchange/codereview
Whilst working on a Java application I've come across the -XX:+UseGetTimeOfDay parameter on a java command, I can't find much information about it. Firstly, what does the -XX mean, and what would the UseGetTimeOfDay provide? I haven't seen these before and I'm wondering what they do, could it be something specific to m...
stackexchange/codereview
I'm trying to add a ContextMenu to items in a ListBox in WPF; <ListBox.ItemTemplate> <DataTemplate> <Border> <Grid> <Grid.ContextMenu> <ContextMenu> <MenuItem Header = "Menu it...
stackexchange/codereview
I'm working on a library to work with Mobipocket-format ebook files, and I have LZ77-style PalmDoc decompression and compression working. However, PalmDoc compression is only one of the two currently-used types of text compression being used on ebooks in the wild, the other being Dictionary Huffman aka huffcdic. I've f...
stackexchange/codereview
Browsing the boilerplate code at http://html5boilerplate.com/ I'm puzzled at this usage: <link rel="stylesheet" href="css/style.css?v=1">
stackexchange/codereview
I know SQL pretty well for joins and queries, but when it comes to this I have no idea. Can someone take a crack at this, please? How would you create the data in table1 given the data in table2? Write an SQL query. Table1 (csv): order_id1, prod_id1 order_id1, prod_id2 order_id1, prod_id3 order_id1, prod_id4 order_id1,...
stackexchange/codereview
In the script below I iterate through a bunch of products. For each of these I want to add one custom option "Eskestørrelse". Works like a charm on the first product, however for the following products the custom options from the previous products are somehow kept and the product will end up with multiple custom option...
stackexchange/codereview
I'm looking for ways to make developing big server sided JavaScript (I'm working with Node.js) projects a whole lot easier. Basically, the problems I'm facing with JavaScript is that I'm not being warned when I make a syntax error, or when I mix different kinds of object types in the same arrays/variables etc. I was us...
stackexchange/codereview
Was trying to find the best way to use ptr_vector to store, access and release objects, especially when the stored object is inherited from other (ptr_vector should not have any issues with object slicing). But when running the below program, surprisingly the derived class isn't being destructed. Anyone know why? #incl...
stackexchange/codereview
^[a-zA-Z0-9-_. ]*$ for textarea I want to make available the enter as well in the following regular expression. How would I do that?
stackexchange/codereview
Title is pretty self-explanatory. How can I convert an instance of org.w3c.dom.Document to a Scala NodeSeq, to enjoy it's facilitation? Cheers Parsa
stackexchange/codereview
I'm trying to set base to a 2D game with destructible terrain and/or particle effects, scroll, zoom, characters, etc... I'd like to know if there is a graphics library that would support those things in both software and hardware acceleration (need pixel access). I've tried SDL (even with DirectX back-end), but it seem...
stackexchange/codereview
This question is about the linux utility screen. I'd like to make a script to launch a program in screen then detatch it automatically after it starts. I've got the script starting screen, starting the command in screen, but my question is now how do I detach it? Thanks
stackexchange/codereview
First of all, I'm new to Objective-C and IPhone programming. There is somehing I can not get to work. I have a IPhone window application and in the MainWindow I have a button. I want to show another window when I click the button. I've bind the event with my controller. I just don't know how to show my other window ...
stackexchange/codereview
I tried many things but i'm asking for your help because i'm doing stupid things now ! here is what i want to do. I want to transform a html file (i'm not composing) to another. I want to move some parts of the body to div. Here is the original one : <body> text+images part 1 <div class="sep">some text</div> tex+images...
stackexchange/codereview
I've noticed that Exception.pm and Error.pm don't seem to be extensively used in the Perl community. Is that due to the large footprint of eval for exception handling? Also Perl programs appear to have a much more lenient policy regarding exception handling in general. Is there a compelling reason for this? In an...
stackexchange/codereview
Helo I use this code: cur = $('input:radio'); cur.wrap('<span class="customRadio"></span>'); what i must to do to acces the '.customRadio' element? I already tried: cur.parent('.customRadio') and $('.customRadio')
stackexchange/codereview
I have the following two models: class Project < ActiveRecord::Base has_many :photoalbums end class PhotoAlbum < ActiveRecord::Base belongs_to :space end routes.rb: resources :projects do resources :photo_albums end What I'm trying to do in the Controller is get a list of all the project's photoalbums: class P...
stackexchange/codereview
I've created a bare bones example to try and figure out why the data being sent to the printer is so large. I'm sending one text box with "Printing text." as its content. This results in ~90MB being sent to the printer. Why is this so large? Can someone please explain how I can avoid this? Here is my example <Stac...
stackexchange/codereview