instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
We've got a series of code projects in different parts of our source tree that all have a base package company_name, and some of them import functionality from eachother. This works just fine when running the code, setuptools and declare_namespace handle peicing together the modules. However, pylint doesn't seem to be ...
stackexchange/codereview
Problem: One hg repository has a file I want to update & maintain in another hg repository, and I do not want to copy & paste. I do want to have the file available in both repos. Scenario: Working on Product 0001 Project A has an hg repository. Down the road, a Project B is spun up. There is largely no coupling between...
stackexchange/codereview
Is there a way to export a EF 4.0 Data Model to EF 3.5? I looked around and found that we are not able to access EF 4.0 from a ASP.Net 3.5 project here: Using Entity Framework 4.0 in a .Net 3.5 Application Our project is the 1st to go to .Net 4.0 using Entity Framework and we (the team) were wondering if there was a wa...
stackexchange/codereview
64-bit VISTA Python 3.1 from urllib import request a = request.urlopen('http://www.marketwatch.com/investing/currency/CUR_USDYEN').read(20500) b = a[19000:20500] idx_pricewrap = b.find('pricewrap') context = b[idx_pricewrap:idx_pricewrap+80] idx_bgLast = context.find('bgLast') rate = context[idx_bgLast+8:idx_bgLast+15]...
stackexchange/codereview
In Ruby is there a way to combine all array elements into one string? Example Array: @arr = ['<p>Hello World</p>', '<p>This is a test</p>'] Example Output: <p>Hello World</p><p>This is a test</p>
stackexchange/codereview
I have two tables: Table Author: ID (INTEGER), author_name (VARCHAR), first_name (VARCHAR), last_name (VARCHAR), preferred_name (VARCHAR). Table CoAuthored: ID (INTEGER) author1ID (INTEGER), author2ID (INTEGER), paper_ID (INTEGER) (ID of the co-authored paper referenced by this link) I want to add foreign key constrain...
stackexchange/codereview
What does follwoing code lines will do. This will set the cache time. Response.Cache.SetExpires(DateTime.Now.AddSeconds(60)); What does this do? Response.Cache.SetCacheability(HttpCacheability.NoCache); What does this do?.. first line of code set cache then why this line of code needs true ? Response.Cache.SetValidUn...
stackexchange/codereview
I am using AVFoundation to implement an AVPlayer. I want to loop a video clip continuously, so I register an AVPlayerItemDidPlayToEndTimeNotification to call this method: - (void)player1ItemDidReachEnd:(NSNotification *)notification { dispatch_async(dispatch_get_main_queue(), ^{ [player1 seekToTime:kCM...
stackexchange/codereview
I would like to use Sphinx for many to many matching. I took the questions and tags case here in StackOverflow for illustration. A question can be associated with many tags and vice versa for a tag. So in the mysql, I have 3 tables: question, tag, question_tag. I would like to search for questions which contains as ma...
stackexchange/codereview
So I am having difficulty coding with radio buttons. I have 4 radio buttons in 2 different lists. Status - Member - Non Member Age - Over 65 - Under 65 Fee Box Display Button If Member and Over 65 = $5 ElseIf Non Member and Under 65 = $50 ElseIf Member and Under 65 = $5 ElseIf No...
stackexchange/codereview
If you right-click on a file in Windows and select Properties, you can manage some properties in de Summary tab, such as Title, Subject and Author, like in this example: I'm trying to find a way to read these properties using Java. Is there a library for this? Is this even possible? Thanks in advance! Peter
stackexchange/codereview
I have a node.js server that pretty much runs a child process and sends the stdout from the process to connected clients via sockets. It is working just fine but when a client disconnects I cannot close the childprocess due to the var being outside the scope. Here is my sample code var sys = require('sys'), ws ...
stackexchange/codereview
I tried to ask this on the GAE group, but got nothing, and I'm getting nowhere fast with this problem... I have an installed app submitting files to my GAEj app, via the blobstore service. This all works fine on the dev server, but in production, the blobstore accepts the upload, then calls my app with the URL supplie...
stackexchange/codereview
At startup of a Windows Forms application I read a XML file. If this file doesn't exist or doesn't have a certain setting I want to display a MessageBox to the user indicating the problem and then close the application. I tried to do that in the Load event of the main form with Application.Exit() like so: private void ...
stackexchange/codereview
I am using the RLastFM package, and have some question about the function: > tag.getTopArtists function (tag, key = lastkey, parse = TRUE) { params = list(method = "tag.gettopartists", tag = tag, api_key = lastkey) ret = getForm(baseurl, .params = params) doc = xmlParse(ret, asText = TRUE) if (parse) ...
stackexchange/codereview
I am looking for way to disable a system device (either USB or internal) in C#.NET given either the PID & VID or the device name. After searching I found Hardware Helper Library for C# on CodeProject. But I need something that will work on XP, Vista & Windows 7 (both x86 and x64 operating systems)...the project I linke...
stackexchange/codereview
I have setup binding as follows XAML <TextBlock Text="{Binding Path=Color, Converter={StaticResource ColorToStringConverter}}" /> C#: Showing what Color is public System.Windows.Media.Color Color { get { var color = new HSLColor { Hue = this.Hue, Saturation = this.Saturation, Luminosity = this.Luminos...
stackexchange/codereview
I am receiving some JSON object from the server, and I want to 'typecast' or 'bless' it to an object with already defined methods. Is there any way to set a prototype for a plain JSON object? function MyClass(someValue) { this.myProperty = someValue; } MyClass.prototype.someMethod = function() { return "Here's " +...
stackexchange/codereview
I'm mapping my request's JSON POST data into an object using Spring's @RequestBody annotation and MappingJacksonHttpMessageConverter. However after that I'd like to read the data in String form to do some additional authentication. But when the marshalling has happened, the InputStream in HttpServletRequest is empty. O...
stackexchange/codereview
I have recently created an application where a lot of data is loaded into objects when the application starts up, and other data as it is required. For example if the user requests the catalogue page then it will load all the top level category data into objects of type Category. This will then stay there to be used by...
stackexchange/codereview
I am trying to send terminal commands programmaticly from an android activity. At the moment I'm using something like the following: Process process = null; DataOutputStream os = null; process = Runtime.getRuntime().exec("su"); os = new DataOutputStream(process.getOutputStream()); os.writeBytes("./data...
stackexchange/codereview
I am writing a script that will loop through an Excel spreadsheet and find if there are duplicates of selected cells. If there are duplicates then the function will return an array of which rows are duplicates and create a comment to tell me the rows. I have been able to handle error 0 but now I am getting error 9 whe...
stackexchange/codereview
I am trying to simulate the swipe event from the iPhone with Raphaeljs. To do so, I am using the drag and drop event. To simulate the event in have a method in the move event that calculate the distance between my object and the mouse position. If the mouse goes after that distance I want to stop the drag and drop even...
stackexchange/codereview
I'm a consulting at a government agency. We have high security requirements all through the development process. Amongst other things, we are required to connect to our subversion repository over svn+ssh with private keys. We are also bringing in some Oracle tech which requires us to develop in JDeveloper (11.1.1.3). O...
stackexchange/codereview
I managed to get the address of a .net object by GCHandle objHandle = GCHandle.Alloc(obj,GCHandleType.WeakTrackResurrection); int address = GCHandle.ToIntPtr(objHandle).ToInt32(); and I can recall the object by Object obj = GCHandle.FromIntPtr(IntPtr(address)).Target; Well, the purpose is to store the address in a ...
stackexchange/codereview
In ARM Cortex-A8 processor, I understand what NEON is, it is an SIMD co-processor. But is VFP(Vector Floating Point) unit, which is also a co-processor, works as a SIMD processor? If so which one is better to use? I read few links such as - Link1 Link2. But not really very clear what they mean. They say that VFP was ...
stackexchange/codereview
So I have to setup a webservice. Basically, we send X509 signed XML files to each through HTTP. We have their URL that we have to post to, so sending it isn't a huge issue, I can figure that out. However, I have to let the 3rd party know which URL that THEY can post to on our end. How am I supposed to achieve that URL?...
stackexchange/codereview
I had a look at the previous questions of your db and I didn't try an answer, but I try. I would like to write the following lines code: echo Executing backup.... backup procedure echo Ok but the output should be: Executing backup... Ok That's possible?!
stackexchange/codereview
I'm new to IronPython, currently using ironpython studio, usually I like to program with Visual Basic or Delphi. My problem is that I don't know how to switch between forms by clicking a button, on Delphi you normaly write this code from a button on "form1": procedure TMain.buttonClick(Sender: TObject); begin form2...
stackexchange/codereview
I keep trying to download Pyscripter on my 32bit Netbook, and I keep getting a range of errors such as "The installation package could not be opened". Any clue on how to make pyscripter work?
stackexchange/codereview
I'm a bit new to javascript. Is there a way to do what I am describing in the title completely client-side and without any external libraries? Or is using jQuery the best/only way to go?
stackexchange/codereview
I can't seem to get this toString() method to work? The deepToString method works perfectly, except that I have to print them out in an organized way, like a matrix would look like with aligned rows and columns. I had it working a while ago, but I changed something and now god knows what I did, I have no idea how to ge...
stackexchange/codereview
For some reason, I am having issues with Interfaces. I know a 100 examples have been posted but apparently I'm not smart enough to figure it out... I have the following interface: namespace DocStore.Interfaces { public interface IResetCategoryControl { string CategoryToAdd { set; } } } I want to set Category...
stackexchange/codereview
I am having problem with rendering text/json in Chrome. I use YUI library to send ajax request and process response. The problem appeared right after I switched from Apache with mod_php to Lighttpd with php-fpm as fastcgi. Ajax requests something from the server, server returns content of type text/json (declared conte...
stackexchange/codereview
I have a race condition in which I do not want an AJAX call to occur, if a form on the page is currently submitting. I'd rather not alter the code for the form. I was thinking of attaching event handlers to each of the form elements so that onsubmit it would increment a counter and then on onreadystatechange decrement ...
stackexchange/codereview
I have an html text fragment that's part of the page's DOM that I need to run a find/replace on and I need some help figuring out the best way to create the find/replace function. For example, I would like to take the contents of the dom object whose id="content" and run a find replace using a target search phrase. I...
stackexchange/codereview
Is there a way to do this? I imagine the following will not work. UPDATE table SET column = column + 1 ... Other than writing a function or using PHP, is there a way to do this with a query?
stackexchange/codereview
I want to program an application on iPhone and I want to know if the idea of this application is doable. So in the Application I want to have an image that appears to the users (this is easy. When the user touches the image, the application records the (x,y) position of where the user touches exactly in the image and s...
stackexchange/codereview
I'm learning Ruby and, for this, I'm writing an application in it. My background is in C++/Qt. So I've started writing a Ruby/Qt app. But there's a few previously written widgets (C++) I would like to use, besides qwt. Is this possible? If it is, how should I do it? PS: It seems QtRuby from Korundum bindings do include...
stackexchange/codereview
I have the GotToNextCellOnEnter and the FocuscellOnCycle properties set to true. When I press enter on the last cell the FocusedRecordChanged event fires and then the FocusedItemChanged event fires. Is there a way of detecting that the FocusedItemChanged event is due to fire from within the FocusRecordChanged event. I ...
stackexchange/codereview
I want to write an application that it can record the wifi hotspot's location we are accessing and display them in map. But the problem is - how do I get wifi hotspot's location? I think I can use the wifi signal to get the wifi hotspot's location, but it may not be very accuracy at first time. And if there is no other...
stackexchange/codereview
I use jQuery UI. When i am trying to add some controls (DatePicker, Dialog, Autocomplete) they look to large. May be anybody does know what cause of this problem? Thanks in advise....
stackexchange/codereview
I have a DataGridView and I want to validate only Decimal No Should be input in a Cell i am using window Form and i am generating Column in DataGridView Dynamically Plz help me
stackexchange/codereview
I need to create a comma-separated file using ruby. The data are coming from a MySQL database. So an example file would look like: userid, username, firstname, lastname, tags 2343,blankman, blank, man, "hello world tags-here"
stackexchange/codereview
I have an "Edit Profile" lightbox on my page, which posts to the controller via jQuery ajax. I handle the response in the jquery end instead of returning a View. However, when the profile is saved, I need to refresh the values on the page displaying the popup. How could I achieve this in MVC2? For example, if the us...
stackexchange/codereview
For some reason I'm having trouble running MIT scheme. On my Dell, which runs Windows Vista, I can't even open MIT scheme; I get a message: "Heap Size exceeded", or something like that. I can run it fine on my Mac, but Edwin is a bit confusing. Does anyone know how to fix my problem on Windows, and where I can find som...
stackexchange/codereview
Which is better to use if I simply want a background image for a UIView? I can accomplish this with either method, but which is more efficient? My hunch is that using a UIView with colorWithPaternImage is more efficient than using a UIImageView. I'll be using this for each row in a UITableView. Thanks! Matt
stackexchange/codereview
how would i set this to null; LookupTable<Product *> table; everything i try says 1 IntelliSense: no suitable constructor exists to convert from "int" to "LookupTable" Here is what Lookup table is: #ifndef LOOKUPTABLE_H #define LOOKUPTABLE_H #include <iostream> #include <string> using namespace std; #define MAXRAN...
stackexchange/codereview
I'm trying to write a LINQ query that that simply gets the count of rows where a variable ('id') is equal to the JOB_GROUP statement. Problem is, Visual Studio is returning an error on the ; at the end, saying 'Only assignment calls.....may be used as a statement'. Is there anything obvious wrong with my query? var noo...
stackexchange/codereview
I am new using Wt and I would like to know what I must do to get an example (let’s say Hello) working on a web server (Apache or free webhost for testing). I know how to use the built-in web server ; I have to launch that command : ./hello.wt --docroot . --http-address 0.0.0.0 --http-port 8080 Then, I go to http://127...
stackexchange/codereview
Hi I attach the jquery datetime picker to a textbox using the following (please note that I have specified the format to be dd/mm/yy): $('#SupplierSearch_StartDate').datepicker({ dateFormat: 'dd/mm/yy' }); This all works fine on the form. But when I submit me form back to the server, the date that comes back is in the...
stackexchange/codereview
I have a dll which used to implement socket communication, but it does not expose the Socket descriptor to me(Host application). My question is: Is there any way I can get the socket descriptor which created by this dll? Because I need to setting the socket by WSAIoctl() and SetSockOpt() in my application. Thanks, Visl...
stackexchange/codereview
I am trying to search a word document for some specific text and then replace it with a custom table. I seem to almost have it working but it seems to add the table halfway through the previous word rather than right where it found the text. This is my function public void AddTableAtCursor(string tabledata, ...
stackexchange/codereview
I tried to install lazarus on a mac os x 10.4 macbook but it did not work, can any one give me a hint on how to do it. Thanks
stackexchange/codereview
I am trying to write code that will allow the user to choose a picture from the pictures folder and send that picture to the internet. I am new to Android so any help would be much appreciated. Thanks in advance.
stackexchange/codereview
I want to implement a ranking system on a website I've been working on and have decided to go with the Hacker News algorithm. My reasoning for choosing this algorithm is simply because it's been described here. I was looking at this Python code (the language I'm using to build my site) and couldn't figure out how I wou...
stackexchange/codereview
I'm using refinerycms in our site to let the less technical staff update content. Inside the gem, they have a Page class that maps each top level page on the site. I'd like to use the acts_as_taggable gem on this Page class. Now I can add the acts_as_taggle declaration directly to the page.rb file, but then I'd have to...
stackexchange/codereview
Is there a way to increment the year on filtered objects using the update() method? I am using: python 2.6.5 django 1.2.1 final mysql Ver 14.14 Distrib 5.1.41 I know it's possible to do something like this: today = datetime.datetime.today() for event in Event.objects.filter(end_date__lt=today).iterator(): event.s...
stackexchange/codereview
I want to create a new table in SQL Server with the following query. I am unable to understand why this query doesn't work. Query1: Works SELECT * FROM TABLE1 UNION SELECT * FROM TABLE2 Query2: Does not Work. Error: Msg 170, Level 15, State 1, Line 7 Line 7: Incorrect syntax near ')'. SELECT * INTO [NEW_TABLE] FROM ...
stackexchange/codereview
We have created a system that allows embedding an image in an outgoing email. Here is the original message our system creates. This example contains an image attachment and an embedded image. Mime-Version: 1.0 From: ... To: ... CC: Subject: test x-sender: ... x-mailer: ... Content-Type: multipart/mixed; boundary="----...
stackexchange/codereview
If I had the following code: for(int myvar = 0; myvar < 10; myvar++); if(1) { int var2 = 16; } Then, afterwards I wrote the following: myvar = 0; var2 = 0; Would that be legal? My VC++6 compiles it correctly, but I think this should be illegal. (It gives a compiler error in one of my other compilers.)
stackexchange/codereview
I come from a background in Ruby on Rails. Implementing search is relatively trivia using some of the excellent search plugins available to that community (i.e., Sphinx, Solr, etc.). In .Net, what's a similar counter part the above strategies? I discovered DotLucene -- but, that project is now closed. Any others I s...
stackexchange/codereview
Using Delphi 2009 and IXMLDOMDocument2 I receive "An invalid character was found in text content" error when loading XML into IXMLDOMDocument2. The character is 1B (in Hex) and is present within a CDATA section. Microsoft's XML viewer (IE) loads the file just fine. The XML looks like... <data><child><![CDATA[-- ]]></ch...
stackexchange/codereview
I know that .jar files are basically archives as well as being applications. What I'm asking is how can I store data(actual files not just strings) packed inside my program? I want to do this within my Java code. The reason for this if your wondering is that I'm producing a server mod of a game. The server starts and c...
stackexchange/codereview
I'm trying to work on a homework problem where I have an input date in the format YYYY-MM-DD I need to import a couple modules and create a function weekday where it splits up the date and returns the weekday. So far I imported: from time import * from datetime import * I need help in my weekday function where I must...
stackexchange/codereview
I am working on a feature for an application that requires Flex 4 functionality. Due to some migration issues of the application from Flex 3.5 to 4.0, I have decided to implement this feature as a module that is compiled with Flex 4.0. The theory is that the application would remain compiled in Flex 3.5 and load the ...
stackexchange/codereview
I have add MIDI.dll into assembly property, I new to C# and following an example from MIDI.dot.net and got this error on device.Spec, what it mean by Midi.InputDevice does not contain a definition for 'spec' and no extension method 'spec' accepting a first argument of type Midi.InputDevice could not be found (are you m...
stackexchange/codereview
I have a parent-child relationship that I've put a test case together between Users and Groups. I did this to replicate a failure in a Parent-Child relationship when trying to perform a cacade insert using thes relationship. The two SQL tables are as follows: CREATE TABLE [dbo].[User] ( [Id] [int] IDENTITY(1,1) NO...
stackexchange/codereview
The script below takes the $myContent block and does the doReplace() function on the $myKeyword value. The problem I have is that it does not know if the replacement text is already inside a tag or not. I need to modify the doReplace() function so that it does not touch any text inside of or as attributes of the named...
stackexchange/codereview
This mess is working well, but if somebody has any ideas to make it look/perform better, it would be greatly appreciated! def OnButtonClick(b, e, f="none"): if b == Gui["goleft"] and e == viz.UP: do_Cam([1.475, 7.862, 10.293]) if b == Gui["gocenter"] and e == viz.UP: do_Cam([0, 1, 52]) if b == Gui["gorigh...
stackexchange/codereview
What are the possible reasons for getting this error: "The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid." I am using the auto-generated connection string that the EF Wizard created and added to my app.config, so I would think i...
stackexchange/codereview
Background I basically have an array, this array has the following format Array ( [0] => Array ( [co_id] => 1 [co_fname] => First [co_lname] => Last [co_company] => Company [co_address] => Address [co_ddi] => ddinumber [co_...
stackexchange/codereview
I have an array in Perl like the following (only much bigger). My array is called @sqlInsert Element1 A B C Element2 A B C Element3 A B C I want to fill a MySQL table with the information in this data. So really, I want to have one row going: for ($count=0; $count<@arrayInsert; $count++) { INSERT INTO table va...
stackexchange/codereview
hi there here it is my code: procedure TForm4.Button1Click(Sender: TObject); var png: TPNGImage; data: PRGBQarray; p: ^tagRGBQuad; i, o: integer; begin png := TPNGImage.Create; try png.LoadFromFile('C:\Untitled.png'); for o := 1 to 100 do begin data:=png.Scanline[o]; for I := 1 to 40...
stackexchange/codereview
I am writing a PHP script that needs to interpret Diff files as created by Git. How should I proceed if I want to parse the Diff file and basically print it in a completely different format? I have come across the Text_Diff PEAR library, but that one only creates the Diffs itself. Or rather, it only takes two different...
stackexchange/codereview
I have an UIImage inside an UIImageView in my application. In portrait mode, the image is centered but when I switch to the landscape mode it stills on the left. So I added the following method in my .m file but the problem is that I have a TabBar application, so when I rotate the device on another tab and I go back to...
stackexchange/codereview
I am currently drawing a number of circles on a canvas in a custom view in code. the circles are static and do not change. I would like to draw them using a ShapeDrawable in xml to help clean up my code. I will have a number of different drawables which the user can select and therefore I don't want to do this in code....
stackexchange/codereview
int a, b, c; //do stuff. For e.g., cin >> b >> c; c = a + b; //works c = operator+(a,b); //fails to compile, 'operator+' not defined. This on the other hand works - class Foo { int x; public: Foo(int x):x(x) {} Foo friend operator+(const Foo& f, const Foo& g) { return Foo(f.x + g.x); } }; ...
stackexchange/codereview
I have just started playing around with Log4Net... I now want to send an email with the full log either attached or directly in the mail. The problem with using SmtpAppender is that it requires a bufferSize which will be unknown because it should send the mail whether it's full of errors or just info. Update: My config...
stackexchange/codereview
I am unable to set a cookie in one domain and read it in another. I have tried a million different examples but i have had no luck at all. can someone please point out what is going wrong? domainone.com setcookie('testcookie','cookie example',time()+30*24*60*60,'/','domaintwo.com',false,true) domaintwo.com echo $_COO...
stackexchange/codereview
How can I prevent user to resend data by refreshing the URL ? (Actually after posting data to the server and returning back data by the server to the client: if user refreshes the url address then again he sends back to the server with previous data) So, how can I prevent it by c#, asp.net ?
stackexchange/codereview
Is there a way to build our web application to dynamically choose Oracle version? I think you can use binding redirect, but I am not sure if it requires the versions to be in the GAC (our assemblies are not GAC'ed) We need to use Oracle.DataAccess v. 2.102.4.0 on 32 bit systems and v. 2.112.1.0 on 64 bit systems. I wo...
stackexchange/codereview
I have the following WCF protocol bridging scenario: a WCF Client using basicHttp binding talking to a Routing Service which forwards the request to the Service using netTcp. Client <-> basicHttpBinding (SOAP 1.1) <–> Router Service <–> netTcpBinding (SOAP 1.2) <–> Service The routing functionality works perfectly un...
stackexchange/codereview
The problem is you have a 3rd party type e.g. ClassA below. I don't have access to the code and it doesn't implement Equals and GetHashCode therefore I need to write a wrapper class I think. The Equals and GetHashCode impls should use all the private member fields. What's the best way to do this? Is there a shortcut or...
stackexchange/codereview
I had written one web service which fires on every miniutes... I want to fire a mail to my manager in every month on say xyz date.... this task shld repeted on every month on same date... So can any one tell me how to do this..? I mean to say the block of code which i will write shld get executed on same date of every ...
stackexchange/codereview
when developing C++ with VS you have this amazing feature of data breakpoints, which trigger when the data at a certain address in memory changes. is there a similar feature when developing java in eclipse? thanks! edit: about the "suspend when value changes" feature: i have the impression that the execution must still...
stackexchange/codereview
I just downloaded Sybase SQLAnywhere Developer Edition and installed. It looks fantastic and maintenance also very easy. Could someone let me know which engine it uses? Is it Interbase? Secondly, is there any RAM or DB size limit in this edition? How would you rate this RDBMS?
stackexchange/codereview
For applications that shouldn't die, should implement while loop, afaik. like while(){ key = getKeyPress(); if(key) processKey(key); } I can see 200 programs hanging on when I use "top". That means there are 200 while loops! I expect every program to put hook for the events to the operating sys. When these...
stackexchange/codereview
I'm looking for a simple way to store a counter in the server memory to allow page load selection, kind of (pseudocode): if counter is odd then load page-x else (even counter) load page-y increment counter by 1 store counter in server's memory Session variables would not help, among multiple users. I understand this...
stackexchange/codereview
I am trying to parse one element from a website that is inside of a table. This is the exact xpath expression that I use: [xpathParser search:@"/table[1]/tr[2]/td[1]"]; However, when I run the program, my string comes up empty. I'm wondering if the site is blocking me from parsing, or whether my expression is correc...
stackexchange/codereview
Assume that I have a project that contains two buttons on it. Each buttons generate a custom form. I wrote both forms manually. But I wonder, is there a way that I can make these forms by using toolbox in different projects and combine them in one solution. I mean, when I press a button I want to call another project...
stackexchange/codereview
I have a data frame with 900,000 rows and 11 columns in R. The column names and types are as follows: column name: date / mcode / mname / ycode / yname / yissue / bsent / breturn / tsent / treturn / csales type: Date / Char / Char / Char / Char / Numeric / Numeric / Numeric / Numeric / Numeric / Numeric...
stackexchange/codereview
I call up Find and Replace dialog with Ctrl+H. On F3 it finds the result but then I must hunt the Replace button using the mouse. And on every new find, it changes the screen position. Is there any way to use this dialog using only keyboard? It will save me a few precious seconds multiplied by some very large number ...
stackexchange/codereview
this is basically what i want to achieve : http://i52.tinypic.com/15qelwy.jpg so far this is my main.xml file <TableLayout android:paddingTop="80sp" android:paddingLeft="40sp" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TableRow> <TextView android:text="@string/questions" ...
stackexchange/codereview
Given some arbitrary numpy array of data, how can I plot it to make dates appear on the x axis? In this case, sample 0 will be some time, say 7:00, and every sample afterwards will be spaced one minute apart, so that for 60 samples, the time displayed should be 7:00, 7:01, ..., 7:59. I looked at some of the other quest...
stackexchange/codereview
My host object hasMany option objects associated with it. In the edit form, users can (de)select options and save that new set of associations. This is implemented using saveAll() on the posted data. The result is that the host (main) object is updated, option (associated) objects that are included both in the prior a...
stackexchange/codereview
We have the following scenario with our project: A core web application packaged as a war file (call it Core project). The need to "customize" or "extend" the core app per customer (call it Customer project). This mostly includes new bean definitions (we're using Spring), ie. replacing service implementations in the ...
stackexchange/codereview
I am using VB.NET and need to activate a certain window. Is this possible? If so, how?
stackexchange/codereview
in my optional parameter query that uses LIKE operator , Escape special characters is not working . this is part of the query NAME LIKE CASE WHEN '%'+@Name+'%' IS NULL THEN NAME ELSE '%'+@Name+'%' END i thought i can make it like NAME LIKE CASE WHEN '%'+@Name+'%'ESCAPE '\' IS NULL THEN NAME ELSE '%'+@Name+'%' END b...
stackexchange/codereview
Is it possible to make a SynchronizedKeyedCollection and/or SynchronizedCollection sortable?
stackexchange/codereview