instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Well, I'm simply writing this post to hopefully help others that might come across the same issue. The examples on the vendor website are a little vague and I had assumed the following scenario. You have a link with a hrefn to some content's #id. <a href="#content-div" class="fancybox">Open Example</a> And you have a...
stackexchange/codereview
Can anyone suggest me some nice questions which could be asked for a GWT Developer? I am looking for a GWT developer and I am not sure what questions can be asked. I am planning to ask questions on GWT-RPC, GWT Widgets, etc., but I am not sure what exactlty I need to ask.
stackexchange/codereview
I'd like to add a boolean property to a contact. To store this property I noticed that I can store custom notes with my own mimetype. So I created a listview which displays all contacts. The listview contains a checkbox and a text field. When the status of the checkbox changes I'd like to update the contact. public sta...
stackexchange/codereview
Is there a cloud based development for Django, such as there is cloud based development and hosting environment for Ruby / heroku
stackexchange/codereview
i've been reading a lot and have been trying to get this done for about 5 hours now... so here it is I want to write a script that will override a function dummy() {$.ajax(...)}; on a website. here is how i'm trying to do it unsafeWindow.dummy = function(data){differantFunction(); $.ajax(...);}; function differantFun...
stackexchange/codereview
I would like to customize the design of my facebook like-box. ive already search the net and follow all the instructions, here's the link ive tried but its seems obsolete: http://www.daddydesign.com/wordpress/how-to-customize-your-facebook-fan-box/ there are lots of tutorial in web, but have the same solution. been stu...
stackexchange/codereview
Facebook and Twitter have some cool widgets (share, comments, etc.) but I can not find similar poll widgets. What simple, customizable, and free poll widgets are there?
stackexchange/codereview
Is there a way to render WinForms controls like Crystal Reports Viewer asynch, or even in a different thread, without freezing the applicaton. My problem is that, when I assign the report source property, the viewer tried to render the report and some reports run for so long and it freezes the whole app. Thanks in adva...
stackexchange/codereview
How do i push more than 1 UIViewController at once?
stackexchange/codereview
I have jQuery validation working pretty well using a dialog for the error messages. The problem I am having is that when I click submit, and all the fields are filled out correctly, I have a blank dialog popping up before the form submits. I can't seem to figure out how to stop that from happening. Setting the onSubmit...
stackexchange/codereview
I'm working trying to automatically categorize short articles and I'm trying to figure out how to match similar words - eg, shelf shelves or painting and repaint I'm using the Porter stemming algorithm but it only helps for certain situations and only with the end of the word (both examples above don't work with it). ...
stackexchange/codereview
I've been trying to follow this tutorial on using Google Map View in Android. In the second part, they create an mContext member variable and then pass that into AlertDialog.Builder(mContext), but the constructor that they call to create an instance of an HelloItemizedOverlay doesn't instantiate mContext, so it's just ...
stackexchange/codereview
I'm writing Sping MVC based application all my methods inside a controller return ModelAndView objects. What I would like to do is to apply standard HTML footer on each JSP page, like signup/signin/about us/contact use/etc... Is there any way I can do it within a controller? I know that I can use <%@ include file="foot...
stackexchange/codereview
I've tried several ways to achieve this but here goes... I have the following directory: c:\one\two\three I need to get to this directory: c:\one\two Not always is it just 3 directories, it could be like this: c:\one\two\three\four\five In which I need: c:\one\two\three\four Always one directory down... Anyone have an...
stackexchange/codereview
I'm setting up security on my Rails App according to the Ruby on Rails Guide. My understanding is that the 'edit' method in the Users Controller (which I'm using to render my User settings view) should only be submitting a GET request, and that the 'update' method is submitting the POST request. But when I want to ver...
stackexchange/codereview
I am using XSLTJSON to convert my XML to JSON. My raw XML is not in the format that I want, so I first pass it through an XSL stylesheet to clean it up and then pass the output of that stylesheet into XSLTJSON. Right now I'm doing this by calling transformers serially. I'd like to streamline it and have only one ca...
stackexchange/codereview
I have a webforms control, my:Repeater, that is an asp:Repeater. I want to make a default template, like: <my:Repeater> <HeaderTemplate> My Default Header </HeaderTemplate> <ItemTemplate> My data </ItemTemplate> <FooterTemplate> My Default Footer </FooterTemplate> </my:Repeater> I want this tem...
stackexchange/codereview
i'm working on gpsprovider,If user click on a gps based applications for suppose map application it has check whether the gps provider enabled or not if not alert the user enable the gpsprovider . There will be a Broadcast Receivier. Will define a message for requesting the service from any application. Will start ser...
stackexchange/codereview
Is there a way to support multi-line values in a build.properties used by Maven's filtering mechanism? I have several that are like this (they are the Base64-encoded version of a certificate, like the one below). Making it a single-line value is possible, but not that great when editing. MIICQDCCAakCBEeNB0swDQYJKoZIhvc...
stackexchange/codereview
I am using the default simulator, Can I make simulator identical to some common device I mean one identical to HTC, one identical to droid motorla, one of samsung, dell, acer,..etc Here identical I mean all the features that it provide. Thanks
stackexchange/codereview
I am trying to install TclPro1.4 on 64 bit host. Here is what uname -a returns: Linux hp1 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux I have installed TclPro1.4 from corresponding iso disk image (it is available by the link mentioned above), but it installed 32 bit libraries ...
stackexchange/codereview
One question I have yet to find an answer on is this. How do I keep track of active Sitemap nodes on multiple levels? For example : node 1 node 2 "active" Child node 1 Child node 2 "active" node 3 How do I keep track of a childnode being active as well as the parent it belongs to being marked as active. I know the...
stackexchange/codereview
I am creating an iPhone app in which I am providing a call feature with the help of which a user can call place a call on a specified number. I am able achieve the above feature via open URL. Now after completion of the call I want to resume the execution of app automatically. Although a user can make a fast app switch...
stackexchange/codereview
All of a sudden I'm having a bit of an OO crisis. Over the last couple of years I've made quite good use of Singleton objects. I used them in many places. For example, in designing an MVC Java application, I'd create a Singleton 'SystemRegistry' class to store the model and view classes (I've only worked on simple apps...
stackexchange/codereview
I'm starting my first steps with 2D arrays in Java. I require some help on a practical example. The below code should store students and their results for the 3 different courses in a table but the code throws an error. The error is caused by the line int studentResults[x][y] = sc.nextInt(); Any ideas? Thanks. import j...
stackexchange/codereview
I tried to implement 2 plugins in a page and when i introduce the 2nd one... the 1st plugins stops working .. can you please help me in this.. he is the page i am trying to build.. http://www.abc.com/home21 and here are the 2 plugins i am trying to use. http://www.catswhocode.com/blog/how-to-integrate-a-slideshow-in-yo...
stackexchange/codereview
I am using ajax to bring up a selection. The user has to click one item in the selection. a. Ajax takes some time, do I need a delay in the test, and if so how? b. The selection appears as multiple items and the class in the tag defines it as clickable item. How do I tell cucumber to select an item from the selection...
stackexchange/codereview
We have a simple ASP.NET app that uses the ASP.NET SqlMembershipProvider and all is great. We want to create a second app on the same server, also use the SqlMembershipProvider, but a different "applicationName" so that the user accounts between the two apps are kept separate. It looks like this would be possible by ...
stackexchange/codereview
Is there any possibility to create a new issue in TFS when email is arrived on the certain address (email subject will be used as issue title, email body as content, email author as source for "CreatedBy")? I guess, it is possible to write an application that will monitor incoming emails somehow,.. but is there any con...
stackexchange/codereview
I have am trying to include a JSON parsing library into my app and I downloaded a JSON library from github, so I dragged the JSON directory into my Classes Folder in XCode and I can open up JSON.h fine and see all of its contents. But when I import it into my implementation file with this code: #import "JSON/JSON.h" I...
stackexchange/codereview
Sorry, I don't really know how to title this question. Here's my code in view: <% country.cities.each_with_index do |city, i| %> <% city.shops.each do |shop| %> <%=h shop.name.join(", ") %> <% end %> <% end %> So in this city, let's say there are three shops: Walmart, Ace Hardware, Harman Kardon. The result of...
stackexchange/codereview
Is it possible to use the Unix netcat (nc) program to create a TCP proxy server and monitor? I would like all TCP traffic to be passed across the pipe, as well as sent to stdout for monitoring. Note this will be used for monitoring HTTP traffic between a hardware device and an HTTP server.
stackexchange/codereview
I'm writing an iPhone/iPad app, and I'm wondering if future updates will wipe the application's sandbox data (this is of vital importance for me since my app will use in app purchase). I've already googled around but couldn't find any definite answer. Thanks!
stackexchange/codereview
If you were a one developer startup, which service would you pick and why? If the goal is to get to market really fast. Would you go with GAE and build everything from scratch on Python, and one click deploy? or pick AWS, setup the server and db, use Rails, and do some admin work?
stackexchange/codereview
I am currently developing a game using XNA (School project), and I was wondering if there's a way to list all the resources during runtime because my resource files are named ###-Name## and I want to index them on the first 3-digit number.
stackexchange/codereview
How to identify the session time out issue while updating the value in the grid and redirect to login page. My application (java spring hibernate with extjs) i.e. I am updating the extjs grid record and while submitting the changes, if the session is expired I need to identify that particular exception and redirect to ...
stackexchange/codereview
On 64 bit host I am trying to build shared libraries with -m32 option. Is it possible for these libraries to be linked with regular 64 bit libraries? I am doing something like this: g++ -m32 -shared source.cpp -l 64_bit_library.so -o 32_bit_library.so and getting error messages like this: /usr/bin/ld: skipping incompa...
stackexchange/codereview
I'm teaching myself how to make custom AVD skins by editing the layout file and associated .png files in the android-sdk-windows\platforms\android-nnn\skins\ folders. The syntax of the layout file is simple and pretty self-explanatory but I'm curious about it ... Is it meant to be hand-edited or is it generated fro...
stackexchange/codereview
Can somebody tell me how to highlight common substrings between two buffers in Emacs? I can write a script to do that but was wondering if there was a built-in macro in Emacs by which I can do this. Thanks, Raj
stackexchange/codereview
I'm configuring log4net with: [assembly: log4net.Config.XmlConfigurator(ConfigFile = "../ProjectName/Log4Net.config", Watch = true)] I have 2 appenders configured: 1. An AdoNetAppender logging to a Log table on a mssql2008 database. 2. A FileAppender that just looks like this: <appender name="FileAppender" type="log4n...
stackexchange/codereview
I have added the jdbc driver to my classpath as far as I know i.e. I added the following to my .profile export CLASSPATH=$CLASSPATH:location/to/the/jarfile.jar When I compile my java program I always get this error javac v9.java v9.java:8: <identifier> expected Class.forName("org.postgresql.Driver");//load the driver ...
stackexchange/codereview
The way I want my stored procedure to work is this, the user passes all of the customer data, name, phone, and all of address info into the procedure, then I want to perform an insert into the address table, get the id generated from that insert, use that id in another insert for the customer table then return the cust...
stackexchange/codereview
I have a <textarea> that I want to grow by one row every time the user enters into the last row shown in the <textarea>. Is this possible? I have seen it done before, but can't figure out how to do it.
stackexchange/codereview
I like the way Google Maps' api is consumed, using a script include, but I'm worried: My api is "semi-private", that is, accessible over the internet but should allow for secure transmission of data and some kind of authentication. The data should remain private over the wire, and one consumer shouldn't be able to get ...
stackexchange/codereview
there is a way by which we parse any time input given by user... here i am taking the input of a connection string from a text file i am supposed to assume that the user who keeps this string in the text file can be trusted. but what if he makes a typo a mistake unknowingly, that will cause the coming code to cause exc...
stackexchange/codereview
I'm getting an error from this Twitter script that is causing the rest of the page to not load. Not sure why suddenly this is happening, where it was functioning properly for quite some time. The script looks like this, and it pulls the users current status: <?php $response = new SimpleXMLElement('http://twitter.com/...
stackexchange/codereview
Is it possible to do the following: I want to run the following: mongodb bin/mongod In my bash_profile I have alias = "./path/to/mongodb/$1"
stackexchange/codereview
I'm having problems with the visual studio 2010 editor. Since today, visual studio won't underline errors any more if I use #define like so: #ifndef TEST_H #define TEST_H class foo{ blabla } #endif If i remove the defining commands, the errors show up. The weird thing is, I have other files in my project with the exac...
stackexchange/codereview
i'm new with this thing named interface and DirectX. I'm hooking a DirectX Interface from a certain game and i'm using the DirectX to Draw My Own stuff,like textures and Fonts. My problem are that: When the program call the Hooked Reset Function of the Device,i need to clear all my things from the memory,the Com Interf...
stackexchange/codereview
I am trying to present a modal view in a tabbar app. I am using the code - (IBAction)newView { [self.viewController presentModalViewController:viewController animated:YES]; } linked to a button. When the button is pressed, nothing happens and nothing is displayed on the log. ...
stackexchange/codereview
I know there are no pointers in C#, but I am trying to figure out how to do the following, which I would have done with pointers (or better yet, iterators) in C++ (I am taking a course in C#, but I already know C++). We got an assignment to write a simple "store" program (inventory, transactions, etc.). My first idea (...
stackexchange/codereview
I have tried multiple aproaches, but as I cannot use self in the class body, self.__class__.__name__ is not available. Would I need to override the save method to do this? Thanks for your help.
stackexchange/codereview
I am trying to modify the heapSort algorithm into version with random pivot , and I dont know what to do. Could any one help me ? This is the code: //QuickSort w C# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace QuickSort { class Program { //Zamienia m...
stackexchange/codereview
I am working on an alarm app. I followed the Android AlarmController tutorial word for word with only some minor changes. For some reason my Broadcast Receiver's onReceive() method is not being called when the alarm goes off. Here's the code: // the callback received when the user "sets" the time in the dialog priva...
stackexchange/codereview
I'm new to this forum and have a dilemma with my MySQL/PHP site. Now I've created a function that will pass a SQL query to it and execute it. What I didn't account for was the fact my SQL query being passed to the function is showing up in the "view source" of all browsers; which is BIG security concern because hacke...
stackexchange/codereview
I'm reading the sample code for the bezier curve on the online version of opengl's tutorial. I'm curious about how is resize being handled in the example cause I figure I might use it on my own version of this program , I placed my questions on its comments: void reshape(int w, int h) { glViewport(0, 0, (GLsizei) ...
stackexchange/codereview
This is the model: class Rep(db.Model): author = db.UserProperty() replist = db.ListProperty(str) unique = db.ListProperty(str) date = db.DateTimeProperty(auto_now_add=True) I am writing replist to datastore: L = [] rep = Rep() s = self.request.get('sentence') L.appen...
stackexchange/codereview
I have a json store loaded, I need to grab one record from it. I used : getAt(index), find(), getById(), but no results . This is my code : var appSettingReader = new Ext.data.JsonReader({ root: 'results', },[ {name: 'id', type: 'int', mapping: 'id'}, {...
stackexchange/codereview
I've been working on a one-person project for a while and I'm using an online-hosted SVN repository as source control. Now, we are hiring a few offshore developers to help me on the project. My concern is, I don't want them to start checking code in to my repository at least while they are learning. I'd rather have the...
stackexchange/codereview
I have a div that is encased in an html <a> tag, so clicking anywhere on that box will lead the user to a new location. I would like to add one button inside that box that leads somewhere else (a more specific location than the encasing div's link. At the moment, adding that second <a> tag inside my div closes the orig...
stackexchange/codereview
I am having a lot of trouble accessing a value in an array of chars at a specific location. I am using inline-assembly in C++ and using visual studio (if that is of any help). Here is my code: char* addTwoStringNumbers(char *num1) { // here is what I have tried so far: movzx eax, num1[3]; mov al, [eax] } W...
stackexchange/codereview
Is IO more efficient, due to the linux disk buffer cache, when storing frequently accessed python objects as separate cPickle files instead of storing all objects in one large shelf? Does the disk buffer cache operate differently in these two scenarios with respect to efficiency? There may be thousands of large files ...
stackexchange/codereview
I am writing an app for the iPhone using cocos2d where I have 4 Sprites that are buttons. I want to allow and respond to the following (allowing the user 3 seconds to apply his input before timing out): -- Single button presses (I have this part working). -- Pressing of more than 1 button at at the same time (each comb...
stackexchange/codereview
Is it possible to update a dataset in a local, installed package? A package that I maintain has a dataset based on periodically-updated data. I would like to update the local version of my dataset and save the changes back to the package such that next time I load the data, i.e. data(xxx), the updated version of the da...
stackexchange/codereview
How can I measure the time it takes to perform a method call? I would like to know in order to time my delays properly. I'd appreciate any help you guys could give me. //Start measuring here [self method]; //Stop measuring here
stackexchange/codereview
This might be easy for those who play with regular expressions. str = "Here is 'sample' test"; str = str .replace(new RegExp('"', 'g'), ''); str = str .replace(new RegExp("'", 'g'), ''); How to combine 2nd and 3rd line, I want to combine regular expressions new RegExp('"', 'g') and new RegExp("'", 'g') into one regula...
stackexchange/codereview
I have a simple Spring MVC application with a REST-like web service. When I load-test this app - from time to time it throws the following exception. I don't know why this could happen, but it happens only during load-test - therefore under load. java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 java.util....
stackexchange/codereview
I'm using the GNU extension "char** backtrace_symbols(void *buffer, int size)" to get the stack trace, when an exception is thrown. Is there a library function which converts the symbol into a "human readable" string - to redo the name mangling? If not, I would write my own function according to this Wiki article. Conc...
stackexchange/codereview
I have tried everything according to instructions to get the MapsDemo to work on API8. I followed all the certificate signing instructions and all I get is a blank (blue) screen on the emulator. I see that people have been having the same issues but all the suggested solutions boil down to the certificate signing and t...
stackexchange/codereview
How can I get a reference to my ListBox's ScrollViewer in C#? I've tried pretty much everything I can think of. The ListBox is in a WPF custom control so we use Template.FindName to get references to all our controls. My ListBox looks like this: <ListBox x:Name="PART_SoundList" ScrollViewer.CanContentScroll="False" ...
stackexchange/codereview
I have a transation that doesn't seem to rollback and getting a strange error. I'm using a transaction that is connected to SQL Server 2008 on a different server and MSMQ on the same server as the code. Here is an example of the code: void MyMethod() { try { using (var outterTrans = new T...
stackexchange/codereview
I'm doing a bunch of caching tasks in my rails initializers. They're useful for the website, but absolutely useless and time consuming when I launch rake tasks. Is there a way in rails to know when the app has been launched from a rake command? Thanks
stackexchange/codereview
I'm porting a C# library to COM and I'm having a hard time trying to translate some delegates. The C# library works with some callbacks (using delegates). Usually I would translate that to events to be consumed by COM clients but the library only makes public Interfaces so I can not use the ComSourceInterfaces. As an e...
stackexchange/codereview
Requirement : I am having content with many lines. I need to extract first line and add new line after that. Condition : First line can be ended with . , ? , ! and followed by space with Capital letter or any number . There might be already new line after . , ? , !. In that case we need to replace those extra new line ...
stackexchange/codereview
I have 2 arrays of Doubles of the same length. Array a is filled with some data, array b is to be calculated. Each element of the array b equals a corresponding value from array a plus a weighted sum of all preceding elements in the array b. A weighted sum is calculated by adding all those elements each multiplied by a...
stackexchange/codereview
Let's say you have a complex resource in a REST API. You have several one-to-many flags and attributes on this resource (i.e., a user may have given the resource a rating of 1 to 5 or the user may have 'liked' the resource or marked it as spam or ignored it or caused some other state to be set). Some suggestions have ...
stackexchange/codereview
I'm writing a client-server solution which is using Java RMI (Via the Cajo project). I want to make the server as secure as possible. I understand that by using Java reflection, a malicious client would be able to view all method names and field names inside any given object which has either been bound in the RMI reges...
stackexchange/codereview
how to achieve Value inheritance of DP in silverlight, or is there any way to share a property value of parent with children, Datacontext cant be shared in my case.
stackexchange/codereview
How to display MSSQL exception messages in C# in a specified language (English) instead of in the UI language? I tried changing the thread's CultureInfo but it didn't change anything.
stackexchange/codereview
I have a WCF service that I have created and is working. It is a very basic service for now and has the following code: using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; using System.ServiceModel.Activation; [ServiceCon...
stackexchange/codereview
The Single Responsibility Principle says, for example, that an Invoice class should not contain the code to print itself. Printing should be separated out into a different class. But suppose you have a hierarchy of Invoice classes in different layers of the software: namespace CoreLayer { public class Invoice { ...
stackexchange/codereview
I'm writing a simple vb6 button which tests the access of the registry values. I have the following: Private Function registry_read(key_path, key_name) as variant Dim registry as object set registry = CreateObject("WScript.shell") registry_read = registry.regread(key_path & key_name) End function Private Sub Comma...
stackexchange/codereview
I know that cross-domain requests are disallowed for security reasons, but I was under the impression that only the top-level domain needed to match, that different sub-domains were okay. However, I am getting this error from Chrome 7: "Unsafe JavaScript attempt to access frame with URL http://foo.somedomain.com/dir/p...
stackexchange/codereview
How do I pass a list of integers using the s:a href and param tags in Struts 2? Example POJO: private List<Integer> myList = new ArrayList<Integer>(); public List<Integer> getMyList() { return myList; } public void setMyList(List<Integer> myList) { this.myList = myList; } Example JSP Page: <s:url id="testUrl...
stackexchange/codereview
Hello all gurus in the area of ASP.NET AJAX and JavaScript! Here's the deal: I have a user control (ascx) that currently contains a help Button and a ModalPopupExtender showing a Panel. The idea is that the user clicks the button and the help info is presented in a modal popup on top of the page, with another button to...
stackexchange/codereview
I am using the iPhone EXIF data from a photo that I am capturing. Currently the EXIF data I am getting back is: { ApertureValue = "2.970854"; ColorSpace = 1; ComponentsConfiguration = (1,2,3,); ExifVersion = (2,2,1); ExposureMode = 0; ExposureProgram = 2; ExposureTime = "0.03333334";...
stackexchange/codereview
I've got an asp.net application, it's running on DotNetNuke, under load we get the occasional out of memory exception. I've got a dump loaded it into windbg. the end of !dumpheap -stat is 1192a588 88684 2128416 AutoMapper.MappingEngine 79333594 9482 2266348 System.Byte[] 134b0034 88695 2838240...
stackexchange/codereview
this is my ComboBox: WeeklyStartDate and WeekNumber I want to display in the DisplayMember property. But WPF says I can not use DisplayMember as I use already an ItemTemplate... How can I display with the below code a custom DisplayMember when I clicked on an item in the ComboBox ? At the moment it is using the ToStrin...
stackexchange/codereview
I am trying to debug a Google AppEngine project in Eclipse/PyDev running on Ubuntu. Debugging generally works fine, but I am not able to evaluate expressions in the debug console. I believe the console is starting the AppEngine server and is pausing waiting for the AppEngine development server to end so I am not able ...
stackexchange/codereview
I have a C++ COM Server which I have recently recompiled to 64 bit. This COM server has a method that contains a struct parameter which contains some ints and a BSTR and another structure. Now, I am trying to call this COM server from a 64 bit .Net C# application. I can successfully load my COM server and call this ...
stackexchange/codereview
What should I keep in mind when performing calculations using .NET? For example, I know a little about floating point errors, but am unfamilliar with this forum post on CodeProject. What do I need to know to complete my knowledge of .NET-based math so that I can advise how to work with parameters and results of vary...
stackexchange/codereview
I am not looking for an answer here rather more of a shove in the right direction. I have a table on a datawarehouse server containing customer information, and I would like to create a stored procedure/job that updates that table nightly from the live version of the table. However, there are a lot of records, so I d...
stackexchange/codereview
I'm trying to traverse a simple XML document with Java, but for some reason whitespace is being counted as nodes. For example, I have this: factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); DOMImplementation domImpl = builder.getDOMImplement...
stackexchange/codereview
I have two questions: 1) Is it possible to implement an allocator that uses alloca to allocate memory on the stack and is otherwise C++ STL compliant? If there is code out there, you can make me happy by simply pointing me to the URL. :-) If there is no code out there, perhaps you can sketch the functions allocate and ...
stackexchange/codereview
I am running a query to return State, City, and Zip from my database. How do I get JAX-RS (Jersey) to return this like this; <State> <City> <Zip></Zip> </City> </State> and so on...... Do I need to build an object that matches my xml structure, then pass that to JAX-RS, or can JAX-RS build it for me based ...
stackexchange/codereview
What is the best way to update a "Web-Application" ("re-publish" from dev server to live server) while preserving user-data (such as images, videos, and audio stored in the filesystem) in a VS 2010 build/publish setup? Additionally, what is the best way to minimize site downtime during these updates? My backstory: Usu...
stackexchange/codereview
Looks like .NET 4.0 is ignoring the DEVPATH env var for specifying custom directories for locating assemblies. Is support for DEVPATH not available anymore in .NET 4.0? Is there an alternative?
stackexchange/codereview
hi I'm trying to add a disabled option to a select box with the form helper I use this code to generate an extra empty field, but I want this field disabled. echo $this->Form->input('User.usertype_id',array('type'=>'select', 'empty'=>'usertype'); this generates: <div class="input select"> <label for="UserUsertypeI...
stackexchange/codereview
I always thought that ConcurrentHashMap and similar classes (which maintain synchronized updates and don't synchronize reads) did a very useful and intuitive thing: they did not lock reads and lock all functionality on updates. And a strategy like that does keep all things consistent. But I read the documentation caref...
stackexchange/codereview
I need a Password strength control for ASP.NET. I looked at control in ajax control toolkit, but it isn't fully configurable. I need to place it statically on the layout.
stackexchange/codereview