instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a custom Canvas control (inherited from Canvas) overlaid over a large area of User Controls. The idea is to draw paths between user controls (i.e. connector lines). To capture mouse movement, I call Mouse.Capture(theCanvas) on MouseDown. This works beautifully, but the user controls under the canvas obviously no...
stackexchange/codereview
I created a JAR file with my Java program. This piece of code will open a few files inside a dir "Test", which is in the same dir as the JAR file. Like this: / -- program.jar -- /Test -- * If I run via terminal with: java -jar program.jar, it runs perfectly. But if I run graphically (right clicking on the jar f...
stackexchange/codereview
I would like to print reports in icefaces, but could got find any proper method for it. Please guide me for implementation of the same in my project.
stackexchange/codereview
I am a novice programmer when it comes to Java, I have Java:How To Program 7th Ed. that I am reading. My major is Computer Science so I have a little bit of knowledge about what yo do but as for the Application. I am trying to make a game app and was wandering what would be a good source to reference for various things...
stackexchange/codereview
I'm curious if there is a way to create DocType nodes via W3C DOM? The spec explicitly states that they are readonly and cannot be edited, but are they able to be created? http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-412266927 The Document interface doesn't seem to have any create method for it: http://www.w3....
stackexchange/codereview
I'm trying to change the default light gray highlight on a selected ListViewItem to be the blue highlight that shows up when the ListView is focused. I've been trying to reconcile different StackOverflow answers and sources online, but I haven't figured out what kind of XAML I need yet. I have the following: <ListVie...
stackexchange/codereview
I have a script named data.php that looks like this: /* do some stuff */ echo $result; /* do some other stuff (eg database operations) */ I need to use the output of data.php in another script but I don't want the caller script to wait until data.php is finished. What's the easiest way to do this? Thanks in advance!
stackexchange/codereview
I have a jboss(5.1.0.GA)/seam(2.2.0.GA) app that gives me a lot of work everytime I need to setup a development environment for it. What I want is to port the build to maven, and have it setup all the development environment for me(including downloading and configuring the AS). How could I acomplish something like th...
stackexchange/codereview
I have the classic 'get all rows in one table with number of corresponding rows in another table' issue which should be solved by this query: SELECT ideas.id, ideas.idea, submitted, COUNT(votes.id) AS vote_count FROM ideas LEFT OUTER JOIN votes ON ideas.id = votes.idea WHERE dead = 0 GROUP BY votes.idea...
stackexchange/codereview
A digital certificate is a digital document that certifies that a certain public key is owned by a particular user. Thus if you trust the CA that signed the certificate C, then you can trust that specific public/private key pair is owned by the owner of certificate C. a) Assume client A wants to establish a connection ...
stackexchange/codereview
Project Linker: Synchronization Tool -- I have read this and still don't understand what the point of it actually is. Oh, and I tagged this with prismv2 because it seems to have some association to it.
stackexchange/codereview
I am brand new to Java :) I have 2 String lists and I was wondering what would be the most efficient way to compare the two and have a resulting array which contains strings that are not in the other. For example, I have a list called oldStrings and one called Strings. I have seen the Comparator function but don't full...
stackexchange/codereview
public class TabbedArea extends JTabbedPane { public void addArea(){ add(component); final JPanel panel = new JPanel(new BorderLayout()); panel.add(new JLabel(title), BorderLayout.LINE_START); JButton closeButton = new JButton(new CloseIcon()); closeButton.addActionListener(new ActionListener() { ...
stackexchange/codereview
I have a Silverlight DataGrid and I can't figure out how to style it. When the user hovers over a row, the background color that is applied to the row (by default) does not fit well with the rest of the UI. I want to change this background color on hover. How do I do it?
stackexchange/codereview
I have IMHO very strange problem with three-argument constructor , When I try to run the program visual studio shows me only one bug: " 'Sort.HeapSort' does not contain a constructor that takes 3 arguments 112 35" . namespace Sort { class HeapSort { private int[] A; private int heapSize; ...
stackexchange/codereview
I'm stuck on a problem I'm working on with a text file. The file is just a flat text file with some dates that have been added, in other words a simple log file. My problem is this "I need to comment out a number of lines, that number passed as a param". The part I'm hung up on is the actual commenting out X number of ...
stackexchange/codereview
I have a method like void Test(Func<bool> f) { f.Invoke(); } I pass in the Test( ()=>GetItem("123") ) f.Invoke() actually called GetItem("123"). I want to know how does f know GetItem has a parameter?
stackexchange/codereview
I have a VC++ character array "wchar_t arr[0x30] = { 0x0,0x1,..., 0xC...hexadecimal initialization here ......}". There is one more C++ character pointer wchar_t * xyz. An operation something like---- wchar_t ch = arr[xyz[2]] is done. Can someone kindly explain in detail what is happening in this, because ar...
stackexchange/codereview
I converted a project from html into aspx Issue is, all the extension got changed. e.g. "www.example.com\index.html" Changed to "www.example.com\index.aspx" which give problem to SEO's. so now when i search for the web i get the link as www.example.com\index.html and if i try to go in it, it give me the error of 404 ...
stackexchange/codereview
I need to optimize the following update query on SQL Server 2005/2008: UPDATE dbo.TargetTable A SET TargetColumn = 0 WHERE TargetColumn = 1 AND 1 = ( SELECT COUNT(*) FROM dbo.TargetColumn B WHERE A.Id1 = B.Id1 AND A.Id2 = B.Id2 AND A.Id3 = B.Id3 ) About table...
stackexchange/codereview
I need to access my http://localhost/ (in IIS 6 on VM) from the MAC Host (Safari). I am using NAT (or can use Bridged) network connection to the Guest, but not sure how to identify IP addresses, etc. A novice when it comes to networking ;-) Thanks, Geoff
stackexchange/codereview
i have a fax sending application in vb.net and i was sending the fax through the fax console the fax console shows me that documents in it's queue are being sent when the service is started .but it send just one document when started.and doesn't sends the next document but even though fax console shows that the seco...
stackexchange/codereview
I am trying to move a subversion repository to a new server, but leave its mirror where it is. I have done the following: Dump old repo Load dump into new repo Setup the new repo's post-commit hook to svnsync to the existing mirror The hook: #!/bin/sh svnsync --non-interactive sync https://mirror.example.com:443/sv...
stackexchange/codereview
I have an UIViewController subclass and an IBOutlet named map to an MKMapView instance. So far, so great, but sometimes the app crashes without a reason when the view controller triggers the viewDidLoad method. This is absolutely randomly, but only happens when I created around three instances and then create a new one...
stackexchange/codereview
I am seeking for a C library that does approximate string matching. Calculating Levenshtein distance for example. My query strings will be ~512 bytes. I know about Flamingo but it is C++.
stackexchange/codereview
I began setting up a TeamCity server a couple days ago for use in automated testing and CI. We mainly do VB.net web apps and up until now, it had been checking out things and building just fine. A problem came up when I tried to add actual deployment into the mix. I saw this article: http://www.diaryofaninja.com/bl...
stackexchange/codereview
This might be a dumb question, but I don't seem to be able to create a textfile that is writeable by all the users on a machine, they are always owned by the currently logged in user. Any ideas? Should I be using TextFile or TFileStream?
stackexchange/codereview
I am writing a program that is meant to be used over a local wifi network. With the intention of providing some security, I am considering to have devices connect over local https. Is it considered to be common practice to generate one self signed key pair using openssl, then distribute a software package that uses tha...
stackexchange/codereview
Hey, I have a problem similar to this one (click). Approx 2 hours ago Django stopped running my tests. And I have no idea why. I did some refactoring, then got an ImportError and after I reverted the file, Django stopped running any of my tests. I already deleted all the *.pyc files but nothing changed. The situation...
stackexchange/codereview
I'm having a big issue with a static HTTPS connection method. Every second request fails and HttpsUrlConnection.getResponseCode() returns -1. So every second call works well, returning data as expected. It's the method of a static class I'm using in different corners of my application. I would guess there is anything ...
stackexchange/codereview
The Android autocomplete only starts after two letters. How can I make it so the list appears when the field is just selected?
stackexchange/codereview
I have the following PHP function function newUser($username, $password) { $checkUsernameAvailablity = check($username); if (!$checkUsernameAvailablity) { return -1; } $checkPasswordComplexity = checkpass($password); if (!$checkPasswordComplexity) { ...
stackexchange/codereview
New to Entity framework. I am using EF4 and I have implemented for now Database first using Stored procedures. I have noticed that when I launch the application and regardless which stored procedure is invoked it takes 6 seconds .After that even if call another stored procedure that has never been called before the res...
stackexchange/codereview
class ServiceInline(admin.TabularInline): model = Service class PlanAdmin(admin.ModelAdmin): inlines = [ServiceInline] class ServiceAdmin(admin.ModelAdmin): def save_model(self, request, obj, form, change): instance = form.save(commit = False) if not instance.created_at and not instance...
stackexchange/codereview
I want a way to get a unique ID for a 2d array. for example: Array A: [4,2,3] [4,5,6] [7,8,9] Array B: [9,2,3] [4,5,6] [1,1,9] I want a function to know that A<>B without save whole A and whole B. Thanks in advance
stackexchange/codereview
I have my Servlet responding on the everything "/" url-pattern. Inside I need to sometimes render html, so I'd like to .include a JSP page, but I'd like that .jsp to be inaccessible externally. Also, how can I pass a model object into it.
stackexchange/codereview
I've tried installing sbt to start using Scala version 2.8 in Ubuntu. (I'm currently using version 2.7.) When I run sbt from the terminal I get the following output: $ sbt Project does not exist, create new project? (y/N/s) y Name: HelloWorld Organization: org Version [1.0]: Scala version [2.7.7]: sbt version [0.7.4]...
stackexchange/codereview
i am working on a project that requires me to create multiple threads to download a large remote file. I have done this already but i cannot understand while it takes a longer amount of time to download a the file with multiple threads compared to using just a single thread. I used my xampp localhost to carry out the t...
stackexchange/codereview
I ran into some dropdown flickering issue on IE due to mouseover and mouseout , so i changed the code to hover and live as the data is dynamic from ajax. But the following code is not working , i got the latest jquery also. The following code is getting executed without error but not working $('.cs-rec').live("hover", ...
stackexchange/codereview
well i have been use static mod_rewrite rules for some time now like i used to do this RewriteRule ^Animals\.html$ wallpapers.php?f=Animals&of=0&s=Newest but now what i want to do is create the URL of the leech pages with keywords... LIKE preview.php?image=26 preview.php is my leech page & 26 is my imageID(primary ...
stackexchange/codereview
I have two tables Entity and Message. as each entity can have many messages so it's like parent child relation. I dont want to use doctrine custom query so I am loading entity message like $this->currentUser = Doctrine_Core::getTable('Entity')->find($entityID); and then "$currentUser->getMessage()" gives me all messag...
stackexchange/codereview
i dont't use java very often and now i got some Problem. I want to read a CSV file like this one: A,B,C,D A,B,F,K E,F,S,A A,B,C,S A,C,C,S Java don't know dynamic arrays, so i choose an ArrayList. This works so far. The Problem is: How can I store the ArrayList? I think an other ArrayList would help. This is w...
stackexchange/codereview
What is the correct configuration to implement a custom virtual path provider in IIS 7.5? The following code works as expected when run from Visual Studio using the ASP.NET Development Server but does not load the image when run from IIS. .NET 4.0 Project File CustomVirtualPathProvider.zip - SkyDrive file Web.config ...
stackexchange/codereview
I've created a private and public key using keychain as explained in the development portal. However, whenever trying to upload the certificate to get a distribution certificate in the portal at https://developer.apple.com/ios/manage/certificates/team/createDistribute.action and pressing "submit" the Safari browser cra...
stackexchange/codereview
We need to build dynamically generated Visio- or UML-like diagramms for on a website. We use C# (.Net 3.5 Framework). We have all kind of entities which are related to eachother. One entity can have multiple relations with other entities (0...n). So I will have many blocks and many lines between those blocks and it has...
stackexchange/codereview
One of the most annoying things when working with Flash/Flex projects is that it takes soo long to build the project. In a Flash game I am doing, it takes more than one minute to build it... So, the question is simple: Is that normal? Am I doing something wrong? Is there a way to minimize this?
stackexchange/codereview
I am trying to get data from a csv file with the following data. Station code;DateBegin;DateEnd 01;20100214;20100214 02;20100214;20100214 03;20100214;20100214 I am trying bulk insert as BULK INSERT dbo.#tmp_station_details FROM 'C:\station.csv' WITH ( FIELDTERMINATOR ='';'', ...
stackexchange/codereview
I am new to .NET and early in the design process of a front-end application for a database, and looking for some advice. I am not sure I get it... The DB is very strongly normalized, but provides lots of stored procedures to abstract the logical model (ex. Select sproc returns one data set from multiple tables closely ...
stackexchange/codereview
I'm having a problem using memcached in Rails 3 The following is in my controller @last_post = Rails.cache.fetch('last') {Post.last} From the view I call @last_post.title The first time the view is loaded, the title of the last post is displayed. Once the view is refreshed, I get the error undefined method 'title' for ...
stackexchange/codereview
These are my haskell lists lst1 = ["a,","b","c"] lst2 = [("a","123"),("b","345")] I want to get a element from "lst1" and compare with "lst2" and if the value is exist want to replace with the second value in tuple replace the 2nd value. so it's like this lst1 had "a" and "b" so output should be ["123","345","c"] ...
stackexchange/codereview
I'm trying to write a program that is just a little beyond my abilities.The program is supposed to retrieve GPS data and display it on a nice page of graphics. I can access the GPS data fine, by implementing the necessary listener interfaces. I can display nice graphics using a sophisticated program structure employi...
stackexchange/codereview
I want to determine whether the currently connected database user has permissions to create a new database. I want to achieve that by using SQL. I tried this: WITH perms AS ( SELECT DISTINCT permission_name AS perm FROM [sys].[server_permissions] WHERE permission_name IN ('CONTROL SERVER', 'ALTER ANY DATABASE', 'CREATE...
stackexchange/codereview
I have java code that prepares a message for a MD5 munge private static char[] jimsCopyRight = { 'C', 'o', 'p', 'y', 'r', 'i', 'g', 'h', 't', ':', ' ', 0xa9, ' '}; which is used in StringBuffer message = new StringBuffer(); message.append(name.toLowerCase()); message.append(new String(jimsCopyRight)); When I pri...
stackexchange/codereview
Trying to display my popover from the tableView cell that has been selected UITableViewCell *cell; UserProfile *switchV = [[UserProfile alloc] initWithNibName:nil bundle:nil]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:switchV]; UIPopoverController *pop = [[UIP...
stackexchange/codereview
Working with cakePHP My index.php is in www.domain.com/httpdocs/sub/app/webroot Previously, on shared hosting I just replaced "domain.com/" with "domain.com/app+core directories" (without httpdocs/ or sub/) I've moved to media temple dedicated virtual server and am hitting a 403 forbidden error: "You don't have pe...
stackexchange/codereview
I am building my first Django website, after using Symfony 1.3.x to build a few website. Both frameworks employ the MVC pattern. Symfony allows a 'master' template to be created (called the layout), and each individual view is then used to decorate the master layout, using the decorator pattern. This makes it very easy...
stackexchange/codereview
how can i sort a groovy list selected from database using specific field example: book table srted by subject
stackexchange/codereview
I am facing with series of issues while using MVVMLight. One of them is passing non-string messages across the application. This is the message type I am passing - public class NameValue { public NameValue() { } public string Name { get; set; } public string Value { get; set...
stackexchange/codereview
I want to make MinGW validate that the file names specified in #include directives are case correct. MinGW is case insensitive by default, probably because windows is case insensitive when it comes to filenames, but I am working in a cross platform environment, and want to make sure that gcc doesn't complain under Lin...
stackexchange/codereview
In the article Build your own CAB Part #8 - Assigning Responsibilities in a Model View Presenter Architecture, the author said: but don't allow any reference to any Type in the System.Windows.Forms namespace from the Presenter class. I have some questions for your above words. Suppose I want to build a tree in t...
stackexchange/codereview
Please let me know how to set INTEL fortran compiler option to gain the best performance of 8 core system for IA32 and X64 bits. Actually I want to execute a fortran program and take the advantages of the all CPU time available in 8 core system. Now the program is only using 13 % of CPU time.
stackexchange/codereview
First of all, I'm using Swing in Java. In my application, I need to have a multi column list (if that's what I should call it). What I mean by a multi column list is something like windows explorer's list view mode of showing files and folders. So, all of the columns of my list are going to have the same object (files...
stackexchange/codereview
I've done a few small-ish Django projects, and each time I've been struck by the apparent limitations of Django's templating language. Just as a random example, I was shocked to learn that if, in the context of a template, I had a variable bar and a dict foo, I couldn't access foo[bar] unless I wrote my own filter to d...
stackexchange/codereview
I am trying to stream sensor data from the iRobot Create. I get tuple out of range errors when I try bot.stream_sensors(somenumber) and bot.poll_sensors(somenumbers). Whenever I input bot.sensors, I just get an empty array {}. I have even tried sending bot.sensors while pushing in on the bump sensor, still getting an e...
stackexchange/codereview
Can someone take a look at my background shadow? Here is the link: link text I'm trying to find the best solution for having a background shadow for a card in the front (layered). Is it possible to make the sides of shadow cave in with CSS? I'm currently using a PNG with transparency and I can't get the shadow to matc...
stackexchange/codereview
I'm looking for embedded db with Java API for testing purposes. Also i need pl/sql support because we use oracle in production and migrations are written in pl/sql. I want to test my DAO objects and i need to create db in memory in process of unit test using migration scripts. Now we use HSQLDB but it does't support pl...
stackexchange/codereview
I'm trying to make a deep copy of a generic list, and am wondering if there is any other way then creating the copying method and actually copying over each member one at a time. I have a class that looks somewhat like this: public class Data { private string comment; public string Comment { ...
stackexchange/codereview
I am having some problem using the clone function in jQuery. I have been able to clone the table header (first row). But I also need to remove the first element from the row (th), I have tried quite a few things but keep failing, here is one of my attempts: $('.teamStatusTable tr:first:not("th:first-child")').clone().p...
stackexchange/codereview
I would like to add a button to my website so when people click it, they will post a message to their facebook status feed with a message (I'm OK with they having to approve it). FB.ui and stream.publish look like exactly what I want. The Facebook documentation for FB.init states that: Note: Some UI methods like strea...
stackexchange/codereview
My App needs a Internet Connection which is checkt in the ViewDidLoad if there is no Internet connection I want to terminate the app when the Home Button is clickt so that the app start in its initial state next time but only in this case. If there is a Internet connection from the start the homeButton should bring th...
stackexchange/codereview
I am trying to make a label which was made dynamically changed to a bold font without any luck.
stackexchange/codereview
All, I downloaded/installed 1.9.2 windows installer, and then RubyMine3.0RC, and installed it. Opening a new Rails project, with mysql selected as the DB, gives the following error when I "RUN" it. D:\ProgramFiles\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Users/Rob/RubymineProje...
stackexchange/codereview
I have a php function that fetches and returns tweets data from twitter as simplexml object.I could get its contents by using php syntax. Here is php function <?php function searchResults($q) { $host = "http://search.twitter.com/search.atom?q=" . urlencode( $q ) . "&rpp=100"; $ch = curl_init(); curl_s...
stackexchange/codereview
I have a legacy PostgreSQL-7.4 database with its data stored encoded in LATIN1. It's used by more than just one app, so changing its encoding is problematic. I've got a Django 1.2 app, using psycopg2 to access the database. Django wants to work entirely in Unicode, which I understand. Is there a way for me to tell Djan...
stackexchange/codereview
Can anyone clarify if the GDI StretchBlt function for the workstation Win32 API performs bilinear interpolation for scaling to both larger and smaller images for 24/32-bit color images? And if not, is there a GDI (not GDI+) function that does this? The SetStretchBltMode fn has a setting HALFTONE which is documented a...
stackexchange/codereview
I am developing my first iPhone app, which includes an sqlite3 database that should contain approximately 1.200 records. These records are created by me. During the tests i have created them in a .txt document and inserted the .txt into the database. This is a very inconvenient method to do this and i would just ask fo...
stackexchange/codereview
I'm writing to the Application event log from an ASP.NET webapp. How can I populate the "User" field of the log entry?
stackexchange/codereview
I have a problem. I'm writing an app in Polish (with, of course, polish chars) for Linux and I receive 80 warnings when compiling. These are just "warning: multi-character character constant" and "warning: case label value exceeds maximum value for type". I'm using std::string. How do I replace std::string class? Pleas...
stackexchange/codereview
Should support multiple connections, preferably via ODBC. The clients will be running as separate processes on the same machine. No need for persistence, as the the clients will handle the persistence elsewhere. The clients are written in C++ if it matters. The data is quite simple, it is a set of unrelated bi-directio...
stackexchange/codereview
Is it possible to place the Tabs on the bottom of a TabNavigator? Currently, I want to see if Flex4 can create tabs for me positioned on the bottom. Currently I can use library://ns.tink.ws/flex/mx for his positionedTabNavigator and yet it looks wonky, when I apply rounded corners on the tab, it rounds the wrong end.
stackexchange/codereview
I have to migrate a static HTML website to TYPO3. I know, I could read docus first, but I believe I will need to read some days first to only recognize which direction to run... Do I have to learn TypoScript like Default PAGE page = PAGE page.typeNum = 0 page.20 = TEXT page.20.value = HELLO UNIVERSE! page.10 = TEXT p...
stackexchange/codereview
Say I do something like this for(int i = 0; i < 10; i++) { //create a pointer object using new //use the object } Do I need to delete the pointer object after using it in the loop? I was thinking like, if I didn't delete it, it will keep creating a new object for 10 times and the object just hang in there afte...
stackexchange/codereview
I have an object that is injected into my class by Spring (JdbcCursorItemReader if you care). It implements 5 interfaces, two of which I care about (ItemReader, ItemStream). If I code my class to one or the other, the spring dynamic proxy gets properly injected and I can call methods on it private ItemReader blah; publ...
stackexchange/codereview
I have the following code: var aggrHTML = $('TBODY#aggr > tr > td > table > tbody > tr > td > nobr > b'); var aggrText = aggrHTML.text(); var newText = "Total" + aggrText.substring(3); aggrHTML.html(newText); What I would like to do is alter the above so I select all elements whose id...
stackexchange/codereview
I need to edit an Excel workbook using python. Is there a way of doing this without reading in the workbook, editing what I want and the writing it back? i.e. is there a way I can do this on the fly, as I only need to edit a couple of values per sheet? I have looked at pyexcelerator, xlrd, and xlwt, but they only seem ...
stackexchange/codereview
In my Java application, I'm writing a component that is used to view PDF files. I had a pretty slick implementation where the user could click on the PDF and drag it to view the areas that didn't fit on the screen. But my boss didn't like it, so now I have to use scroll bars. So I did the obvious thing and just put ...
stackexchange/codereview
I would like to add Less CSS support including syntax highlighting and ability to create/edit .less files. How can I do this? Zend Studio is built on Eclipse, so instruction on how to do this in Eclipse may also be helpful.
stackexchange/codereview
Do you think it is a good practice to remove every transitive dependencies that can be found in a maven pom? Example: My project depends on A and B. B is also a transitive dependency of A. Should I keep B in my pom or remove it ? What is the best: having all known jars, even transitive one, declared on the pom or k...
stackexchange/codereview
I'm trying to learn Rhino Mocks AAA syntax, and I'm having trouble asserting a certain method (with any argument value) was called. I'm using Machine.Specifications as my testing framework. This particular method is generic and I want to make sure it was called three times with three different types. repo.Save<T1>(a...
stackexchange/codereview
I'm a bit confused with transactions vs locking tables to ensure database integrity and make sure a SELECT and UPDATE remain in sync and no other connection interferes with it. I need to: SELECT * FROM table WHERE (...) LIMIT 1 if (condition passes) { // Update row I got from the select UPDATE table SET column...
stackexchange/codereview
I've an ImageView in a LinearLayout, how can I detect when user drag his finger from any place in the screen to inside of ImageView?
stackexchange/codereview
I'm trying to decide between Heroku and Engineyard. Heroku seems so much better but they charge for everything and their prices are crazy! Why one should use Heroku over EY or vice versa?
stackexchange/codereview
I copied a project within eclipse (version 3.4.2) to create a new instance of the project. Everything seems to work as expected except when I debug the project. I put a breakpoint in a file of the copied project and when it breaks, it displays the file from the original project. The debug information like variable valu...
stackexchange/codereview
I am working on a custom ListView for purchasing items in a store front. You can scroll the list and read product descriptions as well as see product images. For items the user already owns I've pragmatically changed the color of the title (of the product on the list) to a different color so the user can easily identif...
stackexchange/codereview
I want to make a custom element with text taken from the element "being dragged" using a helper function. My problem is that ui is undefined, so I don't know how to get a hold of the source of the drag. $('.draggable').draggable({ helper: function(event, ui) { var foo = $('<span style="white-space:nowrap;">...
stackexchange/codereview
Our shop is integrating ASP.NET MVC into a large web application that utilizes custom & 3rd party HTTP Handlers defined in web.config under system.webServer\handlers. Leveraging HTTP Handlers in this way has been great for us because we don't need to recompile the app or have the actual handler page sitting on disk so...
stackexchange/codereview
Is there a way that I can let mouse events pass through to controls behind?
stackexchange/codereview
I've got an integration test of a DAO in which I use a shared EntityManager (via Spring, using SharedEntityManagerCreator). The test class is marked as @Transactional, as is the DAO method under test. In both the test class and the DAO I'm retreiving a User entity as follows: User user = em.find(User.class, "test");...
stackexchange/codereview
I have a set of WCF Services which are hosted from within a Windows Service. I need to run multiple instances - which is fine, I can do that using unique endpoints, however for a given instance I need to known which instance it is. For example I might have end points: net.tcp://localhost:9000/Customer1/MyServerFunctio...
stackexchange/codereview
Is there a way to add a standard header comment in one place and it will apply to all my source files in my project? the header would contain my name, contact details, company, license etc.
stackexchange/codereview