instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Possible Duplicate: Could not open Selected VM debug port (8700) I am getting this error on the console when opening Eclipse: "Could not open Selected VM debug port (8700). Make sure you do not have >another instance of DDMS or of the eclipse plugin running. If it's being >used by something else, choose a new port...
stackexchange/codereview
I have class-configurer fluent nhibernate for MySQL: class MySqlInitializer : INHibernateInitializer { public Configuration GetConfiguration() { var dbServer = "localhost"; var dbUsername = "root"; var dbName = "nhibernate"; var dbPassword = ""; var ormAssembly = "NHibern...
stackexchange/codereview
I am using WPF PropertyGrid (http://www.codeplex.com/wpg) in my project. But i have some problems with this component. 1) I can show my IList collections in a ComboBox. But i can't retrieve selected value. How can i get selected value? 2) Enums are automatically shown in combobox, but i can't retrieve selected value li...
stackexchange/codereview
I have a page like for example: http://www.stackoverflow.com/how-many-users-visited I have inside that page already those google analytics javascript under my UA-0000-1 account. var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxx-1']); _gaq.push(['_trackPageview']); (function(...
stackexchange/codereview
In a Cocoa app generally we can install a plugin bundle in one of a number of places. If for example the app is called "MyApp" you'd be able to install the plugin at: /Applications/MyApp.app/Contents/PlugIns ~/Library/Application Support/MyApp/PlugIns /Library/Application Support/MyApp/PlugIns /Network/Library/Applic...
stackexchange/codereview
I have the following UDP server using Twisted: # init the thread capability threadable.init(1) # set the thread pool size reactor.suggestThreadPoolSize(32) class BaseThreadedUDPServer(DatagramProtocol): def datagramReceived(self, datagram, (host, port)): #do some stuff here... def main(): reactor.lis...
stackexchange/codereview
I want to write some events and exceptions to a log file when my app is running. The log file size is limited to N Megabytes. When the file size is more than N Megabytes, I want to overwrite from the start of the file. Since the file size is N megabytes I don't want to copy to temporary file and then rename it. Give an...
stackexchange/codereview
I am using the DirectoryServices.Protocols.SearchRequest type to make a request against an OpenDS store to retrieve some entries. I want to be able to control which attributes are returned for the entries in the response and thought the "Attributes" property would do it. However that property does not have a setter so ...
stackexchange/codereview
I have a php page with some functions to recieve POST data, with a page refresh, no AJAX. Right now I have a form with hidden fields that contain my dynamic data that I send with JS like so: document.my_form.submit(); Is it possible to send the data without using a form? Basically I want to send an array of URL's from ...
stackexchange/codereview
I want to disable an input field, but when I submit the form it should still pass the value. Use case: I am trying to get latitude and longitude from Google Maps and wanna display it, but I don't want the user to edit it. Is this possible?
stackexchange/codereview
Is there a ruby method to POST form data encoded in "x-www-form-urlencoded" as specified here? http://www.w3.org/MarkUp/html-spec/html-spec_8.html I am aware of Net::HTTP.post_form, but because I have several values to post which share the same name I can't use a hash, which is required by that method. To clarify, I ha...
stackexchange/codereview
I am researching if ADLDS or ADAM is suitable for handling the users of a company product. Currently we are using AD, but we are planning to scale to more customers without needing to buy CALs. I got how to use ADSI Edit to add User & Groups, but I couldnt find any tool to do that like "Active Directory users and compu...
stackexchange/codereview
I want to remove a frame from my interface when a specific button is clicked. This is the invoked callback function def removeMyself(self): del self However, it doesn't remove itself. I'm probably just deleting the object in python without updating the interface ? thanks Update self.itemFrame = tk.Frame(parent) se...
stackexchange/codereview
I need a library (hopefully in C#!) which works as a web crawler to access HTTP files and FTP files. In principle, I'm happy with reading HTML, I want to extend it to PDF, WORD, etc.. I'm happy with a starter's open source software or at least any directions for documentation.
stackexchange/codereview
The website I am creating has a fairly large title text for its banner. Using a plain font gives it a very jagged look, but it seems like an anti-aliased image would be a fairly large download. Which way would be the best choice, or is there a better method for large titles? Here is the banner with pure text. Scaled do...
stackexchange/codereview
Anyone know of any tools or techniques for converting xul to x/html? I've got a xul window I created for a Firefox addon that I now want to port over to html. Any tips, links, or tricks would be helpful. Thanks, -=Vin
stackexchange/codereview
I just got offered a job interview with short notice. Tomorrow morning I'm interviewing for a positions which has C# as a required proficiency. The position is a co-op position and I'm fairly certain the company understands that incomming students will probably have very limited, if any, experience in C# especially bec...
stackexchange/codereview
In both plugins the "page size" select list is not functioning properly. When I change the page size from 10 to say, 20, the table is not updating/refreshing until I click on some random spot on the page. Why does it take this extra click in order to get the table to update / refresh? Other select lists on the page t...
stackexchange/codereview
I have the following code : using System.Collections.Generic; public class Test { static void Main() { var items = new List<KeyValuePair<int, User>> { new KeyValuePair<int, User>(1, new User {FirstName = "Name1"}), new Ke...
stackexchange/codereview
I'm writing some unit tests and, because of the nature of this particular app, it's important that I get as high up the UI chain as possible. So, what I'd like to do is programmatically trigger a button-press, as if the user had pressed the button in the GUI. (Yes, yes -- I could just call the IBAction selector but, a...
stackexchange/codereview
I want to start building better persistence layers using NHibernate and other ORMs. What are the best design patterns or important design considerations for implementing persistence with ORM?
stackexchange/codereview
Smarty has a {strip} function: {strip} <table border='0'> <tr> <td> Hello world </td> </tr> </table> {/strip} Which outputs: <table border='0'><tr><td>Hello world</td></tr></table> I also want to do this in Zend (to reduce the amount of bites send on each request), without installing Smarty. However, I don'...
stackexchange/codereview
Is it possible to highlight table row on hover (something like this) using CSS only (without JavaScript)?
stackexchange/codereview
I have a midlet which sends an sms to a desired number. The midlet works fine on Nokia N70 and Nokia 6300. But while using on Samsung Champ, I am able to send an SMS only once to a certain number i.e. it works fine when sending SMS to a number but it does not work when the same or a different SMS is sent to the SAME nu...
stackexchange/codereview
I want to monitor the change of track in Rhythmbox using python. I want to continuously check for change of track and execute a set of functions if the track is changed. I have written a piece of code which gets hold of the Rhythmbox interfaces from the dbus and gets the current track details. But this program has to b...
stackexchange/codereview
The restriction of 1024x1024 as the largest image for an iPhone is a problem with iPhone 4. However if an @2x image is used with maximum dimensions of 2048x2048 everything looks equally good on the 4 as it does on a 3 - tried and tested in simulator and device. Question is, does the image dimension restriction relate t...
stackexchange/codereview
I went through this before posting: How can I echo HTML in PHP? And I still couldn't make it work. I'm trying to echo this: <div> <h3><a href="#">First</a></h3> <div>Lorem ipsum dolor sit amet.</div> </div> <div> But I still can't find a way to make the tags "" and '' disappear. What do I have to do?
stackexchange/codereview
I've been banging my head against the wall on this one for quite some time now. Any input or direction is greatly appreciated. So the goal is the create a log in form from text fields in a table. That user info, once collected will be passed on to an array in a seperate view controller so in can stored in a "favourites...
stackexchange/codereview
I am starting a new project and I would like to know which version of Moq should I be using? I have noticed that there is a version 4? Is that RTM? In my place there are a bit funny about beta versions? any suggestions?
stackexchange/codereview
Is it possible to override a RESTful path? For instance, I have photo_path(photo) which would generate /photos/12345 But I'd like for all uses of photo_path to actually generate URL's like /photos/joeschmoe/12345 (which is the photo's user and the photo id). Obviously I could just create a new route, but wanted to make...
stackexchange/codereview
I had Datalist and I want to give item style when I click on it to show user the he select this item I did my code but when I selected item It didnot have any style protected void DataList3_ItemDataBound(object sender, DataListItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType =...
stackexchange/codereview
At my wits end with this! My current set up is: - Ruby 1.9.2 - Rails 3.0.1 - pg (0.9.0) My $PATH right now looks like this: /Users/fjones/.rvm/gems/ruby-1.9.2-p0/bin:/Users/fjones/.rvm/gems/ruby-1.9.2-p0@global/bin:/Users/fjones/.rvm/rubies/ruby-1.9.2-p0/bin:/Users/fjones/.rvm/bin:ARCHFLAGS=-arch x86_64:/opt/local/...
stackexchange/codereview
I have a panel anchored to top-left_BOTTOM of the form. there is a button at the bottom of this panel that I want to move correctly when I am resizing the form by pulling down the bottom edge of the form. but now the panel is moving correctly but the button does not. what should I set to do this? thanks
stackexchange/codereview
I try to create my own widget based in QWidget. In constructor of the class i have: Square(QWidget *parent = 0, const char *name = 0, WFlags fl = 0); Square::Square(QWidget *parent = 0, const char *name = 0, WFlags fl) : QWidget(parent, name, f) { if (!name) setName("Game"); res...
stackexchange/codereview
i am using the following piece of code to create a directory. The problem is that i do not get an error, but i do not also find the directory i justt created. So, what am i doing wrong here? Should i take a break? Public Function CreateDirectory(ByVal Dir As String) As Boolean Dim myftprequest As Net.FtpWebReq...
stackexchange/codereview
I would like to be able to add a non-selectable element to a list within a j2me screen. At the moment any item that I add to the List can be navigated to on the screen, such that it is selected and is surrounded by a black border. Is possible to add an element to a List which cannot be selected in this way? Can this b...
stackexchange/codereview
In his blog post, Christian Cantrell shows how to use STORAGE_VOLUME_MOUNT in ActionScript. He has written a Flex app called FileTile. I would like to see a JavaScript alert box that says “You have inserted “ + e.storageVolume.name, and “You have removed a storage volume”.
stackexchange/codereview
Is there a way to know what shared libraries are used from a executable file ? From DivFix++ for example: $ file DivFix++ DivFix++: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
stackexchange/codereview
This is probably more simple than I'm making it but I just can't figure out how to do it. What I've got are tabbed sections created in Coldfusion. The output is that the selected section has a class name that contains the string "tab_selected (+ the UUID created in coldfusion)" versus the unselected tab sections whose ...
stackexchange/codereview
Someone else wrote and gave me an ActionScript source file that defines a subclass of Sprite. I am told that I need to, from this, generate a .swf file whose behavior is entirely defined by that one sprite. In other words, when the "movie" starts, one instance of that Sprite subclass should be created and set running...
stackexchange/codereview
I'm having a hard time with Ninject V2's InRequestScope() for managing a UnitOfWork. _kernel.Bind<UnitOfWork>().To<SqlUnitOfWork>().InRequestScope(); I expect whenever I request the UnitOfWork via the container that the same object is always returned throughout the request. However, in the debugger I have a breakpoint...
stackexchange/codereview
The below code works both under Python 2.6 and 3.1, but the third lambda of SomeObject.columns is a bit silly, serving no real purpose but to prevent the reference to SomeObject.helper_function from being looked at before the class declaration finishes. It seems like a hack. If I remove the lambda, and replace it with ...
stackexchange/codereview
This php statement works, but is there a more readable way to express it, in terms of quotation marks. $pCode = $row['SIZIP']; echo " <a href='#' onClick='jfFn(\"".$pCode."\");return false;' > " . $pCode . "</a>";
stackexchange/codereview
In my app, I'm creating a notification with the FLAG_ONGOING_EVENT flag set as such.. Notification notification = new Notification(iconId, text, System.currentTimeMillis()); notification.flags |= Notification.FLAG_ONGOING_EVENT; I'm cancelling the notification in onDestroy, but if my app crashes before calling onDes...
stackexchange/codereview
I have a batch file (.BAT) and would like to capture its output into a file automatically every time it is run. I know I can use redirection but then I wouldn't be able to watch it as it's running. Also, other people use this batch file and I want the log to be created without the user having to do anything special.
stackexchange/codereview
I'm creating a very simple timeshare application using Sinatra and Datamapper. Every user in the application will have n reservations and for the time being each reservation runs from Monday to Sunday and there can only be one reservation per week. Now I will need a view with a textbox (and label) for each week of the ...
stackexchange/codereview
I'm having a problem that I can't figure out while converting a table field in an Oracle database to a CSV file. I have a column of varchar2(4000) where users enter their comments. Sometimes the users copy and paste text from other programs such as MS Word therefore, a lot of extra information is pasted into the fiel...
stackexchange/codereview
If user repeatedly presses back button, I need a way to detect when they are on the very last activity of my task/app and show "Do you want to exit?" dialog befor they return to Home Screen or whatever previous app they had running. Its easy enough to hook onkeypressed(), but how do I figure out that this is a "last" a...
stackexchange/codereview
this may be a dumb question or asked many times, i searched for it but did not find a proper answer. What is exactly going on when we type on SQL engine "Create table xxxx" how to implement this one in c++, i mean how it creates a variable dynamicalyy "xxxx" and store the data in it. If i queried "select * from xxxx" ...
stackexchange/codereview
I tried to connect to a server through a SOCKS server in an Android client app (Android OS 1.5 and 1.6) with below snippet code: Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress(Constants.SOCKS_PROXY_HOST, Constants.SOCKS_PROXY_PORT)); socket = new Socket(proxy); InetSocketAddress dest = new...
stackexchange/codereview
When I use bash to run the following code, it will assign the value 5 to the var1. var1=$(awk '$1>$3{ print "5"}' newfile2) echo $var1 But when I use this same code in banana or something, it gives me error. Can someone please tell me if there is some other way I can write this code so I can run it using the C or Kor...
stackexchange/codereview
I have never done Applet development. Trying something very simple. Basically I am drawing a string on the window. However, whenever I re-size the window the content disappears. A similar suggested question on SO recommended overriding the update() method to call repaint(). I tried that but that still didn't do it. Al...
stackexchange/codereview
In the accepted answer to another question, Setting Clojure "constants" at runtime the clojure function constantly is used. The definition of constantly looks like so: (defn constantly "Returns a function that takes any number of arguments and returns x." {:added "1.0"} [x] (fn [& args] x)) The doc string says w...
stackexchange/codereview
Hi I am new to PHP and hope someone can help me. Sometimes the output from the executed shell script can be hundreds of lines long, the lines are separated with a <BR> (replaced \n in shell script) for formatted html output. So I need to know how to make the output paginated, I looked at some other similar solutions he...
stackexchange/codereview
A single threaded Win32 GUI application has multiple top-level windows. In a message handler for one of the windows, it displays a modal dialog (for example, by using the MessageBox function). The other windows in the application still work as usual, even though the only thread in the application is waiting for the mod...
stackexchange/codereview
I'm fetching an a HTML page and try to get some of it's content to show it in a table view. Following the documentation I tried NSXMLDocument and NSXmlParser but could not get any of them to give me the right data back :-( The page I'm trying to scrap is http://www.instapaper.com/u The code I'm using is NSXMLDocument *...
stackexchange/codereview
Possible Duplicate: Parsing json with sed and awk I have a JSON string like the example below and I want to use, for example, the value of the "uptime" command as a variable in a shell script, what should I do? { "serverStatus" : { "version" : "1.6.0", "uptime" : 527, "uptimeEstimate" : 526, "localTime" : { "$date...
stackexchange/codereview
I have a number of functions similar to the following: + (NSArray *)arrayOfSomething { NSMutableArray *array = [NSMutableArray array]; // Add objects to the array return [[array copy] autorelease]; } My question is about the last line of this method: is it better to return the mutable object and avoid a c...
stackexchange/codereview
I am busy writing a package for a customer with little knowledge about R. Given their complex data structure, I need to set up a "data base" within R containing tons of information obtained from a set of spreadsheets they get from another company. As they can't install SQL or so on their computers (ICT has some power c...
stackexchange/codereview
I have an old Classic ASP application. Now the users wants to have some enhancements on it. I have no working experience in Classic ASP. I want to do the enhancement in ASP.NET which i am very fluent. Can i do it? All i wanted is provide a link in ASP page and once the user clicks on that link, i want to open an ASPX p...
stackexchange/codereview
I have a tree panel and I want to show context menu to each tree node when right click to be able to delete it please help me as soon as you can Thanks in Advance
stackexchange/codereview
I have button on my HTML page. Initially i was using <input name="op" id="changepass_submit" value="Change Password" disabled="disabled" class="form-submit" type="button" onClick="change_passwd();" />. Using this i am able to call the javascript function change_passwd() which has it's definition as, function change_...
stackexchange/codereview
We are building application that stores objects to isolated storage using .NET runtime serialization. Problems occur when we update application by adding some new properties to the classes of objects we are serializing. So we want to do some kind of versioning of the objects in isolated storage so we can check if they ...
stackexchange/codereview
I always (thing != undefined || thing != null)?...:...; check. Is there any method will return bool after this check in javascript or jquery ? And how would you add this check in jquery as a function?
stackexchange/codereview
Just trying to figure out how to write "or" statements in activerecord conditions without resorting to raw sql - I assume it can be done, but google isn't helping much. So, to give an example, suppose there's a model "Author" with a one-to-many relationship with 'Books' and a many-to-one relationship with 'Publisher'. ...
stackexchange/codereview
What is the best way to manage common user-defined types across VBA modules? I use the same user-defined types in different modules. For example, I often need to represent (x,y) points, so I end up having this Type in different modules: Type XYpointType x As Double y As Double End Type I pass arguments of typ...
stackexchange/codereview
My custom action assembly doesn't work with wix 3.5. When I build custom action under .net 3.5 in propreties all works fine, but when change in project properties of custom actions assembly target framework to .net 4 - it fails with BadImageFormatException. Utility makesfxca.exe works fine with both - .net 3.5 and 4.0...
stackexchange/codereview
So it's well known that you're supposed to call game's base.Initialize() before using the game object's GraphicsDevice right? That's what I gathered from reading a lot of tutorials online. Apparently that's not where game's GraphicDevice is created because I'm able to use it before base.Initalize() like this... protect...
stackexchange/codereview
I have the following code to layout the menu for my page: //Header Conainer Panel VerticalPanel headerWidget = new VerticalPanel(); headerWidget.setWidth("100%"); //Header Panel HorizontalPanel headerPanel = new HorizontalPanel(); headerPanel.setStyleName("header"); headerPanel.setWidth("100%"); Label title = new Lab...
stackexchange/codereview
I'm trying to create a preference page programmatically, I need to work with preference pages without define preferencePage extension point in plugin.xml I'm very close to solution, I'm able to load page and save the value the first time application loads, the core of my code is PreferenceManager pmngr= PlatformUI.get...
stackexchange/codereview
Hi all I have a combobox which is databound to a list of elements. But in addition to that list of elements, i want to have another item. This item should display the text 'New...' The idea is if they select one of the normal elements, it performs some action involving that element. If they select the 'New' element, it...
stackexchange/codereview
At the time of application installation i need to set the progress bar .How to create this? thanks in advance !! Note: I have the Android application.When i Install that application it will take some time to install at that time i wish to show some Progress Message.Is it Possible?
stackexchange/codereview
In Sharepoint, how can I link an image in a content editor web part to another URL link by clicking on it? I pasted my link into the Content Link space but when I apply the change it turns my image into a - and I cannot click the link
stackexchange/codereview
Does anyone have any statistics of how many iPhone/Android/RIM developers are out there?
stackexchange/codereview
I have got an HTML Element with content in it and height: "auto"; No I try to get its height with jQuery: height = $('#inhalt').css("height").replace("px", ""); In Safari and Firefox it works and gives me a number depending on the amount of text in the element. IE however returns "auto" which is right but obviously ...
stackexchange/codereview
I have a Rails 2.2 app that I'm supporting and one thing that needs to be done before the app start is a small rake task to initialize and make sure the database is properly set. How can I get this task run right after rspec initializes the database. I run rspec using the rails spec command.
stackexchange/codereview
I am in love with Cucumber. It's easily configured for a Ruby on Rails application. However, I'm new to Ruby and so is the rest of my team. We are writing PHP applications using the Zend Framework. I'm interested in hearing how you have implemented BDD for your PHP applications and what frameworks/libraries I should us...
stackexchange/codereview
Is there any way to set any of settings from "Settings menu" programmatically, from app? For example change date-time, set screen brightness or change theme color, etc.
stackexchange/codereview
What I'm trying to do is make a loop which prompts the user for information and will only stop if certain strings are entered. Specifically, I want it only to accept certain letters, both upper and lowercase. Here's what I have so far: do { salesP = prompt("Enter the initial of the first name of the salesperson: ",...
stackexchange/codereview
I have this C# code that works just fine, which grabs any two fields and puts them in a list for a Drop Down List: var myDDL = GetDDLValues<Product>( myContact, "contactid", "companyname"); I would like it to take the two string parameters in something other than strings. This would be really nice to do: GetDDLValues...
stackexchange/codereview
I need to write an Android app that would download sounds from the internet for further use. Where should i store these sounds? Is Sqlite an option? And what's the best way to load and play these files? Thanks in advance.
stackexchange/codereview
I want to draw a table/grid by specifying the column count for each row and draw some cells in different colors. A row should span over the whole screen. The column-widths should be the same for the columns for each row. I tried using TableLayout with View or Textviews, but I couldn't figure out how I can distribute th...
stackexchange/codereview
In the below program write() returns -1 while writing to a file. #include<sys/types.h> #include<sys/stat.h> #include<fcntl.h> #include<stdio.h> #include<unistd.h> #include<stdlib.h> int main() { int fd_r=0,fd_w=0; int w_ret=100; fd_r = open("reader.txt", O_RDONLY); fd_w = ope...
stackexchange/codereview
I am developping an intranet ASP.NET MVC2 application for a small business. The small business has multiple type of printers and depending on what is required a print request will be sent (from the browser/user) to the server and the server will dispatch the print job to the right printer accordingly. Please note that ...
stackexchange/codereview
I read in Simon Cozens' book "Beginning Perl" that -w switch for warnings would be deprecated going forward. Is this true or is it still ok to continue using -w rather than "use warnings".
stackexchange/codereview
I am developing a web application using MVC .net framework. In the user interface of this application i want to create a tab when a button is clicked. following is the method i am creating this tab when a button is clicked in the user interface $('#tabs').tabs("add", 'uploadnewcv', 'Add New CV'); while i creating this...
stackexchange/codereview
Is there a way to know when the last write operation has occurred in a live SQL Server 2005 database? I currently have 30 (and growing) databases on my server. Only some of these see daily activity (but which ones get daily activity varies over time.) My backup space is limited and I'd like to do a daily backup of all ...
stackexchange/codereview
Building on this question, now I have another problem. Given this, shipments = Shipment.objects.filter(filter).exclude(**exclude).order_by(order) \ .annotate(num_bids=Count('bids'), min_bid=Min('bids__amount'), max_bid=Max('bids__amount')) \ .select_related('pickup_address','dropoff_address','billing_address') ...
stackexchange/codereview
I have a logger that functions properly at the start of a script, then breaks in the middle. It looks like its handler is getting overwritten by a str, but I can't figure out where. At the start of the script, I'm printing the handler and its level. The following code: print 'Array of handlers', logger.handlers f...
stackexchange/codereview
How to get the path of the recent or latest file based on creation time (say 'test.xml) located in many sub directories within a main directory.
stackexchange/codereview
I want to be able to write code like 10 times { doSomething } So I thought I could do that with implicits. When i execute the following code in the Scala REPL it gets defined correctly scala> implicit def intToMyRichInt(count: Int) = { | new { | def times(f: => Unit) = { | 1 to count f...
stackexchange/codereview
I have a UIView subclass where hitTest: withEvent: is overridden. Every time a hit test registers, the view logs its tag. Ex: Click Console: You Touched View: 3 You Touched View: 3 You Touched View: 3 My question: Why does it do it three times? I need it to trigger something other than an NSLog and I'm afraid that it ...
stackexchange/codereview
I've never designed a database before, but I've had experience programming in a few languages and assembler throughout college, as well as some web design, so I'm able to at least pick up what I need to know if I can be pointed in the right direction. One of the tasks of my job is to sort through some data that we've b...
stackexchange/codereview
I have a windows form in a wpf window, and I'm trying to use DragMove when I click on the windows form, it's a picturebox so I want to be able to drag the window around just by clicking the picture. I catch my form's mouse down, and raise the wpf window's mouseleftbuttondown event with: if (e.Button == MouseButtons.Lef...
stackexchange/codereview
<?php header('Content-type: application/json'); $json = file_get_contents("http://twitter.com/status/user_timeline/lindsaylohan.json?count=1"); $temp = json_decode($json); $array = Array(); $array[] = $temp; echo json_encode($array); ?> I have a JSON parser in my iphone app. I'm using the above PHP code to try and sea...
stackexchange/codereview
Note: question has been edited to stay in sync with what I have tried from the commenters I am trying to match an email, however when put the same expression in the code behind, vs the aspx, I seem to be getting different matches for email address. The aspx regex validator seems to be working correctly, however I need ...
stackexchange/codereview
No one in my residence hall knows how to do this question on our CS homework. It says: The nested loops for(int i = 1; i <= height; i++) { for(int j = 1; j <= width; j++) { System.out.print("*"); } System.out.println(); } displays a rectangle of a given width and height, such as **** **** **** fo...
stackexchange/codereview
Having issues attaching a Database and full text catalog from server A to server B with the "sp_attach_db" command in SQL Server 2005 SP3. All the database files (data, log, full-text catalog) have been copied from server A to server B. I am guessing that this is indeed possible and that my syntax is just incorrect, bu...
stackexchange/codereview
I've got this object created from EntityFramework from my database. [EdmEntityTypeAttribute(NamespaceName="ContactCoreModel", Name="TargetLang")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class TargetLang : EntityObject { #region Factory Method /// <summary> /// Create a new...
stackexchange/codereview
Possible Duplicate: C : How do you simulate an 'exception' ? Hi, I know that exception handling is available in C++ but not in C. But I also read that exception handling is provided from OS side, so isnt there any function for C invoking the same behavior from OS as try catch and throw? Thanks.
stackexchange/codereview