instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
What's the way to check if an object is a value type or reference type?
stackexchange/codereview
What I'd like to do is this: @add_cache(cache_this, cache_that, cache_this_and_that) class MyDjangoModel(models.Model): blah But fails because it seems that the first argument is implicitly the actual class object. Is it possible to get around this or am I forced to use the ugly syntax as opposed to this beautiful...
stackexchange/codereview
Hi: when I add a mouseout event to a parent element,it seems that all of its child are added this event also,it works well if the event is a mouse click and etc. However for the mouseout event,this will cause some unexpected result. Take a look at this example: <html> <head> <script type="text/javascript"> ...
stackexchange/codereview
I am using DBContext and have two classes whose properties are all virtual. I can see in the debugger that I am getting a proxy object when I query the context. However, a collection property is still null when I try to add to it. I thought that the proxy would ensure that collection is initialized. Because my Poco obj...
stackexchange/codereview
I am totally new to CKEditor, hence please bear with my stupid questions. I have a CMS that uses CKEditor to enter articles into a DB. I have been asked to write a plugin to the editor to do a particular task which is as follows: I have an image in the editor. When I click on the image to select it and click on a butto...
stackexchange/codereview
I recently came across this code: public static class ClientBaseExtender { /// <summary> /// Tries to execute async service call. If <see cref="TimeoutException"/> occured retries again. /// </summary> /// <typeparam name="TChannel">ServiceClient class.</typeparam> /// <typeparam name="TAr...
stackexchange/codereview
I have the following code: foreach (string file in FleName) if (!ActualFiles.Any(x => Path.GetFileName(x).Equals(file))) { IList<string> MissingFiles = file; } I have 3 if statements that access this method. At the end of the if statements I ne...
stackexchange/codereview
You know, like SLF4J is to log4j, so X is to TestNG and jUnit?
stackexchange/codereview
How would you design a database that has a table with 2 fields and just one of them can be set at a time, without too much redundancy? For example a file system: Let's say that we have a table with drives, one with folders and one with files. Drives and files are quite trivial. However, folders have a parent which can ...
stackexchange/codereview
I want to do split a string using "},{" as the delimiter. I have tried various things but none of them work. string="2,1,6,4,5,1},{8,1,4,9,6,6,7,0},{6,1,2,3,9},{2,3,5,4,3 " Split it into something like this: 2,1,6,4,5,1 8,1,4,9,6,6,7,0 6,1,2,3,9 2,3,5,4,3 string.split("},{") works at the Python console but if I write...
stackexchange/codereview
So I know how to change the css depending on the resolution via javascript. How would one go about 'cropping' an image depending on the screen resolution?
stackexchange/codereview
Giving an element in a list, which function can I use to find its index? For instance, I want to find the index of 3 in the list [1, 2, 3, 4]. Which function exists in Haskell that I can use for this?
stackexchange/codereview
I am trying to programmatically save an image of the current view to a UIImage. the current view contains a background, and a number of UIImageViews that have had a 3d transformation applied to the layer, e.g. CATransform3D t = CATransform3DIdentity; t = CATransform3DRotate(t, rotationX, 1.0, 0, 0); t = CATransform3DRo...
stackexchange/codereview
I'm trying to write an XMLHttpRequest using the POST method. I have managed to use XMLHttpRequest in the past using the GET method but am struggling with POST. Here's my code: var xmlhttp = null; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else {// ...
stackexchange/codereview
I have a Model class that represents a 3D Player for example. A Model consists of one or many Components for the base. For example a Component could represent a shape for the Torso. (Components are stored in a List within the Model object) When we add components to Model we get a tree like structure of objects being fo...
stackexchange/codereview
Is it possible to have Alt+F4 (as well as the X close button + <system menu> :: Close) trigger the button that is marked as IsCancel? I'd like to have it behave in the same way to pressing the Esc key. Note: I am using Prism and the dialog is being created in a RegionBehavior so I cannot directly access the button
stackexchange/codereview
Can I call a method when the method name is stored in a variable? What's the syntax? Suppose I have the following PHP code: class MyClass { public $default; function index() { /* call method named by $this->default */ } function method_1() {} function method_2() {} ... } index() is cal...
stackexchange/codereview
I got a UITableView on my app without using a NIB. However, because I do it this way, I can't get the editing properties usually associated with a regular UITableView. For example, if I instead use @interface TableViewController:UITableViewContoller and add a editButtonItem on the navigation bar, the delete and moving ...
stackexchange/codereview
can somebody help me with serialization of this simple class in C++: class State { public: int count; Point point; double angle; Point* possible; int possibleSize; Line line; list<Point> route; State() { } ~State() { delete[] possible; } }; // --- Structures // ...
stackexchange/codereview
I have created a image gallery. I show all images from plist file in navigation view. When i open image in full view after that i have to back in navigation. But i want to move images in scrolling when image in fullview. After open image in full view i want to swap one by one next as well as previous... Is there possib...
stackexchange/codereview
I am looking for a pattern to match this "LA5@10.232.140.133@Po6" and one more "LA5@10.232.140.133@Port-channel7" expression in Java using regular expression. Like we have \d{1,3}.\d{1,3}.\d{1,3}.\d{1,3} for IP address validation. Can we have the pattern like below? Please suggest-- [a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]@\d...
stackexchange/codereview
i want use json + php for my data. I read more document to do this, and the basic function are json_decode() and json_encode(). My problem is that, read more document and read different example of structure have created in me a lot of doubts. I want create a structure like this begine from the basic to the container: ...
stackexchange/codereview
I am developing an AIR application in Flex. This deals with mounting images using .dmg files. After finishing the work with it, the program has to unmount it. I am able to mount the .dmg using the DiskImageMounter utility by passing the path to dmg file as argument. I would like to know how do I unmount the image prog...
stackexchange/codereview
I have a manged process which passes an address value as a DWORD. I wish to use this DWORD value in a thread function which requires the param be passed as an LPVOID, how can I pass the value without it becoming garbled? This is not the real code but as much of it as I can remember! void incoming(DWORD addr) { Cr...
stackexchange/codereview
I've installed Devise for my Rails app (3.0.1) and it's mostly working. I just can't seem customize the mailer views. My user model is "User". The devise controllers (which I needed to override so I could tell the controllers what layout file to use) are in app/controllers/users/, like so app/controllers/users/session...
stackexchange/codereview
I have the following HTML: <div> <span>Tecnology</span> <ul id="menu"> <li> <a href="#">Multimedia</a> <ul> <li>Videocameras</li> <li>Cameras</li> <li>MP3 and MP4</li> </ul> ...
stackexchange/codereview
double a[] = { 0.11, 0.12, 0.13, 0.21, 0.22, 0.23 }; double b[] = { 1011, 1012, 1021, 1022, 1031, 1032 }; double c[] = { 0.00, 0.00, 0.00, 0.00 }; gsl_matrix_view A = gsl_matrix_view_array(a, 2, 3); gsl_matrix_view B = gsl_matrix_vie...
stackexchange/codereview
I am finding this weird issue. When I do this > activities.Where(Function(a) (Not a.IsDeleted And a.ParentId = 100) It returns an in-memory query & when I try opening it up, it throws a object not set exception. This only happens when there were no items which satisfied the condition. Shouldn't it be returning an empt...
stackexchange/codereview
I am using javamail to automate some email handling. I managed to get a connection to the pop3 server and fetch the messages. Some of them contains an attachment. Base on the email title I am able to "predict" the filename of the attachment that I need to fetch. But I can't get its content :( I have a function public b...
stackexchange/codereview
I have created a webpage for task management using php, mysql and html. Where i fill out the html page and store it in mysql database. Also, list the task assigned to. I have a dropdown list for status (i.e- new,accepted,rejected,completed). i want to update the change in the status when its done or accepted my user a...
stackexchange/codereview
NET gurus... How would you convert this very chunk into VB? this.timer = new System.Timers.Timer(100); this.timer.Elapsed+=new System.Timers.ElapsedEventHandler(ManageThreads); this.timer.Start(); When I use an online converter (Telerik), the middle line converts like this: Me.timer.Elapsed += New System.Timers.Elapse...
stackexchange/codereview
In Apple's documentation of this method, it says the following at the end: Special Considerations This method, available since Mac OS X v10.0, is exposed in Mac OS X v10.5. Only type encoding strings of the style of the runtime that the application is running against are supported. In exposing this method there is no c...
stackexchange/codereview
Just wondering, as I think about learning either PHP or Django (I have previous Python knowledge), what advantages do Python and Django have over PHP, what disadvantages etc. I don't want to know which one is better, surely neither is better, both have their good sides as well as bad sides and I will probably learn bot...
stackexchange/codereview
I am new to JPA, so apologies if this is a very basic problem. I have an application where a user can vote on a product (range 0 to 10), but can only vote once. I am confused how a manytomany relationship set up in JPA would allow this. I have a User object and a Vote object and a Product object. A user can vote on a ...
stackexchange/codereview
I need my application to create shortcuts to my application on all computers connected to a particular network, when the Setup is run. Please advise how is it possible in Setup Project. Thanks Furqan
stackexchange/codereview
I have looked everywhere and noone seems to ba able to explain how to connect a Java client to a Cpp server using TCP and OpenSSL. The connection I need to make is over TCP. This Java program will also be an applet. I am concerned about security issues so I need to use OpenSSL. I would appreciate a responce. If it c...
stackexchange/codereview
I was wondering is there is any way to interact with Perl 5 code automatically, without creating explicit APIs and publishing it over some protocol. I don't want to limit this question to any specific ways of achieving that - I'm looking for any ideas. Ruby can be accessed from JVM-based languages via JRuby for example...
stackexchange/codereview
Debugging functional code is definitely more tricky than debugging imperative code. See discussions here, here and here. "Functional" debugging should support inspecting the return value of functions/closures/monads. Do any debuggers/IDEs have (plan to have) the ability to inspect intermediate return values? For examp...
stackexchange/codereview
I want to display my SQL query result as an excel pivot table. But I could not figure out how to display the footnotes (which is another columns in the result set) on the pivot table. The trouble is excel tries to aggregate every data point in the data fields area, including textual data. Anybody had any success with ...
stackexchange/codereview
I wont to move UIElements in ScrollViewer. I have somthink like this: <ScrollViewer x:Name="scroll"> <Canvas x:Name="sheet" Width="480" Height="10000"> <Rectangle Canvas.Left="51" Canvas.Top="116" Height="114" Width="337"/> </Canvas> </ScrollViewer> I move the rectangle using ManipulationDelta event. H...
stackexchange/codereview
the HTML <input class="fr pinPass" type="password" name="pin1" id="pin1_1" tabindex="100"/> <label>Enter the third number</label> <br class="cb"/> <input class="fr pinPass" type="password" name="pin1" id="pin1_2" tabindex="101"/> <label>Enter the fourth number</label> <br class="...
stackexchange/codereview
I need a regex to match if anywhere in a sentence there is NOT either < or >. If either < or > are in the string then it must return false. I had a partial success with this but only if my < > are at the beginning or end: (?!<|>).*$ I am using .Net if that makes a difference. Thanks for the help.
stackexchange/codereview
UnifomGrid has loaded Data, I want to Hide the first row? How can I implement that?
stackexchange/codereview
I'm looking into using the html5 data- attributes to pass the validation rules to jquery.validate as a stop gap until the plugin is updated with HTML5 support. I'm using jquery 1.4.2, jquery.validate 1.7 and jquery.validate 2.1. In my HTML I'm using code such as this: <input name="foo" type="text" data-validate="{re...
stackexchange/codereview
I am working on an Application that require some interaction between two activities, and I am not sure of what is the best way to achieve it: One of the Activities is a "Logbook" (Just a ListView that displays a bunch of events). The other Activity allows the user to create the events, that will be sent (and displayed...
stackexchange/codereview
Internet Explorer behaves differently from Firefox, Chrome, Opera, Safari. See my question: HTML link with padding and CSS style active does not work Is this undefined behavior? Or I need to report a bug. If later, then which of browsers are doing right? Here is a test code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0...
stackexchange/codereview
I want to generate a circular matrix in C or C++. How can I generate the matrix below, for n = 3? 1 2 3 8 9 4 7 6 5
stackexchange/codereview
Do you know any open source code for shot boundary detection using openCV or other libraries?
stackexchange/codereview
Deperately trying to find a way to add some styles to the format pull down in the tinyMCE. I have worked out how to strip out the ones I do not need with <?php add_filter('tiny_mce_before_init', 'set_blockformats'); function set_blockformats($settings) { $settings['theme_advanced_blockformats'] = "p,h3"; ...
stackexchange/codereview
I am using java stax XMLStreamReader to read an xml. I want to grab the whole string of certain inner nodes. XML: <example> <ignoreMe> <bla></bla> </ignoreMe> <getMe> <data></data> </getMe> </example> I just want to be able to get the whole internal getMe node in a String. IE: <getMe> ...
stackexchange/codereview
I'm struggling to get what i think should be a simple bit of jquery/javascript to work. I've got a textbox and 2 radio's like so that i want to automatically update the 'total' textbox when a user changes their values: <tr> <td>Value:</td> <td> <input name="value" type="text" id="value" /> </td> </tr> <tr> ...
stackexchange/codereview
I want to make button that when I press on it it wil open the default email client and makes it possible to send a mail to a pre-defined email adres, like a mailto: method. I cant't figure out how to do it...
stackexchange/codereview
Hey guys, I dont know if I'm wording my problem right but I have created a GUI, an m-file and a simulink. Initially I had the variables going from the m-file into the Simulink, but now I want the user to be able to change the variables so I have created a GUI. I keep getting an error though, I dont think the variables ...
stackexchange/codereview
I need to use a custom barcode font in a sticker I create in PDF. Is there a way to install it to a users system?
stackexchange/codereview
Using jQuery UI selectable, how to find selected items?
stackexchange/codereview
I have an assembly which I call from within my asp.net web site. I want the assembly to run under a different user than the -windows authenticated - main site runs under. The reason is, the assembly needs admin permissions - but I don't want the whole website/IIS to be running as an administrator. Is this possible? Tha...
stackexchange/codereview
I am trying to pass a collection of Dropdown controls as a parameter to a method which takes a collection of type Control as input. While executing I get the following error: "Unable to cast object of type 'd__a31[System.Web.UI.WebControls.DropDownList]' to type 'System.Collections.Generic.IEnumerable1[System.Web.UI.Co...
stackexchange/codereview
I hava connected the facebook by facebooker gem, and I can get the uid and name from facebook. But the email and pic are both gone, I guess i hava no permission ? who can help me, thanks!
stackexchange/codereview
How do I monitor the indicator and get the decibel value?
stackexchange/codereview
Is there a way to use HTML.RouteLink() to add onto the existing url. For example I have <%: Html.RouteLink(link.Text, link.RouteValues) %> My controller is Pages, and my action is somestring. So the generated url would be localhost/Page/somestring This is fine. However I would link the generated url when I visit ...
stackexchange/codereview
i have developed library file in VC++ and need to use same library with Ruby on Rails project also. Is it possible to access VC++ library file from Ruby on rails project?
stackexchange/codereview
I would like to know how we can set the background imange in mail content using php. Currently I have sending e-mail php code but it has not background image. Hope everyone can help me. Best Regards, Ponomy
stackexchange/codereview
So I have to pages which are the same. Each are displaying some articles in a table layout. The table layout and CSS are the same. However, the one page is listing hundreds of archive articles which after it gets about 80% loaded, the table cell that contains all the text shrinks to about 30% of the actual row width...
stackexchange/codereview
New to prototype, googled this trouble but didn't find any solution. Works fine in other browsers but alerts an error in ie Event.observe(document.body, 'click', function(evt) { var element = evt.target; if ('sign_in' != element.id && 'customer_link'!= element.id && !element.descendantOf('sign_...
stackexchange/codereview
I'm trying to mimic something similar to FB. Basically, users can post comments in various parts of a user's profile (e.g. "wall", a "photo", etc.). I think the following model will work: =========================== wall_message =========================== - id (PK) - parent_id (FK) - wall_owner_profile_id (FK, identif...
stackexchange/codereview
I have a Mac app that can double as a screensaver (a minor functionality, but which I enjoy!). I don't want to have to distribute the app itself (a fractal viewer) and the screensaver separately, so I want to put the screensaver bundle inside the app bundle. Questions: can I do that, and expect it to work? Do I have to...
stackexchange/codereview
I made some custom template and I still struggling with the most significant problem, how could I make a quickstart? All the information what I found, doesn't helped me, including (http://www.youtube.com/watch?v=nqG6Z8nhyBU), which is briefly: Copy the designed database Delete configuration.php from copied root Copy d...
stackexchange/codereview
I'm hoping someone has seen this error before. I'm using MSBuild with CruiseControl.Net to run the build for this project. When i run the build from the command prompt it actually builds without errors, but when i run it with CruiseControl.net i get the following error: error MSB3025: The source file "C:\PE\PE-DEV\UIPr...
stackexchange/codereview
Hi I just dove into LINQ-XML a few days ago and would like to know if i'm doing something wrong or it's just not possible to do this. I've searched around and there hasn't been any problem related to mine and I've been mucking around a bit now. XML: <catalog> <product description="Cardigan Sweater" product_image="card...
stackexchange/codereview
I have a java program that I ultimately want to deploy it on the web. I started off creating a jar file from bunch of classes: jar cfe tbi.jar trail1modified trail1modified.class InitialKeypad.class InitialKeypad$1.class InitialKeypad$2.class InitialKeypad$thehandler.class InitialKeypad$thehandler2.class ...
stackexchange/codereview
having a bit of a prob with this, though I'm sure it's simple! I have a table where product IDs are matched to category ID, these are the only 2 fields in the table. I want to see whether all the products in the cards category (ID=100) are in any other categories, or just that one. I tried a few things but can't figur...
stackexchange/codereview
How to display only main categories in a dropdown list in wordpress.I would like to hide subcategories and need to show all main categories if it has no posts.Following script I tried, but it displaying all categories(main and subcategories). <?php // display categories in drop down list $args = array('hide_empty'=>0,...
stackexchange/codereview
I would like to perform an audit as part of a unit test that uses reflection to verify some assumptions, the basic-psuedo code for this would be as follows: For each class in a given assembly, locate the controller classes (ASP.NET MVC2). For each action in this class, locate any that are decorated with a given attrib...
stackexchange/codereview
I'm trying to follow THE magnificient Rails3 tutorial at http://railstutorial.org but ran into a problem in chapter 5. How ironic, but i'm getting stack overflow running these LayoutLinks (http://railstutorial.org/chapters/filling-in-the-layout#sec:integration_tests) specs. This is the output: C:\sample_app>rspec spec\...
stackexchange/codereview
I am trying to send the files from an Android project so that a friend of mine can open a new Android project in eclipse and mess around with code/run the project from their home machine. However, I have run into some problems dealing with missing manifest files, and non-matching signatures. What is the simplest proce...
stackexchange/codereview
Possible Duplicate: Why is floating point arithmetic in C# imprecise? Console.WriteLine(0.5f * 2f); // 1 Console.WriteLine(0.5f * 2f - 1f); // 0 Console.WriteLine(0.1f * 10f); // 1 Console.WriteLine(0.1f * 10f - 1f); // 1.490116E-08 Why does 0.1f * 10f - 1f end up being 1.490116E-08 (0.0000001490116)?
stackexchange/codereview
I'm a bit at the end of my wits here. I'm on OSX10.6 and my gems are all screwed up. One of the gems I'm trying to use is Hashie. I've looked around on the internet and several people seem to be having similar problems but I none of their solutions seem to work in my case. Thanks for looking. All my ruby scripts / ...
stackexchange/codereview
I need to replace & by &amp; in only those instances of my input string where & is standalone and not followed by amp; . For example: 1.If input is "123&4567&amp;" Output after replace should be: "123&amp;4567&amp;" 2.If input is "123&45&67&amp;" Output after replace should be: "123&amp;45&amp;67&amp;" How do I ...
stackexchange/codereview
Understanding that my programming experience only stretches back a few months, i'm unsure how to phrase this question, but bear with me. I'm open to any criticism and will gladly update my question with whatever details you ask for, but anyways.... My question is, is there a certain API that I should look into, or a ce...
stackexchange/codereview
I receive word documents with specified formating corresponding to the data that is in them. For example, all headers have the exact same formating (Times New Roman-Font 14-Bold). What is the best way to process such MS Word documents (.doc or .docx) into xml documents? Language is not an issue (I'll use Lisp/Boost.S...
stackexchange/codereview
As an example, imagine you had the following numbers in a list in this given order: list = [4, 10, 3, 5, 1] so list[0] == 4, and list[4] == 1. Now imagine you need a sum query that will tell you the sum of all previous values up to that given position. list.sum(0) == 4 list.sum(1) == 14 list.sum(2) == 17 list.sum(3) =...
stackexchange/codereview
I have a linearlayout that is filled with texviews dynamically when i click on a button , but the content of linearlayout doesn't appear, how can i redraw it ??
stackexchange/codereview
I just ran this command update table set mydata = '$' + mydata where [mydata] not like '$%' which worked well, but I forgot to include the space. so now I have $123 and $ 123 how can I add the space to all entries?
stackexchange/codereview
First post, long time reader. I'm currently learning C# with "Head First C#" (I'm up to Encapsulation and Get/Set properties) I'm writing a small program to work with pictures for a friend, I'm just wondering if I'm heading along the right lines with my PictureController class? My main problem is that I am setting a lo...
stackexchange/codereview
I have observed an issue with below function call when we migrated to office 2010-64 bit version. Private Declare Sub CopyMem Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) According to information available on http://msdn.microsoft.com/en-us/library/ee691831.aspx link. ...
stackexchange/codereview
Is there any tutorial or example available that shows how to implement a custom gesture into Microsoft Surface? After hours of googling I couldn't find any. Unfortunately, the SDK does not even provide a framework to recognize gestures. Im particularly intersted in gestures like a circle, or ? or x Edit: Is there any n...
stackexchange/codereview
In a server by using udp socket, how can i receive data from a specific client? i know that how to use recvfrom and sender address is also returned. but the problem is that recvfrom function receives data from any client. but i want for example, recvfrom receive data only for client2. (with address cliAddr2); How can i...
stackexchange/codereview
you're going to see Wordpress Widget code (a bit modified taken from Akismet). The problem is $title; variable works fine only in one function and globals etc. doesn't seem to help here. What's wrong? function myWidget_control() { $options = $newoptions = get_option('myWidget'); if ( isset( $_POST['my...
stackexchange/codereview
Apart from red-blacks being easier to implement. All operations (insertion, deletion, lookup) seem to have a time complexity of O(log n), in both trees. Is there a certain difference between these operations that I'm missing? If you google search "red-black" "2-3 tree", you don't find any comparison between the two.. I...
stackexchange/codereview
I have a gridview with x dynamic columns. Each column contains either a DropDownList OR a TextBox, a CheckBoxList, and a PopUpControlExtender. The problem is that when I do postback I have to redraw my dynamic columns and refill my lists. But, when I refill the CheckBoxList, the other columns' DropDownBoxes are red...
stackexchange/codereview
I searched the web and stackoverflow, but unfortunately, have not found any definite answers on whether or not Django is properly supported in IronPython.Net. At work, I have some tools I would love to develop in Django and Python, but from what I have read, Django is not really supported in IronPython.Net. Please do c...
stackexchange/codereview
I know its popular question. anyway. i want to click button on form of other proccess, i cant get handle of button via spy++, so i will simulate mouse click. what i get: this is global coordinates of point, i want click: doubleclickcoords = (MSLLHOOKSTRUCT)Marshal.PtrToStructure(lParam, typeof(MSLLHOOKSTRUCT)); after ...
stackexchange/codereview
The Java image API assumes asynchronous loading. Various methods take an ImageObserver as a parameter which might get informed once the image is completely loaded. On the other hand some types of images (e.g. BufferedImages) don't use the ImageObserver and will never call it. So how would code look that waits until an ...
stackexchange/codereview
I've read about the lack of support for subqueries with HQL, but anyway, anyone could tell me if this SQL query could be implemented with HQL? I've already made some testing but with no success...don't know if I'm in the right path... SQL (working) SELECT foo.id as fooId, foo.name AS fooName, chan.nam...
stackexchange/codereview
I am new to MVC and trying to get my head around AJAX calls and model validation. Here's what I have: A Controller action that serves a View with a single textbox and a link. The View looks like: <div> ... <input type="text" name="registration" value=""/><a id="checkRegoLink" href="#">Check rego</> ... </div> The ...
stackexchange/codereview
I'll try and word this as sensibly as possible. I have two dedicated servers that are networked together with local IP's (10.1.2.1 / 10.1.2.2). Basically I need to be able to include files (php scripts/html/etc.) interchangeably from either server, but without the risk of allowing external scripts to be run. Is this ...
stackexchange/codereview
I am using jquery.validate in MVC 2 with MicrosoftMvcJQueryValidation. I have data annotations on my model which is then being translated into jquery validators. I am using a modification to MicrosoftMvcJQueryValidation as outlined by Soe Tun to allow my error messages to appear in a validation summary instead of bes...
stackexchange/codereview
I am trying to implement Video recording functionality for my iPhone 3.0 and iPhone 3.1.2 device as well. I created a sample app for that and kept a button called "Start Video" in a UIView. Then i call the below function code when click Start Video button clicked. -(IBAction) StartVideo { UIImagePickerController *ima...
stackexchange/codereview
Questions What is the proper signature of the main function in C++? What is the correct return type, and what does it mean to return a value from main? What are the allowed parameter types, and what are their meanings? Is this system-specific? Have those rules changed over time? What happens if I violate them?
stackexchange/codereview
c# I have a large block of text. this text is divided into units of comments the text looks like this (In order for me not to waste time explaining something you can see) MikeSmith randdesign chapter 1 paragraph 1 book randdesign a:) comments on the book are futile Johnblack randdesign chapter 1 paragraph 1 book randde...
stackexchange/codereview