instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have several images in a directory which is located outside of the public facing portion of the server (outside of the public_html directory). I want to be able to read the image contents with a php file, then output the result to html. For example, I have a php file called getimg.php with the following source code:...
stackexchange/codereview
I'm trying to use FileChooserDialog to get a native gnome dialog box in a python script. After the script executes, my ipython -pylab prompt experiences a significant slow down. This problem also exists from a plain python prompt. I've isolated the problem to the dialog box. The following example (which has been po...
stackexchange/codereview
Hi I am working on web-services getting data from web-service. Data is in xml formate. i parsed data and display on my require Outlets. Every thing working great. I want to work same parsing in different way. Is there any alternative way to fetch data from web service. Or Xml parser is best among the other. Help me o...
stackexchange/codereview
I have a standard Django application we're using to manage a database of articles from various publications. Anyhow, we're currently having issues getting permission to get the server infrastructure in place to deploy this. One option tossed was that we could make the Django app a desktop application, accessing a remot...
stackexchange/codereview
I am working on a program that has somewhat focus on the below: unit-length closed interval on the real line is an interval [x, 1+x]. For given input set X={x1,x2,..., Xn}, x1 < x2 <...xn, how can i determine the smallest set of unit-lenght closed intervals that contains all of the given points and how i calculate tim...
stackexchange/codereview
i've never been this frustrated in my life. cant even do the basics here.. just need to make a simple tic tac toe program. i feel so alone in this world right now.. i get the basic idea, but can't put it together logically. Class instance variables: private char[][] board; private char player; // 'X' or 'O' Methods: ...
stackexchange/codereview
While attempting to drop a database in MySQL, an error message appears: MySQL said: Documentation # 6 - Error on delete of './bedrock/grouprec.MYI' (Errcode: 13 I was logged in as root user with all privileges. What's the cause of this error, and how can this be remedied?
stackexchange/codereview
I want to create an in-memory definition for a set of airline routes for a small airline company. I want to maintain a list of all of my planes and their current locations (or their destination location if they are currently in the air). One of the possible locations needs to be “hangar” for maintenance or repairs. ...
stackexchange/codereview
I am attempting to write a program that doesn't use pthreads or semaphore libraries. I want to do some synchronization with signals. I have read about them in a few Unix books, but I still don't quite get it. I wrote up some mock program design/code, this isn't my program but it gives an idea of how I am trying to orga...
stackexchange/codereview
in my tomcat startup, i set -xms , -xmx to 1GB. inside visualvm when i monitor memory when i do sampling of memory, it doesnt show accurate memory usage, until, if i press 'snapshot', and then the java classes that utilizing memory showing correct patterns and instances count. why like this? also, as i set tomcat m...
stackexchange/codereview
For example if I have the following HTML: <div class="someDiv"></div> and this CSS: .opacity { filter:alpha(opacity=60); -moz-opacity:0.6; -khtml-opacity: 0.6; opacity: 0.6; } .radius { border-top-left-radius: 15px; border-top-right-radius: 5px; -moz-border-radius-topleft: 10px; -moz-b...
stackexchange/codereview
I'm especially interested of windows, mingw. Thanks. Update: First, I thought everyone is familiar with string interning. http://en.wikipedia.org/wiki/String_interning Second, my problem is in detail: I knocked up a string class for practice. Nothing fancy you know, i just store the size and a char * in a class. I use ...
stackexchange/codereview
Short version: In my mobile web app I want to always detect the viewable area of the screen (e.g., the space between the top of the soft keyboard (if present) and the bottom of the titlebar), so I can adjust my layout, without zooming, and keep the page completely visible on-screen at all times. Is there any reliable ...
stackexchange/codereview
I'm having trouble appending to a list in this scheme function. The function is meant to take in 2 arguments, and return a list consisting of the 2nd elements the number of times specified in the 1st element. For example, if you call (make-list? 5 4) your output should be (4 4 4 4 4). The problem is when I use cons, ...
stackexchange/codereview
In the equals() method of my class, I am using a private instance HashMap variable to compare for the equality. However, 2 different objects still show being equal when comparing their HashMap variables. Further research brought me to the link : Link Here . However, it just says that the reason for HashMap1.equals(Hash...
stackexchange/codereview
I'd like to call a method being compiled with /clr:oldsyntax (Managed Extensions for C++ syntax) from c++ code being compiled with /clr (C++/CLI). However, I'm having trouble forward declaring the method in C++/CLI such that it matches up to the "Managed Extensions for C++" signature. The declaration in the version usi...
stackexchange/codereview
If you link a form and a JavaScript object array together with Microsoft's JQuery linker plug-in, is there any way to have it set a "dirty" flag in the object properties to let you know that data hasn't been saved yet? This code comes from here. var myRecords = {}; $("#RecordTemplate").tmpl(myRecords[0]).link(myRecords...
stackexchange/codereview
I have a solution with 50 projects. There are times when I just modify a single class file in a project and I just get a single new DLL. But there are times when that single project is referencing other projects and those projects are referencing other projects so when I make a small change in one class in one project,...
stackexchange/codereview
I'm working on a large WPF project using MVVM. We're currently still deciding the extent to which we'll use code-behind, but so far we've gotten along fine with none at all (except for InitializeComponent on windows). However, I recently started using typed DataTemplates to apply views to my view models, and it seems...
stackexchange/codereview
I've got the following routes.php configuration Router::connect('/:type/:slug;:id', array( 'controller' => 'content', 'action' => 'show', 'type' => null, 'slug' => null, 'id' => null, ), array( 'type' => '(articles|releases|answers|videos)', 'slug' => '[a-...
stackexchange/codereview
It seems the "default" data returned by UIDevice batteryLevel is in 5% increments. How do I get it to 1% or finer?
stackexchange/codereview
I have 2 website on my IIS which have the same physical location on disk. Example: www.xxx.com path on disk : c:\www\xxx.com img.xxx.com path on disk : c:\www\xxx.com I want that img.xxx.com only response for static files like images, css and js files. My main goal is to serve static files from a cookieless doma...
stackexchange/codereview
Is there a way to do this? I would like to know how many bytes were read from a NetworkStream when I call DeserializeWithLengthPrefix. Since NetworkStream does not support the Position property I cannot see a simple way to do this. Can this be done in a reasonably efficient way? I need to know this for profiling purpos...
stackexchange/codereview
I am new one to develop iphone App. so help me to found out error in crash log. In crash log contains only library or framework. Help me to found out crash line .
stackexchange/codereview
Does anybody know where I can get the vsdoc for jQuery 1.4.3? Alternatively, what changes do I need to make to jQuery 1.4.2 vsdoc file to add the new functions in 1.4.3?
stackexchange/codereview
I've created an Event Handler/Listener like so: import flash.events.Event; public class DanielEvent extends Event { public var data:*; public static const APP_STARTED:String = "APP_STARTED"; public function DanielEvent(n:String, data:*){ this.data = data; super(n) } } Listening to an...
stackexchange/codereview
I have an algorithm, and I want to figure it what it does. I'm sure some of you can just look at this and tell me what it does, but I've been looking at it for half an hour and I'm still not sure. It just gets messy when I try to play with it. What are your techniques for breaking down an algoritm like this? How do I a...
stackexchange/codereview
I'm new in Oracle and I really don't have a clear idea how to do this. The database is this one... CREATE OR REPLACE TYPE personUdt4 AS OBJECT( pid varchar(11), firstName varchar(20), lastName varchar(20), dob date) NOT FINAL; / CREATE OR REPLACE TYPE locationUdt4 AS OBJECT( street varchar(30), bldg varchar(5),...
stackexchange/codereview
What are the ways of accessing web services on a BlackBerry device? I've learned about XML for webservices. We use SAX and DOM parsers in Blackberry. Are there any more ideas like this? I also want to know what KSOAP is and how to use it on BlackBerry.
stackexchange/codereview
Here is the schema: Student(Snum, Sname) Course(Cnum, Cname) Prerequisite(Cnum, Prereq) Professor(Pnum,Pname, Dept, Office) Enrollment(Snum, Cnum, Term, Section, Mark) Schedule(Cnum, Term, Section, Days, Time, Room) Class(Cnum, Term, Section, Instructor) The full question is: Find professors (Pnum, Pname, Dept) who...
stackexchange/codereview
I'm using jquery hotkeys to bind and run a function when the user taps their right arrow key. When jquery hotkeys detects the right arrow being hit on the keyboard, I want jQuery to click the next pagination link. For some reason this isn't working. I've confirmed pagination works. Also confirmed the selector looks goo...
stackexchange/codereview
So I have an ASP.net application, with an ActiveX Control which brings up a pop up When I point to the application directly through IP there is no problem with the pop up eg. xxx.xxx.xxx.xxx/MyApp (under Default Website in the IIS -- IIS 7) Problem arises when I set up the IIS to point it to a domain xxx.xxxxx.com w...
stackexchange/codereview
I want to test the installation/deployment of my software on a variety of Operating Systems. Is my only choice to do the following? Purchase VMWare Workstation Purchase the discs for each of the operating systems I want to test against
stackexchange/codereview
Possible Duplicate: How to find out about the User Agent in GWT I am trying to write browser specific code. Is there a GWT API to find out which browser the client is using?
stackexchange/codereview
I have stored procedure which executes another stored procedure several times. I need union and return data, which I have after executing second procedure. Can I in some way union data from several cursors into one another cursor? It is possible without temporary tables or table-like datatype? EDIT: Cursor count for u...
stackexchange/codereview
i need help on coding javascript to detect the up and down arrow key hits and do an event on each key hit, without changing the cursor position of a focused textfield kinda like the stack overflow tag chooser Thanks again for any help
stackexchange/codereview
maybe i dont know delphi all that well, however i wish to ask you: at this site : http://blogs.teamb.com/joannacarter/2004/06/30/690 i found an implemetation of observer pattern based on iterface. when doing attach , there is a call to this: procedure TSubject.Attach(Observer: IObserver); begin if fObservers = nil ...
stackexchange/codereview
Iterating over a NULL terminated string using for_each is possible: const char *name = "Bob"; void func(const char &arg) { cout << arg; } int main() { for_each(name, name + strlen(name), func); } Is something similar possible for a NULL terminated list of strings (without having to determine the total length ...
stackexchange/codereview
What kind of icons can be used to show an object specific state e.g. user who has just been created, user who has been activated so that he can use the portal, user who has been removed from the system e.g an object which has just been created and still in the draft stage and an object which has been activated or de-a...
stackexchange/codereview
in my application all jsp pages in jsps folder i give the path in index.jsp:<% response.sendRedirect(response.encodeRedirectURL("/Projectname/jsps/main.jsp")); %> although main.jsp is show but it does not show logo, graphics etc. all the js and logo files in js folder which is parallel to jsps and WEB-INF folders. now ...
stackexchange/codereview
We are getting these constraint errors wherver OSAF calls like m_NCS_SEL_OBJ_ZERO(&nSelObjSet) is called in our code. This is while cross compiling using tilera compiler - tile-g++. With g++ it always compiles fine. Any pointers would be helpful. Note: m_NCS_SEL_OBJ_ZERO is a macro and replaced by FD_ZERO Sample Code:...
stackexchange/codereview
I am duplicating with minor date changes, slideshows created by another user, who constantly forgets to embed audio, but links it instead. Is there some simple way to determine whether audio is embedded or linked, and what the source file path is, if it is linked? If I could run a macro to just determine this it would ...
stackexchange/codereview
domain.com A IP www.domain.com CNAME domain.com In this scenario would www.domain.com/foo/bar point to domain.com/foo/bar? Would the url still be www.domain.com/foo/bar Thanks
stackexchange/codereview
I need to create webpart to display % of project completed from project server value into my share point 2010 page ?
stackexchange/codereview
I've made a simple web application where a lot of things is done without refreshing a window. Now I faced a problem which I haven't realized before. If I won't find a solution, I'll have to redesign the whole app which will take a lot of time and probably kill some coolness of using it. Ouch. Ok, back to the problem. T...
stackexchange/codereview
I was trying to serialize some (Moose) objects with YAML -- simply by using YAML's Dump() and Load(). After loading a serialized object, it didn't 'work' until I added a use statement with the original module name. If I don't use use I won't get any error until I try to invoke some object method, then it will croak sa...
stackexchange/codereview
Whats a good digital signal processing algorithm that is good on guitar chords? Since Fast Fourier Transform I think only is accurate on single notes played on the guitar but not notes that are played simultaenously (i.e. chords). Thanks!
stackexchange/codereview
Using JAXB I can create an XSD using code like: JAXBContext ctx = JAXBContext.newInstance(classes); ctx.generateSchema(new MySchemaOutputResolver()); That makes a goods XSD describing the structure of all the JAXB objects in the list of classes I pass in, however, I can't figure out how to add other types of XSD restr...
stackexchange/codereview
I'm attempting to assemble all the options that I need for mysqldump to create everything used by my applications database into a single script. This includes the database itself and all the database users/passwords/privileges. I've got it all figured out with the exception of the user piece... here's what I'm current...
stackexchange/codereview
I did a program in C but it does not allow to save on c:\SomeDirectory\afile.txt I'm using this: FILE* m_hFile = fopen("c:\\SomeDirectory\\afile.txt", "a+t"); fprintf(m_hFile, "testing"); fclose(m_hFile); Why that? Is there a defined folder I can save in? SomeDirectory is previously created. I'm using Windows 7 OS.
stackexchange/codereview
Does anyone know if XStream is still active/supported? It looks relevant to what we are trying to do, but it appears there have been no new releases or web site updates (at http://x-stream.github.io/) for almost two years (since Dec 2008), therefore I was a bit suspicious ... wanted to check if this component is still ...
stackexchange/codereview
I am new to the world of Java. I'm coming from C#. I'm trying to set up a custom event. Here is how I would have done this in C# class A { public EventHandler Changed; public void FunctionA() { if(Change != null) Changed(this, null); //fire the event! } } class B { private A insta...
stackexchange/codereview
i have created a textview with the below code: <TextView android:id="@+id/txtDescription" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textSize="16dip" android:textStyle="bold" android:maxLines="5"> As above, i have set the 5 Lines as maximum for the textvi...
stackexchange/codereview
How can I assign value to a 2-dimensional array? My array is String[][] arr=new String[2][3]; And when I am assigning value to this array, application is stopped. Example: arr[0][0]="hello"; Please give me the solution...
stackexchange/codereview
Point 1): In one solution called CustomBehaviorsSolution, I have two projects - one is class library and another is silverlight class library project. The silverlight class library project has the class files which are 'linked' to the files of the first project. The solution compiles successfully. Point 2): I have anot...
stackexchange/codereview
I have 2 forms that share a submit button ("#sbtBtn").click(function() { if($("input[name=license_code]").val()) { //check if #retUser has a value $("#formOne").submit(); } else if ($("input[name=referred_by_text]").val() || $("input[name=broker_text]").val() || $("input[name=email1...
stackexchange/codereview
Which Xcode template do I select to build say facebook app ? Is it an navigation based app? Or is it a windows app with multiple view screens? I'm going to select the windows based template! Now howdy I add addition screens?
stackexchange/codereview
My website homepage suupose to look different every time a user loads it. However, it loads from memory thus looks the same every time. How can i make sure that it loads the new page and not the cached page? Thanks
stackexchange/codereview
So I have a Visual Studio 2010 project that uses external libraries and in order to get it compile without LNK2005 I had to juggle arround with the order of the libraries in the linker settings. I got it to compile fine in release mode, but for whatever reasons I don't manage to get it to compile without LNK errors in ...
stackexchange/codereview
I need to display some columns on the final result which comes from a join. Those columns comes in 3 groups, say: name_1, addr_1, prefecture_1, price_1, name_2, addr_2, prefecture_2, price_2, name_3, addr_3, prefecture_3, price_3 Where these 3 groups comes from a join which should return only 3 records according to a ...
stackexchange/codereview
i am trying to create an application for in PHP such that after the submission, the system should retrieve all the applications which he had done earlier and ask him whether to continue or not. the logic is in such a way that i hav a div (id : confirmation) whose display is none. when the execution is on progress, we f...
stackexchange/codereview
I want to concatenate the words "dummy's" and "dock". How can I concatenate them in SQL Server 2005? Does it support double quotes?
stackexchange/codereview
An ASP.NET webpage will take maybe 10 seconds or so the first time the page is loaded, which is understandable since stuff is getting JIT'ed and app domains being loaded, etc. The next requests take only half a second or so. However, if no one hits the site for a few hours, the first request after such a period of in...
stackexchange/codereview
I have some text that i need to rotate, this is what i have now: > <div id="facts"> > <blockquote class="fact visible"> > xxx > </blockquote> > <blockquote class="fact"> > yyy > </blockquote> > <blockquote class="fact"> > zzz > </block...
stackexchange/codereview
I downloaded the source project from the website, using as is, except I changed the target file from upload.php to upload.aspx, which contains the following code to receive the file data: int chunk = Request.QueryString["chunk"] != null ? int.Parse(Request.QueryString["chunk"]) : 0; string fileName = Pa...
stackexchange/codereview
I am working in Solr and making some filter quires. One of my filter is consists of a space for eg:- "fq=listing_type:New home" But this is giving error. No result is comming out. I also tried "fq=Listing_type:New+home" This was not giving error. But no results are comming out. Event there is some xml which have thse ...
stackexchange/codereview
I've created a prototype app which uploads a bunch of photos to a webserver. Everything works fine in the simulator. But when I want to try it on an actual device it does not find the images. I've included them under the resources group in Xcode. Anyone? Best –f
stackexchange/codereview
I'm doing animation of spinning with different images (like horizontal roulette) one image at a time from left to right over the screen. At every animation cycle I need to change image to random from the list, so I found if I use repeating animation then setting new ImageResource on onAnimationRepeat of AnimationListen...
stackexchange/codereview
I am developing a java desktop application using netbeans. I have a panel to which I want to add a jlist whose items and values have to be added dynamically. Also, I want this Jlist to be created after hitting a "submit" button on the page. How do I achieve this ? I tried adding an action to the button and writing the ...
stackexchange/codereview
Hey, this is the first time I've actually finished writing up a question without SO giving me the answer in the process. :) I've got a nested form (along the lines of Ryan Bates' Railscast tutorial on the topic) which allows users to dynamically add additional fields for adding/removing nested models using Prototype-ba...
stackexchange/codereview
I am trying to redefine dynamic methods of a domain in groovy. Is there something similar alias method in ruby in groovy?
stackexchange/codereview
I am trying to add some information to a python script that posts the information to twitter. Here is the code so far: #!/usr/bin/python import os import subprocess import psutil import sys import tweepy #---------------------------------------- # Gives a human-readable uptime string def uptime(): try: f = open( ...
stackexchange/codereview
So I have Sheet1 and Sheet2, Sheet1 is user set settings and Sheet2 is a table of values generated by different values in Sheet1. Now Sheet3..10 can be created, which will pull a value from Sheet2 based on calculations on it. The problem I'm running in to is when say Sheet3!H20 is updated from Sheet2!I15, how do I get ...
stackexchange/codereview
I am checking some old SQL Statements for the purpose of documenting them and probably enhancing them. The DBMS is Oracle. I did not understand a statement which read like this: select ... from a,b where a.id=b.id(+) I am confused about the (+) operator, and could not get it at any forums... (searching for + within qu...
stackexchange/codereview
I'm trying to access the methodName element of an XML document using XPATH in Cocoa via the NSXMLElement object. This is the XML representation of element <iq type='set' from='requester@company-b.com/jrpc-client' to='responder@company-a.com/jrpc-server' id='rpc1'> <query xmlns='jabber:iq:rpc'> <met...
stackexchange/codereview
I'm still earning my C++ wings; My question is if I have a struct like so: struct Height { int feet; int inches; }; And I then have some lines like so: Height h = {5, 7}; Person p("John Doe", 42, "Blonde", "Blue", h); I like the initialization of structs via curly braces, but I'd prefer the above be on one li...
stackexchange/codereview
Is the only difference between ^ and \A the fact that \A can never match after a line break? (even in multi-line mode) The PCRE man page says: ^ assert start of string (or line, in multiline mode) ... \A matches at the start of the subject Thanks!
stackexchange/codereview
I'm getting ready to build search capabilities into my app. I want the search to have the ability to span multiple models. I'm thinking about adding a search controller which would then decide which models to search based on settings etc... What do you think? Does a search controller sound right or is there something o...
stackexchange/codereview
I'm looking for a really quick, clean and efficient way to get the max "y" value in the following JSON slice: [ { "x": "8/11/2009", "y": 0.026572007 }, { "x": "8/12/2009", "y": 0.025057454 }, { "x": "8/13/2009", "y": 0.024530916 }, { "x": "8/14/2009", "y": 0.031004457 } ]...
stackexchange/codereview
I am working on an application that has a large set of configuration values, modelled and organized through the .NET configuration types from the System.Configuration namespace (i.e. ConfigurationSection, ConfigurationProperty, ConfigurationElement, etc...). Several values are required and may or may not have defaults...
stackexchange/codereview
I am starting work on a new project where the core product is a Software Library. There is existing code we will be wrapping, written in C++ because it is very numerically intensive; we own and compile this core code. I believe we will have two prominent client types: 1. App written in C++, probably MFC 2. App written ...
stackexchange/codereview
I'm trying to kick off an animation at the click of a button. The following code looks reasonable, but is throwing a runtime error. Ideally I'd like to just point the storyboard to a command. Is that possible (I Googled and found nothing to indicate that it is) <Button Width="50" Height="24" Content...
stackexchange/codereview
If, in Database A, there exists a table named "MyTable" that actually comes from a synonym pointing to another database (B), can I create this table as an entity in an Entity Framework model that represents database A, since it actually resides in a different database? I'm curious if the situation with EF 4 has improve...
stackexchange/codereview
I have the following line in my proftpd log (line 78 to be precise) Deny from 1.2.3.4 I also have a script which rolls through my logs for people using brute force attacks and then stores their IP (ready for a black listing). What i'm struggling with is inserting (presume with sed) at the end of that specific line - t...
stackexchange/codereview
I'd like to have a settings view in my app. I want to have things like UILabels, UISwitches etc. (Like in the Settings app.) How can I go about doing that? Can I just replace the detailView with the required view, or is there more to it then that? That may not work because I need to be able to set and get text values t...
stackexchange/codereview
TL;DR Boost-Test-Framework crashes with no error given while passing all tests and leaking all memory. Test fails multiple times with mentioned destructor implementations. Clear function also throws heap error. What are we doing wrong with the dtor? TL;DR This is pertaining to a college homework assignment, and my frie...
stackexchange/codereview
I want to change the settings of firefox so as to allow it to make cross domain ajax calls. Since due to the security feature of the firefox it doen't allow ajax calls to be made. I know if it is in same domain it will allow. I have a code given bellow which in safari works fine but firefox doesn't display the results ...
stackexchange/codereview
How do I verify that an object being pointed by a pointer is valid relevant code LookupTable<Product *> table; Product temp = *table[selection]; // if *table[selection] is not a product, program crashes... Here is what Lookup table is: #ifndef LOOKUPTABLE_H #define LOOKUPTABLE_H #include <iostream> #include <string> ...
stackexchange/codereview
guys, I am wondering how cocoa supports multilanguage (mac) apps? I mean which is the more convenient way to design an interface/mvc to support multilanguage? thanks
stackexchange/codereview
I've a logo which is a two image sprite. When you hover over it, the background position simple shifts to the bottom showing the new image. I want to add a bit of a fade transition to it if possible, can anyone tell me the best way for this. If it helps this is my CSS: #header h1#logo a { background: url(../images...
stackexchange/codereview
Know anybody something about hooking __usercall type of functions? I hooking successfully __thiscall, __stdcall and __cdecl calls but this is enough for me. Know anybody hooking library for __usercall's or how to hook this type of functions using translation to __stdcall or __cdecl? Function what i must hook at first i...
stackexchange/codereview
I am LEFT JOINing multiple tables as such: SELECT * FROM table1 LEFT JOIN table2 ON table1.id = table2.fid LEFT JOIN table3 ON table1.id = table3.fid LEFT JOIN table4 ON table1.id = table4.fid LEFT JOIN table5 ON table1.id = table5.fid LEFT JOIN table6 ON table1.id = table6.fid WHERE table2.id = '5184' Reason being is...
stackexchange/codereview
Hypothetic and academic question. pseudo-code: <pre><code> class Book{ read(theReader) } class BookWithMemory extends Book { read(theReader, aTimestamp = null) } </pre></code> Assuming: an interface (if supported) would prohibit it default value for parameters are supported Notes: PHP triggers an strict standar...
stackexchange/codereview
If I compile some java files using a 64 bit JDK and then make a JAR file out of them will the resultant JAR correctly work with a 32 bit JRE, or do I have to use a 32 bit JDK? Thanks
stackexchange/codereview
I've been doing some cool stuff with rmagick on my rails app. I tried starting up my project with 'rails server' and I got this error. I believe I have imagemagick and rmagick installed so I don't know why I see this error. /Users/devinross14/.gem/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239...
stackexchange/codereview
After I right-click on a file in Windows (ex: Windows 7 64bit), a pop-up menu appears with "Properties" on its bottom. Going to: Mouse-Right-Click on a File -> Properties -> Details I get a tab with file description containing: File Description Type File Version Product Version Copyright Size Date modified Language ...
stackexchange/codereview
I am trying to capture a screenshot using CopyFromScreen. However method signature is a bit confusing for me. It looks like this: public void CopyFromScreen( Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize ) Why there are 3 parameters instead of 2? And why there are both upperLeftCo...
stackexchange/codereview
When a user registers I am wondering how to create them a dynamic directory (which will show they're profile), such as Facebook / MySpace. I want the directory to be that of their username. The username is stored on the database. Technologies being used Database: MySQL Front End: PHP I've looked at using the PHP MKDIR ...
stackexchange/codereview
I have this banner rotator which is working fine except for one problem... This rotator here first goes through the function and when it reaches the "setTimeout" statement it triggers the "cycle" function again and again. You guys probably know that in Firefox there is a status-bar in the bottom-left corner, which says...
stackexchange/codereview
I have some entries in my database, in my case Videos with a rating and popularity and other factors. Of all these factors I calculate a likelihood factor or more to say a boost factor. So I essentially have the fields ID and BOOST.The boost is calculated in a way that it turns out as an integer that represents the per...
stackexchange/codereview