instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I know the topic has been discussed to death in the early days of SSDs and I know that some tests have shown back then that you'd be better off upgrading your CPU than your HDD (mostly due to random write performance). UPDATE Refer this 1 year old community wiki question. Now though, with cheap drives like the Corsair ...
stackexchange/codereview
I'm designing a task list that uses the standard, browser-supplied checkboxes. But IMHO the checkbox areas are too small and difficult to click, especially if you're doing semi-power user style clicking of multiple checkboxes (for users who don't know keyboard shortcuts but want to do a lot of archiving, deleting, etc....
stackexchange/codereview
So I use PHP and have a contact form on my website. Once users fill up the form and submit, it will shoot an email to me. I have been receiving junk input from bot, I assume, like below. This is the result of print_r($_REQUEST). I removed some parameter for simplicity. Array ( [name] => rycpufrwq [email] => raasz...
stackexchange/codereview
I want to write a function that calls both plot() and legend() and it would be ideal if the user could specify a number of additional arguments that are then passed through to either plot() or legend(). I know I can achieve this for one of the two functions using ...: foo.plot <- function(x,y,...) { plot(x,y,...) ...
stackexchange/codereview
$result = mysql_query("UPDATE orders SET order_id='".$data['order_id']."',project_ref='".$data['project_ref']."',supp_short_code='".$data['supp_short_code']."',om_part_no='".$data['om_part_no']."',description='".$data['description']."',quantity='".$data['quantity_input']."',cost_of_items='".$data['cost_of_items']."',co...
stackexchange/codereview
My image tag looks like: <img src="/images/blah.gif" alt="blah" /> I want this to work using CSS only, I tried this, but the image is not visible? .blah { background-image: url('/images/blah.gif') center center no-repeat #fff; } What is wrong?
stackexchange/codereview
I've recently used social pro from mailchimp on a site... http://www.mailchimp.com/features/social-pro/ and was shocked to find the amount of information it can gether online using just a few user details. How does it work? What APIs does it use, and how could I recreate a similar experience?
stackexchange/codereview
I've mostly used head(), tail(), and View() to look at tables in R, but I wonder if anyone uses anything more sophisticated. I recall reading that there were R <-> Excel interfaces available (based on COM or XLLoop?) - does anyone use one to use Excel (or OpenOffice) to display data frames during an R session, and not ...
stackexchange/codereview
I have the following table: id title parent_forum depth 1 'Forum1' 0 0 2 'Forum2' 0 0 3 'Forum3' 0 0 4 'Forum1 subforum' 1 0 5 'Forum2 subForum' 2 0 6 'Forum3 subF...
stackexchange/codereview
So I'm making a wallpaper and I want the user to select a folder. So I have a button in the preferences that launches an intent to open an image, but what I want is actually just a directory (I guess in the worst case i can strip the filename from the end). So that's my first problem: what's the best way to select a fo...
stackexchange/codereview
I have a .NET process that sometimes fails with AccessViolationException in the native code of some 3rd party library. I wish to have full memory mini dump when that happens. I have read this page - http://support.microsoft.com/kb/931673, the section "To collect user-mode dumps" and configured the registry as the artic...
stackexchange/codereview
If you had to implement a lightweight XML parser, would you choose to use regex? The XML parsing in my case would be most simplified: only tags and text content. No namespaces, no attributes, no schema support (at the beginning surely, but maybe...). I think it would be a good exercise for me to learn the new C++0x <r...
stackexchange/codereview
I have created a simple Servlet that I want to deploy in Jetty 7.2. Jetty is running and is able to serve JSP pages on http://localhost:8080/jonas/test.jsp. I started Jetty with the java -jar start.jar command. I saved my compiled Servlet MyServlet.class at <my_jetty_directory>/webapps/jonas/WEB-INF/classes/MyServlet.c...
stackexchange/codereview
I've got this jquery code, that allows me to click on a link to fetch its parent and change some value in another place: $("a.menu_filter_select").click(function(){ var parent_filter = $(this).parent("tr"); // Update value parent_filter.find(".filter_value").html($(this).html()); }); The problem is that it gets ...
stackexchange/codereview
I am putting an iPad application together that allows a user to work their way through a virtual tour. They are able to move forward through screens on which some will have buttons to other material such as a video or more info. If Keynote supported Hyperlinks then it would be well suited but as it doesn't I am trying ...
stackexchange/codereview
In my page I have an applet. I'd like to pass a some data to an applet function. I've found out how to do this and it worked fine for simple datatypes like strings but I'm having hard time with some nested data structures. I'm not sure what would be the right term for it — a list of dictionaries or an array of associat...
stackexchange/codereview
I implementing analytics for a medical software. The data to be processed is mainly appointment related. I'm planing to implement star schema for generating reports. I have a few doubts My data can change like a appointment can be marked as cancelled later, i read that changing data in star schema is not a good idea....
stackexchange/codereview
When programming in Java is it always necessary to code according to the DAO architecture? If so what are advantages of using it? I'm doing a project which has a class diagram like below. what are the disadvantages of this? Entity Class: private void fillSONumber() { try { ZnAlSalesOrder o = new ZnAlSal...
stackexchange/codereview
I'd like to update element's text dynamically: <div> **text to change** <someChild> text that should not change </someChild> <someChild> text that should not change </someChild> </div> I'm new to jQuery, so this task seems to be quite challenging for me. Could someone point me to a functio...
stackexchange/codereview
I've installed Cygwin with gcc, opengl, glut. I can compile and run simple OpenGL/GLUT sample code (e.g. NeHe lessons), however I need to compile and run OpenGL ES (1.1) code (to use, for example glOrthof). Attempts obviously fail as the opengl packages I've installed via Cygwin don't provide OpenGL ES functionality. C...
stackexchange/codereview
im trying to redirect a subdirectory and everything beneath it to another url. for example, http://example.com/example/ should go to http://cname.example.com/example/. Im not sure how to do this in apache. I know how to rewrite from a subdirectory to the root but nothing else. Anyone know how to do this?
stackexchange/codereview
I am implementing twitter app in my application. For that i used: signpost_common.jar signpost-core.jars My application was working successfully. I upload my app in the Android Market. Here i got an issue regarding download the app. For some users able to see my app in market and some of the users not able to see the...
stackexchange/codereview
I use PsExec for executing several command line programs, but when I call my own build C# (.net 4.0) console app, PsExec does hang, and will not finish... When calling other console apps, PsExec will return output like this: PsExec v1.98 - Execute processes remotely Copyright (C) 2001-2010 Mark Russinovich Sysinternals...
stackexchange/codereview
Is there a way to change the default behavior of bindings so i don't need to set 'UpdateSourceTrigger=PropertyChanged' on each, in my case, textbox? Might this be done via a ControlTemplate or Style?
stackexchange/codereview
How can i do pinch and drag uiview ? i need functionality as used in google maps (drag and move and pinch gestures)
stackexchange/codereview
I have some queries that run for a quite long (20-30 minutes). If a lot of queries are started simultaneously, connection pool is drained quickly. Is it possible to wrap the long-running query into a statement (procedure) that will store the result of a generic query into a temp table, terminanting the connection, and...
stackexchange/codereview
im struggling to remove the "pipe" border i have on the last item of the nav list- my code- <div id="header"> <ul id="menu"> <li><a href="">Home</a></li> <li><a href="">Stories</a></li> <li><a href="">Tell your story</a></li> <li><a href="">Prizes</a></li> <li><a href="">How ...
stackexchange/codereview
When using the jQuery UI (1.8.6) datepicker plugin and attempting to use one specific odd custom date format the calender fails to set the selected date. The format that fails is ymmdd (new years eve 2010 would be 101231). The selected date is correctly set in the input, but the calendar fails to indicate the selected...
stackexchange/codereview
Is there is any way in java-world to serialize without need of no-arg constructors and implementation of Serializable?
stackexchange/codereview
I have a query which doesnt work and it's strating to drive me crazy ;). Basically this is what I'm trying to achieve: SELECT table1.field1, table1.field2, table2.field1, table3.field1 FROM table1, table2 LEFT JOIN table3 ON table3.field1 = table2.field1 But for some reason I'm unable to execute this que...
stackexchange/codereview
I have a database to which I upload files (such as PDFs, images, etc). I save these to the database as Varbinary (max). I upload these files using C# MVC. What I was wondering is how can I view these files using a T-SQL query, not .net. Is this possible?
stackexchange/codereview
I am using the printer HP LaserJet 5000 Series PCL6. Trying to set print attributes like copies and orientation using PJL. Using PostScript as the underlying job language. I am using LPR command (lpr -S{IP} -P{IP} test.txt) to run the below code to print from windows. The printer does not print any content at all. If i...
stackexchange/codereview
public class NHibernateSessionPerRequest<T>:IHttpModule { public void Dispose() { } public void Init(HttpApplication context) { context.BeginRequest += BeginRequest; context.EndRequest += EndRequest; } } How can it be registered in web.config?
stackexchange/codereview
I am writing a custom tool extending the IVsSingleFileGenerator interface of Visual Studio. Through IVsGeneratorProgress.GeneratorError I can output simple warning/error information, but I need more control over what's output. Specifically, GeneratorError always outputs the source file triggering the single file genera...
stackexchange/codereview
I found a problem with Tkinter.Listbox when it is working with Entry or Text widgets. Whenever something is highlighted in the Entry or Text widget, it clears the listbox selection. I am using Python 2.6.5. The following is the testing scripts. from Tkinter import * root = Tk() List = ['It is a listbox: item1','item...
stackexchange/codereview
Is there any high level reason to have both client side and server side validations for a web application ?
stackexchange/codereview
I'm having the following code: @Path("stores") class StoreResources { private ServerConfig config; @GET public String getAll() { //do some stuff with ServerConfig } } And I need the ServerConfig object to be injected into this class from outside and use it inside the getAll() method. What are the possible...
stackexchange/codereview
I have been using DataVisualization.Charting.Chart to produce few charts. Everything works very well, until when I put the same inside a DataTemplate of a ListBox. Inside the ListBox, the Chart data shows up properly, but the Legends are not showing. I have been using Normal LineSeries chart. Here is the code : <List...
stackexchange/codereview
I am working with a large xml file containing unbounded collections. The idea is to use XmlReader to read the file and to deserialize the inner xml into an object and do further processing. The XML structure is something like this: <Basket xmlns="http://AppleFarm.com/Basket"> <AppleCount>10000</AppleCount> <Apples> ...
stackexchange/codereview
I have this application path: C:\Documents and Settings\david\My Documents\app\ And a file path: C:\Documents and Settings\david\My Documents\app\stuff\file.txt How can I trim the application path from the file path so it becomes stuff\file.txt? Reason being one of the command line tools I'm using doesn't support s...
stackexchange/codereview
Part of my python program needs administrator access. How can I gain root privileges using a GUI popup similar to the gksudo command? I only need root privileges for a small part of my program so it would be preferable to only have the privileges for a particular function. I'm hoping to be able to do something like: gk...
stackexchange/codereview
This is the demo, you can post message use code like this: addEvent(document.getElementsByTagName('form')[0], 'submit', function (e) { if (e.preventDefault) e.preventDefault(); win.postMessage( document.getElementById("message").value, "http://html5demos.com" ); // otherwise se...
stackexchange/codereview
I want to save the contents in a file as .doc. I have 3 text box controls,2 combo box and HTMLeditor..i want to store the data entered in this controls onto a MSword. How can i do this do.
stackexchange/codereview
I have a JTable where I want to highlight some rows using a custom background-color. This I have done with the following class: public class MyTable extends JTable { private List<RefData> data = null; public List<RefData> getData() { return data; } public void setData(List<RefData> data) { ...
stackexchange/codereview
The server side team are using the following MVC ScriptManager in my current project : http://mvcscriptmanager.codeplex.com/ It is causing a small validation error whereby the generated, concatenated script does not output the type="text/JavaScript" attribute. It's no big deal but i was wondering how i can make this Sc...
stackexchange/codereview
I've seen this question posted a couple other times on SO, but not in quite the same context as mine. So I apologize if this is a re-post. I have the following complex object: public class UserProfile { public Education education { get; set; } // 3 other properties irrelevant to question b/c not able to be upda...
stackexchange/codereview
What I'm trying to do is use an if statement to determine which item in my spinner is selected and then from there allow two different radio buttons to be selected and depending on which one do something different. The output for a TextView will change based on which Spinner item and which radio button is selected. I'm...
stackexchange/codereview
There's a bug in Traverse() that's causing it to iterate nodes more than once. Bugged Code public IEnumerable<HtmlNode> Traverse() { foreach (var node in _context) { yield return node; foreach (var child in Children().Traverse()) yield return child; } } public SharpQuery Childre...
stackexchange/codereview
The Moles documentation describes how to raise events on class stubs but the same method doesn't work with a full Mole. You can add a delegate to the add / remove methods, but you can't manually raise the event. The only solution I can think of is to create a RaiseEvent() method on the class being tested, but that kind...
stackexchange/codereview
How can I subtract time in MySQL? For example, today is 16 March; I want to subtract 15 days to reach 1 March. Are there any methods that can be used to subtract 15 days from the current date?
stackexchange/codereview
Hi I have a problem and I need some direction. I have an old application that have an install shield installer, for which I don't have the installer scripts. Now I want to do a simple patch for that application using Inno Setup. I was reading the documentation and if I knew the appId I could just append to the same ins...
stackexchange/codereview
I'm building a Web application that will handle image files that will ultimately be printed, large format. As part of this, I need to get (i.e. read) and set (i.e. change) the DPI of an image file. Is this possible through PHP GD or PHP Imagick? Thanks, BK Edit: The DPI of a image can be accessed through iMagick's get...
stackexchange/codereview
Why do some method descriptions in Scaladoc start with [use case]? Example: scala.collection.immutable.StringOps.++ Is it just a placeholder to be replaced in the future?
stackexchange/codereview
I'm using MPMoviePlayerController to play a video when application starts. The problem is that when i press the earmic button the movies pauses. I can't use method resume in the MPMoviePlayerController because the application will crash and i don't know how to disable the button function. Thanks, Raxvan
stackexchange/codereview
I am writing a web service that uses JSON or optional Clojure data expressions as the body format. The data is just to be read, not evaluated, if that matters. What would you recommend to use as MIME or Content-type for Clojure? This is how far I came: Depending on how you look at it Clojure data might be Type "x", "te...
stackexchange/codereview
We are implementing Git at our company and coming from SVN, I have a few architectural questions. For our designers, how can they manage project assets? Documents, PDFs, PSDs, graphics? In SVN we could just make a folder called 'assets', detached from the code. How can you do the same for a db snapshot? I want to keep ...
stackexchange/codereview
In the IDL file for a C++ component I have something like the following, allowing the property to be COM visisble: interface IInterface { [propget, id(1), helpstring("the ID")] HRESULT ID([out, retval] long *pVal); } When I build the dll and open in OLEView I see something like this!? interface IInterface...
stackexchange/codereview
I am using XSLT and XML. I have got below XML with me. <?xml version="1.0" encoding="UTF-8"?> <mappings> <!-- News mapping --> <mapping old="mbp" new="/SessionHandler.aspx?pageurl=/BP.aspx&amp;pub=/english&amp;section=IBE&amp;j=f"/> <mapping old="about/news" new="about/news/news.aspx"/> <!-- CUGO's--> ...
stackexchange/codereview
i want to chnage the text on the tweet button, from tweet to tweet Now! <a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet Now!</a> <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> i tried to change on this script given to me by twitter, but it...
stackexchange/codereview
.. been trying to fit the textbox (auto adjust the textbox width) within HTML table's cell but no luck.. can anyone please help? thanks What I have: <td> <asp:TextBox ID="txtPrice" runat="server" style="width:100%"/> </td>
stackexchange/codereview
I try to get the OSMF working with lighttpd FLV streaming. The mod_flv_streaming works through appending a start=keyframe parameter to the FLV URL. The client has to search the nearest keyframe when the user hits the scrub bar to jump to a different position of the video. Usually, one would create a new NetStream for e...
stackexchange/codereview
I have a c++ project in VS2010 and a c# project that is to consume this c++ project output (it uses it for p/invoke). I was thinking that I could ensure that the c++ project was build before the c# project by editing the "Project dependencies..." in the solution but this does not seem to have any effect, the build on m...
stackexchange/codereview
Since I updated to Maven 3 I get the following warning messages at each build : How can I get rid of these warnings? [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for proj:id:jar:3.1 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.pl...
stackexchange/codereview
I'm trying to asynchronously (or lazy load) this Reddit widget, but I'm having an issue. Here's the basic code that works perfectly when directly in the html: <script src="http://www.reddit.com/domain/skattertech.com/new/.embed?limit=4&amp;t=all&amp;sort=new&amp;style=off" type="text/javascript"></script> If I try...
stackexchange/codereview
I have a Person class, and I want to create a tree. Here is the contsructor for the Person class. public Person(String name, int age, char gender, Person c1, Person c2) c1 is the child on the left, and c2 is the child on the right. And so say I create three Persons like so: Person c = new Person("Carl", 50, 'M', null...
stackexchange/codereview
Does anyone know where/when this method of a Parcelable is called? @Override public int describeContents() { return 0; } It has to be overriden. But should I consider doing something useful with it?
stackexchange/codereview
I have programmed a "proxy.php" script (listed below), which would fetch an image specified in the ?img= parameter and print it to the STDOUT. This is needed for my Flash app to circumvent a missing crossdomain.xml at some sites. It works, but I have 3 questions please. Also I'm coming to PHP from Perl and still have m...
stackexchange/codereview
Note: I'm aware that C# has anonymous types and inner types, but these fulfill markedly different roles from the java anonymous inner classes of old. Suppose I have an interface: public interface Foo<T> { int Fizz(string a); T Buzz(object o); void Crackle(); } Is there something out there (ReSharper macro ...
stackexchange/codereview
I have a div and inside it is other divs.My div is:<div id="Table_01"></div> How can i center it so that all other divs are centered?.
stackexchange/codereview
I have been searching for 10 minutes why the first line gets a warning whereas the 3 last ones do not: [self performSelector:@selector(displayWebServices) withObject:NULL atferDelay:0.5]; [self performSelector:@selector(displayWebServices) withObject:NULL afterDelay:0.5]; [self performSelector:@selector(displayWebSer...
stackexchange/codereview
I have the following tables: Product(ProductID, ProductName ...) ProductBidHistory(ProductID, UserID, Amount, Status, ...) The BidHistory table can grow to have many records for every product, I want a report containing approved bid for every products i.e.Amount where status = approved. Is it ok to have an Approved...
stackexchange/codereview
How can i play youtube video using SWFLoader? Currently, i can play only 1 video at a time (suppose its name is A), if i try to play video B it doesnt play it. but if again i play vidoe A, it works. Any guidance? Thanks
stackexchange/codereview
i have a project with many folders in it ... (vs 2008 - asp.net - c#) how can i do Directory Listing Denied for my project folders when a client try to view those folders using address bar? thanks in future advance best regards
stackexchange/codereview
I'm facing a simple problem that bugs me... I have a MaskedTextBox and I want the user to be able to enter 3 numbers at the end : "My Masked Text Box : XXX" This text will be translated. The problem is, this control uses Microsoft's recipe to validate the input and in this example, the final display will look like this...
stackexchange/codereview
I'm using the asp.net dropdownlist which is populated from a database. Is it possible to have sub menus on any of the options in the list? Or how could this normally be done? Thanks,
stackexchange/codereview
data (Ord a) => Stree a = Null | Fork (Stree a) a (Stree a) mkStree :: (Ord a) => [a] -> Stree a mkStree [] = Null mkStree (x:xs) = Fork (mkStree smaller) x (mkStree larger) where (smaller,larger) = partition (<= x) xs partition :: (a->Bool) -> [a] -> ([a],[a]) partition p xs = ([ x...
stackexchange/codereview
I've a problem. I want to add an shadow.jpg image under every image with class ".shadowed". So: .shadowed { border: solid 1px #fff; margin: 15px; } And then we use :after: .shadow:after { content: url('images/shadow.png'); } OK it looks ok, but shadow also gets his parents border, like: BORDER IMAGE SHA...
stackexchange/codereview
My question is that with example. I have to show all categories of books and with checkboxes in a page which I want to be posted to next view without interacting db and there I want to store them in a hidden field in a comma separated string. Actually I have a tab for find a book. user clicks on it and it has a list of...
stackexchange/codereview
I've looked around on SO, and the answers I have found to my problem haven't allowed me to solve it yet. I want to use isolated virtualenv environments, but for one reason or another, virtualenv keeps loading global site packages, when in django's shell... I tried to clean up PATH variables, until only c:\Python26\Scr...
stackexchange/codereview
As far as I understand it's not recommended to use HibernateTemplate in Spring. So what I'm trying to to is to write it using HibernateTransactionManager: What I did so far is Database and session initialization <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <prope...
stackexchange/codereview
I have two tables in MySQL. CREATE TABLE IF NOT EXISTS `city` ( `city_id` int(11) NOT NULL AUTO_INCREMENT, `city` varchar(50) NOT NULL, PRIMARY KEY (`city_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; INSERT INTO `city` (`city_id`, `city`) VALUES (1, 'London'), (2, 'Moscow'), (3, 'Perth'), (4,...
stackexchange/codereview
I have a list of items on my page, but the list is displayed over 3 columns. I like it because it's semantic in its meaning to search engines and it's light on the HTML. But I have to make it have a thick line at the bottom of each column. An example of the two can be seen here: http://jsfiddle.net/MavvB/3/ with the ex...
stackexchange/codereview
Is there a difference between class A: ... and class A(): ... I just realized that a couple of my classes are defined as the former and they work just fine. Do the empty parenthesis make any difference?
stackexchange/codereview
I looked around and can't find anything similar to what I need help with. -- I have two DIVs, floated to the left so they appear next to each other. In the left one I have the product image, and in the right one, the product description/information. Sometimes, the product image will not appear in the page, that's becau...
stackexchange/codereview
We had a site running, that uses the php zip functionality. Everyhthing worked fine for month - now we moved to a new server and the script doesn't work! $zip->open() returns error Code 5 what is a read error. I found out, that it has to do with the size of the zip files, as they are about 60mb. Smaller sizes about 30m...
stackexchange/codereview
I have set my app to listen to significant location changes using startMonitoringSignificantLocationChanges of CLLocationManager. So when the device's location changes significantly, my app gets some execution time to handle this change. But what methods of UIApplicationDelegate are called? applicationDidEnterBackgroun...
stackexchange/codereview
I'm an Erlang beginer and I'd like to find a way to list all the methods available for a given module. What's the best way? In my case, the module is ejabberd_odbc.
stackexchange/codereview
resources :users do get :save_delete, :on => :member get :question_form, :on => :member post :question_send, :on => :member resources :comments end After send and POST to my server I got this error in the log: #Started POST "/users/1/question_send" #ActionController::RoutingError (No route matches "/users/1/qu...
stackexchange/codereview
I have created an iPhone application. Using this application, I can able to record my voice and able to play that recorded file. But if I select a music file from library, it is not playing. // sample code that I have used in my application self.player = [MPMusicPlayerController applicationMusicPlayer]; MPMediaPropert...
stackexchange/codereview
I have developed a form using jQuery, HTML and a C# and ASPX back-end. It works fine on Firefox and other Web browsers but if fails on Internet Explorer and don't know why. I have tryied everything. The URL is Web Form Any ideas?? Thanks!!
stackexchange/codereview
I am calling a SOAP webservice with Spring-WS. The webservice in question requires me to pass some information in the SOAP header as shown here: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <CustomHeaderElement> <clientID>xyz</clientID> <wsdlV...
stackexchange/codereview
I would like to run some async workflow, then wait for it to finish before printing some results, example: let dowork n = async { do printfn "work %d" n } let creatework() = async { for x in [1..5] do Async.Start(dowork x) } Async.RunSynchronously(creatework()) printfn ...
stackexchange/codereview
I need help. I have a sql table t2 related to two other tables t1 and t3. t2 has fields: idFromt3 idFromt1 Value 1 14 text1 2 14 text2 1 44 text1 2 44 text2 3 44 text3 I'm searching for values, where ifFromt3 is missing. I want to fint in this exa...
stackexchange/codereview
I have a problem: In my flex-app there is a slider that should change a variable inside a AS3-Object. How do you realize that? It's no problem to control the slider with the variable, but I want it the other way :)
stackexchange/codereview
Can this be done? Here is the method I'm testing: public void SaveAvatarToFileSystem() { Directory.CreateDirectory(AvatarDirectory); _file.SaveAs(FormattedFileName); } In my unit test, I'm using Rhino.Mocks and I want to verify that _file.SaveAs() was called. I've mocked out _file (which is an HttpPostedFileBase...
stackexchange/codereview
I need a control where user can pick a number from a list like one in below image. This image is from myTouch 3g Slide. If this is part of android source, can somebody provide me the link? Thanks
stackexchange/codereview
I'm having a tough time figuring out what I must do to access certain UI Elements in the CKEditor in a plugin I am modifying. Essentially I am adding internal links to their link dialog where links I split up between sections and publications. When a user picks a section from a select drop down the publications from th...
stackexchange/codereview
I have a Perl script that reads a XML file that doesn't have content, only attributes in the element. Like this: <league> <game name="bla"/> </league> Now I try to get the game attribute 'name'. I tried using $xml->{league}->{game}->{name} and $xml->{league}->{game}->['name'] but they are both not working. Something a...
stackexchange/codereview
I need to read some test data from an html document. The problem is there are some non-English characters there shown as HTML codes (e.g. Ø - &#216;). How can I change those into a single character? Later I'll need to compare these characters to what user enters in a web form. I'm trying to do this in Ruby 1.9.2. Thank...
stackexchange/codereview
Did anyone knows how can i affect the name of the database in SQLCE.EntityFramework ?
stackexchange/codereview