instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I found this code: #include <iostream> int main() { std::cout << "Hello World!" << std::endl; } How do I run this code? What software do I need? How do I use that software to make a program? I thought this would be a good faq for absolute beginners. Each answer could provide detailed instructions for a particula...
stackexchange/codereview
Is it possible to add multiple lines of text as a detailTextLabel without making a custom cell in my application? If so can anyone show me the proper way to implement this?
stackexchange/codereview
Say we usually it access via http://localhost/index.php?a=1&b=2&c=3 How do we execute the same on a Linux command prompt? php -e index.php But what about passing the $_GET variables? Maybe something like php -e index.php --a 1 --b 2 --c 3? I doubt that'll work.
stackexchange/codereview
I am looking for something like rownum
stackexchange/codereview
Can I assign an event to a div to fire when all elements of the containing div have loaded fully? eg. if the div contains an image, fire an event on the div when the image has loaded fully. I am using jquery.
stackexchange/codereview
I have a dict that I want to convert in JSON using simplejson. How can I ensure that all the keys of my dict are lowercase ? { "DISTANCE": 17.059918745802999, "name": "Foo Bar", "Restaurant": { "name": "Foo Bar", "full_address": { "country": "France...
stackexchange/codereview
I currently have the following mapping: Mapper.CreateMap<Journal, JournalDto>(); Now, Journal contains a member named RefTypeID, which corresponding value exists in another table in the database; to look up this value, I have a service which handles a simple int -> string request. The automapper configuration currentl...
stackexchange/codereview
I'm trying to write an ftp server on Linux. In this matter how can I list files in the directory on terminal by a C program? Maybe I can use exec function to run find command but I want file name as a string to send client program. How can I do this? Thanks for answers.
stackexchange/codereview
Having trouble embedding c# code inside a javascript block with MVC3 RC1 razor view. What syntax should I use to make this working? I get warnings eg. Expected constant on the isOk variable among other. (Without text tag, the following code is not recognized as javascript) @{bool isOk = true;} <script type="text/javas...
stackexchange/codereview
Any View have a constructor public View (Context context, AttributeSet attrs, int defStyle) which is called when View declared with a style attribute. So, if I have some class inherited from View class, I can access declared attributes (like android:layout_width or android:background) via AttributeSet attrs in a co...
stackexchange/codereview
What I want to do is take traffic that is going to shop.mywebsite.com and redirect or rewrite (I'm not sure of the terminology) the domain to be www.mywebsite.com/shop. Both shop.* and www.* are separate web applications (nopCommerce and Umbraco respectively) that don't seem to cooperate when I've tried to nest them. B...
stackexchange/codereview
I've got a form that I want different fields to appear when someone selects an option from a dropdown. For some reason my code isn't working, It's hidden the optional divs but it's not displaying them when I make my selection. Here's the jQuery I'm using (I've subtituted $ for jQuery as we are running another script th...
stackexchange/codereview
Override to_xml. What are the difference between these codes. Can someone explain it with proper example ? 1. def to_xml(options = {}) options.merge!(:methods => [ :murm_case_name, :murm_type_name ]) super end 2. def to_xml(options = {}) super options.merge!(:methods => [ :murm_case_name, :murm_type_name ]) ...
stackexchange/codereview
Wow, this one is though! I'm trying to find in PHP the % of a value relative to the Y axis. If we refer to this graph : http://en.wikipedia.org/wiki/Semi-log_graph (2009 outbreak of influenza A), let's say that I want to find what % is a value "256" on the chart. Visually, it's easy : it's a bit more than a 1/3 or 33%...
stackexchange/codereview
I am currently creating a app in which i want to let the user backup their files (plist + m4a). I zip the files and change the extension to a custom one (specifically for my app, say "*.MyBackup"). The user can then either export via email or with iTunes file sharing. I have already read about CFBundleDocumentTypes but...
stackexchange/codereview
This is all I have. <?php if ((($_FILES["file"]["type"] == "file/exe") && ($_FILES["file"]["size"] < 20000000)) { I need to only upload .exe file types, how can I do this? reg ex?(PHP)
stackexchange/codereview
I have a simple video/chat application built in FLEX. I've created a groupSpecifier, netGroup and a NetStream for the different functionalities. NetGroup is mainly used for the messaging (Posting) and keeping track of the users who enter. NetStream is (or would be used) to control some functions like "start video, sto...
stackexchange/codereview
So I am still very new to C# and using interfaces, and when I thought I understood them I realized I don't completely. The confusion I have found that I am seeking some clarification here for is, when you create an interface, and have a class inherit from it public Interface ISomeInterface { //some methods/propertie...
stackexchange/codereview
I started implementing a DDEX provider for PostgreSQL in Visual Studio 2010. First of all, I've downloaded from EFSampleProvider, where it contains the basics to begin. I' ve also downloaded the src of Npgsql 2.0.10 from here which contains a VisualStudio folder where there are 4 basic files (but not much in there). Th...
stackexchange/codereview
I have two options (which technically are the same, as I understand) to declare a custom exception class thrown only from a particular class com.XXX.Foo: as a public class in the package: com.XXX.CustomException as a public static inner class: com.XXX.Foo.CustomException Which option is better?
stackexchange/codereview
I need to create a function with variable number of parameters using new Function() constructor. Something like this: args = ['a', 'b']; body = 'return(a + b);'; myFunc = new Function(args, body); Is it possible to do it without eval()? Thank you very much, guys! Actually, a+b was not my primary concern. I'm working...
stackexchange/codereview
i use VB6 enterprize edition. How would one go about linking the vscroll bars for adjacent listboxes so that, if one is scrolled, the two others slide up and down too? The object is to keep information displayed in the lists side by side. I have tried setting the listindex property of the two other lists equal to the f...
stackexchange/codereview
I want to be able to change the parameters that are being passed into the selectable's start event, so I can basically allow my user to use the selectable jQuery UI effect without having to hold down the CTRL key. JS $(function() { $( "#selectable" ).bind("mousedown", function(event, ui) { var result = $( "#select-...
stackexchange/codereview
In my "routes.rb" file I have the following line: resource :users which gives me a bunch of named routes for accessing my User model in a RESTful manner. Now, I've made some additions to the User model including creating a special class of user. These are still stored in the User model but there is a "special" flag i...
stackexchange/codereview
I am attempting to refresh Firefox whenever a bat file is called. I Dont want an extension. I need to know if there is a command that can be used from within a .bat file to reload the current browser or tab. I know you can use start firefox as a command but this simply opens a new firefox instance. I need to refresh t...
stackexchange/codereview
I have a problem when trying to manually upload a new plugin in wordpress. Uploading media is working perfectly, and also automatically install plugins work as it should, but manually uploading plugins generate an error message: The uploaded file could not be moved to C:\inetpub\wwwroot\Wordpress/wp-content/uploads/201...
stackexchange/codereview
I'm building a string of amounts but need to remove the dollar signs. I have this jQuery code: buildList($('.productPriceID > .productitemcell'), 'pricelist') It's returning pricelist=$15.00,$19.50,$29.50 I need to remove the dollar signs but can't seem to figure it out. Tried using .trim but I think that removes o...
stackexchange/codereview
I have an Vb.net application made by a third party , that I need to control using outside resources from a simulated environment and must not interact with the desktop. To simulate inputs that a user would normally input from a special screen with specific keys around it, I've built a test control library to control it...
stackexchange/codereview
I am learning assembly using GDB & Eclipse Here is a simple C code. int absdiff(int x, int y) { if(x < y) return y-x; else return x-y; } int main(void) { int x = 10; int y = 15; absdiff(x,y); return EXIT_SUCCESS; } Here is corresponding assembly instructions for main() main: 080483bb: pu...
stackexchange/codereview
I created a route in ASP.net MVC application that looks like this: routes.MapRoute( "ArticleRoute", "{year}/{month}/{day}/{articleId}/{displayName}", new { controller = "Article", action = "Details" } ); I want a route that will be like a blog post article. Example: http://www.foobar.com/2010/01/01/123456...
stackexchange/codereview
I want to open cmd window from my web page(HTML). I'm using JS but something is not right because when i press, the function isn't called. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type="text/javascript"> <!-- function runCmd(command, op...
stackexchange/codereview
Some information a program is using uses input files in xml format. The files have the following structure. <?xml version="1.0" encoding="UTF-8"?> <Envelope xmlns="urn:envelope"> <MyData Id="MyDataId"> <!-- some data --> </MyData> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <SignedInfo> <Canonicali...
stackexchange/codereview
I am trying to take ten images, load them into an array, and then show them one at a time,fading out each one in turn. I keep getting this error. ReferenceError: Error #1056: Cannot create property alpha on String. at fl.transitions::Tween/setPosition() at fl.transitions::Tween/set position() at fl.transit...
stackexchange/codereview
I've been trying for awhile to find out how to change the color of the text in the combo box cell. So far all I've managed to do with Style.BackColor and ForeColor is change the color of the background and text respectively in the drop down box. I want to change the text color in the thing with the down arrow that you ...
stackexchange/codereview
I am wondering how to trigger an AutoIt script on another PC from my own PC? Please be as descriptive as possible, I am moderately new to networking and remote commands. Example: Nightly build Perl script begins Nightly build is successful Nightly build Perl Script triggers an AutoIt smoke-test on a separate PC.
stackexchange/codereview
What's the difference in a clause done the two following ways? SELECT * FROM table1 INNER JOIN table2 ON ( table2.col1 = table1.col2 AND table2.member_id = 4 ) I've compared them both with basic queries and EXPLAIN EXTENDED and don't see a difference. I'm wondering if someone here has discovered a difference ...
stackexchange/codereview
I am looking for help setting up the initial DIV that will fit within the borders of the letter paper. I'll loop for dynamic page content ending each page with `page-break-after; always;. I've been using the trial and error approach and have now run out of paper to trial with. How do you setup the div container where ...
stackexchange/codereview
After installing Visual Studio 2010 Premium and trying to start it, following error message pops up: Program can't be started, ATL100.dll is missing. Reinstall program to solve the problem. I searched for the ATL100.dll and found it in: "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\redist\ia64\Microsoft.VC10...
stackexchange/codereview
I have been fooling around with Google App engine for few days, the question I wanted to ask was, If i want to deploy the web app to custom domain does the server need to be hosted on Windows Server???
stackexchange/codereview
In a recent post, I expressed a need to access the properties for the body using declarative syntax, see Contentplaceholder for replacing attributes? I thought the first suggestion solved my problem. But, the syntax confuses the editor which is not acceptable. My hypothesis for a workable solution is to make the chang...
stackexchange/codereview
to access the internet I am behind a proxy that requires authentication. I know it's quite simple to pass the network credentials to the proxy like this: FtpWebRequest request = FtpWebRequest.Create( new Uri("ftp://upload.myserver.com") as FtpWebRequest; NetworkCredential credentials = new Netw...
stackexchange/codereview
Is there any general FFT lib available for running on the GPU using OpenCL? As far as my knowledge goes, Apple sample code for power-of-two OpenCL FFT is the only such code available? Does any such library exist for non-power-of-two transform sizes? If not, how easy or difficult is it to modify the Apple OpenCL sample...
stackexchange/codereview
I've got some troubles with the couple Rails 3.0.1, Ruby 1.9.2 and my website localization. The problem is quite simple, i've got something like that in a view : f.input :zip_code, :label => I18n.t('labels.zip_code') and a es.yml file : es: labels: zip_code: "Este código postal no es valido." There are no troub...
stackexchange/codereview
I'm writing opc client on c#. I want to get list of all opc servers on machine, how can i do it? I'm using opc .net API from opc foundation.
stackexchange/codereview
if condition of function f : function f(x : integer) : integer; begin if x = 1 then f = 0 else f = x * f(x - 1) + x^2 end; find value of f(4) show me the step by step for calculate please sorry for my poor english..
stackexchange/codereview
I wanna to know the basic performance factors while developing a Windows applications?Could anyone explain me in detail?
stackexchange/codereview
i know about smoothing = true but are there any other ways to smooth a bitmap?
stackexchange/codereview
I run my android application with camera functionality implemented in an android-powered phone, but the camera image I got always has small resolution. It seems by default, the android camera resolution is small (e.g. 640*480), how to increase the resolution?? I use the following code to implement the camera part: ...
stackexchange/codereview
I have two tables whichs relation is expressed in a third n:m table. Lets call them Person, Workgroup and PersonWorkgroups. I have query which returns multiple Persons like "select all persons having a certain name". In addition I want to have all related Workgroups. At the end I would like to have a DataSet filled wit...
stackexchange/codereview
Is there a way to duplicate a formula with a circular reference from a Excel file into SQL Server? My client uses a excel file to calculate a Selling Price. The Selling Price field is (costs/1-Projected Margin)) = 6.5224 (1-.6) = 16.3060. One of the numbers that goes into the costs is commission which is defined as ...
stackexchange/codereview
There is no Grid.SharedSizeGroup in Silverlight 4. What is your workaround for this issue? For example: I have a DataTemplate for ListBox.ItemTemplate consisting of a grid with two columns and I'd like to have the same width for both columns and the first column needs to have auto width.
stackexchange/codereview
I have a WinForms app that I am trying to deploy with ClickOnce. It consists of an executable and a dependent dll, plus a bunch of loose xml files in a folder called "Map". The xml files all seem to be present and correct in the generated clickonce package and are all included in the .manifest file. However, when I ins...
stackexchange/codereview
Can anyone provide setup instructions for running and debugging a sinatra app in Rubymine?
stackexchange/codereview
I have a type that is derived from an Entity generated by the Entity Framework 3. How do I assign one Customer's Order property to the Derived Customer's Order property? derivedCustomer.Orders = customer.Orders I'm not actually trying to swap orders; this is just an example of what I am trying to achieve. Has anyone d...
stackexchange/codereview
Intuitively I'm looking for something like: facet_(scales="free_color") I do something like p <- ggplot(mpg, aes(year, displ, color=model)) + facet_wrap(~manufacturer) p + geom_jitter() That is: plot 2d measurements from individuals(model) belonging to different species(manufacturer) faceted by a species, indicating t...
stackexchange/codereview
I'm converting some javascript to jQuery from ExtJS and I don't know what this does so I'm not sure what it converts to... hideTimeout = setTimeout(this.hideAll.createDelegate(this), delay); delay = 200 What I'm not sure about is the createDelegate(this)... update All the JS is... Menu.prototype = { init: ...
stackexchange/codereview
is there any way i install SMTP service on my Linux server and use php to send emails through it ? so that emails doesn't show up as spam ? maybe through ssl ? my mail() function is perfect , with perfect headers , but still sending to spam :( Thanks .
stackexchange/codereview
I have a website that is crashing internet explorer on certain users computers. I'm lucky enought hat a few people h\ve contacted me to tell me otherwise i wouldnt know anuthing about it. It doesnt happen on everyones PC so I'm a bit lost as to what is causing IE to crash. The website uses jquery 1.4.2. What is the bes...
stackexchange/codereview
I have quicktime movies uploaded to my server that I need to combine together (there are sound tracks too). I cannot install ffmpeg (or anything else for that matter away from standard PEAR stuff). I suppose an option open to me would be to open up the files with php. Can anyone provide any pointers on how to do this. ...
stackexchange/codereview
I would really like a debugging tool that is able to visualise the current stack frame (bytes between RSP and RBP) as a block diagram. Something like this, but with real execution values in the cells: http://abrickshort.files.wordpress.com/2006/11/stackframe.jpg Does such software exist? I'm using a UNIX system. PS. Aw...
stackexchange/codereview
Hey! I have a UIPicker, and I am using the function: - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { But, when you tap one of the views returned by this function, the tapped view does not become highlighed, and selected i...
stackexchange/codereview
Is there a way to publish Actionscript 2 code in a precompiled library file just like a swc in Actionscript 3?
stackexchange/codereview
I'm trying to access the Moveover property of an Accordion buried under Divs and other stuff. Here is the HTML: <body> <form id="form1" runat="server" > <div id="content" class="content"> <table style="width: 1200px"> <tr> <td style="width: 800px"> <h1>Title here</h1><br...
stackexchange/codereview
I've never used Tcl previously, however, I need to modify a certain file for a project. I have used regex with Perl, however I'm unsure of the syntax with Tcl. What I want to do is allow the user to execute the script and type in a file name that has to be searched. I want to search for the file once its found and do s...
stackexchange/codereview
SELECT SQL_CALC_FOUND_ROWS posts.*, CASE WHEN postmeta.meta_value REGEXP '$regex' THEN 1 ELSE 0 END AS keyword_in_title, MATCH ( posts.post_content ) AGAINST ( '".addslashes( $s )."' ) AS mysql_score FROM $wpdb->posts as posts, $wpdb->postm...
stackexchange/codereview
Al right! This might sound crazy. I want to know if it is possible to see the code or something that a specific process is using. I have a scheduled task that is supposed to be ran by a process. The font end to this app says that the scheduled task executed successfully, but I don't see anything in the logs. I want to ...
stackexchange/codereview
If you read about cmpthese in the Perl Benchmark module's documentation, it states that cmpthese or timethese can be used with code in either text or subroutine references. The documentation seems to imply these forms are completely interchangeable: # Use Perl code in strings... timethese($count, { 'Name1' => '...code...
stackexchange/codereview
How to get AM/PM in System date and time in this format (15-Nov-2010 16:24 PM) in MFC ? Any help is appreciated.
stackexchange/codereview
Is it possible to use both recur and post-condition functionality in the same Clojure function? I was hoping to throw an exception using the post-condition, but Clojure appears to be trying to wrap the exception throwing code after the recur somehow, so (just as a stupid example) functions like this cannot be evaluated...
stackexchange/codereview
The main problem is that my pages do not render properly in Firefox and Chrome, but render perfectly in IE8. When you view the pages in Firefox, the controls (a few custom controls and linkbuttons) do not render until you do a manual refresh. In IE8, they render the first time. Any thoughts guys what could cause this? ...
stackexchange/codereview
How report my test case results on selenium-ide. I don't want use selenium-rc. What command I should use to get results.html ?
stackexchange/codereview
Is there any way by which I can define functions my_list, my_cons, my_append which perform similar function as list, cons and append respectively? Otherwise where can I find the implementation of these functions? Thanks
stackexchange/codereview
I am going through The C++ Programming Language Book and reached "Iterators and I/O" page 61 they give the following example to demonstrate iterating through a string submitted. #include <iostream> #include <iterator> #include <string> using namespace std; int main() { istream_iterator<string>ii(cin); istrea...
stackexchange/codereview
Using itextsharp (or any c# pdf library), i need to open a PDF, replace some placeholder text with actual values, and return it as a byte[]. Can someone suggest how to do this? I've had a look at the itext docs and can't figure out where to get started. So far i'm stuck on how to get the source pdf from a PDFReader to ...
stackexchange/codereview
In Visual Studio 2008 when working with a Smart Device project, if I use the Window Forms Designer to add controls to a form, then the controls will be displayed in the correct place when the program is actually running whether the device has a QVGA or VGA screen. However if I add controls to the form in my code manual...
stackexchange/codereview
iPhone 4 has a mic on bottom-left, iPhone 3GS and earlier had a mic on bottom-right. How can I detect where is the mic on iPhone? What function does that?
stackexchange/codereview
In the UI of my winForm I ask the user for a user name and password. I store this password as text in the Settings (the .settings file) of my project. The app is a visual Studio Add-in How can I encrypt and decrypt the password before and after I enter it into the Settings file? I don't really need anything fancy. It's...
stackexchange/codereview
My scenario: void Installer1_AfterInstall(object sender, InstallEventArgs e) { try { MainWindow ObjMain = new MainWindow(); ObjMain.Show(); } catch (Exception ex) { Log.Write(ex); } ...
stackexchange/codereview
I have a problem with case sensitivity - basically, searches only work when they are lowercase: even when it looks like the text stored in the index is uppercase. How to deal with this, thanks!
stackexchange/codereview
I am building a web service with spring. I can build and deploy the project to tomcat but when the server starts up I am getting following error: Invalid NamespaceHandler class [org.apache.cxf.jaxws.spring.NamespaceHandler] for namespace [http://cxf.apache.org/jaxws]: problem with handler class file or depende...
stackexchange/codereview
Possible Duplicate: How to detect if JavaScript is disabled? I need to detect if JS is enabled for my ajax page refresh content, I know I can use noscript tags but it doesn’t work too well in the controller, can anyone suggest what I can do? Thanks
stackexchange/codereview
How do I set the datatype for a ROWID in an input or output parameter?
stackexchange/codereview
I have inherited a beautiful mess of doskey macros, and is trying to sort them by areas of concern. So far I haven't been able to find any references that mention comments in any way, but this seems such a common scenario that I'd be surprised if it is not supported in some way.. Is there any support for comments in do...
stackexchange/codereview
I get the following warning when I instantiate my ArrayAdapter (compiles fine): warning: [unchecked] unchecked call to ArrayAdapter(android.content.Context,int,java.util.List<T>) as a member of the raw type android.widget.ArrayAdapter ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(CFAMain.this, android.R.lay...
stackexchange/codereview
I have been browsing the web looking for caching information but cannot find anything that pinpoints what I am looking for. I have an ASP.NET website and haven't specifically done anything with caching yet (just relying on IIS7 / ASP.NET defaults at the moment). I don't have much knowledge on caching so I would like a ...
stackexchange/codereview
At our university they have chosen to implement screwturn wiki. I am responsible for the enterprise search solution at this organisation. This solution is based on Solr-Lucene. I have been looking around if people have tried to unlock the pages from this wiki or even better, have done so and indexed them using Lucene-s...
stackexchange/codereview
I got TypeError: Error #1088: The markup in the document following the root element must be well-formed. But the output of this string look correct to me. <midifile>C:\Users\XYZ\Desktop\white_night_in_G.mp3</midifile> <resolution>240</resolution> <tick>77767</tick> <ttrack>5</ttrack> <tpatches>0</tpatches> <tduration>2...
stackexchange/codereview
I would like to determine which portion of the revenue generated by my application is in the form of interstitial ads vs a normal adview. I have the following two lines of code in my manifest file, where x is my publisher ID (they are the exact same): <meta-data android:value="xxxxxxxxxxxxxxx" android:name="ADMOB_PUBL...
stackexchange/codereview
Consider: std::vector<int> v; v.reserve(1); v.push_back(1); // is this statement guaranteed not to throw? I've chosen int because it has no constructors that could throw - obviously if some copy constructor of T throws, then that exception escapes vector<T>::push_back. This question applies as much to insert as push_b...
stackexchange/codereview
I've recently upgraded my Linq provider to the new AST one. (NH3 on NuGet) With the previous provider I was using linq to do "inline projections to my DTO" e.g. from o in Session.Query<MyObject>() select new MyObjectDTO { Name = o.Name, SubName = o.OtherObject.Name, Sub2NAme = o.OtherObject2.Name } and this w...
stackexchange/codereview
Some scenarios to ponder. There is a legacy code which has following implementation Example1 and Example2. If we try to implement MSDN recommendation then the legacy code fails. Here is a Legacy code example: Example 1: void Page_Load() { .... some code if(condition) { /// some condition } else { Redir...
stackexchange/codereview
UIScrollView1.contentSize=CGSizeMake(UIImageView1.frame.size.width, UIImageView1.frame.size.height); UIScrollView1.maximumZoomScale = 10.0; UIScrollView1.minimumZoomScale = 1.0; UIScrollView1.clipsToBounds = YES; UIScrollView1.userInteractionEnabled = YES; UIScrollView1.scrollEnabled = YES; UIScrollView1.pagingE...
stackexchange/codereview
I've been following this tutorial closely. http://www.4feets.com/2009/03/2d-physics-on-android-using-box2d/ After some set of problems, I got it to work on my T-mobile G1. Now I have 4-5 objects(balls) drawn on the screen. I have the balls spawn around the middle of the screen and start to fall. Problem: The game stutt...
stackexchange/codereview
Currently I'm using ARGB to store these textures, but I know it's such a waste of memory. Any recommendations on the best texture format for a texture that contains only two colors, when the two colors are only white and fully transparent pixels (alpha 0)? EDIT: This is for iOS devices.
stackexchange/codereview
I am trying to consume a webservice using VB6; I don't have much experience with VB6 and i was told that i should use XMLHTTP to do this. But i am unsure how to go about all of this; the webservice take's in a string and returns a string. Since the webservice is all cold fusion tags do i need to parse out the string to...
stackexchange/codereview
I am wondering if I can use extension method or other techniques to extend static class like System.Net.Mime.MediaTypeNames.Image, it has fewer type than I need.
stackexchange/codereview
(Note: tried to look for similar question, but the closest one doesn't seem to match my question still. i.e. MVC - Application root appears twice in url using Url.Content/Url.Action ) I currently have two ASP.NET MVC 3 RC apps running under one domain i.e. mydomain.com/app1 mydomain.com/app2 Now, because it is a separa...
stackexchange/codereview
I am reading < windows via c/c++ >, it describes GetModuleHandle() API as below: When you call this function, you pass a zero-terminated string that specifies the name of an executable or DLL file loaded into the calling process's address space. If the system finds the specified executable or DLL name, GetModuleHandle ...
stackexchange/codereview
I want to get the left and right arrow key as a one of the input. How can i get it? Is there any way?
stackexchange/codereview
There are a lot of code snippets in the internet at articles or Question and answer communities like stackoverflow which worth save them and refer to them whenever we need them. Memorizing all of them is so hard , so I'm wondering if SQL Server has such capability in order to save those code snippets on it ? If it do...
stackexchange/codereview