instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have three questions surrounding what I think is the topic of structs in obj-c 1) Why is it that I often (or always) cannot take a member var that is a CGPoint or a CGRect and set the values one by one? I find I have to do: CGPoint point; point.x = someValue; point.y = someOtherValue; obj.myPoint = point; instead of...
stackexchange/codereview
Here's what I'm trying to do: private void DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) { } private void Button_ConnectSend_Click(object sender, RoutedEventArgs e) { System.IO.Ports.SerialPort SerialPort_Painter; SerialPort_Painter.DataReceived += DataR...
stackexchange/codereview
I'm implementing a tag system similar to StackOverflow tag system but I just wonder How-to get related tags and define the relationships weights between tags like the list of "Related Tags" in any tag page like this https://stackoverflow.com/questions/tagged/php they define the relationship weight by the co-occurrence ...
stackexchange/codereview
I was asked by my friend to find long running queries (more than 5 second) on his oracle database. He wanted to do some sort of polling after a periodic interval and wanted to send himself an alert so that he knows which query are taking so long to execute and send query and corresponding session to him. I wrote this O...
stackexchange/codereview
This must be possible but I just can't figure it out in Eclipse. I have /** ClassA.java */ class A { ... } class B { ... } and I'd like to select class B and extract to its own file so that I get: /** ClassA.java */ class A { ... } and /** ClassB.java */ class B { ... } How do I do this in Eclipse?
stackexchange/codereview
My controller can respond to html, xml and json requests: respond_to do |format| format.html # index.html.erb format.xml { render :xml => @people } format.json { render :json => @people } end In my RSpec tests I normally do requests with get or post methods, e.g. get :index, :format => "json". And ...
stackexchange/codereview
I am creating an xml and .blm file from one set of data, I am taking text data in iso-8859-1 and converting it to UTF-8 using $desc = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $desc); This works great for the XML, but those getting the BLM have asked that it be in ANSI. How can I convert the .blm file to ANSI, is there ...
stackexchange/codereview
I tried to use cargo-maven2-plugin to automate my WAR module deployment for testing. I wonder how can I start the tomcat server (pre-installed in my machine) and deploy my war to the started server automatically? Documentation from Cargo project mentions that cargo:start goal can optionally deploy deployables: http:/...
stackexchange/codereview
I have a value that's defined in application.ini conditions.time= 50 How can I read it in an zend action the zend way?
stackexchange/codereview
I was wondering why Nullable<T> is a value type, if it is designed to mimic the behavior of reference types? I understand things like GC pressure, but I don't feel convinced - if we want to have int acting like reference, we are probably OK with all the consequences of having real reference type. I can see no reason wh...
stackexchange/codereview
This code works in FF, Chrome, IE6/8 but not in Safari and Opera. Any ideas why? Here is the code: var name = $('#esm').val(); var email = $('#nam').val(); var message = $('#med').val(); var ad_id = $('#i_d').val(); var data_string = 'esm='+ name + '&nam=' + email + '&med=' + message + '&i_...
stackexchange/codereview
Hey, I'm new to Objective-C and as well as programming with Cocoa at all.. anyways my code looks like: int main(int argc, char *argv[]) { printf("how many address would you like to input?\n"); int numAddresses; scanf("%i", &numAddresses); char *inputString; NSMutableArray * arrayOfBooks = [NSMutableArray array]; for (...
stackexchange/codereview
I need to have relatively slow moving image on home screen (some like live wallpaper) and I'm wondering, whether Android animation classes are good for that in terms of CPU load? My concern is that android animation running constantly at the top frame rate and sometimes it produces the same X,Y coordinates several cycl...
stackexchange/codereview
I want to provide the user with a selection of questions but I want them to be random, having a quiz game with the same questions isn't exactly fun. My idea was to store a large collection of questions and there appropiate answers in a text file: What colour is an Strawberry|Red How many corners are there on a Triangle...
stackexchange/codereview
I have a question on linq to nhibernate. I need to create a query in which I could use string comparison: session.Linq<User>() .Where(u => String.Compare(u.Name, givenName) < 0) .ToList() Do I understand correctly that this is not supported in linq-to-nhibernate? Is there a way to use string comparison i...
stackexchange/codereview
I'd like to be able to get the current date/time (timestamp) from the DB sever I have a Connection to, regardless of the DB. (Ideally, I'd like something that works for Oracle, DB2, SQL Server, and Postgres). Searching the internet, I've seen allusions to the LOCALTIMESTAMP function and to NOW() and to CURRENT_TIMESTAM...
stackexchange/codereview
here i am giving my javascript which is working fine for IE but not working properly in FireFox. so please tell me what to change in my javascript to run it properly in firefox too. here is my code <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title>Untitled Page</title>...
stackexchange/codereview
I extended a JPanel for using it as a canvas for drawing. In the Handler class (the handler for the canvas) I have this code:- public void mouseDragged(MouseEvent e) { endingPoint = e.getPoint(); repaint(); } public void mousePressed(MouseEvent e) { startingPoint = e.getPo...
stackexchange/codereview
I'm very bad with css, and I can't get this layout looking good: Maybe you can help me with the code because mine is a complete disaster. I made that image in order to help you to understand what I want. Thanks a lot for any help or code (better a code).
stackexchange/codereview
For a Windows Phone 7 app, I have created an application bar which is common for all my pages and is defined inside App.xaml For eg. the buttons are Home, Help, About Now, when I start my application, the default page is Home.xaml and the application bar is displayed. When I click Help or About buttons, the navigation...
stackexchange/codereview
I am trying to do some image rectification using OpenCV .I got some code from http://permalink.gmane.org/gmane.comp.lib.opencv/14644 but the problem is the moment I include CvCalibFilter in my code it starts to give me linker error.More precisely this is what it says :- : error LNK2001: unresolved external symbol "pu...
stackexchange/codereview
I wonder if there is a way to display the current time in the R command line, like in MS DOS, we can use Prompt $T $P$G to include the time clock in every prompt line. Something like options(prompt=paste(format(Sys.time(), "%H:%M:%S"),"> ")) will do it, but then it is fixed at the time it was set. I'm not sure how t...
stackexchange/codereview
I have few settings in userdefaults and lots of files in my documents folder. When i give the 2nd version of the app to itunes connect folks what will happen to these 2 contents. I verified it using a small experiment using developer license and it works fine. Can you get me a authentic iOS developer link which says t...
stackexchange/codereview
i'm just starting up with a web app using nitrogen and everything is going well. But i also want my app to interface with a riak db that i set up and i'm having some trouble. I'm confused as to how I "include" the erlang client interface so that my code in nitrogen can access it. (https://wiki.basho.com/display/RIAK...
stackexchange/codereview
There's an ongoing debate of the best use of the new <nav> tag in HTML5. I am researching the use of the <nav> element in the wild, and while I've found some sites using HTML5, I am curious to see if any major site is using it. By major I mean household name. If you could point any out it will be appreciated.
stackexchange/codereview
I have a Silverlight 4 app that I'm building with Visual Studio 2010. I'm using Mercurial/TortoiseHG to do version control. Which files do I need to check in? By default, it checks in all sorts of .dlls in /bin/debug and stuff. Do I really need those? Or can I just grab code and content files? Do I need to version some...
stackexchange/codereview
Its like I have multiselect option in Jqgrid in which i want to pass the selected rows value to the server and based on the value i will delete the rows. I dont want to have the ids to do my work. For the Single row i get the cell value and delete using the same. But for multi select its not the case. In getGridParam('...
stackexchange/codereview
When looking at the reshape examples in the redbook, I usually find something like: void reshape(int w, int h) { glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glFrustum(-1.0, 1.0, -1.0, 1.0, 1.5, 20.0); glMatrixMode(GL_MODELVIEW); } I understand that...
stackexchange/codereview
Im wondering about how to go about this. I have a class User.class.php that goes something like this class User { protected $db; protected $username; protected $userid; protected $firstName; protected $lastName; public function __construct(PDO $db, $username){ } public ...
stackexchange/codereview
UPDATED CODE at the bottom I am creating a story voting app via Simply Rails 2 book. I am getting this error when I click the button to vote up a story: No route matches "/stories/4-pure-css-icons-showcase" My routing file looks like this: Shovell::Application.routes.draw do get "votes/create" root :to => "stories...
stackexchange/codereview
I'm creating simple comment-like application and need to convert normal urls into links, image links into images and yt/vimeo/etc. links into flash objects. E.g.: http://foo.bar to <a href="http://foo.bar">http://foo.bar</a> http://foo.bar/image.gif to <img src="http://foo.bar/image.gif"/> etc. Of course i can write a...
stackexchange/codereview
I'm trying to get some sample code to work happily with OpenMS and running into a great deal of trouble. I have (just a small sample program that shipped as an example): #include <OpenMS/FILTERING/SMOOTHING/GaussFilter.h> #include <OpenMS/FORMAT/MzMLFile.h> #include <OpenMS/KERNEL/StandardTypes.h> #include <stdio.h> u...
stackexchange/codereview
I am trying to get a div to increase in height but moving upwards instead of downwards, this happens almost every second (on a realtime event): height++; $("#bar").height(height); But right now the top of the box stays in the same position while the bottom of the bar goes down. I want the bottom of the bar to stay w...
stackexchange/codereview
in one of my forms, I have used the following code for adding Mate Listeners <mate:Listener type="{DBEvent.Update_Result}" receive="{onUpdateResults(event)}"/> I am displaying this form as a popup. What happening is, for the first time, onUpdateResults method executed only once as expected. Then i close the popup and ...
stackexchange/codereview
I am developing an application using the Vaadin framework with Maven2. Personally I do not want to go with GAE. I am currently using a Tomcat 6.0 app server for my application. How about Jetty? What are the differences between Tomcat in Jetty in terms of setup, performance, stability, etc.? Which one is supported b...
stackexchange/codereview
I'm writing a program that (amongst other things) provides an IDE-like environment for the user where they can select one or more objects with a rectangualr selection tool. All selections will be a simple rectangle, and all selectable objects will be simple rectangles as well. I already have the code (VB.Net) to create...
stackexchange/codereview
If I want to create online phone for small office with web client (through Astrisk/Adhearsion) how can I stream IN/OUT audio right in my browser (like GTalk do). Preferably without Java applets and without Flash. I need to get voice stream from Astriks call, stream it in browser, receive audio from mic and send it back...
stackexchange/codereview
I'm using the jquery timeago plugin in my Rails 3 application. I have a comments section on my posts#show view that automatically refreshes every 30 seconds with the AJAX used in Railscasts episode #229 "Polling for Changes". The _comment partial that is loaded by jQuery contains the created_at time of the comment whic...
stackexchange/codereview
I need a way to inspect a class so I can safely identify which attributes are user-defined class attributes. The problem is that functions like dir(), inspect.getmembers() and friends return all class attributes including the pre-defined ones like: __class__, __doc__, __dict__, __hash__. This is of course understandabl...
stackexchange/codereview
I have a little problem, I am building a database from CSV files using a Java application connected to the mySQL database. CSV is ISO-8859-1 encoded. It is read via a buffered file reader and parsed with String methods. Then the strings are introduced to mySQL via JDBC driver. Problem is: accents (this is a french appl...
stackexchange/codereview
I am trying to get offset position of an object which is not on screen. For example, I have a scroll which display two html pages, I want to draw lines on second page which is not on the curent screen. When i try to get offset it return me NaN. Anyone have any idea how to get the positions of object which is not on scr...
stackexchange/codereview
My team just finished a huge project. We're going to present it to class in a week, and want to add some interesting stats. Is there any way to find out how many times we've compiled the code over the last X days? Thanks
stackexchange/codereview
I have written the following code: public class NewClass2 implements Comparator<Point> { public int compare(Point p1, Point p2) { return (int)(p1.getY() - p2.getY()); } } If I let's say have two double numbers, 3.2 - 3.1, the difference should be 0.1. When I cast the number to an int, however, the ...
stackexchange/codereview
I'm new to OOP and I'm confused about this following line on chapter 6 of head first iphone development: addDrinkVC.drinkArray = self.drinks the purpose is to assign the self.drinks NSMutableArray to another NSMutableArray in modal viewController addDrinkVC. But why when you added an object into drinkArray in modal vie...
stackexchange/codereview
I have to use regular expressions in a c# application and I try to use it as a string to use regex.match method. My regular expression is like id="(tt[0-9]+)\|imdb and I convert it to string like "id\"(tt[0-9]+)\\|imdb" but it doesn't work. Do you have any solutions or applications that convert regexes to strings??
stackexchange/codereview
I'm planning to buy a workstation to run my matlab data analysis scripts. I am planning to increase the system memory from 6 GB to 24 GB. I am considering whether I should buy a 6-core processor, a dual 4-core, or a dual 6-core. (Right now I have a 2-core processor). Right now I have significant delays in what I b...
stackexchange/codereview
I checked the link at Asp Button hover and CSS but to my frustration, I still couldn't find a solution to apply CSS to the hover state of my ASP.NET button. My button is declared like so: <asp:Button ID="btnRegister" runat="server" onclick="btnRegister_Click" CssClass="btnRegister"/> My CSS for t...
stackexchange/codereview
i wanna download files in my application , so i used threads to download , but i found that if i close application , the downloading stopped. should i use 「service」 to implement downloading?? or something else ?? could someone give me suggestions?
stackexchange/codereview
How can I check if the request is a post back in PHP, is the below ok? if (isset($_POST["submit"])) where submit is the name of the <input type="submit" />
stackexchange/codereview
So I'm trying out JSON for the first time. I have this Twitter API feed that I'm trying to output. Just curious to where I'm going wrong. Attached is my code. <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-1.4.4.js"></script> </head> <body> <ol class="result"></ol> <script> ...
stackexchange/codereview
I am using Entity Framework as a Model and WinForms as a View. I have one combobox with Car Company and listBox with car models. I created two BindingSources: CompanyBindingSource and ModelBindingSource. For CompanyBindingSource I set my Company entity as a DataSource ModelBindingSource Model entity as DataSource (a...
stackexchange/codereview
I want to initialize a vector in an initialization list of a constructor. The vector consists of objects with a parameterized constructor. What I have is: Class::Class() : raster_(std::vector< std::vector<Cell> > (60, std::vector<Cell>(80))) { ... How can I call Cell::Cell with two parameters in the above line? Th...
stackexchange/codereview
I'm implement Comet in asp.net, and I'm using asynchronous post back to keep request alive in server. But I don't know how long can keep a request alive in server, Some guys said that need to end async request because server will alert 404 error if I keep the request too long. How long can I keep async requests alive i...
stackexchange/codereview
For example: an array of varying-length arrays of integers. In C++, we are used to doing things like: int * * TwoDimAry = new int * [n] ; for ( int i ( 0 ) ; i < n ; i ++ ) { TwoDimAry[i] = new int [i + n] ; } In this case, if n == 3 then the result would be an array of three pointers to arrays of integers, and w...
stackexchange/codereview
I am looking for a floatable div for Google Maps Street View? I can move it around the page/close it. Thanks.
stackexchange/codereview
Think an iPhone-based email client. You have three 'states' with the same UI: New Message, Reply and Forward (ignoring any others). I'd like to have one view and have different View Controllers interfacing with the view. Given that the view is built in Interface Builder (with quite a few IBOutlets and IBActions), what ...
stackexchange/codereview
My application uses a database and at the beginning I want to check if the database is already copied to the documents directory. If it isn't it is supposed to be copied there. What might be wrong with the code below? It worked fine for me until this morning... For some reason the database that is created in the docume...
stackexchange/codereview
How does Python evaluate the following expression? anim1 gets executed after anim2. How does a simple + operator that? anim1 = Animation(duration=1, center=(100,100) type='delta') anim2 = Animation(duration=1, rotation=45 type='delta') anim = anim1 + anim2
stackexchange/codereview
What is this error? 1.hs:41:30: Couldn't match expected type Eval [a]' against inferred type() module Main where import Control.Parallel(par,pseq) import Text.Printf import Control.Exception import System.CPUTime import Data.List import IO import Data.Char ...
stackexchange/codereview
I'm looking for a way to merge multiple PDF files into one with VBScript, only with Acrobat and Distiller - without using any third-party software. Although I really searched hard for a solution on the web, I couldn't find one. Can someone please help me out here? Thank you! S.
stackexchange/codereview
I got skia native crash when return ~SkSpriteBlitter(), below is the tombstone and stack trace. Does anyone get this issue before? [tombstone] signal 11 (SIGSEGV), fault addr 00000000 r0 bec3a434 r1 ab248078 r2 ab248080 r3 ab2494dc r4 bec3a558 r5 bec3a434 r6 002ae6b0 r7 bec3a558 r8 00000000 r9 bec3a5e8 10 be...
stackexchange/codereview
Wondering if it's possible to process HAML from database entries. My model currently processes HTML just fine, but I'd rather input HAML, and have the view process it into HTML.
stackexchange/codereview
I have a web application that handles employees work sheets. They have username/password combinations assigned to them from an admin. The passwords are salted and hashed individually. The problem is, they are all being assigned the same password by the admin. This is obviously a security problem. I don't want to error ...
stackexchange/codereview
I'm using an IFRAME to let multiple sites embed one interactive element. On the IFRAME's actual page it works fine, and it looks fine on another website I embedded it. But when I embed it in a WordPress blog, all my apostrophes show up as squares. I tried removing all smart quotes and apostrophes with "dumb" quotes, no...
stackexchange/codereview
Are there any libraries that work in Objective C for zipping entire folders (and decompressing them)? I have looked at some of them by searching but they look like they require adding files individually and some of them supposedly crash... It looks like this library might work: http://bitbucket.org/dchest/osxzip/overvi...
stackexchange/codereview
I want to create a Log file in MFC that should write to log file everytime it should append the logging details , it should not overrite the exisiting details.And there should be some size limit like if after this much size a new file should create. How to achieve this? any help is appreciated. Thanks.
stackexchange/codereview
I am using the Android G1 default web browser, and I am developing in JavaScript - I have trouble getting the real visual width and height when I zoom in or out on a web page. It seems that I am getting the wrong value out of window.innerWidth, when I am zooming in/out. What I am trying to do is - showing an element on...
stackexchange/codereview
Any way I can know the length of the response stream so I can show the user a percentage progress of download instead of an indeterminate one? I find that the Response looks like below, non seekable and with no length
stackexchange/codereview
I need to consume the WCF from my windows phone app and it creates the proxy with the need of using System.Data and Servicemodel.XmlSerializerFormatAttribute. I can't see a way to add this namespace into this windows phone app? please help?
stackexchange/codereview
Hey. I have the main access database located on a stand alone PC off the network and i have a access database with linked tables on the network linked back to the stand alone PC. I have linked the tables by creating a network share to the stand alone PC and linking them though a path. Can i set it up so that when the d...
stackexchange/codereview
In my autogenerated ~/src/main/ folder, I have a folder called 'frontend' with my Java UiBinder file and my .ui.xml UiBinder file. How do I make STS/Roo run this instead of ApplicationScaffold.html? Furthermore, what am I supposed to do with ApplicationScaffold? It seems useless.
stackexchange/codereview
I. Introduction I am opening and reading from a file, sending chunks of data through a TCP socket as I read. SENDER CODE byte[] buffer = new byte[16384]; while ((in.read(buffer)) > 0) { SendProtocol(new FileTransfer(sender, receiver, buffer); } RECEIVER CODE if(o instanceOf FileTransfer) FileTransfer tf = (Fi...
stackexchange/codereview
I recently decided that I'd like to write an application that would be an open source alternative to some of the closed source ram dump applications on the market; primarily as a learning experience. But I'm not entirely sure where to start (for Windows machines). I guess that I'd have to iterate through memory using a...
stackexchange/codereview
I am using the yahoo media player on my site to play audio files. http://mediaplayer.yahoo.com/ On the same page I have a video player, and when someone clicks on a video to play, it plays it in the yahoo player and not in the video player on the page. Does anyone know how I can exclude videos from playing in the yaho...
stackexchange/codereview
I have a Grid element that has two columns and three rows. The last row has a height of 0... and I animate the height property using a custom animation class because the gridheight property isnt an integer.. The animation works just fine, but when I activate it, it changes the width of the second column seemingly rando...
stackexchange/codereview
I'm just getting started with android development, and I've ran into some problems my textbook isn't helping me with. This is my insert function: public long insertEntry(BudgetsItem item){ assert item.id == -1; ContentValues newBudgetValues = new ContentValues(); newBudgetValues.put("name", item.nam...
stackexchange/codereview
Consider I have a procedure with Str parameter passed by reference, and I want to modify content of the given variable through the procedure, e.g. procedure Replace(var Str: string); var PStr: PChar; i: Integer; begin PStr := @Str[1]; for i := 1 to Length(Str) do begin PStr^ := 'x'; Inc(PStr); end; en...
stackexchange/codereview
We are currently working on a chat + (file sharing +) video conference application using HTML5 websockets. To make our application more accessible we want to implement Adaptive Streaming, using the following sequence: Raw audio/video data client goes to server Stream is split into 1 second chunks Encode stream into va...
stackexchange/codereview
I am very new to MySQL. Linux. I want to create a database in MySql and using a C program I would like to populate the data from a text file into the database. I couldnt find much information on this :( Is there any clear material on this? Can somebody please point me to the right direction? Thanks.
stackexchange/codereview
Today I installed Ubuntu and Lazarus IDE (Delphi style cross-platform IDE). I don't know anything about the file structure of Linux Operating Systems. Do you know some tutorials that can get me started specially with Lazarus, and does Linux have modules and API's or how does it work?
stackexchange/codereview
How to get the currently selected node when click a button? ('#tree').jstree({...}); ('#button').click(function(){ :selected_node? }) How to refresh a node when click a button? ('#tree').jstree({...}); ('#button').click(function(){ :refresh? }) I would like to pop up a window to confirm a node is deleted. If 'c...
stackexchange/codereview
I have successfully set up a friendship self referencial association for users in my Ruby on Rails app after following Ryan Bates' railscast. I can successfully follow, unfollow, and view who is following. Now I want to pull in another element and I am not sure how to do it. When visiting a user/show page of a user tha...
stackexchange/codereview
I've been using rel to store some non-html information, what other attributes are not commonly used that I can utilize to store information?
stackexchange/codereview
I am currently using PayPal's Website Payments Standard to accept credit cards on my website. It is not currently the best option for me because people have to leave my website to enter their credit/debit card details and then return to my site after PayPal has processed their information. What I am looking to do is up...
stackexchange/codereview
I have written a clean app (Hello, World) which builds correctly using Debug|Simulator and Release|Simulator configurations. When I try to build using any of the Release configurations, it errors out, saying "No output". Where do I start looking? (it can't get any simpler than Hello, World, can it?)
stackexchange/codereview
I work at a small Web Dev firm, and have been handling all the PHP/MySQL/etc. for a while. I'm looking at improving our practices to allow for easier collaboration as we grow. Some things I have in mind are: Implementing a versioning system Coding standards for the team (unless mandated by a certain framework, etc.) E...
stackexchange/codereview
I'm using NHibernate for the first time but wanted to be able to avoid config files if possible, by using NHibernate Fluent. I've got a project setup and I'm trying simply query for an adress object using the following [TestMethod] public void TestMethod1() { var cfg = Fluently.Configure() .Database(MsSqlCo...
stackexchange/codereview
Let's say I randomly generate a number 0 to 100. Where 0 is really cold and 100 is red hot. Wen the number hits, it would show an image bar (kind of like a % finished bar) that shows in the image what # you hit. So it would kind of be like a progress bar from 0 to 100, and whatever # they hit it shows in the image of...
stackexchange/codereview
I am using Visual Studio 2010 Professional Edition. The application is a WPF application for .NET 4.0 Client.
stackexchange/codereview
I'm migrating a legacy system over to use Hibernate 3. It currently generates its own identifiers. To keep with what the system currently does before I try and move it over to something a little better, how would I go about specifying (using annotations) my own class that will return the custom generated identifiers ...
stackexchange/codereview
I'm trying to integrate prettyPhoto jquery plugin with jsf and don`t know how to call prettyphoto function. When the document is loaded I want to show photo gallery when user cliks on the image. I have written a code like this: <script src="/iHome-war/js/jquery.js" type="text/javascript" charset="utf-8"></script> <li...
stackexchange/codereview
What is the query used to view the topmost process which is having maximum usage of CPU using WMI?
stackexchange/codereview
How can we prove that Job Scheduling Problem with penalties is in NP?
stackexchange/codereview
I'm a Python programmer with experience in wxPython, and I'm learning Haskell and having a go at coding up a small GUI project in wxHaskell. One feature from wxPython that I have not yet figured out how to duplicate is PyEmbeddedImage - where images can be stored as strings inside Python modules, and then accessed from...
stackexchange/codereview
I'm looking for an answer from those who have experience with complex real world enterprise n-tier applications. How many physical tiers (distributed to separate machines) exist in practice in enterprise apps beyond the obvious 3? What technlogies are mostly used for inter-tier communication, both in Java EE and .NET w...
stackexchange/codereview
I have a PHP script that loops through some urls. The urls are stored in urls.txt, and it needs to call the php script like php urlcheck.php LINE_FROM_urls.txt When it reaches a set number of processes, I want it to sleep for 5 seconds, like this COMCHECK=`ps aux | grep -c php` while [ $COMCHECK -ge 150 ];do COMCHECK=...
stackexchange/codereview
I am trying to run pydb 1.26 from emacs on a MinGW environment running in windows 7. The python I am currently running is python26 although I have tried this with python25 with the same results. Reading the documentation and looking at the video seems to indicate that in order to start using pydb with GUD all I have t...
stackexchange/codereview
Recently Eclipse started showing this error in its Error Log: Error validating C:\android-sdk-windows\tools\lib\devices.xml I also noticed, when editing XML layout files (layout mode) all the dropdowns for Devices, Config and Locale are empty. I remember befere I used to be able to select various devices sizez, orie...
stackexchange/codereview
I have a problem with Reflection.Emit. I want to have dynamically created class, that has simple implementation of ICollection. All methods I've defined fine, instead of next two: public IEnumerator GetEnumerator() & IEnumerator IEnumerable.GetEnumerator() Next code shows what I want to be in my dynamic class: public c...
stackexchange/codereview
I just can't get this: how in the world can I "shut down" imagePickerController on xcode? This is the code that opens the camera, and it works perfectly.. -(IBAction) startcamera { imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypeCame...
stackexchange/codereview