instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I done a quick search for collision detection for OpenGl however most things come back with 2D examples using CGRectIntersectsRect. Do I use CGRectIntersectsRect for 3D detection to? I am making a basic 3D maze game and I just want to stop people walking through the walls which are just Squares (made from triangles) a...
stackexchange/codereview
I need to read NSURL Loading data percentage value. That is, I want to read how many percentage amount of data is loading on URL Loading time. Suppose a URL take 30 seconds to loading data completely, I want to know in 15th sec how many percentage of data is loading in my String, and 20th sec how many percentage of da...
stackexchange/codereview
I've recently been working on simplifying a Ruby method that I didn't write. It's part of a legacy project that a coworker wrote. In general, we did a pretty good job not accumulating code debt, but there are a few methods that need some love. The method that I've been simplifying was originally a mass of nested if-el...
stackexchange/codereview
I would like to animate a sequence of background images within a uicomponent but also dynamically add and remove components to this component. My first question would be: 1.) What's the best way to animate a sequence of images using Flex 3? 2.) What's the best way to handle adding and removing components on top of the ...
stackexchange/codereview
I am trying to do a custom active record macro. But it right now seems impossible set an instance variable from within it's block.. here is what i am trying to do. module ActiveRecord class Base def self.included(base) base.class.send(:define_method, :my_macro) do |args| # instance_variabl...
stackexchange/codereview
hello all I looked at the at the redis-node-client source (relevant part is shown bellow) and I see that it connects to redis via the 'net' package, which is TCP based. line 370 exports.createClient = function (port, host, options) { var port = port || exports.DEFAULT_PORT; var host = host || exports.DEFAULT_HOST; ...
stackexchange/codereview
For multiple threads wait, can anyone compare the pros and cons of using WaitHandle.WaitAll and Thread.Join?
stackexchange/codereview
To simplify things, I have 3 tables : Person has_many :abilities, through => :stats Ability has_many :people, through => :stats Stats belongs_to :people belongs_to :abilities Stats has an extra attribute called 'rating'. What I'd like to do is make an edit person form that always lists all the abilities currently in th...
stackexchange/codereview
I am using PrettyPhoto in a website. It shows an inline content when you click an image. <a href="#verObra" rel="prettyPhoto">Work name.</a> The inline content to show is: <div id="verObra1" class="verObra"> <div class="galObra"> <div id="imgAmpliada"> <img src="images/showObra.jpg" alt="" /> ...
stackexchange/codereview
Is there an accepted method of adding possibly-derived objects to a collection without allowing instances of the base or derived objects to be created on their own? I'm thinking that's almost a contradiction in terms. About the only method I've been able to come up with is to add to the parent collection from the child...
stackexchange/codereview
I have predefined css selectors list in js array and an element. I need to find which selectors would apply on that element. Here is my code: http://jsfiddle.net/mjALF/ html <div id="main"> <div class="a" id="d1"> <div class="b" id="d2"> <div class="c" id="d3"> </div> </di...
stackexchange/codereview
Given the following types public class SomeValue { public int Id { get; set; } public int Value { get; set; } } public class SomeModel { public string SomeProp1 { get; set; } public string SomeProp2 { get; set; } public IEnumerable<SomeValue> MyData { get; set; } } I want to create an edit form fo...
stackexchange/codereview
I am on a shared-hosting account with GoDaddy it's a windows Server and I am getting this error when attempting to upload a file: Warning: move_uploaded_file(D:\Hosting\6903\html\pdfs\ALDOmypdfAP.pdf) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\Hosting\6903\html\back.php on line 436 W...
stackexchange/codereview
I've seen how to pass an Objective-C variable to JavaScript right here, passing objective c variable to javascript in ios, but how do I pass a variable from JavaScript to Objective-C when I'm using something like this: [webView stringByEvaluatingJavaScriptFromString:@"var elems = document.body.getElementsByTagName(\"u\...
stackexchange/codereview
I am confused about the order of try, catch and finally block execution. I also want to know when should I use try-catch block and what should I put in the try-catch block? I also want to know if some exception comes in try block then if an action is taken corresponding to try block then which one is executed first cat...
stackexchange/codereview
I have a rails gem that uses a snippet like: components = [] components << label_for(attribute) components << ... components << text_field(attribute) return components.join The gem worked fine in Rails 3.0.1, however it escapes (renders as text in a browser) all HTML after updating to Rails 3.0.2. What am I doing some...
stackexchange/codereview
I know I have a really dumb question, and im sorry for the beginner stupidity... But is there an easy way to have an open text box, where when the user hits submit a comment is saved to the database and the comment box shrinks to dissapear? THere must be a dead simple tutorial out there, I just didn't find one! Thanks!...
stackexchange/codereview
I am using the latest Nhibernate and i have a linq query to return just 1 column. so I can't use for example IQueryable as there is no entity class - i am returning only 1 column. But return to IQueryable Non Generic version doesn't provide the ToList method Here is the method public IQueryable GetCode() { ...
stackexchange/codereview
My scenario is really straight forward: I have a windows application with several files that lands in a "Program files..." folder. These files are divided into components depending on what kind of functionality there's in them. The files are mostly .net assemblies are not in any way global. They should only be used by ...
stackexchange/codereview
CREATE FUNCTION testing(id INT, dsc TEXT) RETURNS TEXT BEGIN DECLARE ntxt TEXT; SET ntxt = dsc; RETURNS ntxt; END; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TEXT' at line 3 What i miss here ?
stackexchange/codereview
I have a simple partial view which displays a drop down list of revisions for a given entity. The entity contains 2 lists of revisions which can contain duplicates and are not ordered. For the view I need to display a single combined list from the 2 list of revisions, ordered by Date. Currently the entity is used as th...
stackexchange/codereview
in the code fragment below, we have a root container and one child container. The child container holds a registration for Person which depends on INameProvider, defined in the root container . INameProvider on its turn depends on IInfoProvider which has a registration in both containers. When the child container is a...
stackexchange/codereview
I want to generate n amount of Tkinter Buttons which do different things. I have this code: import Tkinter as tk for i in range(boardWidth): newButton = tk.Button(root, text=str(i+1), command=lambda: Board.playColumn(i+1, Board.getCurrentPlayer())) Board.boardButtons.append(newButton) If b...
stackexchange/codereview
I want the SNMP agent to response differently depending on the source requester, but cannot find a way to magic convey some data to make it distinguishable by the SNMP agent. What I have tried setting is the netsnmp_session structure and netsnmp_pdu structure. because they're two parameters of snmp_send. The data field...
stackexchange/codereview
I would like to know if there is a way of tracking who is using my jQuery plugin by using some javascript code inside the plugin itself. My plugin is being used on different sites, so I'd like to know where it is being used and how many times it is being accessed.
stackexchange/codereview
System.EnterpriseServices.RegistrationHelper is the programmatically the same as regsvcs. But is it possible to call specific (32 or 64bit) version of helper? With one registration (Server or Library) we want one version (32 or 64) of registration, with another - another. Is there any way to specify needed deploying t...
stackexchange/codereview
I would like to validate a password field for creating / updating users in asp.net (.net 3.5). The password will be used for a MembershipProvider. What is the best way to implement this so that the validation will use the configuration settings of the membership provider? Of course I can just write the code, but this s...
stackexchange/codereview
I run 'svn status' and I get ? app/views/ad_report But when I try to run 'svn add app/views/ad_report', it says it's already in version control, but status just said it isn't. svn: warning: 'app/views/ad_report' is already under version control There is a folder with the same name in a different path, 'app/views...
stackexchange/codereview
I have two classes. I created a JAR file using: jar cvf practice.jar class1.class class2.class Then I set the starting entry point: jar cfe practice.jar class1 class1.class When I execute the JAR file, it works fine until the point where there is a transition to the next class, i.e. class2 hey = new class2(); Then it...
stackexchange/codereview
I am learning prolog and I am reading a book called Programming Prolog for Artificial Intelligence. As practice I want to learn how to extend one of the examples in this book. Can someone please help? Say you have these facts: parent(pam, bob). %pam is a parent of bob parent(george, bob). %george is a parent of bob Ho...
stackexchange/codereview
I am using WIX to generate an MSI to install an application. I want the application to be installed in a subfolder of a previously installed application. The issue is that the path for this previously installed application can be changed at install time (the UI provides a directory selection dialog); the path is howeve...
stackexchange/codereview
If JavaScript has a same origin policy, does that mean that I can't dynamically load images from a different domain?
stackexchange/codereview
I have an embedded flash object with a movie parameter that uses a url as a parameter. When this URL is resolved on the client the full friendly url is used and the link to the .swf is then incorrect. Here is the HTML: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia....
stackexchange/codereview
In Rails 2, I used this kind of code to get a certain part of the page to update. <div id="sidebar_div" class="span-3"> <ul class="sidebar_list"> <% for page in @section.pages %> <li><%= link_to_remote "#{page.name}", :update=>'show_page', :url => { :controller=>'pages',:action=>'show_page', :id=>page.id }, :...
stackexchange/codereview
Is there any profiler or tools available to calculate the "Rendering Time" of a particular control. Rendering Time - Time taken by the control to completely render visually on to the screen.
stackexchange/codereview
I have a form and a XML, and i would like to fill the form with the XML datas. The XML file have a structure like that: <Patient > <General> <Name>Peter</Name> <DataofBirth>6/Nov/2010</ DataofBirth > <Sex>2</Sex> </General> <MedicalData> <Weight>100</ Weight > <Height>170</ Height > </ Med...
stackexchange/codereview
Can I return class object from function in c# as a return value instead return string or int or ..etc
stackexchange/codereview
I'm trying to debug maven tests in NetBeans 6.9.1. Does anyone know how to go about doing this? The reason I ask is because if I run my tests using Maven, they all pass. However, if I debug my tests using NetBeans (right click test class -> Debug Test File) my tests fail because I have Surefire set up to handle my test...
stackexchange/codereview
I found this piece of code in a jQuery plugin: $("#"+id,$t.grid.bDiv).css("display","none"); The second parameter to $() changes the context of the search, right? Does it still make sense to include it, since the line is already searching for the ID? Doesn't jQuery search the whole document when specifying ID? UPDATE:...
stackexchange/codereview
Given the following three classes how can I use reflection to call the initialize function for the parent class(es) and then the subclass: public class Test { public static void main(String[] args) { ExtendedElement ee = new ExtendedElement(); initialize(ee); } public static void initiali...
stackexchange/codereview
I'm looking for a 3D carousel (like http://www.professorcloud.com/mainsite/carousel.htm) however I need it to allow for images with corresponding buttons for each image. For example: <ul><li><img><fb:like></li> <li><img><fb:like></li> <li><img><fb:like></li> <li><img><fb:like></li> <li><img><fb:like></li></ul> I need...
stackexchange/codereview
How can we update an xml file without loading it entirely into memory. In the following code I want to navigate through each parent node note and update the value of the to node. How can we achieve this using C#. I have to update the to field based on some other calculation that I have in code. <note> <from>Jani</from>...
stackexchange/codereview
I'm facing a weird behavior in Rails 3 model instantiation. So, I have a simple model : class MyModel < ActiveRecord::Base validates_format_of :val, :with => /^\d+$/, :message => 'Must be an integer value.' end Then a simple controller : def create @mod = MyModel.new(params[:my_model]) if @mod.save ... end...
stackexchange/codereview
Is there any way to overlay the NSScroller over the content of the scroll view (like in iOS)? I've already tried several approaches: a) setting the frame of the scroll view content view (NSClipView) to extend into the bounds of the scroller b) adding an NSScroller object as a subview of the scroll view (positioned wher...
stackexchange/codereview
I try to find a tutorial or some documentation to find how create PieChart graphic in .net compact framework 3.5. Some body could help me please ?
stackexchange/codereview
I want to do Bluetooth connection in Service. And there needs to be interaction between Activities and Services. The service should be started as soon as the app is started and should be able to communicate with UI Activities on certain situations. What should be the appropriate way of doing it? If I bind the service ...
stackexchange/codereview
I'm making a game, and I have a class called MainCharacter that first initializes the main character (in a pictureBox) and then I had a KeyDown event for handling the movement. Inside that event, I was able to handle character movement if I pressed arrow keys, and I've even done a timer-based animation of movement to m...
stackexchange/codereview
I am having this problem in the image: even if in the path displayed is correct and exists. I tryed anyway to change this variable and the files in C:\\Program Files\Java\apache-maven-2.2.1 or C:\\Program Files\Java\apache-maven-2.2.1\bin or C:\\Program Files\apache-maven-2.2.1\bin as I read in different forums. My en...
stackexchange/codereview
my UITableView has a bunch of sections and therefore displays a sidebar, which let's you scroll through the sections. The problem is: I have a UISearchBar in the header of the UITableView, and the sidebar covers the clear (x) button of the UISearchBar. Can I modify the sidebar to add margin or at least remove it compl...
stackexchange/codereview
Why does TCP wait for three duplicate ACK before fast retransmit?
stackexchange/codereview
I am debugging stored procedures, and right now I am interested in what ran in what order and which which parameters as opposed to how fast things ran and what may sneak in between and cause a slowdown. So, I captured a couple of minutes worth of trace. The problem is that there is too much stuff, and I need to narrow ...
stackexchange/codereview
i have a deployed grails apps on tomcat6 in my client server machine, but the application is still need many fix, so every bug founded or missing feature on client machine, i creating a patch and delivering to client via ftp on .tar.gz file that will replace on deployed folder. i can't send a fully .war files because ...
stackexchange/codereview
I've wrote the following bit of jQuery for a banner rotator I have: Featured_TopBanner: { Init: function () { var featItems $.ajax({ url: '/Auctions/Auctions.asmx/Featured_TopBanner_Items' , type: 'POST' , contentType: 'application/json; charset=utf-8' , dat...
stackexchange/codereview
I am returning back from sql an xml string of multiple addresses, here is an example of what is returning back: <Addresses> <Address> <LetterQueueOID>2</LetterQueueOID> <Address1>115 MORNINGVIEW TRL</Address1> <Address2>SCARBOROUGH, </Address2> <Address3>M1B5L2</Address3> <City>SCARBOROUGH</City> ...
stackexchange/codereview
I am wondering if this is possible to push a message from server to web browser?? Like you want to alert user or any message that you want to send to specific user... An example is as chat invitation is sent from chat operator to site visitor... Is it possible?? i prefer to use PHP, Javascript I don't want to use AJAX...
stackexchange/codereview
In C++ changing a loop variable inside a for-loop is allowed: for( int i = 0; i < limit; i++ ) { if( condition ) { i--; } } Now if a loop body is rather complex it is not immediately obvious to the reader whether the loop variable is changed inside the loop body. It would be nice to somehow tweak the co...
stackexchange/codereview
I want to ensure that one of two form fields representing a boolean value is checked. But there is no appropriate constraint to do this. nullable: false does not work. class Organisation { Boolean selfInspecting static constraints = { selfInspecting(nullable: false) } } How can I check whether o...
stackexchange/codereview
I created a Zen sub-theme called mytheme and copied the contents of /sites/all/themes/zen/STARTERKIT/css to /sites/all/themes/mytheme/css/, and assigned the Navigation block to the First sidebar region. I want to know which CSS file controls the styling of the Navigation menu, so I loaded the site in my web browser (Go...
stackexchange/codereview
Still trying to get off the ground, and it's not as easy as I was hoping. Think I've been through all the pages I could find on Google now, and still no luck. At the moment, I've reduced everything down to something really simple: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Fa...
stackexchange/codereview
I'd like to store some class info using Q_CLASSINFO macro. However I would like to wrap it in my own macro, for example: #define DB_TABLE( TABLE ) \ Q_CLASSINFO( "db_table", #TABLE ) #define DB_FIELD( PROPERTY, COLUMN ) \ Q_CLASSINFO( "dbcol_" #PROPERTY, #COLUMN ) class Foo : public QObject { Q_OBJECT ...
stackexchange/codereview
I've a little problem: I've created two mutable arrays and added an object of "actProject" to "allProject". Everything works fine but I do not know how to display one single object of allProject (e.g. "Date"). NSMutableArray *allProject= [[NSMutableArray alloc]initWithObjects: nil]; NSMutableArray *actProject = [[...
stackexchange/codereview
How can I get the path of one file in a SVN repo? Suppose I want to find a file named "LoginInterceptor.c" with its complete path in one SVN repository; which command would I use?
stackexchange/codereview
Greetings. I am right now in the middle of reinstalling my whole dedicated server. I went with -Ubuntu Server 10.10 -PHP 5.3.3.1 -php-fpm -nginx Now, almost everything seems to work, though there remains one problem with the sessions. No matter what I do, the sessions doesn't seem to store themselves properly (and they...
stackexchange/codereview
I am trying to run tests on django with coverage. It works fine, but it doesn't detect class definitions, because they are defined before coverage is started. I have following test runner, that I use, when I compute coverage: import sys import os import logging from django.conf import settings MAIN_TEST_RUNNER = 'dja...
stackexchange/codereview
Since two days I am trying to consume a WCF (.NET) Soap Service and serialize it's response without success. I am getting a correct response (I had to put it on pastebin: SOAP Response Example), but KSOAP2 is not able to handle .NET Datasets correctly. I already consultated various articles about this specific problem,...
stackexchange/codereview
Can i load an in memory XML, returned by a linq to SQL query, to an SWF object? And here comes the long version. The purpose is loading an in-memory XML file, to an SWFobject via a querystring. Currently i read and load the XML file from an absolute path. var flashvars = {xmlPath: "xml/" + GetQueryString("x") + ".xml" ...
stackexchange/codereview
We currently have a SAP System with two different clients 002 and 004 in use. My task is to write a program in ABAP to create a report about user assignments. The report will do mainly the same on both clients, but I have to select different tables on both clients. Is there a way to distinguish an ABAP code between dif...
stackexchange/codereview
$('#cont > fieldset').each( function(index){ var $self = $(this); // Here how to get child elements? How to write this selector? //$('$self > div') ?? this seems does not work. });
stackexchange/codereview
I'm using a ManyToManyField with a 'through' class and this results in a lot of queries when fetching a list of things. I'm wondering if there's a more efficient way. For example here are some simplified classes describing Books and their several authors, which goes through a Role class (to define roles like "Editor", ...
stackexchange/codereview
I'm building a compiler and a virtual machine for executing my byte code. The language allows to bind external C functions, which may be defined in some external shared object, as well as the main compiler/VM binary (some essential language built-ins). I know I can dynamically bind symbols within the main executable wi...
stackexchange/codereview
What is the difference between the two platforms/frameworks, besides that one uses Java, and the other Python? What are the different purposes/uses of each? I ask this because I'm trying to write a simple web app, and am not sure which one to use. I have had some experience with GWT people, but prefer Python and am ...
stackexchange/codereview
Suppose I have profiled my program, and the vast majority of runtime is spent in method 'remove' of 'list' objects. The program manipulates a collection of collections, and the collections do not need to be ordered. What would be the most straightforward way to implement these collections in python (preferably using ...
stackexchange/codereview
Is there a way to specify the media type / page size to be used when the user prints a web page? Also, can I lay out text so it will be printed at specific positions? For example, I’d like to render an address on a web page that the user can then print on a letter-size envelope. Thanks! EDIT By media type, I meant the...
stackexchange/codereview
firstly, pardon my pseudo-code, i think in this case it is more legible than full code. Please assume that a property in the pseudo-code is in fact a field with a getter & setter method, except for the ArticleElement where it just needs be a property accessible from the object either by a direct getter method, or a two...
stackexchange/codereview
I've had this problem several times before, so please excuse my bluntness. I cannot seem to get VS to debug remotely, nor can I find a rational reason why not. I'm trying very hard to debug the WebServices I'm constructing, and it would be nice if the tools worked. The given reason this time is 'Access is denied.' This...
stackexchange/codereview
I'm looking for an alternative design or maybe a workaround this issue I've encountered with MSMQ messaging. Right now I'm using NServiceBus (not the problem) for my service architecture. It works really well and I like it a lot. However, I'm having some trouble with services that I want to initialized at start up befo...
stackexchange/codereview
I was wanting to get some information from the user before they get to see or use the program. Currently I just have a black rectangle hiding my GUI with a text box in front of it. When the information is entered into the box I have it and the rectangle's visibility set to collapsed. I only need them at the very start...
stackexchange/codereview
I just got started with Scala/LiftWeb/Sbt developing, and I'd like to import a Sbt project in IntelliJ Idea. Actually, I managed to import my project in two different ways: 1) with Maven. I created a Maven project, and of top of that I created a Sbt project, which I then imported in IntelliJ. I could then easily start,...
stackexchange/codereview
This is a problem I come accross fairly regularly and I've never found / figured out a best practices situation. Exceptions are probably the way to go however the application I'm working makes no use of them so I'm trying to stick to the currently used methods. What is the best way to lay out if statements, returns, me...
stackexchange/codereview
I am trying to allow my users to update quantities in the database, by providing them some input fields, I know that the sql update query is perfect, because if i DONT use the foreach loop, it will submit and update the last textfield only. But I need the foreach loop so it will loop through all the textfields and upda...
stackexchange/codereview
I need to inherit 2 classes ( a 3rd party classes). (class1) - System.Web.UI.MobileControls.MobileUserControl (class2) - PortalModuleBase I have a usercontrol... Normally I inherit "PortalModuleBase" class, but this time I also need to inherit "System.Web.UI.MobileControls.MobileUserControl" in my Usercontrol (.ASCX...
stackexchange/codereview
I'm a hobbyist programmer but have been doing it a while. I'm writing a small document management application for use at work (in c#). When a user opens a record, I update it to indicate it's currently locked for editing. What I'm not sure about is how to ensure the database gets updated when the application exits uns...
stackexchange/codereview
Is there any reason why this wouldn't work? I'm testing for sound in the microphone and playing a looping sound effect as I'm registering sound. On the iPod touch this seems to work fine - on the iPhone though the sound effect either doesn't play at all, or is very quiet. Any ideas? Or any alternative? Thanks
stackexchange/codereview
Often I need to publish a web project preserving a directory tree even if the directories are empty, for example, directories to hold uploaded files. If I publish my app using the VS2010 publish command, the empty directories are not created on the remote filesystem, on the web server. Is there a way to force VS to cre...
stackexchange/codereview
Possible Duplicate: Why are Hexadecimal Prefixed as 0x? I just saw a comment a friend of mine made: 3x12=36 2x12=24 1x12=12 0x12=18 Which made me wonder.. Why did they choose 0x as prefix for hexadecimal numbers? Is there any history behind this decision?
stackexchange/codereview
I need an Html Helper that renders an action to as a string. Anyone know of any?
stackexchange/codereview
I've got an OpenGL scene with some figures on it. Can you tell me what I need to do to calculate figures apexes positions after "rendering"? I know I probably need to manual multiply some matrices, but I don't know which of them and how. Thanks in advance for any help!
stackexchange/codereview
I'm using default Zend_Rest_Route to generate Rest routes: So given I just put resources.router.routes.rest.type = Zend_Rest_Route inside application.ini and now have Rest Routes for users GET users POST users GET users/:id GET users/:id/edit PUT users/:id DELETE users/:id But how about nested resources? Gi...
stackexchange/codereview
I am trying to get all data from a table contained in a database, and parse it into a List. I have tried a few different techniques and can't get it working. I am trying to serialize the ResultSet so I can send it over a socket. The code I have got so far is: public Object readJavaObject(String query, Connection con) t...
stackexchange/codereview
hi I've vector<vector<int> > matrix; I initialize it by: inline void resize(const UINT nrows, const UINT ncols, T val) { vector<T> v_rows(ncols, val); matrix.resize(nrows, v_rows); } now I'm concerned if I call resize again where the old ones go, do I have to call clear ? for the outer matrix ? or clear for each one ...
stackexchange/codereview
Im developing a game where I have a player that shoots objects. When the player shoots a sound is played. And when he hits an object it generates a explosion animation as well as a sound. Im using UIImageViews to draw the player and the object and I use AudioServicesPlaySystemSound to play the sounds. The problem that ...
stackexchange/codereview
I'm trying to execute the following trigger: create trigger t23 on studies after insert, update, delete as begin REFERENCING NEW ROW NewStudent FOR EACH ROW WHEN (30 <= (SELECT SUM(credits) FROM Studies) DELETE FROM NewStudent N WHERE N.spnr = NewStudent.spnr end I'm trying to create a trigger which only inserts a...
stackexchange/codereview
We have an application which needs to interact with 3 different databases (SQL Server) to fetch the user details and display them on a web page. Is it a good option to use a linked server or should we copy the user details (via some daily job) to the application database?
stackexchange/codereview
I'm using the jquery-ui datepicker for displaying multiple months. The popup displays these months 1 below the other, is there a way to have the following month displayed to the right instead?
stackexchange/codereview
The question is almost all in the title. I was wondering, given that: - I use a raw socket (on GNU/Linux); - the option IP_HDRINCL is set so that I craft the IP headers by myself. As the dest IP addr is provided in the crafted IP header, does the dst_addr argument still plays a role or is it totally useless & only h...
stackexchange/codereview
I'm trying to add some text to the right hand side of a horizontal barplot at the same heights as each bar, however, both text() and axis() don't seem to plot this at the heights corresponding to each bar. Here's a similar barplot x <- runif(10, 0,1) y <- matrix(c(x, 1-x), nrow=2, ncol=10, byrow=TRUE) barplot(y, horiz...
stackexchange/codereview
I am new to design patterns. I am looking for a pattern similar to the factory pattern but that will also let me "set" the product. Something like this: class VehicleFactory { IVehicle static GetVehicle(); void static SetVehicle(IVehicle vehicle); } Is there any known pattern similar to this? Thank you. EDIT: ...
stackexchange/codereview
I'm using CSS (via JQuery , but not relevant to this question) to highlight certain elements within an HTML file: I'm using "pre" tags to separate out logical elements in my file, but I noticed that "pre" tags seem to leave newlines between elements. Can I get rid of these using CSS ? (Or what shall I use instead of "...
stackexchange/codereview
In an app using Wicket+Spring+JPA/Hibernate stack, I have an Inbox/Search page which should have quite complex search capabilities, where records saved in a database are filtered using a myriad of filtering options. So far I've used JPA Criteria API to build the database query but it's getting quite messy. I was wonder...
stackexchange/codereview
I'm looking for idea's how to convert a 30+gb, 2000+ colored TIFF image series into a dataset able to be visualized in realtime (interactive frame rates) using GPU-based volume rendering (using OpenCL / OpenGL / GLSL). I want to use a direct volume visualization approach instead of surface fitting (i.e. raycasting inst...
stackexchange/codereview