instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have an odd problem with an enhanced WinForms ComboBox I wrote in C#. The box shows a list of colors with the color itself and the name of the color and is set to ComboBoxStyle.DropDownList, double buffering and DrawMode.OwnerDrawFixed. The items are drawn when the DrawItem-event is raised. If I open the DropDown men...
stackexchange/codereview
i have this scenario: class MyClass { Producer p; Consumer c; public static void main(String[] args){ BlockingQueue q = new LinkedBlockingQueue(); p = new Producer(q); c = new Consumer(q); Thread t = new Thread(p); t.start(); new Thread(c).start(); whil...
stackexchange/codereview
In MSVC++ you can summon a console window to your app by running: // Attach a console AllocConsole() ; AttachConsole( GetCurrentProcessId() ) ; freopen( "CON", "w", stdout ) ; Now printf and cout automatically go to that window. Is it possible in MSVC++ to have more than one console window?
stackexchange/codereview
I have the following for which allows for creating or updating a record: <%=form_for [:project, @permission], :remote => true do |f| %> ... You can change roles in the form... (This works great for new or existing records) <% end %> Inside the form, I want to provide an option to delete/destroy the permission. So I ad...
stackexchange/codereview
It's a bit silly asking homework questions here, however I'm genuinely stumped as to what this question is asking. Create a stored procedure to add results. The procedure should take four (4) parameters. These are; The student's name (first and last), the name of the apparatus and the score. When the data ha...
stackexchange/codereview
Hi everyone I need to generate property dynamically at run time can any body tell me how to generate property in WPF at run time. in my window.resource block <Style x:Key="EditableTextBox" TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}"> <Setter Property="Background" Value="#FFF8E48F" /> ...
stackexchange/codereview
I have a directory where files are constantly updated. I need to read the latest excel file and convert it into tab delimited file. It is under windows. A batch + java solution will work for me. Or if I can use excel in command line programatically that also works
stackexchange/codereview
This may be a simple question but i would like some help to find out how to make it. I want to make a custom "loading" popup for my ipad app. Just like this app: http://www.youtube.com/watch?v=ZY31Bn5slv0 you see the black loading popup at +- 30sec,40sec,56sec,... I remember that i had a sample of this, but can't find ...
stackexchange/codereview
In Apple's official Maps app for the iPhone, there is a small 'page curl' button in the lower-right corner. When you press it, the map itself peels back to reveal some options. I would like to duplicate this effect in my own app. I'm trying to use UIModalTransitionStylePartialCurl (Added in SDK 3.2). In terms of its...
stackexchange/codereview
I have a cache built from a Map to SoftReferences. When they are added they get put into another queue to be lazily compressed down via gzip or some such. My idea is this: I want to have WeakReferences to the objects in the compress queue, so that when the compressor task gets to the object, if it is already gone we ne...
stackexchange/codereview
I needed a gadget for Google Calendar so I wrote it; I'd like to offer it to the public for free. However, after going around in circles through Google help on publishing gadgets, it seems that iGoogle directory is only for iGoogle gadgets. Although my gadget works on iGoogle by redirecting user to Google Calendar, iGo...
stackexchange/codereview
Found this interesting interview question: You need to display the sales data for your division for the past 5 years in a DataGrid on a Web Form. Performance is very important. What would be the best strategy to use in retrieving the data? a)Use a DataReader object to retrieve the data for the DataGrid. b)Use a DataSe...
stackexchange/codereview
Can "Full Keyboard Access" (System Prefs -> Keyboard -> (Radio) All Controls) be controlled with some API? It causes major issues when this thing is on in my app (like buttons not working as expected etc ... it has some custom UI) Regards, Erik
stackexchange/codereview
My application is streaming YouTube videos by loading a URL in a UIWebView: NSString *videoURLStr = [NSString stringWithFormat:@"http://www.youtube.com/embed/%@?autoplay=1", videoId]; NSURL* videoURL = [NSURL URLWithString:videoURLStr]; [movieView loadRequest:[NSURLRequest requestWithURL:videoURL]]; This works great,...
stackexchange/codereview
hye everyone i m doing my project "automatic vechicle identification".i have to design software in matlab,i have done extraction of plate region ,segmentation of characters,...now i want to save these segmented characters so that i can further recognize these character from a data base......any body can help me please...
stackexchange/codereview
Back in the day, the FORTRAN standards committee reviewed a technical proposal called "Letter O considered harmful". I used to be able to find a link to the text of this proposal on the net, but it seems to have disappeared since the last time I looked for it -- the link disappeared off the relevant Wikipedia page and ...
stackexchange/codereview
I'm searching for javascript function to replace French diacritics and came accross this code: String.prototype.removeDiacritics = function() { var diacritics = [ [/[\300-\306]/g, 'A'], [/[\340-\346]/g, 'a'], [/[\310-\313]/g, 'E'], [/[\350-\353]/g, 'e'], [/[\314-\317]/g, 'I'], [/[\354-\357]/g, '...
stackexchange/codereview
i am getting error when trying to run an update query in key commit trigger in oracle d2k the error is: "identifier must be declare the complete code is as follows:--- DECLARE LS_STATUS VARCHAR2(1); LS_COUNT VARCHAR2(3); BEGIN GO_BLOCK('BOO_BLOCK_CAST'); LS_COUNT:=0; IF :BOO_BLOCK_CAST.NBT_CAST_NO IS NO...
stackexchange/codereview
Situation: Silverlight 4 app communicating with a server component through WCF, using basicHttpBinding and HTTPS. Here is the binding used server side: <basicHttpBinding> <binding name="DefaultSecuredBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"> <readerQuotas maxDepth="50" maxArrayLengt...
stackexchange/codereview
I'm trying to follow this little tutorial, but I keep getting this exception. The relevant XAML looks like this: <StatusBar Margin="0,288,0,0" Name="statusBar" Height="23" VerticalAlignment="Bottom"> <StatusBar.DataContext> <m:MainWindow /> </StatusBar.DataContext> <TextBlock Nam...
stackexchange/codereview
I'm seeing the following error when trying to upload a photo for cropping on heroku with the paperclip plugin. Paperclip::CommandNotFoundError I believe I've successfully install rmagick on a rails 3 instance with bamboo as the stack. Why am i seeing this error? has_attached_file :avatar, :styles => {:large => "600x60...
stackexchange/codereview
I had a talk with my professor today about the layout of the Chunklist data structure that we've been working on. Basically, it is a hybrid of a ordered circular linked list with each node containing an arraylist. Since this is an ordered list, the add() method is pretty complicated, so I wrote a nested class to hold ...
stackexchange/codereview
I've read lots of articles and tried everything I can think of, but I can't manage all three: position a draggable object, make it move correctly and get the droppable object to recognize it. When I change the code, I manage every time to do one or two of them, but never all of them together, and I need them all. Here ...
stackexchange/codereview
Im am wondering how wireshark functions. What would be the design of an application that could listen to the traffic on all ports of a given machine? What is the kind of overheard that such an application generates? What would be a good way to go about writing an app that monitors traffic? Thanks
stackexchange/codereview
Ok so say I have a class class Ghost { private int x, y, direction; private Color color; Now say I dont explicitly define a constructor, so it just uses the default one. If I were to create a new Ghost object, what value would direction have? 0 right? But I dont know why I keep getting a value of 1 for dire...
stackexchange/codereview
I'm trying to use a string constructor to convert the 2d char array into a string. Having problems finding the proper constructor. I attempted using various constructors but nothing seems to work.
stackexchange/codereview
I have developed (TCP) server to listen to a client and interact with it. Now I'm trying to adapt that server code to listen to mulitple clients. I am wanting to use select, but I'm getting confused with some of the examples and explainations I've found. I have been reading: http://support.sas.com/documentation/onlined...
stackexchange/codereview
Now i am working in SQLite database. I want to add primary key from my existing table. But i couldn't add the primary key in existing table and i have deleted all the records in the old table. So how can i add the primary key from existing table in SQLite? Here my query is, alter table studetails add constraint...
stackexchange/codereview
I have the following issue : We have this query : select price*hours as payment from table employees Now, if the result of that multiplication it's 0, I'd like payment to be "x", not 0. Translated in nonsql this would mean : (price*hours) != 0 ? (price*hours) : "x" Any ideas how could i implement this sql command ...
stackexchange/codereview
there is a lot of examples how to load all dependencies from some assembly like: var assembly = Assembly.ReflectionOnlyLoadFrom(assemblyPath); foreach (var assemblyName in assembly.GetReferencedAssemblies()) { try { Assembly.ReflectionOnlyLoad(assemblyName.FullName); } catch { Assembly.ReflectionOnlyLoadFro...
stackexchange/codereview
I am trying do a search to make sure that each of our product titles contains its manufacturer code. I am using preg_match but am getting some weird results back. Here is a snippet of code I wrote to go through the array of products... while($row = mysql_fetch_array($result)) { $products[''.$r...
stackexchange/codereview
I'm not sure if the topic describes my problem very well but I am creating some HTML elements (textboxes) on the fly with jQuery and I never know how many I will create (it loops through a database). I then want to get all the elements in the code behind and perform some actions (insert them into another database). I k...
stackexchange/codereview
I'd like to display a dialogue when a user clicks out of the DOM object that holds my app. I was thinking, I'd just put a one time click event on all parents and then trigger the dialogue with that. Because the DOM object that I'm getting the parent's for is included, it's triggering the dialogue even when the object i...
stackexchange/codereview
At this site I have a fixed nav and header when user clicks a title on nav it takes them to proper content box. Yet when they click from "Just Kids," to "Home," the top content is hidden behind the fixed header. Also you will notice this happens when the page loads; content is hidden behind the fixed header. I've tri...
stackexchange/codereview
I have 300 threads which is executing one by one. I use join, so its one-by-one. I want to execute N threads at a time. Can anyone direct me to a link on creating a thread pool in c# (with N threads). My situation is at a time N threads will execute, the rest of the threads will wait. When one thread finishes execution...
stackexchange/codereview
So I have a function such as: public static function UnorderedList($items, $field, $view = false){ if(count($items) > 0){ echo '<ul>'; foreach($items as $item){ echo '<li>'; if($view){ echo '<a href="'.$view.'id='.$item->sys_id.'" title="View Item">'.$item->$...
stackexchange/codereview
I'm having some trouble figuring out the boost image library. I could not find any exact documentation on how to use the interleaved_view function included in the boost::gil library. More specifically, I don't know exactly what binary format the raw data is supposed to be stored in. The only mention of it I could find...
stackexchange/codereview
This is a wierd one and at this point I am thinking that it may have something to do with my machines configuration. Basically I have created a pretty standard implementation of INotifyDataErrorInfo and in certain circumstances, when raising the ErrorsChanged event I get an ArgumentOutOfRangeException. This exception d...
stackexchange/codereview
I would like to use perlbrew to manage multiple Perl installations on my system. However, in addition to the clean installs from CPAN and the system install, I have a couple of other Perl installs that are tied to specific projects. I would like to be able to switch to these perls as well. For example, if I have /opt/S...
stackexchange/codereview
I think in newer versions of Rails, there are ways to say, "share these methods between controllers and views" using something like controller.helper controller.helper_method (I am not sure if they are). But what if these methods are missing in older versions of Rails? How can you tell Rails to share methods betwee...
stackexchange/codereview
I have a h- and a cpp-file with some calculations used in many of my projects. Now I tried to put them in a separate dll, so the files should not be included in every project. When linking I get a LNK2001 (unresolved symbol) error for a struct, however lib and dll are in the right place. I use the #ifdef TOOLS_EXPORTS...
stackexchange/codereview
In a registration form middleName field is optional. When the users enters his/her middleName, then it should validate that field. I have used the following code to achieve the above scenario, but it is not working. $("#middleName").rules("add", {checkName: true, required: false, messages: {checkName: "Please enter a v...
stackexchange/codereview
I want to upload my first APK/app to the Android Market, but I got this error (which did not lead me to the correct link when searched for in stackoverflow, by the way). Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. Market requires that the ...
stackexchange/codereview
I have a form in my iPhone application which contains three textFields and a post-button, of course. I have built two WebMethods in a WebService, I have tried both from my local PC. They works perfectly. The methods are: TestAddData - no parameters AddObject(string name, string address, string phoneNumber) I know w...
stackexchange/codereview
How would I self assign a SSL Cert on Apache (XAMPP) on a Windows 2003 server? I have researched and the farest I got was a broken SSL Cert with "Common name" problem. Post your guide or links here, Thanks.
stackexchange/codereview
I have the need to search for an item that exists in one of many (~20) tables I can safely assume that the item only exists in one of the tables, all tables contains an index with the same column name and value type. Tables vary in on of their columns, containing one of a few possible value types (int, string, binary. ...
stackexchange/codereview
I wrote two different custom Ant tasks. They are trying to share data through a static member in a base class. This is not working for me. I assume I am using static members correctly within Java. I think this is a dynamic loading issue with the Java VM. However, I am a relative newbie with Java. Since Ant custom t...
stackexchange/codereview
I have written this code for Firefox: <html><head><title>No</title> <script type="text/javascript" src="jquery-1.4.2.js"></script> </head> <body> <form action="javascript:void(alert('Yes'));"> <input type="submit" value="Submit"> </form> <script>$($('form').submit())</script></body></html> It correctly displays the al...
stackexchange/codereview
I am writing sample app for win mobile devices using Compact framework. App should read files (pictures, .jpg) from host desktop. Is there sample or something build in for task like this? In what kind of relation are device and host when device connecting to workstation using ActiveSync?
stackexchange/codereview
I'm trying to write a function in jQuery that will split lists - or really, any element that has children - that is conscious of memory use and is general enough to be widely reusable, but I'm having trouble resolving these against one another. For the sake of argument (and to keep the code on point) let's say I'm tryi...
stackexchange/codereview
I have this document.getElementsByTagName('input') to get all the <input> elements on the page. will this result in an array that I can put a for loop through?
stackexchange/codereview
Is there a FAST python tutorial for Django beginners?
stackexchange/codereview
I am looking for ways to run test suites in parallel. I am aware of .testrunconfig setting. This allows you to multiplex on the number of CPUs. I want to run 1000 tests in parallel. This makes sense because I am testing a web service, so 90% of the time spent in a test is waiting for the service to respond. Any id...
stackexchange/codereview
I have a WPF application that has several WindowsFormsHost controls. I'm trying to track the mouse position inside of my application when it is maximized in full-screen mode. If the user puts the mouse near the top screen, I'd like to display a Window with additional menus. I can use: Window.PreviewMouseMove InputMana...
stackexchange/codereview
I'm trying to use specs mathers inside scalacheck properties. For example, I have a matcher that works like this: x must matchMyMatcher(y) When I want to use this matcher inside scalacheck property, I do the following: import org.scalacheck._ import org.specs._ ... val prop = Prop.forAll(myGen){ (x,y) => new matc...
stackexchange/codereview
My Description contains an apstrophe('). How to escape it. <a href='javascript:select("<%= pageBean.replace(list.getColumn(0), "'", "'") %>", "<%= pageBean.replace(list.getColumn(1), "'", "'") %>");' title="<%=selRpt%>"> <span class='img-view'></span></a> "<%= pageBean.replace(list.getColumn(1), "'", "'") %>" is the d...
stackexchange/codereview
I am trying to write a MEL script that will draw simple implicit surfaces in Maya. I have had a search online but could not find that much on the topic. Does anyone know how to create a MEL script to draw a simple implicit surface in Maya? Thanks in advance.
stackexchange/codereview
I'm trying to import a CSV file to a mysql database. The CSV file contains (amongst other things) dates in the following format: "2010-04-31 17:43:12" My first approach was to use the following .sql script: USE test; LOAD DATA INFILE '/tmp/test.cvs' replace INTO TABLE test_table FIELDS TERMINATED BY ',' LINES TERMINAT...
stackexchange/codereview
My iPhone application is using AsyncUdpSocket to handle a UDP socket. However, when my application goes into the background in iOS 4.0 and returns to the foreground, I am getting the following error: Application 'MyAppName' exited abnormally with signal 13: Broken pipe This is because my sockets are disconnected when...
stackexchange/codereview
I've been all around with hasClass, is(), if then etc. What I'd like to do is when "btn" is clicked, look through a list of li's, find the one that has the class of "on" and get its index value. Depending on that value, run function x, add the class "on" to the next li and remove the class from the current li. I want ...
stackexchange/codereview
Normally we use the resignFirstResponder to hide the keyboard in the iphone apps. For example, when we use a UISearchBar, after the user click the search button, we hide the keyboard by implement the searchBarSearchButtonClicked function like this: -(void)searchBarSearchButtonClicked:(UISearchBar*)searchBar{ ...
stackexchange/codereview
How do I convert XML to string and get the element value? Example XML <Example> <Option1>x</Option1> <Option2>y</Option2> <Option3>z</Option3> </Example> . If i wanted to get option1 it would return x, option2 returns y, option3 returns z. etc....
stackexchange/codereview
I want to write a script which adds in a string a backslash () everytime it finds a quotation marks or \r. It works but for " and ', but I don't know how to write it for \r. Could anyone help me? THANKS <script type="text/javascript"> var test="Let\'s test if this \"works\" properly"; var escapedString = test.replace(/...
stackexchange/codereview
I've readen a book that uses Java's Timer class... something like: final Timer timer = new Timer(); timer.schedule(new TimerTask() { public void run() { /* Does something */ timer.cancel(); } }, 5000); Is there a way to implement that in PHP? I'm rewrinting the book examples in PHP. Thank you.
stackexchange/codereview
Is there a way to have with_permissions_to in a single place globally so that it applies to EVERY finder method of all models. Actually, I have very big application and just added this plug-in for authorization. I don't want to use with_permissions_to with every find method for all models. Thanks, Imran
stackexchange/codereview
We have a directory system that lists people with their credentials such as email phone and etc Their web profile link is also listed. but this link is created by taking the email username and adding it to a link. so joe01@school.com has a profile page at school.com/user/joe01 currently there is no validation to check ...
stackexchange/codereview
I am using code from the Google Bluetooth Chat Example to set up a bluetooth listening server. I want the app to listen always for an incoming connection. When the app sees a connection request it will accept the connection, read in the string that the remote device will send, and then respond by sending a file. The ...
stackexchange/codereview
I'm using paperclip in my rails 3 app to upload photos, resize with ImageMagick and then post to S3. For the life of me, I can't figure out why this process is soooo slow on my localhost? Even without any resizing it's crazy slow... 30+ seconds for one photo? And my network & cpu aren't even working hard? Why? Updating...
stackexchange/codereview
I've got a really bad brain block with this. My XML file looks like this: <?xml version="1.0" encoding="UTF-8"?> <data> <fruits> <item>Apple</item> <item>Orange</item> <item>Banana</item> </fruits> <vegetables> <item>Lettuce</item> <item>Carrot</item> </vegetables> </data> I am tyring to us...
stackexchange/codereview
I have some build info used to identify at runtime the Subversion version # and the URL of the source directory within the repository. Does SVN use any kind of node ID to identify paths? I'm using an embedded system with a communications link that does not deal well with large data fields, and would be much happier usi...
stackexchange/codereview
I wanted a script to fade in and out of images within a div using jQuery. I'm using the following code (from http://jonraasch.com/blog/a-simple-jquery-slideshow): function slideSwitch() { var $active = $('div.box1 img.active'); if ( $active.length == 0 ) $active = $('div.box1 img:last'); var $sibs = $active.sib...
stackexchange/codereview
I have the following jQuery function: var $content = $("#content"); var $map= $("#map"); $.each(plots, function() { var plot = this; var $plot = $("<a />") .css({ 'width': plot.width, 'height': plot.height, 'top': plot.top, 'left': plot.left, 'background': plot.color, ...
stackexchange/codereview
I use SimpleExpandableListAdapter in my ExpandableListActivity When user click the group row, the children list is expanded and show, when user click each child item in the expanded list, user will be navigated to the next second_Activity. Currently, when user click the back button to go back from second_Activity...
stackexchange/codereview
I've been using the geokit and geokit-rails gem for rails for awhile but one question I haven't found answered is how to find the calculated aggregate center for a collection of points. I know how to calculate the distance between two points, but not more than 2. My reason is, I have a series of points all in the same...
stackexchange/codereview
I'm distributing custom applications for redhat. I want to set up my update server to have the client applications auto-updated. I need the update process to be secured. Can the connection to the update server secured and certified ? Is there an encrypted update method ? With server certificate check ? Thanks.
stackexchange/codereview
In Safari on OS4 it's possible to stream the audio of YouTube videos in background: To try that start a video from YouTube, send the app in background, double tap the home button and switch to another app. At this point the audio will stop but it can be restated, paused, etc. in background using the remote controls ass...
stackexchange/codereview
I would like to know if does anybody know a freeware refactoring tool, in which I could rename some table columns and get those names also renamed in my stored procedures. Does it exist?
stackexchange/codereview
when ever i try to execute the command for introducing the command to increase the packet drop rate the terminal shows an error RTNETLINK answers: No such file or directory though the command for introducing the latency in the network works perfectly fine..
stackexchange/codereview
Is there a way to Create an Opportunity using Partner WSDL? The only examples I see online is creating using Enterprise WSDL but they are specific to an organization. Amongst Other links I have been referring to.. http://www.salesforce.com/us/developer/docs/api/Content/calls.htm http://www.salesforce.com/us/developer/d...
stackexchange/codereview
I'm trying to convert from a SQL Server database backup file (.bak) to MySQL. This question and answers have been very useful, and I have successfully imported the database, but am now stuck on exporting to MySQL. The MySQL Migration Toolkit was suggested, but seems to have been replaced by the MySQL Workbench. Is it p...
stackexchange/codereview
I'm (going to be) writing an application in Qt that will run on the 3 main OSes (Windows, Linux and Mac). One of the features of this app is that it needs USB to talk to a piece of custom external hardware. Is there a cross-platform USB library available?
stackexchange/codereview
Could someone help me to convert bittarray to string properly? I wrote this: static String BitArrayToStr(BitArray ba) { byte[] strArr = new byte[ba.Length / 8]; System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); for (int i = 0; i < ba.Length / 8; i++) ...
stackexchange/codereview
Also i need to be able to draw arcs in user defined locations. My current code only lets me put it in one location in my picturebox. Here is my code: if (DrawShape == 3) { g.Clear(Color.Transparent); g.DrawImage(StoredImage, 0, 0); g.DrawArc(Pens.I...
stackexchange/codereview
today the default route for my site stopped working, but the strange thing is that the global.ascx has not changed at all. when i enter the URL mysite.com/ i get this 404 error The resource cannot be found. Requested URL: /Views/Start/Index.aspx i have a bog standard default MVC route routes.MapRoute( ...
stackexchange/codereview
How can I use mod_rewrite to take http://www.site.com/events?pg=4 and turn it to a clean URL, like so: http://www.site.com/events/4 ? Thanks for the help!
stackexchange/codereview
I know that it has been told almost anything related to time table modeling in RDBS, but I can not find any well written documentation about available techniques to store time tables in DB. My case: I have table which holds available places, and table with actual classes. Each place has it's own unique schedule Each c...
stackexchange/codereview
Is it possible to have a objective c member in a c++ class @interface ObjectiveCClass : UIViewController { int someVarialbe; } - (void)someFunction; @end class CPlusPlusClass{ ObjectiveCClass obj; // have a objective c member void doSomething(){ obj.someFunction; // an...
stackexchange/codereview
I have a grid(gridpanel) and data in it which I read from json query. After I added new bussines object(row) - I send him in json format to server, write to DB, and reload all grid. How I can focus on currently added row(b/o) after that? I will be very cool if I return added id at the json answer and grid take it and f...
stackexchange/codereview
I have a Mac Laptop and I am connecting to server running Linux. As Alt+3 is already bound in EMACS to a command, so I cannot insert the hash symbol in a file. I have tried the following solution I found online: (global-unset-key (kbd "C-3")) (global-set-key (kbd "C-3") '(lambda() (interactive) (insert-string "#"))) ...
stackexchange/codereview
I want to set image for DataGridViewButtonColumn in c#.net application.I tried this by cell painting event .Any other way to set image for DataGridViewButtonColumn. Please help
stackexchange/codereview
I have a problem when I do an httprequest and the remote server responds with a redirect and some additional query parameters. The problem is that the additional parameters is empty on certain enviroments. When I run the code in a test-environment the parameters is not empty. HttpWebRequest request = (HttpWebRequest)...
stackexchange/codereview
I am having trouble with subquery counts with JDOQL (using DataNucleus). The following query SELECT this.price FROM com.mysema.query.jdo.test.domain.Product WHERE (SELECT count(other) FROM com.mysema.query.jdo.test.domain.Product other WHERE other.price > this.price) > a1 PARAMETERS java.lang.Long a1 causes the Except...
stackexchange/codereview
Can you use Atom for programming C in Haskell? Would that be possible and would that make sense?
stackexchange/codereview
Is there a database which will satisfy all (or at least most) of this requirements? Graph oriented - optimized for storing graphs and traversal(e.g HyperGraphDB, Neo4j) Running in memory, but having a persisted storage (e.g. Redis) Distributed (e.g. membase) Had .NET adapter (TCP/IP, not HTTP REST) Or am I asking too...
stackexchange/codereview
I am facing a strange issue with JPA CascadeType.REFRESH attribute. I have a simple parent-child relationship in which in parent domain object(LineEquipmentFormat) I have added the cascade attributes like below OneToMany(cascade = { CascadeType.REFRESH, CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REMOVE}, ma...
stackexchange/codereview
I have an Accordion in ExtJS and I want to add new Panels to it dynamically. The Panels need to be collapsed when they appear. The code that I have now will create the Panels, but the HTML in each panel won't show. var loadoutput = new Ext.Panel({ title: 'Log', renderTo: 'logout', layout: 'accordion', defaults: { ...
stackexchange/codereview
In the example below, what would you name the parameter given that it is used to initialize the property FromDate? For class constructor methods, I like to have the name of the constructor parameter variable match the name of the property which is being initialized. For example, the parameter "fromDate" is used to ini...
stackexchange/codereview
I've tried working with OrientDB but it seems inserting to the database is not supported by the REST interface. Looking at Cassandra and MongoDB, they seem to be alright but I haven't seen any references to VB in their site.
stackexchange/codereview
Can't get ruby-debug engaged for rails 3.0 1) when I do a "gem list ruby-debug" I get: $ gem list ruby-debug * LOCAL GEMS * ruby-debug (0.10.3) ruby-debug-base (0.10.3 mswin32) ruby-debug-ide (0.4.5) 2) when I run "rails server --debugger" I get: c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/resolver.rb:...
stackexchange/codereview
I am new to Android programming and have done a lot of searching for the answer to this question however I can not find an answer. Maybe I am using the wrong search terms because it seems like a pretty basic request. I my design (as an example), I would have two text fields defined in my relative layout followed by an...
stackexchange/codereview