instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I know that C program generally ends with return, where we return the status of the program. However, I want to return a string. The reason is that, I will be calling the C-executable from a shell script and printing the returned string. Is there any mechanism for the same ?
stackexchange/codereview
This is related to Wix: I have a situation in which I have to deploy a file into multiple directories whose values being fetched from registry. Now these directories could be from 1 to many. And I don't want to create too many Directory entries whose values would be determined at runtime. Can we call a custom action in...
stackexchange/codereview
I'm having trouble switching views with button presses in my Android app. The code shows no errors in Eclipse, but the app quits unexpectedly in the emulator when the button is clicked. My code is below. Thanks public class Main extends Activity { /** Called when the activity is first created. */ @Override ...
stackexchange/codereview
I've seen code examples of "divide-and-conquer" algorithms (or, at least what I think are "divide-and-conquer") - one general group of examples tend to use recursion while the other uses a while-loop. Here's the recursion example: ... if (exponent%2==0) { return Power(base*base, exponent/2); } else if (exponent%2==...
stackexchange/codereview
I'm working on a plugin for wordpress and I want to be able to upload multiple pictures from a form. Right now when I have a form for two pictures and submit it empty, my $_FILES array looks like this: Array ( [image] => Array ( [name] => Array ( [1] => [2] => ) [...
stackexchange/codereview
Need a little help with what I'm sure is fairly easy jquery I have the following repeating markup (several list items) <li> <div class="answer"> <p><select class="dropdown"> ..options.. </select></p> </div> <div class="commentBox"> ..content.. </div> </li> Depending on the value of the selected option when the pages l...
stackexchange/codereview
Suppose you have a script that takes a couple of command-line arguments and dumps its results to stdout. Manually invoking this script will look like this: perl foo.pl arg1 arg2 arg3 Without changing the script in question, is it possible under Windows to take the contents of a file (e.g., input.txt is a multi-line te...
stackexchange/codereview
I'm having a problem with sending back header(location:) as a response from an HTML form POST to PHP_SELF. The essential parts of the use case: I'm including inside the main page, a page which contains all of the form UI echoed out. This form POSTs to itself ($_SERVER['PHP_SELF']). This form contains a "file" field...
stackexchange/codereview
How do I make a variable unique in TCL? Example: exec echo $msgBody - /tmp/Alert_Notify_Work.$$ exec cat /home/hci/Alert.txt -- /tmp/Alert_Notify_Work.$$ This does not work; I am trying to make the variable Alert_Notify_Work unique.
stackexchange/codereview
I am about to launch a website that offers registration. I have just thought of implementing the Facebook Connect for login/signup. Anyone has any recommendations on how to do it properly? I started by loading the script, I am now at the point where I have the user's public data (userid,first name,last name etc..). Now...
stackexchange/codereview
I am trying to login to my A site from my B site. So I simulate a login form using curl and I expect to redirect to my A site's main member page. But instead my B site url remain on my address bar and my browser shows my Site A login page. I am new to curl. Thank you for reading. $cc = curl_init($url); curl_setopt(...
stackexchange/codereview
I have a list of modules in a shell script variable, lets call it modulelist. Some of those modules are already loaded. I am doing modprobe -a $modulelist and running into a segmentation fault, which is due to one of the modules that is being loaded. My question is : Do I have to modify the order in which module names...
stackexchange/codereview
I have something like this in my View <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage.Master" Inherits="System.Web.Mvc.ViewPage<MVC.ViewModels.EditViewModel>" %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <% Html.EnableClientValidation();...
stackexchange/codereview
Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? any difference?
stackexchange/codereview
Hi I have written a code that i will put just a part of that which has a problem. I have an arrayList<Point> which its size is 4. I have passed the 3 elements of this list to a method but with System.out.println I get 3 y instead of 1 y !! what is wrong .please help me.thanks CODE: public int determinal(Object get,...
stackexchange/codereview
In Wordpress, I'm trying to add the post ID of posts I publish in a new table if not already there (to avoid double entries when updating posts from the admin panel) if( $wpdb->get_row("SELECT post_id FROM wp_post_votes WHERE post_id != $post_ID" ) ) { $wpdb->insert( $wpdb->prefix . 'post_votes', array( 'post_id' =...
stackexchange/codereview
I have folder structure as below: /files /files/upload I need to mount /files/upload to /files. When user uploads files to /files/upload it should auto copy(sync/mount) uploaded file to base folder: /files. Is it achievable using linux mount command ? Thanks.
stackexchange/codereview
I want to write a method that needs NSEvent defined, so I need NSEvent.h. The SDK I am using (3.1.3) doesn't seem to have NSEvent.h within its frameworks. I found that it is in AppKit.framework, which I have under /Developers. Using Xcode, I navigated to the location of this AppKit and added it. Now AppKit appears i...
stackexchange/codereview
I currently have some code written using JAVA Spring 2.5.2 and JDBC to connect to the database and execute store procedures that return a ResultSet. Because all of the database columns are defined as char (fixed length), the values that I am retreiving from the resultset contain whitespaces at the end. I am currently ...
stackexchange/codereview
What is a good BASIC compiler for Windows XP?
stackexchange/codereview
I am just starting out with Python and decided to try this little project from Python Wiki: Write a password guessing program to keep track of how many times the user has entered the password wrong. If it is more than 3 times, print You have been denied access. and terminate the program. If the password is correct, pri...
stackexchange/codereview
I don't need the header . How to do it with xml serializer?
stackexchange/codereview
I have a list of about 10 strings that all have different sayings (adages). How can I go about randomly displaying them for the user to read on an XML? I have a math().random; that generates a random # between 1 and 10. When that number is hit, I use a simple switch/case that displays a saying to the user in an xml f...
stackexchange/codereview
I have a COTS database that stores 'custom' field information all in a single field (column). I have created a query to pull out the selected information for a single record but I need to be able to create columns out of each row extracted so sorting/summing can be accomplished. Here's the query: SELECT DISTINCT CFV.V...
stackexchange/codereview
I'm making a component based entity system for a game engine. I have an entity class, which has to include the component base class header in order to define the array of components private Component* components[ 123 ] However, in the component base class I have to define a private Entity* ownerEntity, beacuse it is cr...
stackexchange/codereview
I am still learning jQuery and the selector bit is incredibly useful, but I still don't understand it perfectly well. I have a table with id=table1, and I want to select all td's in this table. (really I want to wrap the text within each td with a div with overflow:hidden so I can force the cell heights to be uniform.)...
stackexchange/codereview
I'm using Visual Studio 2010. I work with mostly windows services and web services. I use IIS6 w/web sites pointed at my project's bin/debug build, Windows 7, C#...not sure what other info will be relevant...anyway..the problem is that in order to debug I have to copy over PDB files to the temp asp.net dirs Every tim...
stackexchange/codereview
as title, I want to try odfWeave, but the network in my office is so restricted that I can't access the repos outside, is there anything I can do to install the odfWeave package? Thanks! P.S. I am using R-portable 2.11.0, I have tried Rtools but it prompt me with an error of package XML not found, which is not true
stackexchange/codereview
I'm having some trouble with scoping in javascript. I'm using a jquery plugin to write a class that is a wrapper for our dropdown controls. the problem is in the loadJsonList function, the call to this.addOption(s.itemValue, s.itemText); does not work as the method doesn't exist. I know JS has odd scoping but I've no i...
stackexchange/codereview
Why doesn't the following code compile? template <class T> void foo_bar(T =5 , T = 10 , T = 15) { } int main() { foo_bar(); } I get this error no matching function for call to 'foo_bar()'. How to fix the error?
stackexchange/codereview
I am trying to make an interactive, text-based connect4 game in SWI Prolog, and I'm a little stuck on how to start. What I don't understand is how to represent the game board, since I don't think I can have arrays, or variables that can be seen and modified by all rules. Any insight as to how to start would be greatly ...
stackexchange/codereview
I have a NSPathControl in my app for the user to select a file on his hard disk. I am trying to use -(IBAction) clickedPath:(id) sender { NSString *string=[[NSString alloc] initWithFormat:[[pathControl clickedPathComponentCell] stringValue]]; NSLog (@"%@", string); } But this outputs only the filename. How can I g...
stackexchange/codereview
Im using JsonReader to load my data, but it seem to low performance with a large data. I want to replace JsonReader with ArrayReader. I'm sure that the size of data that server response will smaller if I use ArrayReader, but not sure if the performance is improved.
stackexchange/codereview
In Blend 4, i am trying to generate sample data source from my VM class. The class has a property that returns observablecollection of an interface and another property with observablecollection of a class. When generating sample data source, Blend generates data for the class property but not the interface. Is there a...
stackexchange/codereview
I know this is going to be answered in all of two seconds, but I can't find it anywhere online. I need to omit two things from my query... Where display=no Where verified=null I don't want their information showing up if they've set their display to "no" or they haven't been verified (I put in a "yes" when they've b...
stackexchange/codereview
I have small .net application which I sell. I was using Access as database but I think it's not flexible and fast enough. Also I'm planning to enable network database access so I need suggestions which database system to move. My program is a shop sales organizer and I record every sale on a shop. I need customer, stoc...
stackexchange/codereview
if you use the php function "urlencode" encode a url, and then put the result to a form item's value. the value will be decode by the browser. is this a standard?
stackexchange/codereview
I have a script that generates an SQL query as text e.g. ... return "SELECT COUNT(*) FROM important_table" which I would then like to run on a PostgreSQL database. I can do this in two lines like this: python SQLgeneratingScript.py parameters > temp.sql psql -f temp.sql -d my_database But seems like I should be a...
stackexchange/codereview
I asked a sort of similar question to this before so I'm sorry if this is a bit repetitive. Here is my question, I have a master page that has a label on page load I pass this control to a global class that I have, inside the class is something like: global class: private static label myLabel; public label updateLab...
stackexchange/codereview
I know about the problem and how to fix it. I would like to ask for help finding this problem in existing code. In other words, I'm trying to find all locations where this trap is buried, so I can fix it. Is there any tool that can help me?
stackexchange/codereview
I really HATE to ask this because I thought this is supposed to be as simple as counting 1-2-3. I've researched since yesterday and today but I've found no solution. Here's what I want to do. Retrieve JSON data from my Spring MVC 3 Controllers and display that data on my JQGrid. To setup my Controller to send the JSON ...
stackexchange/codereview
my question is i have this query and im planning to do a report from this. my problem is how do i do the not in from the inner select of the report? select prop_acct_no,land_book_value, impr_Book_value,current_book_value,lat_appr from prop_acct where PROP_ACCT.PROP_STATUS = 'CON' and PROP_ACCT.SUBSTAT...
stackexchange/codereview
I need my Android application to run a certain Activity in my app, responding to the following Uri data from the Intent that was sent out: http://www.example.com/redirect.aspx?customurl=example%3a%2f%2f%3fop%3dexampledetail%26stuff%3d12345%26morestuff%3dI%2520Love%25Android If I use the following in my manifest (for th...
stackexchange/codereview
I did a lot of research on this but couldn't find a concrete answer. I want to write an application framework which defines server side interfaces which other people can implement and deploy on their servers in the form of small servlets. I want a way to be able to do an RPC on these methods without having the hassle o...
stackexchange/codereview
I am making the transition from DataTableAdapters in MSVS to creating Stored Procedures in MS SQL Server. This is what I have so far. protected void Submit_Click(object sender, EventArgs e) { var conString = ConfigurationManager.AppSettings["ConnectionString"].ToString(); using (SqlConnection con...
stackexchange/codereview
I have this problem that a week ago, when debugging, suddently the "Locals" window is blank, the "Immediate Window" and Watches don't work and all return "Unable to evaluate the expression." Also the standard debugger display stopped giving me any info when I break the execution to check out stuff :-( I have played ar...
stackexchange/codereview
Hopefully this is an easy one because I've been trying all sorts of different ways to get rid of this. I am making an android app which incorporates a clock animation. I've got everything working really well except one very annoying thing. I have a second hand on the clock and I'm using the following code to rotate it ...
stackexchange/codereview
I have a line of code in Matlab that reads: output = find(input); where column vector "output" contains all indices in column vector "input" whose elements are nonzero. For example, if: input = [1 3 4 0 0 2 0]; then the result of, output = find(input); would be: output = 1 2 3 6 correspondin...
stackexchange/codereview
I need to transfer selected rows from DataGridView in one form to another. The questions are: what control is better to use in the second form and how do I transfer my data? Thank you.
stackexchange/codereview
Dreamweaver gives an error. What's the right syntax? After the first .animate({left: '-=980'}, 550, ? The real deal is: That I can only use one ".animate({left: '-=980'}, 550," in this code... There comes an error if I want to add two (or more) .animate's in the animation queue. BTW: The "clicknr" variable and the 'd...
stackexchange/codereview
Is there a generic/automatic way in R or in python to parse xml files with its nodes and attributes, automatically generate mysql tables for storing that information and then populate those tables.
stackexchange/codereview
Some one to help me this, What is the difference between an object property and type property? if possible with an example in python.. thanks!
stackexchange/codereview
I'm having trouble designing my game engine. For example: When I think in Resources, I think in a ResourceManager class to manage resources on my engine. This class gets several responsibilities: Load resources. Map resources by an identifier. Ensure that resources are loaded only once. Free unused resources (using sm...
stackexchange/codereview
In Visual Studio 2010 we can right click a Web application and select Publish from the Menu. Using this we can publish a web application to a File System. How can we achieve the same using Command line? EDIT: Although we can use xcopy as suggested it is not same as Publish command as we have to manually exclude unneces...
stackexchange/codereview
I have created a custom WYSIWYG editor for editing an XML file. I have used an <iframe> for this. I have parsed the XML file and all the contents in a variable. How can I place this content in the <iframe>? I tried this code but it is not working: <iframe id="textbox" style="width:300px; height:150px" > <?php ech...
stackexchange/codereview
I was able trim the video when i used the photo library source type. But when I use the camera source type trimmed video appears to be saved. but when i play the saved video it is not trimmed. Can any one pls help me with this?
stackexchange/codereview
Well, I'm trying to achieve the following: add and ActiveX control (AxExpressViewerDll::AxCExpressViewerControl from AutoDesk) to a Qt form. But, there is no way to get the object to load from DLL, for example (the long number is the UUID taken from Visual Studio): QAxWidget* wmp = new QAxWidget(); wmp->setControl("{55...
stackexchange/codereview
I have spend more than one day trying to create a very simple hello world application in GWT but I am not being successful. I am trying to get a hello string from the server through RPC and display it on the client. Thanks
stackexchange/codereview
is it possible to have low level access in Android with Java/NDK to create for example card scanner like scandisk or card defragmenter? I move a lots of stuff around my card and it gets fragmented quickly. I have experience with FAT32 defragmenting on Windows, but I'dliek to do this on Android.
stackexchange/codereview
Does this code result in defined behavior? class A { int x; }; class B { short y; }; class C { double z; }; class D : public A, public B, public C { float bouncy; }; void deleteB(B *b) { delete b; } void is_it_defined() { D *d = new D; deleteB(d); B *b = new D; // Is this any differ...
stackexchange/codereview
I'm having problems calling a class function from my Widget as the result of a service action. public class HelloWidget extends AppWidgetProvider { @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { Intent intent = new Intent(context, NeoS...
stackexchange/codereview
I want to track a variety of properties relating to a row in a topics table, but I'm not sure if I should create a column in the topics table or create a properties table and insert each property in it's own row there. (or maybe some third option I'm not thinking of?) For example: properties ---------------- prop_id ty...
stackexchange/codereview
if i type in textbox 1,3 then checkbox1 and checkbox3 will be disabled not checked !! The coding i provide below is working but ,...it chekec the cjeckoxes according to the text in textbox i.e (1,3) then checkbox1 and checkbox3 will be checked .. .. but i want when i type 1,3 in textbox then checkbox1 and checkbox3 wil...
stackexchange/codereview
I'm trying to help my friend test his anti-cheat program on his torrent tracker. The announce URL of his tracker is: "http://www.exampletorrentsite.com:60000/3b74fb48a6247bc8er6s1b85ec734d22/announce" From what I understand, torrent announces uses the GET method, and I'm guessing that the query string is appended after...
stackexchange/codereview
I want to be able to draw consecutive bitmaps (of type BufferedImage.TYPE_INT_RGB) of a video as quickly as possible in java. I want to know the best method in doing so. Does anyone have any advice where I should start? From what I've read, 2 options are: 1) Use GDI/GDI+ routines in a JNI dll working with JAWT (Im on W...
stackexchange/codereview
I am currently working on a c++ program and I want to check to see if the input the user is making is valid. Currently my code works if the user inputs the proper input or if the user inputs a small incorrect number my pogram will tell the user that the input is invalid. Now my problem is that when the user inputs mult...
stackexchange/codereview
I can't opened existing solution or create new, blank solution in Visual Studio 2010 Ultimate. Few days ago everything worked fine. I have Windows 7 x64. Any ideas, what should I do?
stackexchange/codereview
I have a Visual Studio 2008 .NET Framework 2.0 project that I'm building. It has some custom components. These are not populated into the Toolbox. Why not? I once added a custom user control to the box, and it auto added all my components. But, when I restarted Visual Studio 2008, it failed to auto populate the com...
stackexchange/codereview
Each XML Web Service needs a unique namespace in order for client applications to distinguish it from other services on the Web. By default, ASP.Net Web Services use http://tempuri.org/ for this purpose. While this suitable for XML Web Services under development, published services should use a uniqu...
stackexchange/codereview
I registered Mono.WebServer.dll in the GAC with: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe Then I wanted to install an additional assembly in the GAC and I got: gacutil is not a valid win32 application. I used the same gacutil both times... I restarted and the problem persists.
stackexchange/codereview
I'm working on an interactive CD for a summer camp. What are my options for showing a PDF file within a Flash projector? AIR or a .NET wrapper are not options because we can't rely on any frameworks that may not be installed on the end-users' machine. (We've used FlashPaper in the past, but it looks bad and its not sup...
stackexchange/codereview
I want to have lock on my folder permanently using C#. That lock should be accessed by the application only whenever it is requested. When the application is closed, that lock should not be accessible. Also when the application is running, that folder cannot be moved or opened outside the application. Means, only throu...
stackexchange/codereview
in the code below, I need to get the ID of the element that has raised the event $(document).ready(function () { $(".selectors").live('change', function () { $.post("GetCategoriesByParentId/", { ID: $(this).val() }, function (data) { var idd = $(this).attr('id'); //here })...
stackexchange/codereview
OK, I got bit by something that seems a tad weird. I realize it was my mistake to not format the pathname correctly, but I would expect the following test to return false, especially since the folder did not exist. DirectoryExists("C:temp\\foo") but in fact, it returns true even though the directory does not exist! Th...
stackexchange/codereview
the scenarion is like this... I HAVE a namespace XXX where I created some tables and some stored procedures... THEY HAVE a namespace YYY where they created some tables... THEY GRANTED XXX access to their tables, so when I conect to SQL Developer using XXX connection, I can do: SELECT * FROM YYY.TableA But if I try t...
stackexchange/codereview
How performant is slicing in Python 3? I wrote a little program that processes 7.1GB of lines of words into a cut down format (infixes). Currently I get a processing speed of about 1.3MB/sec on the file collection. I already some improvements using common guides but I feel that I might be missing the real performance...
stackexchange/codereview
does anyone knows how applications like Foursquare, Gowalla, Brightkite, take the list of the nearby places?
stackexchange/codereview
After I interrupt execution in Python interpreter (using CTRL-BREAK in Windows), can I continue execution? If not, is there any other way to interactively pause execution (so I can view variable values), and then continue? I prefer not to use the debugger because it's much slower than normal execution.
stackexchange/codereview
I downloaded stlport from https://stlport.svn.sourceforge.net/svnroot/stlport/trunk/STLport and tried to compile it with Visual Studio 2008 SP1 on Windows 7 x64. The readme says to use: configure -c msvc9 but -c is an unknown compiler option so I used: configure msvc9 This seems to work according to the output, but it ...
stackexchange/codereview
I am trying to generate some comprehensive information about my databases compile a list of interesting queries for database usage. There is a log table with date username servertime clienttime user query as well as other tables that actually hold the query-able information. Edit (for constructive subjectivi...
stackexchange/codereview
I would like to be able to access all the components of say a Flash image gallery on someone else's site. I want to be able to find the images, image coordinates, action script code, audio files, video, etc. I do not want to manipulate these elements, I just want to view them and their related information. Is this pos...
stackexchange/codereview
As you know we use LinQ Technology to SQL Classes for send and get results to SQL. If I have a table called User in SQL, I write queries in C# like List<User> allUsers = (from s in dataContext.Users select s).ToList(); or // Update Query User u = (from s in dataContext.Users where s.Id.Equals(1) select s).First(); ...
stackexchange/codereview
The property android:layout_gravity="clip_vertical|horizontal" does the following as mentioned in the SDK documentation: Additional option that can be set to have the top and/or bottom edges of the child clipped to its container's bounds. The clip will be based on the vertical gravity: a top gravity will cli...
stackexchange/codereview
I have an app that connects to an external accessory via Bluetooth. Testers have reported that the connection gets dropped when "Low Battery" alert is displayed. This was reported on iPod touch 2nd gen., so it may be peculiar to that device. I am wondering if there is a way to run my app in debugger (connected to my co...
stackexchange/codereview
Can I refresh the whole page after making ajax calls. kindly check my code on this link for details. Actually I am saving on different server and I am making calls from different url and to see the changes refreshing the page is a must. Kindly let me know if you need more details. problem in refreshing the page after m...
stackexchange/codereview
Let's say you have an array like this: array ( ['one'] => array ( ['wantedkey'] => 5 ['otherkey1'] => 6 ['otherkey2'] => 7 ) ['two'] => => array ( ['otherkey1'] => 5 ['otherkey2'] ...
stackexchange/codereview
HI, I am trying to automate a Combo Box selection and then Screen Scrape the results. But I have a problem firing the Combo Box Change event which is not called when simply changing the selection. The onchange event is set to a JavaScript Function: Something like this: "AFunction(this,'combochange.asp?AVariable=true&')...
stackexchange/codereview
What can be provided to the location attribute of a <c:SimplePager ui:field='pager' location='HERE' /> I tryed CENTER, but it didnt work, I see in the expense sample app that they dont have a location attribute but instead set it on the creation of it in the UiBinder. But I cant do that since its a required attribut...
stackexchange/codereview
Where can I find a list of browser safe fonts? I mean fonts I can use in my webpages which will be displayed correctly in different browsers and versions both with Windows and Mac. UPDATE: Yes, I know how to search with Google. I just thought someone at this forum could give me a link to a matrix with font/browser/brow...
stackexchange/codereview
Traditionally I have always written my sql scripts by hand so they are nice and clean (I'm not a fan of the generated ones) and release to release, I provide a fresh install script and a migration script from the previous version that creates new tables, alters existing tables etc. This is all pretty standard. I haven'...
stackexchange/codereview
I have seen some strange behavior when using rails with partial layouts plus a helper method coded as an iterator using the yield keyword. I am hoping someone can: Explain what's going on and why I get the duplicate rendering and maybe Suggest an alternate approach, hopefully other than just re-coding my helper method...
stackexchange/codereview
I am currently using CodeIgniter to support one site, whose main purpose is to display multiple editable tablekit tables, and handle the AJAX that arrives when you edit them. A kind of PHPMyAdmin [VERY] Lite. It has a number of core helpers and controllers, which run the main workings of the site, mixed in with some si...
stackexchange/codereview
string date = txtWorkingDate.Text; DateTime dateTime = DateTime.MinValue; if (DateTime.TryParse(date, out dateTime)) { args.IsValid = true; } else args.IsValid = false; txtWorkingDate.Text is like "dd.MM.yyyy" becouse of this ...
stackexchange/codereview
Anybody know how to add the facebook v4 toolbox items? I tried adding facebook.dll and facebook.web.dll, but VS 2010 is telling me it couldn't find any toolbox items in them. Anyone know how to solve this?
stackexchange/codereview
I'm trying to make an extension method like this: public static T Optional<T>(this T obj) { return obj != null ? obj : Activator.CreateInstance<T>(); } However, it fails if there isn't a parameterless constructor for the type. Is there a way I can get an instance of an object without a parameterless constructor? ...
stackexchange/codereview
It's my belief that the Presenter is the one responsible for handling the navigation aspect of a MVP application. Is this true or are there exceptions?
stackexchange/codereview
I'm totally new to Java web development and I would like to choose a good Java web framework to learn. I've found some really good echoes regarding the Apache Wicket framework and the Playframework. I decided to go for one of 'em; but I need to choose ;-) So, what to choose and why? EDIT My requirements: I had a good ...
stackexchange/codereview
I have followed Tomek Janczuk's Pub/sub sample using HTTP polling duplex WCF channel but I've noticed that when a client disconnects by closing the browser the service does not notice on the next callback. I would have expected an exception or something to say that the endpoint was not there any longer. How can you kn...
stackexchange/codereview
I am tasked with making an app that works in iOS 4.0 work in 3.1.3 and 3.2 again. Mostly it is straightforward but the handling of the new API for scale and other situations where values must be passed/returned is hard. respondsToSelector/performSelector takes care of nearly everything else. Here's a simplified version...
stackexchange/codereview
So my grid at this point dynamically expands to whatever height and I can scroll down to get coordinates using e.GetPosition(mainGrid) relative to the grid. It works fine up until when I scroll. I'll give an example. I have a grid with some image in the background. The grid's height at this point is 950. If I drag my s...
stackexchange/codereview