instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
i have a 3 column datafile and i wanted to use splot to plot the same.
But what i want is that gnuplot plots first row (in some colour, say red) and then pauses for say 0.3 secs and then moves on to plotting next row (in other colour, not in red, say in green), pauses for 0.3 secs and then proceeds to next row....so on... | stackexchange/codereview |
I have multiple processes monitoring an MSMQ queue. I want to do multi-step operations like first peek the message and then based on some criteria receive the message. A single message may pass the receiving criteria of multiple processes so that more than one process may try to receive the same message. Will these ope... | stackexchange/codereview |
This error comes out whenever I click the datagrid.
The program does fill the datagrid every time data was selected in the combobox.
For example, I choose data1 which has four records in datagrid, and then I click row index no 1. No problem, it will be shown, but when I choose another data again in combobox, for exampl... | stackexchange/codereview |
I'm trying to program ARM using Eclipse + CDT + yagarto (gnu toolchain) + OpenOCD. In several sample projects (from yagarto site for example) I found linker scripts (*.ld) where a lot of linking information specified (along with sections definitions). Actually I haven't faced this files before (IAR doesn't need them), ... | stackexchange/codereview |
I'm trying to use multiple attributes in my custom tag, e.g.:
<mytaglib:mytag firstname="Thadeus" lastname="Jones" />
How can I access the attributes in the TagHandler code?
| stackexchange/codereview |
Recently I wrote an extremely basic Java Swing program with a couple of text fields and buttons. The program works fine for me on Ubuntu with Java 1.5. But when I try to run it on OSX (10.4), the main window is displayed correctly but the program seems unresponsive. Nothing seems to happen, no matter which button I cli... | stackexchange/codereview |
Double out = otherTypes.someMethod(c, c2);
assertEquals((Double)-1.0D, out);
I get error "Double cannot be resolved" (the Double in assertEquals), is there any way to hack around it except extracting variable?
Is this bug in Java or just very usefull feature that wont be fix?
| stackexchange/codereview |
What is an external and internal iterator in Java ?
| stackexchange/codereview |
I implemented a small OOP library in Lua, and two things are not quite right yet. I need your advice!
How to call super()?
I need to make a choice. The three arguments I need to resolve a call to super() are:
The class from where the call is being made (CallerClass)
The instance to be passed (self)
The name of the met... | stackexchange/codereview |
Hi Guys could you please help me refactor this so that it is sensibly pythonic.
import sys
import poplib
import string
import StringIO, rfc822
import datetime
import logging
def _dump_pop_emails(self):
self.logger.info("open pop account %s with username: %s" % (self.account[0], self.account[1]))
self.popinstan... | stackexchange/codereview |
I'd like to track down a possible bug in Visual Studio, but that's awfully hard without the debug symbols for Visual Studio itself. Does Microsoft make these available?
| stackexchange/codereview |
As a follow-up to this question, it's trying to find out how to do something like this which should be easy, that especially stops me from getting more used to using Emacs and instead starting up the editor I'm already familiar with. I use the example here fairly often in editing multiple files.
In Ultraedit I'd do Alt... | stackexchange/codereview |
Say you had to develop a web-based application that needs to be able to read the contents of a .NET DLL, and from that, populate the local database with a list of all the namespaces, classes, etc.
It has to also do the same thing with Java JAR files.
Are there limitations on what language I could use to develop this?
I... | stackexchange/codereview |
I have a shell script which copies a few files to the current directory, compresses them, and streams the compressed file to stdout.
On the client side I use plink to execute the script and stream stdin to a file.
This almost works.
It seems that the cp command outputs the file name being copied when its executed from ... | stackexchange/codereview |
In the default asp.net mvc project, in the Site.Master file, there is a menu navigation list:
<div id="menucontainer">
<ul id="menu">
<li><%= Html.ActionLink("Home", "Index", "Home")%></li>
<li><%= Html.ActionLink("About Us", "About", "Home")%></li>
</ul>
</div>
This renders in th... | stackexchange/codereview |
Can you suggest some ways/tips to decrease Resharper memory usage in VS 2008. Working set memory for my VS with 50 projects is around 650mb+
Edit: Now that 4.5 is out, this question is no longer relevant.
| stackexchange/codereview |
I am attempting to load an activex object on the same page where my flex application resides. Is this possible? Can I have 2 object tags on one page?
As of right now the flex application loads fine but when I attempt to access the activeX control it says its null. But if I have the same activex control on its own web... | stackexchange/codereview |
I use Eclipse with "external" projects - i.e. projects created from existing source.
Poking around in the workspace files, I cannot find any reference to these projects. My question is: how does Eclipse keep track of these projects?
I'd like to be able to add such a project to the workspace automatically (by generating... | stackexchange/codereview |
So yeah, I'm a Java guy in this crazy iPhone world. When it comes to memory management I stiill don't have a very good idea of what I'm doing.
I have an app that uses a navigation controller, and when it's time to go on to the next view I have code that looks like this:
UIViewController *myController = [[MyViewControl... | stackexchange/codereview |
I have a python script that is a http-server: http://paste2.org/p/89701, when benchmarking it against ApacheBench (ab) with a concurrency level (-c switch) that is lower then or equal to the value i specified in the socket.listen()-call in the sourcecode everything works fine, but as soon as put the concurrency level i... | stackexchange/codereview |
I build and maintain a set of Flash components that is distributed to publishers and allows them to integrate with our system. Currently the component has no UI and simply contains compiled code for querying our system servers, parsing the response, and modifying the params sent in the query. There's an As2 version and... | stackexchange/codereview |
Please help, I am stuck here ---
irb> a = "line of text\n line two\n line three"
irb> system("cat > test_file << #{a}")
cat: of: No such file or directory
cat: text: No such file or directory
=> false
| stackexchange/codereview |
I am using Ruby on Rails.
I want to create a filter field on a page such that whenever the input field's value changes I filter a list shown below via ajax. (Exaclty like the Users search works in Stackoverflow)
For now, I made it run with a form_remote_tag containing a text_field_tag and a submit_tag, and it filters m... | stackexchange/codereview |
I have an AIR app with an <mx:HTML> component, which renders a page that includes an HTML/Javascript based WYSIWYG/rich-text editor. Various keyboard shortcuts are assigned for formatting and what have you, but if I type a shortcut which isn't assigned (eg cmd or [ctrl on Windows] + M), the character is entered as if n... | stackexchange/codereview |
My PM just stopped by and he wanted a copy of all of our pages... Is there a way to do this for all pages without having to go to each one?
| stackexchange/codereview |
I'm writing a lightweight game engine and while doing some research for it I've come across a number of compelling articles advocating the implementation of Game Objects through a "collection of components" model rather than an "inheiritance from concrete classes" model. There are lots of advantages:
objects can be c... | stackexchange/codereview |
When developing custom ecommerce solutions, which "off the shelf" .NET based shipping components have you had luck with?
It absolutely must give real-time shipping quotes and be easily integrated into a ASP.NET website. Ideally I'd like it to support most of the common US domestic shipping companies (UPS, FedEx, USP... | stackexchange/codereview |
Does anyone have experience with a query language for the web?
I am looking for project, commercial or not, that does a good job at making a webpage queryable and that even follows links on it to aggregate information from a bunch of pages.
I would prefere a sql or linq like syntax. I could of course download a webpage... | stackexchange/codereview |
Which component is best to use for receiving HTTP requests in Delphi application?
| stackexchange/codereview |
How do you manage development and deployment of a n-tier system that's made up of multiple websites, desktop applications, web services and databases that have a mix of dependencies?
Assume that you have a continuous integration environment with source control and automated builds.
| stackexchange/codereview |
I used to use the standard mysql_connect(), mysql_query(), etc statements for doing MySQL stuff from PHP. Lately I've been switching over to using the wonderful MDB2 class. Along with it, I'm using prepared statements, so I don't have to worry about escaping my input and SQL injection attacks.
However, there's one prob... | stackexchange/codereview |
I want to find in a vector of Object pointers for a matching object. Here's a sample code to illustrate my problem:
class A {
public:
A(string a):_a(a) {}
bool operator==(const A& p) {
return p._a == _a;
}
private:
string _a;
};
vector<A*> va;
va.push_back(new A("one"));
va.push_back(new A(... | stackexchange/codereview |
I was looking into using some .NET code from within a Delphi program, I will need to make my program extensible using .net assemblies and predefined functions (I already support regular DLLs).
After a lot of searching online, I found Managed-VCL, but I'm not ready to pay $250 for what I need, I also found some newsgro... | stackexchange/codereview |
I'm using the Quest AD cmdlets, particularly Get-QADUser, to pull a list of users from AD and return just a few attributes. No problems, easy enough, but I want to transform one of the properties (parentContainerDN) before exporting to CSV.
Get-QADUser -name "Froosh" | Select-Object logonName,homeDrive,parentContainer... | stackexchange/codereview |
Any advice on how to migrate an existing Delphi 7 business application to .NET 2.0 in Visual Studio 2005?
Visual Studio 2005 has already been purchased, the company wants to move away from the Borland/Codegear tools.
The application is a single client server executable, utilizing a number of 3rd party UI controls and... | stackexchange/codereview |
In Bash I'm executing a command and putting the result in a variable like this:
export var=`svn ls`
But if SVN fails for some reason--say it returns a non-zero error code--export still returns status code 0. How do I detect if the executed command fails?
| stackexchange/codereview |
While the built-in analytics of MOSS2007 are nice to have - they are inadequate at the same time. Any ideas where I can look for a more comprehensive package? Am I missing something?
Thanks,
Carl
| stackexchange/codereview |
I am calling a SQL proc that has 3 OUTPUT params. After the call to the proc one of the params does not return a value when the other two do. Profiler shows that all 3 values are being returned.
The params are declared as follows in the proc...
@UsrVariableID INT OUTPUT,
@OrganisationName NVARCHAR(256) OUTPUT,
@Visible... | stackexchange/codereview |
This question is regarding the performance issue in Mac OS X
Canvas3D object is embedded in a JPanel; then the panel is integrated with the rest of the Swing-built application. Within that Canvas I am rendering a simple cube by applying
certain transformations. At the initial launch It works fine. But when i try to re... | stackexchange/codereview |
I use FTP on a daily basis to work on multiple websites, but when I try to work from home, my darned satellite internet has a latency of about 1000ms. (Its craptastic service, I know, but there are no alternatives where I live.) Thus, I was wondering if there is a way that I can connect to my web server and transfer fi... | stackexchange/codereview |
I'm looking for something that will let me parse Atom and RSS in Ruby and Rails. I've looked at the standard RSS library, but is there one library that will auto-detect whatever type of feed it is and parse it for me?
| stackexchange/codereview |
Many optimistic concurrency examples refer to updates by using a database timestamp or flag.
However, I want to handle optimistic concurrency for INSERTS
To illustrate here is a fake scenario:
Multiple users can insert a journal entry at the same time, but allow only one journal entry is allowed per date.
Without an... | stackexchange/codereview |
I have tested all my systems developed in Delphi (in Windows XP) on Wine (OpenSuse Linux) and they work perfectly. My question is: should I start distributing my systems (on a local basis that I can support) as Wine ready or are there other issues I should take into account?
| stackexchange/codereview |
In my database, in one of the table I have a GUID column with allow nulls. I have a method with a Guid? parameter that inserts a new data row in the table. However when I say myNewRow.myGuidColumn = myGuid I get the following error:
Cannot implicitly convert type 'System.Guid?' to 'System.Guid'.
| stackexchange/codereview |
I'm an application packager trying to make sense of how the COM registry keys (SelfReg) interrelate to the given .dll in Windows.
ProgID's, AppID's, TypeLibs, Extensions & Verbs are all tied around the CLSID right?
Do CLSID's always use Prog/App IDs or could you just have a file extension class?
Which bits are optional... | stackexchange/codereview |
Installed Tomcat 6 on WinXP 64. It installed just fine. But when I try to launch it ( from Windows Services) I get the following error :
"Can not start an the Apache Tomcat Service on Local computer."
error 216:0xd8
| stackexchange/codereview |
I have a custom class that implements ICollection, and this class is readonly, ie. IsReadOnly returns true (as opposed to using the readonly keyword), and all functions that would normally modify the data in the collection throw InvalidOperationException's.
Now, given such a construct, and a quick skim over the thread-... | stackexchange/codereview |
I need to add text string to a TIFF image. I am planning to use libTIFF for editing the TIFF image. The plan is to convert text to image using freetype2 and then somehow render the text image on to TIFF. Is this the right approach?
Any pointers on how to convert text to image? I saw the sample code of ft2 - initialisin... | stackexchange/codereview |
I need to put the image from an NSProgressIndicator into an NSOutlineView Cell. I have written up code that does this for a determinate indicator and it works just great:
NSProgressIndicator *progressIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(0, 0, 16, 16)];
[progressIndicator setStyle:NSProgress... | stackexchange/codereview |
Users are occassionally getting the above error when using our application (VB.Net, Winforms, using v2 of the framework). I'm not able to reproduce it. The callstack is as follows:
: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
... | stackexchange/codereview |
How to, in C# round any value to 10 interval? For example, if I have 11, I want it to return 10, if I have 136, then I want it to return 140.
I can easily do it by hand
return ((int)(number / 10)) * 10;
But I am looking for an builtin algorithm to do this job, something like Math.Round(). The reason why I won't want ... | stackexchange/codereview |
So... I used to think that when you accessed a file but specified the name without a path (CAISLog.csv in my case) that .NET would expect the file to reside at the same path as the running .exe.
This works when I'm stepping through a solution (C# .NET2.* VS2K5) but when I run the app in normal mode (Started by a We... | stackexchange/codereview |
I have an instance of Windows Web Server 2008. Do you know if it is possible to upgrade it toward "Windows Standard Server 2008"? (I mean without a complete reinstall and considering that I have the license to do that)
| stackexchange/codereview |
How would I format the standard RSS pubDate string as something closer to ASP.NET's DateTime?
So, from this:
Wed, 29 Oct 2008 14:14:48 +0000
to this:
10/29/2008 2:14 PM
| stackexchange/codereview |
I have a composite control that adds a TextBox and a Label control to its Controls collection. When i try to set the Label's AssociatedControlID to the ClientID of the Textbox i get this error
Unable to find control with id
'ctl00_MainContentPlaceholder_MatrixSetControl_mec50_tb'
that is associated with the Label 'lb'... | stackexchange/codereview |
What is the difference between a proxy server and a reverse proxy server?
| stackexchange/codereview |
i want to get datetime for 2days before. i.e) how to subtract 2 days from datetime.now
| stackexchange/codereview |
I'm pretty new to the whole MDX thing, but the following is just driving me batty. A FILTER statement I'm using is acting... strangely. Code sample, followed by description:
SELECT
{
FILTER(
MEMBERS([Time].[5-4-4 Week Year]),
[Measures].[Ship Gross Units] > 0
)
}
ON C... | stackexchange/codereview |
I have a linq query and I am trying to put that in to a serializable object for a distributed caching (Velocity) but its failing due to a LINQ-to-SQL lazy list
like so
return from b in _datacontext.MemberBlogs
let cats = GetBlogCategories(b.MemberBlogID)
select new MemberBlogs
... | stackexchange/codereview |
Can two domain objects show on the same page, when the list method is called, for example?
http://APP_NAME/foo/list
def list = {
if(!params.max) params.max = 10
[ fooList: Foo.list( params ) ]
[ barList: Bar.list( params ) ] // Only the last one is returned.
}
On the view page, both tables would be dis... | stackexchange/codereview |
SQL Server 2008 has new geo data types. One thing I am wondering though is that if I have a table with geocoded addresses in it, can I write a query to display all records within a certain distance. For example, many websites have the option to search for items within a certain distance such as 50 miles and would like ... | stackexchange/codereview |
I want to convert a string like this:
'10/15/2008 10:06:32 PM'
into the equivalent DATETIME value in Sql Server.
In Oracle, I would say this:
TO_DATE('10/15/2008 10:06:32 PM','MM/DD/YYYY HH:MI:SS AM')
This question implies that I must parse the string into one of the standard formats, and then convert using one of th... | stackexchange/codereview |
I have an XML Schema which I am parsing in JavaScript and then packing that as an object to pass to one of my backend servers.
The schema is like
<complexType name='Test'>
<sequence>
<element name='testField' type='string'/>
<element name='typeSpecificSetting' type='tns:TypeSpecific'/>
</sequ... | stackexchange/codereview |
Without using Javascript, is there a way to make a CSS property toggle on and off through nested elements.
The problem I'm trying to solve is that I have a number of tags and classes which make some text italic (<em>, <blockquote>, <cite>, <q>, <dfn>, and some other classes), and when one of these is inside another one... | stackexchange/codereview |
I am creating a Python script where it does a bunch of tasks and one of those tasks is to launch and open an instance of Excel. What is the ideal way of accomplishing that in my script?
| stackexchange/codereview |
What is it about fgets() implementation that makes it so horrible on large files vs fread?
To demonstrate, run this code:
<?php
$line = str_repeat('HelloWorld', 100000) . "\n";
for($i=0; $i<10000; ++$i)
file_put_contents('myfile', $line, FILE_APPEND);
//now we have roughly a 1gig file
// We'll even let fread go fi... | stackexchange/codereview |
How do I alternate HTML table row colors using JSP?
My CSS looks something like:
tr.odd {background-color: #EEDDEE}
tr.even {background-color: #EEEEDD}
I want to use <c:forEach> to iterate over a collection.
<c:forEach items="${element}" var="myCollection">
<tr>
<td><c:out value="${element.field}"/></td>
..... | stackexchange/codereview |
I would like create a web service in ASP.Net 2.0 that will supports JSON. Is there a way to do this without WCF and .Net 3.5? Can anyone point me to a good article or sample code?
Clarification
I need direction on what is the best method, using the .Net 2.0 framework, to communicate JSON objects to a client. Is it... | stackexchange/codereview |
I'm trying to animate Visio objects with a loop, such as:
For reposition = 2 To 6
xpos = reposition
ypos = reposition
sh1.SetCenter xpos, ypos
Sleep 1000
Next reposition
While this DOES move the object from the starting position to the ending, the intermediate steps are not visible. After a delay on... | stackexchange/codereview |
I must confess I'm somewhat of an OOP skeptic. Bad pedagogical and laboral experiences with object orientation didn't help. So I converted into a fervent believer in Visual Basic (the classic one!).
Then one day I found out C++ had changed and now had the STL and templates. I really liked that! Made the language useful... | stackexchange/codereview |
I made a discovery some time back. Just follow these steps:
Create a .doc/.xls/.ppt file in office 2003. Keep some test data in there and close the file. Now rename the file to change it's file extension to a random string, taking care that it is unassociated, like test.asdfghjkl etc.
Double click the file and it opens... | stackexchange/codereview |
I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module in the Access db that when invoked by the user (probably by clicking a button) will output a query to a delimited file. The user also needs a mec... | stackexchange/codereview |
I'm interested in hearing your opinions in which is the best way of implementing a social activity stream (Facebook is the most famous example). Problems/challenges involved are:
Different types of activities (posting, commenting ..)
Different types of objects (post, comment, photo ..)
1-n users involved in different ... | stackexchange/codereview |
I have a test web service replicating a live web service that hasn't been made public yet (It will be public when the app is released).
I added a new ASP.NET Web Service Application to my solution. Now when I try and add a web reference from the main project and choose "Browse To Web services in this solution" it doesn... | stackexchange/codereview |
I created a project using the default tab-controller project. I am using interface builder to edit the .xib file and add images and buttons. I hook them up to the FirstViewController object in interface builder (that I created and set it's class to the same as the code file). I hooked everything up using IBoutlets and ... | stackexchange/codereview |
pretty much what the title says.
I am using an Ajax Drop Down as illustrated here:
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/DropDown/DropDown.aspx
using linkbuttons ... is there a way to limit to list?
Thank you.
Edit: I think it was VB 6 maybe that you could select "LimitToList" in a drop down. Meaning the... | stackexchange/codereview |
I have an ActiveX control in IE (7). When it shows a dialog box, the dialog box is not showing in XP visual style. I have tried embedding manifests to no avail. Anybody got any idea? by the way, the dialog boxes were implemented using wtl.
| stackexchange/codereview |
I have been working on a childish little program: there are a bunch of little circles on the screen, of different colors and sizes. When a larger circle encounters a smaller circle it eats the smaller circle, and when a circle has eaten enough other circles it reproduces. It's kind of neat!
However, the way I have it i... | stackexchange/codereview |
Here is the scenario. There is content loaded in iframe from other site. I click to some link inside the iframe.
Is it possible to catch somehow outside the iframe what is that link?
UPDATE
Since I recieved question if my intentions are pure, I would explain more on the use case. May be I started in wrong direction fo... | stackexchange/codereview |
When running an integration test (Web Service talking to JDBC, in this case) how do you force the database to throw an error so that the resulting soap fault can be inspected?
I'm using Spring's Transactional Test Framework, so would be unreasonable to just issue a DROP TABLE whatever; to break it? :D
| stackexchange/codereview |
I want to determine if a certain window is visible to the user or hidden/occluded. In Windows XP I would use the GetClipBox() function and check for a NULLREGION or empty RECT return value. This worked perfectly fine, but on Windows Vista it does not work if another window is occluding the window. In this case, GetClip... | stackexchange/codereview |
I need to find two adjacent repeating digits in a string and replace with a single one. How to do this in Java. Some examples:
123345 should be 12345
77433211 should be 74321
| stackexchange/codereview |
I've got a strange problem with indexing PDF files in SQL Server 2005, and hope someone can help. My database has a table called MediaFile with the following fields - MediaFileId int identity pk, FileContent image, and FileExtension varchar(5). I've got my web application storing file contents in this table with no pr... | stackexchange/codereview |
If you have an STL vector which has been resized, is it safe to take the address of element 0 and assume the rest of the vector will follow in memory?
e.g.
vector<char> vc(100);
// do some stuff with vc
vc.resize(200);
char* p = &vc[0];
// do stuff with *p
| stackexchange/codereview |
I already know: "Don't use css expressions!" My question is not about whether I should be using an expression or if there is an alternative; my question is simply: Can I get a css expression to only be evaluated in versions of IE prior to version 7 without using conditional comments?
I occasionally use an underscore h... | stackexchange/codereview |
I know that Ctrl + Shift + B launches a solution build, but I would like a shortcut that just builds the current project. Is a custom shortcut my only option?
Edit: Looks like a custom shortcut is my only option as Shift + F6 does not work for me.
| stackexchange/codereview |
Possible Duplicate:
How to convert UNIX timestamp to DateTime and vice versa?
I've got the following class:
[DataContractAttribute]
public class TestClass
{
[DataMemberAttribute]
public DateTime MyDateTime { get; set; }
}
Here's the JSON:
{ "MyDateTime":"1221818565" }
The JSON is being returned from a PHP webs... | stackexchange/codereview |
How can I customise the Site Actions menu to remove or rename 'standard' menu items? Where are the site actions menu items defined?
| stackexchange/codereview |
I am writing a Jython script to sort a list of URLs.
I have a list that looks like this:
http://www.domain.com/folder1/folder2/|,1
http://www.domain.com/folder1/|,1
http://www.domain.com/folder1/folder2/folder3/|,1
http://www.domain.com/folder1/|,1
http://www.domain.com/folder1/folder2/|,1
http://www.domain.com/folder1... | stackexchange/codereview |
I have a .NET assembly that (for reasons outside my control) must be in the GAC. However, the same assembly is used by another program, which has a its own copy of an older version of the same assembly. It must use its own copy and not whatever is in the GAC. Proper versioning is probably more hassle than it's worth in... | stackexchange/codereview |
Is it possible to replicate selected objects (accounts) in an Active Directory Domain. We have a need to replicate selected accounts through our firewall to a DC sitting in the DMZ. We don't want to replicate all accounts to this machine, in case it is compromised.
Any suggestions, help or products suggested most appre... | stackexchange/codereview |
What do you suggest to use for code coverage on 64-bit environment. It seems that NCover supports 64-bit only in Enterprise version which seems to be quite expensive. Or isn't it? What are people using on 64-bit systems for .NET code coverage?
EDIT: I am aware of the CorFlag workaround. I would like to know what others... | stackexchange/codereview |
I have a GUI application that executes (in a new process) "console" applications and parse the output. To redirect the Output i set the pConsole.StartInfo.RedirectStandardOutput to true. I also subscribes to the event pConsole.Exited.
The problem I see is that I have to use Thread.Sleep() in the Exited event handler to... | stackexchange/codereview |
Is it possible to define a spring-managed EJB3 hibernate listener?
I have this definition in my persistence.xml:
<properties>
<property name="hibernate.ejb.interceptor"
value="my.class.HibernateAuditInterceptor" />
<property name="hibernate.ejb.event.post-update"
value="my.class.HibernateAudit... | stackexchange/codereview |
Is there any way to get the handle to the control that has focus?
I am looking for a way to get the ID of control on focus in my app.
After that it would be easy to get the id with GetDlgCtrlID.
CWnd *pwnd = GetWindowOnFocus();
int wID = pwnd->GetDlgCtrlID();
It's the GetWindowOnFocus part that I am missing!
| stackexchange/codereview |
You are given a 32-bit unsigned integer array with length up to 232, with the property that more than half of the entries in the array are equal to N, for some 32-bit unsigned integer N. Find N looking at each number in the array only once and using at most 2 kB of memory.
Your solution must be deterministic, and guar... | stackexchange/codereview |
I have the following Apache mod_rewrite rule:
RewriteRule ^(.*) http://127.0.0.1:4321/$1 [proxy]
This works great; Apache forwards all requests to the CherryPy server I have running on the same machine.
Unfortunately, I'm having some problems with paths which have a space. If I make a request for /Sites/some%20site/i... | stackexchange/codereview |
I have a Datagrid which is getting its data from CSV. No file is sorted in any order, but I want to order the gridview by Username (a field). How could this be done? My XML/gridview code looks like the following:
Streamwriter for writing to csv and populating gridview:
string filename = @"D:\www\isolated\LocalUser\... | stackexchange/codereview |
I have a table of data, and I allow people to add meta data to that table.
I give them an interface that allows them to treat it as though they're adding extra columns to the table their data is stored in, but I'm actually storing the data in another table.
Data Table
DataID
Data
Meta Table
DataID
MetaName... | stackexchange/codereview |
One of the responses to a question I asked yesterday suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.