instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I got a ListBox containing a few items in a Windows Phone 7 application. I want the user to be able to sort the items in the ListBox by just touching and dragging them (on the left part of the ListBox template).
How would I implement this? Is there a standard way or control to get this kind of drag and drop functionali... | stackexchange/codereview |
This function works in Firefox, Chrome, IE9. Doesn't work in Opera.
function isValidHex(hex) { alert(hex);
var strPattern = /^#([0-9a-f]{1,2}){3}$/i; alert(strPattern.test(hex));
return strPattern.test(hex);
}
The hex going in is the same. The result of strPatter.test returns false in Opera and true in Firefox... | stackexchange/codereview |
I am coding in javascript a very big file and I keep wanting to go back to a previous version because of bugs I have created in the new version. Are there any code editors that allow you to revert to a previous version of the code?
| stackexchange/codereview |
Hi everyone i am new to titanium(iphone) i am working on developing PieChart i want to use HTML in my code how can i use.. currently i have coded like this but its displaying blank page can anyone give me an idea of how to do this thanks in advance.
here is the code
var divTag = document.createElement('div');
divTag.id... | stackexchange/codereview |
I have a Django app running on Windows (via Apache + mod_wsgi) that's CPU-bound. But Apache on Windows only does MPM (multi-thread) workers, not prefork (multi-process workers), and a single Python interpreter won't take advantage of multiple CPUs.
I would switch to FastCGI, but that requires Flup, which is not suppor... | stackexchange/codereview |
This seems like a simple expression, but all of my tinkering has failed in one place or another. I am pulling data out of a PostgreSQL database. I would rather filter in PostgreSQL, but if I need to do it in PHP that is fine too. The column will have a string, and I need to search for matches where any word (defined... | stackexchange/codereview |
I have a DXGrid that contains a TableView.
My Issue is that once I tab into the table view (SNOOP is showing it it focused), I never can exit out of the table view control.
There are other controls after the tableview.
All tabindexs are correctly set.
Thanks
| stackexchange/codereview |
This is something of a sibling question to this programmers question.
Briefly, we're looking at pushing some work that's been piggy-backing on user requests into the background "properly." The linked question has given me plenty of ideas should we go the service route, but hasn't really provided any convincing argumen... | stackexchange/codereview |
What is the good starting point for Clojure development on Google AppEngine?
Seems like there are two competing libraries appengine-magic and compojure-gae.
What is your opinion?
| stackexchange/codereview |
I have developped a custom WCF Web Service within a SharePoint 2010 Visual Studio empty project.
My web service is working well. The problem is related to the size of the request I can send to this web service. I have realized that is something around 300Kb. If I go bigger than that, the service/client is sending me an... | stackexchange/codereview |
I'm refactoring some code that was originally designed with generics to also work with reflection. The particular code base has default(T) scattered throughout. I've created a method that will look similar named Default(T), but I don't think my implementation is correct.
Essentially my implementation looks like this:... | stackexchange/codereview |
I'm using groovy in SOAPUI and am currently trying establish whether the response from 2 endpoints yields the same results.
I'm converting my XML response into an array for each endpoint and then looping through Array1 and then Array2 to confirm the presence of each item in Array1.
This is very ugly code and I did loo... | stackexchange/codereview |
Two part question. I am trying to download multiple archived Cory Doctorow podcasts from the internet archive. The old one's that do not come into my iTunes feed. I have written the script but the downloaded files are not properly formatted.
Q1 - What do I change to download the zip mp3 files?
Q2 - What is a better way... | stackexchange/codereview |
I'm using Extjs gridPanel to display data. I want to show "No data..." message in gridPanel when no data available. How to do this ?.
I tried emptyText property but its not worked.
I think emptyText is for gridView not for gridPanel.
Please help me how to show empty data message in gridPanel.(I'm using gridPanel not g... | stackexchange/codereview |
I cannot for my life figure out how to get the downloaded plugin Twitter hash (http://wordpress.org/extend/plugins/twitter-hash-tag-widget/) to show on my index.php page. Read about it and this HTML code was given as an example in many places:
<li id=”twitter">
<ul>
<li><a href=”http://www.site1.com/”>Site One Name</a>... | stackexchange/codereview |
Quick question: If I do the following, will it create the file, or do I have to do that separately?
echo "output" > file.txt
| stackexchange/codereview |
What is the difference between include() and calling a function in PHP?
For example :
1-
<?php
$foo = '<p>bar</p>';
return $foo;
?>
<html><body><?php echo $foo; ?></body></html>
2-insert above php code in a php file and include()
thanks in advance
| stackexchange/codereview |
I have a timer on the site which the user will only be able to click on every * seconds/minutes/hours. Every user has a timer value in the users table where the values are written and read. The value in the database is the amount of seconds that the user will have to wait.
I've figured out how to make the timer countdo... | stackexchange/codereview |
I am trying to retrieve a count of orders for each order type (OrderTypeID) and a count of orders for each order type of distinct products (productID)
eg:
OrderID, OrderTypeID, ProductID
1, 1, 1
2, 1, 6
3, 2, 6
4, 1, 1
5, 2, 6
6, 2, 6
7, 2, 6
8, 3, 1
Result:
OrderTypeID, Count1, Count2
1, 3, 2
2, 4, 1
3, 1, 1
I am cu... | stackexchange/codereview |
When I try to run sqlcmd (from the cmd prompt) I get the following error:
HResult 0x2, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : A network-related or in
stance-specific error has occurred while establishing a co... | stackexchange/codereview |
I've created a toolbar button in OneNote like Daniel Escapa showed. Usually, it works, but sometimes OneNote decides to grey out the toolbar button, making it impossible to click. I can't figure out what state is causing this. How can I prevent this?
I'm careful to return true from the OnEvent and OnClick handlers, but... | stackexchange/codereview |
We have a Sharepoint 2007 deployment, Office Communicator, and Outlook 2007.
Inside my Outlook 2007 client, I can see a "View my site" option when clicking the prescence icon beside a user's name or meeting room when adding them as a recipient to a meeting request or email.
Our secretary doesn't have this option.
Is ... | stackexchange/codereview |
I have a web form against a white background that allows the user to make certain selections. Depending on the selection that the user makes, this form could grow very long lengthwise. (Although I advised against it, the client was adamant). The form works fine and I'm happy.
However, at the bottom of the form is a... | stackexchange/codereview |
So, imagine you have a couple of arrays, Colors and Shapes, like this:
Colors: {
Yellow,
Blue,
Red
}
Shapes: {
Square,
Circle,
Diamond
}
Now, if I want to sort Colors into alphabetical order I can do something like this:
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:nil ascending:YES select... | stackexchange/codereview |
I'm attempting to integrate with Salesforce using MyEclipse. The wizard fails because of a naming collision on a complex type "DescribeLayout". I need to write a JAXB binding file to ensure that the two interfaces that are created by the xjc compiler are in different packages, but I have absolutely no idea how to do th... | stackexchange/codereview |
class decalaration:
@Stateless
@Local( { IMyLocalSLSB.class })
@Remote( { IMyRemoteSLSB.class }) })
public class mySLSB implements IMySLSB {
private EntityManager em;
and now some methods for inserting/updating and deleting db records are transactions annotations required, I thought they were not as jboss and EJB3.0 ... | stackexchange/codereview |
if (IsBestanswer == "True")
{
$(bestAnswer).addClass('IsBestanswer');
$(bestAnswer).unbind('click');
}
bestAnswer.live('click', function()
{
// some code....
});
actually i want to disable click property on bestanswer while IsBestanswer == "True".
here i am using unbind() function. but... | stackexchange/codereview |
i have two select input fields in a jsp page. i want to disable the second input based on the value of first input. i wrote the function. but it is not working, plz help.
function selectTimePeriod()
{
var rtype = document.getElementById('customer.customerType').value;
var corporateSize = document.getElementById("custo... | stackexchange/codereview |
Simply, I have this SQL statment:
EXEC xp_cmdshell 'tasklist'
can we order or filter the results by using order by or where?
Thanks,
| stackexchange/codereview |
I've recently engaged on studying WPF (to be honest, I've gotten into it just because there was built-in 3D object, camera and rendering capabilities), which has allowed me to do this:
Download: Master Maze
Use directional keys ([ ↑ ] [ ↓ ] [→] [←]) to walk and turn, [Q] or [A], and [W] or [S] ("god mode") to have a... | stackexchange/codereview |
With the following code, I can't get the background image to display at its original size (it's always a fair bit larger). I tried changing the Stretch property, but "None" seems to be the most appropriate value.
<Canvas Width="500" Height="500">
<Canvas.Background>
<ImageBrush
ImageSource="{Bi... | stackexchange/codereview |
What capabilities are available for downloading content from the windows phone 7 device to a pc? For example can a user access files saved by an app by connecting it to a pc, or perhaps through wifi connection?
| stackexchange/codereview |
I'm trying to implement dynamically allocated contiguous 3D arrays in a C code. The arrays must be contiguous because I'm relying on netCDF output of the arrays. Now I adapted a solution posted here Stack OverFlow Solution. This works fine for dynamically allocating the arrays and indexing them...however, when netCD... | stackexchange/codereview |
I have an ASP .NET page with ASP validators (Required Field, Regular Expression,...) plus java script functions for additional validation (for example, to check if second date bigger than first date, among others).
I usually do:
<script type="text/javascript">
function validate() {
// ...
alert('No... | stackexchange/codereview |
I tried to use gwt's uiBinder to get an image, but it wont' work,
in the .xml file, i defined:
<ui:with field='res' type="com.my.services.email.client.Resources"/>
<ui:image field="testImage" resource="{res.calIcon}">
and i have a Resources.java file to define the image resource:
public interface Resources extends C... | stackexchange/codereview |
I'm trying to do the following technique for shadowing, I read it on the NVIDIA site and it seemed like a good technique. I would prefer it to calculating shadow volumes on the cpu because it seems more 'true' and I could use this one for soft-shadowing. :
1st pass:
Fill depth buffer from perspective of LIGHT0. Copy t... | stackexchange/codereview |
I was wondering if there is a way to add (programatically, of course) an icon/button/whatever besides plain text to a window (Microsoft Windows window...)'s title bar or next to where the minimize/maximize/close buttons are. I could draw it myself and create an illusion it is a part of the window, but I wonder if in th... | stackexchange/codereview |
What steps should I follow to be able to minify CSS from the command line (Windows or Solaris)?
| stackexchange/codereview |
I'm rendering charts on my website using the Google Charts API and I want to export these into a report for the users, most likely a PDF file. What methods are available to do this programmatically into a PDF file?
| stackexchange/codereview |
I am trying to implement an app that will only listen for a certain header in the SMS.
(Parse the sms message and look for some header)
That's not hard to do.
The problem is once the app finds the header and knows this SMS is for me,
I don't want other app(that has broadcast listener on SMS) to receive SMS.
(for exampl... | stackexchange/codereview |
I was working on a dialog with content loaded by AJAX, but I'm not able to remove it.
A must was to have a multiple, php-supported, drag-able and close-able dialog.
(.center() function present)
$('a.event').click(function() {
var url = this.href;
var getrel = $(this).attr('rel');
var getid = $(this).attr('i... | stackexchange/codereview |
I want to create a slideshow of images that are contained in a <ul>:
<ul>
<li><a href="images/01/large.jpg"><img src="images/01/default.jpg"></a></li>
<li><a href="images/02/large.jpg"><img src="images/02/default.jpg"></a></li>
<li><a href="images/03/large.jpg"><img src="images/03/default.jpg"></a></li>
... | stackexchange/codereview |
On a unix system, how do I monitor (like how 'tail' works) a directory for changes made to files - either new ones created, or size changes, etc.
Looking for a command line tool rather than something to be installed.
| stackexchange/codereview |
I have a class which allocates memory on the heap and then the destructor frees it. My copy constructor is never being called for some reason and I do not understand why. Here is my implementation:
AguiBitmap::AguiBitmap( const AguiBitmap &bmp )
{
this->nativeBitmapPtr = al_clone_bitmap(bmp.nativeBitmapPt... | stackexchange/codereview |
I'm using the Grails Webflow plugin. Here are the domain objects I'm working with:
class Foo implements Serializable {
String fooProp1,
fooProp2
static constraints = {
fooProp2 nullable: false
}
}
class Bar implements Serializable {
Foo fooObject
static constraints = {
... | stackexchange/codereview |
does apache-nutch support sitemaps?
or how can i implement it myself? how can i use priority field, should it be multiplied to boost field?
| stackexchange/codereview |
Some days ago I asked a question on SO regarding help on a recursive query.
The problem of that question was "How to get the history of a Person appointments".
Now I am having a problem similar to that one but it should answer to a slightly different question:
How to get an Appointment history?
For example if Appointm... | stackexchange/codereview |
I have a View to that I need to add some text.
The used View is:
<TextView
android:layout_marginLeft="10dp"
android:layout_width="wrap_content"
android:gravity="center_vertical"
android:layout_gravity="center"
android:maxLines="3"
android:layout_height="70dp"
android:textColor="#000000"
android:tex... | stackexchange/codereview |
I have a Google map into which I add some custom tooltips using custom overlays: http://goo.gl/M6in
However, sometimes the map will work and sometimes it will appear to be "frozen". I can't drag it, I can't click any of the buttons, etc.
The only clue that I've found is that, if I use setTimeout() to wait for ~ 5 secon... | stackexchange/codereview |
Anyone know where freeze.py is installed for 2.6.5? I can't seem to find it anywhere. Did it get pulled out and replaced with something else?
| stackexchange/codereview |
I am setting up a Neo4j based system in jRuby running on glassfish. Glassfish as with most rails systems allows for some mechanism to run multiple instances. In glassfish case there is an internal setting for the thread pool size.
My issue is that I am having problems with the Neo4j database being opened more than... | stackexchange/codereview |
I have just translated an ant project into maven however since maven does not really deal with deployment I introduce some antrun into the build. However when I try to execute it the plugin skips my tasks. for exemple when I run mvn clean antrun:run I get the following message: No ant target defined - SKIPPED. the sa... | stackexchange/codereview |
Trying to create an object from an HQL query, but just can't figure out what i'm doing wrong.
Query:
String query = "SELECT product.code, SUM(product.price), COUNT(product.code)
from Product AS product
GROUP BY product.code"
(or should I use new MyCustomList(product.code, SUM(... , even though it's not mapped?)
Now I ... | stackexchange/codereview |
using System;
using System.Windows.Forms;
using agsXMPP;
using System.Text;
namespace iTalk2
{
public partial class Main : Form
{
agsXMPP.XmppClientConnection objXmpp;
public Main()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs... | stackexchange/codereview |
Here is an example of some code I'm working on:
public interface FooMaker<T extends Enum<T> & FooType>
{
public List<Foo<T>> getFoos(String bar);
}
Let's further assume there will be many different concrete implementations of FooMaker. So I wrote some code to utilize the FooMakers.
FooMaker<?> maker = Foos.getR... | stackexchange/codereview |
I'm trying to implement URL Rewriting into my existing application and have managed to get the page and links working except that my destination page does not get the query string values.
My code is based on the example below:
http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html
Basically I hav... | stackexchange/codereview |
While playing with this answer by user GMan I crafted the following snippet (compiled with Visual C++ 9):
class Class {
public:
operator void() {}
};
Class object;
static_cast<void>( object );
(void)object;
object.operator void();
after stepping over with the debugger I found out that casting to void does... | stackexchange/codereview |
I have altered the httpd.conf file good to my knowledge by adding index.php in the directory index,
LoadModule php5_module "d:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "d:/php"
But any .php file I load, it downloads it.
Any help would be appreciated.
Thanks
Jean
| stackexchange/codereview |
Assume I have a matrix
A = cv::Mat(3,3,CV_32F)
and a matrix
B = cv::Mat(2,2,CV_32F).
Let's say A has all zeros and B has all ones.
I want to assign the values of B to the upper left corner of A. How can I do this?
I tried the following:
A(cv::Rect_<int>(0,0,2,2)) = B
But this doesn't seem to work. However assign... | stackexchange/codereview |
I've noticed this a few times and I'm starting to think I'm missing some basic understanding. The following is a construction of HTML markup (x) which is eventually output into a div. I use getJSON to get video thumbnails for a particular product and dynamically generate a <td> block for each. But nothing in that JSON ... | stackexchange/codereview |
I am still trying to get of triggers right, but when is working it seems the other starts (failing) again. Annoying.. but also educational :-)
When i executed the following SQL in MS SQL server is completes successfully, but when it is executed in a AFTER UPDATE trigger it fails with the error
Msg 512, Level 16, Sta... | stackexchange/codereview |
How do I redirect RuntimeError to log instead of the console?
In the code below, the 'Hello' is printed to console, which is redirected to the wx.TextCtrl. The RuntimeError raised OnClose is printed to the terminal however. How do I redirect the RuntimeError to see same log as the 'Hello'?
import sys
import wx
class R... | stackexchange/codereview |
Why is knowing the Asp.net lifecyle important to coding in Asp.net?
| stackexchange/codereview |
Anyone have a function or DLL that will convert KML to SqlGeography (SQLServer DataType)?
I'll write it out myself if i have to, but i'm surprised i can't find one out there.
| stackexchange/codereview |
I'm looking for ideas on how you'd architect a system like so:
Records come in in bulk (say 100,000 at a time) from a variety of sources but primarily a flat text file.
This data needs to be shoved as-is into a SQL Server database table. However, various metrics need to be computed. For example, one field is a certain ... | stackexchange/codereview |
I constantly get malloc error : double freed....
The echoTime function is being called by a button. When I press the button again before the timer ends it gives me the malloc error. When I press the button after the timer finished to start it again, the simulator hangs.
Does anyone know what is wrong with the following... | stackexchange/codereview |
How do you start the Mail app from a Titanium app?
I am looking for the equivalent of an HTML mailto: link where I can specify the email and maybe the subject from with in a windowView.
I am not using a webView.
Will
| stackexchange/codereview |
An hour ago I posted an answer here which according to me was correct. However my answer was downvoted by Martin B. He said
You're just lucky and are getting zeros because the memory that i was placed in happened to be zero-initialized. This is not guaranteed by the standard.
However after reading Michael Burr's answ... | stackexchange/codereview |
Is it possible to store objects in the video-card memory instead of the ram? I have been using StringIO to store some objects in the RAM; would it be possible to allocate some of the video-card's memory for this purpose?
| stackexchange/codereview |
I have a list as such :
<ul id="yearMenu">
<li>Select a year</li>
<li><a href="AJAX/2010PR.html">2010</a> |</li>
<li><a href="AJAX/2009PR.html">2009</a> |</li>
<li><a href="AJAX/2008PR.html">2008</a> |</li>
<li><a href="AJAX/2007PR.html">2007</a> |</li>
<li><a href="AJAX/2006PR.html">2006</a> |</li>
<li><... | stackexchange/codereview |
How can I execute this query in hibernate?
SELECT AES_ENCRYPT('admin','password')
| stackexchange/codereview |
Every day , I have this pattern
- an array of objects
- i make a loop to traverse the array
foreach($arr as $obj){
$arrIds[] = $obj->Id;
$arrNames[] = $obj->Name;
}
I could build a function like arrayFromProperties($Array,$ProperyName) but I was wondering if you know a native php function to do this, or something... | stackexchange/codereview |
I was looking at the INSTALLED_APPS of django-mingus:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.sitemaps',
'django.contrib.flatpages',
'django.contrib.redirects',
'django_extensio... | stackexchange/codereview |
I have written this simple script in python:
import gtk
window = gtk.Window()
window.set_size_request(800, 700)
window.show()
gtk.main()
now I want to load in this window an image from web ( and not from my PC ) like this:
http://www.dailygalaxy.com/photos/uncategorized/2007/05/05/planet_x.jpg
How can I do that ?
P.... | stackexchange/codereview |
I'm trying to add the Lucene.NET Highlighter to my search, however it's doing some really strange highlighting, what am I doing wrong?
Here's the highlighting code:
// stuff here to get scoreDocs
var content = doc.GetField("content").StringValue();
// content = "Lorem Ipsum is simply dummy text of the printing and typ... | stackexchange/codereview |
I want to allow the user to click on a button in "tab A" and have it move to "tab B". Is this possible?
Thanks,
William
| stackexchange/codereview |
I'm struggling with probably quite simple mod_rewrite taks.
This is the directory structure I have:
root\
translations\
en\ (contains various subfolders with files, 2 levels deep)
fr\ (contains various subfolders with files, 2 levels deep)
what I want to do is to point various dynamically created URLS to those sp... | stackexchange/codereview |
Is it possible use nettcp binding with DataServiceHost
| stackexchange/codereview |
i have a simple table "MyTable" with single colum "id" which type is uniqueidetifier and rowguid is set to true. I insert new values like this
INSERT INTO MyTable
DEFAULT VALUES
how to get inserted by server guid ?
Best Regards,
Iordan
| stackexchange/codereview |
I have a windows forms DataGridView that contains some DataGridViewComboBoxCells that are bound to a source collection using DataSource, DisplayMember and ValueMember properties. Currently the the combobox cell commits the changes (i.e. DataGridView.CellValueChanged is raised) only after I click on another cell and the... | stackexchange/codereview |
Does anyone know if its possible to use standard frameworks etc in silverlight & WP7?
Or does it have to actually support silverlight specifically..??
Silverlight is a cut down verison of .net if i am not mistaken... so maybe all open source apis, frameworks etc may not work?
any ideas really appreciated
Thank you.
| stackexchange/codereview |
I have run the sample soft keyboard provided in the Android SDK on a real device. I now would like to remove it from the list of available keyboards in settings. I have searched the web without any hits. It also shows up on one of my emulators too.
I'm sure it's probably an obvious answer, but I just can't figure it... | stackexchange/codereview |
I have two arrays.
A list of urls to JavaScript files that I am registering with $.getScript(url);
A list of inline JavaScript commands to register with $("html").append(inline)
Any items in (2) may be dependant on any items in (1). Meaning that I have to be sure that all items in (1) have finished loading before an... | stackexchange/codereview |
I have a repository that looks like this:
/a/trunk/Library
/a/branches/FeatureX/Library
/b/trunk/Application
/b/branches/FeatureX/Application
I want to rearrange this so that I have the Application and Library folders next to each other:
/a/trunk/Library
/a/trunk/Application
/a/branches/FeatureX/Library
/a/branches/Fe... | stackexchange/codereview |
I want to extend an open/save dialog with a "drop-box" which should look like a TPanel (bevel). The code is already there - I use CreateWindowEx() with WNDCLASS name "Edit".
I have searched for a solution to draw a TPanel (resp. a beveled STATIC) with pure WinAPI, but did not found anything.
MS Spy++ tells me that a TP... | stackexchange/codereview |
I need an htaccess 301 redirect for dynamic urls going from this url:
http://www.example.com/index.php/?content/page1
to
http://www.example.com/content/page1
My current htaccess rule is:
RewriteBase /
RewriteCond %{HTTP_HOST} !=""
RewriteRule ^index.php(/.*)$ http://%{HTTP_HOST}$1 [R=301]
the problem is I get ... | stackexchange/codereview |
I installed postgresql via synaptic on ubuntu.
Now I dont know how to create new user, run server and create it in pgAdmin3.
| stackexchange/codereview |
What is the proper way to measure how much memory from the heap should be used to create new object of a certain type (let's talk about Integers to keep it simple)?
Can this value be calculated without experiment? What are the rules in that case? Are these rules strictly specified somewhere or they can vary from jvm to... | stackexchange/codereview |
I start process of getting data from viewDidLoad and populate NSMutableArray with that data. But when I want to populate UIPicker I cant because there is no more data in that array. How did I lost that??? Please help :(
@synthesize activityIndicator;
@synthesize pckCountries;
// Implement viewDidLoad to do additional ... | stackexchange/codereview |
I have searched for a while and can't seem to find anything that's related to this.
I need to validate an ISO 8601 time interval. There is loads of stuff about ISO 8601 date times but i specifically need interval. I am using a regex and this is what I have so far;
Regex regEx = new Regex(@"^P((\d+)Y)((\d+)M)((\d+)D)(... | stackexchange/codereview |
How can i make smooth scrolling of content into ListBox?
I tried to use ListBox.ScrollIntoView but it instantly scrolls to selected item.
| stackexchange/codereview |
I have an @Stateless EJB method in which I
delete some entries from a database
using JPA remove()'s
throw an Exception that is annotated as @ApplicationException(rollback=true)
I have no other transaction-specific annotations for the method (I set @TransactionAttribute(TransactionAttributeType.REQUIRED) but that sh... | stackexchange/codereview |
How does one create a WPF front-end that has an Application object from within another application (an existing MFC / CLR application, but that's another story)? The existence of the Application as the entry point of the assembly seems to prevent such a use. Certainly, you can use a WPF application as an assembly. Can... | stackexchange/codereview |
I want to change my common toolbar style to this style..
Transparent toolbar.
the round conner at the left and right side.
press any of them have the click events. (all of them have already implemented in the old toolbar version.)
| stackexchange/codereview |
When connecting to my server (from a different machine) I get
Error Code: 1044 Access denied for user 'username'@'%' to database 'dbname'
when I try to create a function. But when I look at my permissions
SHOW GRANTS FOR CURRENT_USER;
I get
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCES... | stackexchange/codereview |
Is there a maximum length for a username or password which is sent to a web application through HTTP BASIC authentication? I looked through RFC2617 and couldn't find anything obvious, but was curious and wanted to make sure.
(This is all being done over SSL, so don't worry about security for my sake.)
| stackexchange/codereview |
The explanation of the problem is a little long-winded, please bear with me.
I have an unmanaged C++ static library that is used for financial application. It has business day conventions, swap conventions, bond conventions, etc. Most of the conventions rely on static global variables, which are initialized on first us... | stackexchange/codereview |
<?php
$file = 'example.txt';
$newfile = 'example.txt.bak';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
?>
Now instead of example.txt can i use "http://engine.searchr.us/web-search.phtml?search=TEST+SEARCH" ?
Is it possible ?
| stackexchange/codereview |
I use Entity Framework that contains view. And I have query:
var data = this.context.vwRevenues
.Where(x => x.revenue >= 0);
.OrderByDescending(x => x.year)
.ThenByDescending(x => x.month)
.Take(10)
.ToList();
This query returns set of entities, but 1st entity equals 5th.
data[0] == data[4] // tru... | stackexchange/codereview |
Lets say I have a variable which has values :
#!/bin/sh
MYVARIABLE="first,second,third"
for vars in MYVARIABLE
do
echo $vars
done
this above doesn't work what I want but it looks fine, this should print first second third without , I wan't it to be printed without , any sugestions?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.