instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
ListBox with ItemTemplate: SelectionChanged not fired
What's wrong?
<ListBox ItemsSource="{Binding Source1}" SelectionChanged="ListBox_SelectionChanged" SelectedItem="{Binding CurrentItem, Mode=TwoWay}" HorizontalAlignment="Stretch" Margin="0" Padding="0">
<ListBox.ItemTemplate>
<DataTemplate>
<... | stackexchange/codereview |
I've attached some live() listeners in order to automatically make ajax calls for every link with ajax in the url:
$("document").ready(function() {
$('a[href^="/ajax"]').live('click', call);
});
function call(e, context, link) {
e && e.preventDefault();
link = link || this;
if(typeof link == "string" |... | stackexchange/codereview |
I've never had the joy of putting together a java web-app in the MVC form myself before?
Stopping shy of a letmegooglethatforyou.com request, would anyone here be able to recommend a good place where I might find a good boilerplate source to learn from?
I seem to learn best that way...
With Thanks,
Mike
| stackexchange/codereview |
I'm using Apache.NMS 1.4. I need to be able to programmatically set the maximum number of times a message can be delivered before being placed in the DLQ (Dead Letter Queue). Is there a way to do it?
| stackexchange/codereview |
I've used FireBug to test the two cases and they seem pretty similar by result:
>>> var x = {"active": "yes"}
>>> x.active
"yes"
>>> var x = {active: "yes"}
>>> x.active
"yes"
But I'm pretty sure there is some difference between these two, maybe even performance related difference. Bottom line - I'd like to know if th... | stackexchange/codereview |
How can a piece of hardware be an actor when designing a use case diagram?
I got confused because I've read on Wikipedia this:
A use case should not include detail regarding user interfaces and screens. This is done in user-interface design, which references the use case and its business rules.
If you give me an exam... | stackexchange/codereview |
Does onHashChange or hashChange work in Safari? I tested it with Safari 4.0.4 on Windows 7 and it doesn't work for me.
If it doesn't work, is there any solution to track if the hash has changed?
| stackexchange/codereview |
My application uses UITabBarController with 4 tabs. Each tab will have a UIWebView along with other types of objects. When the app launches I need to call the method for this first webView to retrieve my web content.
I have this method in my viewdidLoad:
[self performSelectorInBackground:@selector(getAdvisory) withO... | stackexchange/codereview |
It is very common to write a loop and remember the previous.
I want a generator that does that for me. Something like:
import operator
def foo(it):
it = iter(it)
f = it.next()
for s in it:
yield f, s
f = s
Now subtract pair-wise.
L = [0, 3, 4, 10, 2, 3]
print list(foo(L))
print [x[1] - x[... | stackexchange/codereview |
I am using this plugin and it works great but i cant edit the text ...if i click on it, it disappears. Is there an easy way to implement that or any other plugin that maybe able to help me
| stackexchange/codereview |
I am currently trying to install the mysql2 gem for a Ruby on Rails application. I am using Ruby 1.9.2. Here is the error:
todd-andrewss-macbook:shiftly toddOld$ gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Us... | stackexchange/codereview |
Here is my problem, I have several parameters that I need to increment by 0.1.
But my UI only renders x.x , x.xx, x.xxx for floats so since 0.1f is not really 0.1 but something like 0.10000000149011612 on the long run my ui will render -0.00 and that doesn't make much sense. How to prevent that for all the possible ca... | stackexchange/codereview |
I have been working with JQPlot for a week or so now and am banging my head against the wall trying to get highlighting working. I am loading the following CSS and .js files...
jquery.jqplot.min.css
jQueryCombined.css
...a couple others that don't relate...
jquery-1.4.2.min.js
jquery-ui-1.8rc3.custom.min.js
jquery.tr... | stackexchange/codereview |
I have a contour plot and I would like to add a geom_path with a different set of data over it.
Right now I have the below code, but as soon as it gets to the geom_path, it overwrites the contour plot. Is there a way to prevent this from happening?
v <- ggplot(pts, aes(theta_1, theta_2, z = z))
v + stat_contour(aes(col... | stackexchange/codereview |
I'm used to writing my own SQL queries and I'm trying to get used to the whole ORM thing that seems to be so popular nowadays.
Here's the query:
SELECT * FROM routes WHERE route_id IN (
SELECT DISTINCT t.route_id FROM stop_times AS st
LEFT JOIN trips AS t ON st.trip_id=t.trip_id
WHERE stop_id = %s
)
where... | stackexchange/codereview |
This is code only Compatibility IE, FF but not working chrome and safari. please suggest me a way for that.
<h3>Choose an image:</h3>
<input type='file' onchange="document.images[0].src=getPath(this);" />
<h3>preview</h3>
<img src="#" alt="your image" />
<script type='text/javascript'>
fun... | stackexchange/codereview |
i'm trying to develop a simple pie chart class for android. For now, it can take a map of labels and values and draw the pie chart. I'm yet to add the legends for the pie, which is where i need to place the texts near small rectangles on the screen corner. Any help appreciated, since i'm new to Android dev.
| stackexchange/codereview |
this is my website i develop http://alessandro.babonmultimedia.com/ when we clicked at contact (navigation at top), there will be contact us form loaded via jquery AJAX,
the question is:
when we click submit, it will sending mail.
this is work in Firefox 3.6.1, but in google chrome 7.0.517.41 the submit button do no... | stackexchange/codereview |
I have quite a huge form for data capture. The main problem is that I'll always have to click on the submit button twice in order for the form to be submitted. The first time I press it, it just refreshes and does nothing. Why is this so? Inside my form, there is plenty of input text.
There are also some dynamic selec... | stackexchange/codereview |
My current .htaccess file looks like this:
RewriteEngine on
RewriteBase /
Options +FollowSymLinks -Indexes
RewriteRule ^video/(.*)$ video.php?id=$1 [L]
RewriteRule ^video/(.*)$([a-zA-Z0-9]+) video.php?id=$1 [L]
RewriteRule ^tag/(.*)/page-(.*)/$ tag.php?tag=$1&page=$2 [L]
RewriteRule ^tag/(.*)/page-(.*)$ tag.php?tag=$... | stackexchange/codereview |
I am writing unit tests (AndroidTestCase). The application under test uses some background services to communicate over the web the get information.
To receive notification of events I am interested in, (like when content has been delivered etc), I register a listener that exposes various methods. In these listener... | stackexchange/codereview |
I have document with iframe. I have no problem setting iframe's location by using this:
$('#iframe').attr('src', 'http://www.another-domain-site.com');
When user navigates a few pages in that iframe, then I want to get back URL where he ends up. But when the SRC attribute of the iframe never changes from what I init... | stackexchange/codereview |
Many times I see in open source code that a call to a C function is cast to void.
For example, in the source code for ls (http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/ls/ls.c) I see the following.
(void) setlocale(LC_ALL, "");
Why is this good practice?
| stackexchange/codereview |
Does anyone know of a good reference for VB6 format-strings?
Does anyone know of a converter from VB6 formatting strings to .NET strings?
I'm working on porting a large VB6 code base to .NET. It is a database centric piece of software, and the database itself holds VB6 format-strings which are later loaded and used ... | stackexchange/codereview |
When I run the program and enter a rank & gender it yells at me and tells me it is an invalid gender. I cannot see why if I enter "male" into the console, it does not equal the string "male"? Can please explain to me why this doesn't work and perhaps some suggestions on how to fix it? Thanks!
import java.io.File;
i... | stackexchange/codereview |
I used richfaces in a JSF project. Now I'm trying the same with Seam.
But I always get the same JavaScript error:
Message: Object required
Line: 2791
Code: 0
URI: http://localhost:8080/myapp/a4j/g/3_3_1.GA/org/ajax4jsf/framework.pack.js
The s:button tag works
<s:button id="eMail0" value="sButton" action="#{Mailer.sen... | stackexchange/codereview |
I have an application that runs fine on the simulator.
When trying to run on the actual iPhone, I get link errors that require the CoreVideo and CoreMedia frameworks - and then the application runs fine on the iPhone hardware and the iPhone simulator.
Unfortunately, as soon as I do that, the application crashes on the ... | stackexchange/codereview |
Is it possible to take the contents of a variable and stick it into an array like so (I've tried to no avail):
First I get these values from a database and using php form into a hidden input:
{value: '1', name: 'name1'},{value: '2', name: 'name2'}
Then collect with javascript
document.getElementById("myelement").value... | stackexchange/codereview |
I'm wondering if it is possible to change dynamically the session time for currently logged user. I'm communicating with a WebService which does a long-running task, and while the it sends the final response, I don't want the user to be logged out. Is it possible ?
| stackexchange/codereview |
I have a huge set of xmls(2000 files each having 500 lines) to be parsed in Android for fetching the information from it. All the files will be present in the device. I had this to be done in iPhone and i accomplished it by converting all the XMLs to PLIST files. The PLIST processing in a iOS was faster than parsing a ... | stackexchange/codereview |
I had requirement where user should add only specific type of links
as part of the attachments. For example, if user wants to upload
file of type pdf, the url should end with .pdf similarly for document
it should be .doc
To check this scenario I had written JUnit test as below
String url="ar.jpg";
String pm="(.*?)\\.(j... | stackexchange/codereview |
the last thing I want to minimize today is code that contains while and do-while loops. Here is the original:
class Vereinfache3_edit {
public static void main(String [] args) {
int c1 = Integer.parseInt(args[0]) ;
int c2 = Integer.parseInt(args[1]) ;
int c3 = Integer.parseIn... | stackexchange/codereview |
How to interpret the statements below:
Notes bean = null;
bean = new Notes();
Small explanation would be very helpful.
| stackexchange/codereview |
I am using a queue to communicate between threads. I have one reader and multiple writer threads. My question is do I need to lock the queue every time when I use push/front/pop from the queue for the reader? Can I do something like the following:
//reader threads
getLock();
get the number of elements from the queue
re... | stackexchange/codereview |
I have a couple of packages installed in my Umbraco installation so it would be kinda hard to to track down each one of them one by one. I get this error message every 5 minutes in the log file:
Error executing scheduled task: System.UriFormatException: Invalid URI: The hostname could not be parsed. at System.Uri.Creat... | stackexchange/codereview |
I have the following linq expression that lets me join two tables, group them by a DSCID, and then get a count of the grouped values:
var qryGeoApppendCount =
from a in append
join g in geo
on a.Field<string>("RNO")
equals g.Field<string>("RNO")
grou... | stackexchange/codereview |
I need to implement Routing or Url-Rewriting in my application. So, is there any utility like logging utility Elmah. I don't want to write much code, I need to configure and start playing.
| stackexchange/codereview |
Based on the documentation for Castle.Core.InterceptorAttribute, I am trying to make this simple test pass, and am having no luck:
using NUnit.Framework;
using Castle.DynamicProxy;
using Castle.Core;
using Castle.MicroKernel;
using Castle.MicroKernel.Registration;
public interface IIntercepted { string get(); }
[Int... | stackexchange/codereview |
I wanted to know if there is anyway, I can customize the size of camera view while using UIImagePickerController. Like when I use the camera option to pick up the image, it takes the whole screen. Instead I want it to take just a square window of 250 by 250. So that rest of the stuff of the screen wont be affected, and... | stackexchange/codereview |
I know I can use jump to set the program counter to a specific line and so I can skip one or more lines (or execute some lines again). Can I easily just skip the next line without having to enter line numbers?
This would be very convenient to "comment out" something at run time.
| stackexchange/codereview |
In python, what's a clean way to insert an element between any two elements that meet a condition?
A call like:
insert_between([1,2,3,4,7,8,9,15,16], 0, lambda x,y: x + 1 != y)
should produce:
[1,2,3,4,0,7,8,9,0,15,16]
Is there a better way than to iterate and append to second list?
| stackexchange/codereview |
I have some existing code that uses an enum instead of a function pointer for callbacks. The callback is called using a table: callback_table[enum].
The enums are named with an enum_ prefix and the corresponding function is named with a func_ prefix.
So, function calls involving callbacks look like this:
foo (param, e... | stackexchange/codereview |
I'm taking my first steps to explore Spring MVC 3 (annotation driven) and the JSON functionality that it supports.
1) In my JSP page I want to click a link that retrieves JSON
$("a[class=simple2]").click(function() {
$.getJSON("checkName.html", function(contacts) {
alert(contacts);
});
re... | stackexchange/codereview |
In Haskell, is it possible to write a function with a signature that can accept two different (although similar) data types, and operate differently depending on what type is passed in?
An example might make my question clearer. If I have a function named myFunction, and two types named MyTypeA and MyTypeB, can I defin... | stackexchange/codereview |
I have a bunch of classes annotated with hibernate annotations. I'm using Maven, Hibernate and Spring. How can I generated the DB schema using hibernate3-maven-plugin's hbm2ddl?
| stackexchange/codereview |
I have made a central bare shared repo at foo.org.
user A has done git clone ssh://foo.org/blah.git
user A has created file 'lol' which is a blank file. Commits it to local repo. Does git push
user B does mkdir foo and cd foo
user B then does git clone ssh://foo.org/blah.git.
user B edits lol file.
user A edits lol f... | stackexchange/codereview |
I am looking for a good authentication solution. Is Authlogic the way to go for Rails 3? I am having problems and finding a lot of info that others are as well with Rails 3. Should I look at something else?
| stackexchange/codereview |
I am trying to convert a UTF-8 data to String. The UTF-8 data is obtained by HTTP connection.
My problem is the converted String does not display UTF-8 Characters properly.
Here is my code {extra bits removed }
URLConnection urlconn = url.openConnection();
httpConn = (HttpURLConnection) urlconn;
httpConn.connect();
Inp... | stackexchange/codereview |
I'm working on a RESTful web application (Django+Piston). The POST request sends data encoded with Json to the web application. This works fine for all my text only database tables but I also have a table which stores text and binary files. What is the best way to post text and binary data to a RESTful application?
| stackexchange/codereview |
Is there anyway using query that I can assign permissions to user in a SQL Server database?
Thanks
| stackexchange/codereview |
Does anyone know any reason why tomcat might stop responding or any way I can find out why this is happening?
Tomcat seems to run fine for many weeks before falling over but it has happened a few times now.
I have seen this question tomcat 6 hangs after a few hours which seems to be the same problem I am having but I c... | stackexchange/codereview |
I have CompanyController and DepartmentController:
public class CompanyController : BaseBackendController
{
private ICompanyRepository repository;
public CompanyController(ICompanyRepository repository)
{
this.repository = repository;
}
...
[HttpPost]
public ActionResult BatchDelete(long[] ids... | stackexchange/codereview |
Is it possible to add an extra parameter when throwing an exception?
When I throw an exception I send along the error message but I would also like to send along the name of the field in a extra parameter. Something like:
throw new Exception('this is an error message', 'the field');
So when I display the message I can... | stackexchange/codereview |
Im trying to compare the address of two functions for equality. Type of my stored function is known. This system normally works, consider the following code (written as sample not from the program):
virtual bool compare(void *fn2) {
void (*fn)(int);
if(fn==fn2)
return true;
}
However when class functions cam... | stackexchange/codereview |
Ok so I know that Set, List and Map are interfaces but what makes the first line of code any better than the second line?
List myArr = new ArrayList();
ArrayList myArr = new ArrayList();
| stackexchange/codereview |
im trying to surround my code with exceptions all over so I wont have any memory leaks.
I tried the following code, and for some reason the exception isnt being handled and i get runtime error.
some code:
try
{
methodA();
} catch (Throwable th)
{
MsgProxyLogger.error(T... | stackexchange/codereview |
I would like to have an JSON like data format with the following features:
support of arrays (ideal with [item; item; item] as notation and [key: value; key2: value2]), also nested
string support, ideal with the following: "foo",0x0a,"bar"
hex numbers, bin numbers, decimal numbers
Does anyone know a parser for such a... | stackexchange/codereview |
I need to retrieve Google Reader subscription list for a user in a iPhone app. I understand that there is no official API available, and I have kinda exhausted Google search already. Out of various options, the closest I have found is [Using JSON Framework on iPhone - HELP!], can anyone share more details - sample code... | stackexchange/codereview |
Given 2 lists, I want to ensure that they are the same size, I'm having a tough time with this code. Should I be using variables to do this?
(defun samesize (list1 list2)
(cond (;logic here) T))
| stackexchange/codereview |
I've had the same problem a couple of times with different ASPX pages after renaming them and I am surprised that I can't find someone else with the same problem on stackoverflow.
When I run my ASP.NET C# project, the debugger gives me a message like this one.
Error 5 The name 'txtTitle' does not exist in the curre... | stackexchange/codereview |
I have a piece of php code that reads values from a database resultset, shoves them into an array, and writes them to a CSV file. I need to force each value to be surrounded by double quotes when it goes into the CSV file, and can't for the life of me remember how to do this.
Here's the loop that writes to the file (th... | stackexchange/codereview |
I'm trying to get a hold of all DataGridRows for a DataGrid, don't ask me why :)
The DataGrid is bound to a DataView and I'm using this code but it failes after some rows.. I guess that they haven't been created yet.
foreach (DataRowView item in datagrid.Items)
{
// Sometimes row == null...
DataGridRow row = da... | stackexchange/codereview |
As has been discussed at breadth in many a forum, it is recommended to use Google's CDN for loading common js libraries. I am doing the same in my app and am loading jquery and jquery-ui from the Google cdn.
Now there have been quite a few instances where users have reported broken UI and that is a result of jquery ui... | stackexchange/codereview |
I've got a set of documents which have a semi-regular format. Rows are typically separated by new line characters, and the main components of each row are separated by spaces. Some examples are a set of furniture assembly instructions, a set of table of contents, a set of recipes and a set of bank statements.
The prob... | stackexchange/codereview |
I started to learn android and I'm making a simple game. In this game I need two scroll lists with the same width, so I set layout_weight parameter to "1" in both views. But when I run program scroll views have different size. Second problem is that i need EditText widget to be low, so I did the same thing with TableRo... | stackexchange/codereview |
Here's the setup:
I have an activity with a list of items (updated from server, represented by a plain java class). The items are rendered via a custom BaseAdapter and custom View for each row.
The items implement Parcelable, so that when the screen is rotated, the items are saved in the bundle as a ParcelableArrayLis... | stackexchange/codereview |
Say I have a base class:
class baseClass
{
public:
baseClass() { };
};
And a derived class:
class derClass : public baseClass
{
public:
derClass() { };
};
When I create an instance of derClass the constructor of baseClass is called. How can I prevent this?
| stackexchange/codereview |
Does the <ui:repeat /> tag support iterating over a java.util.Set? I've tried iterating over my JPA domain entity objects contained in a Set, but receive errors. Is there something I'm missing? Does an additional flag need to be present or something?
| stackexchange/codereview |
Worked on my repo from work, and hg pushed the changes. Now in my home computer, how do I get the changes I saved from work considering I've already hg cloned the repo about two weeks ago but haven't updated since?
I need something like a hg getchanges or something?
http://bitbucket.org/sergiotapia/sharpdic
| stackexchange/codereview |
I have tried to write:
Event EventName(Of T)()
But Visual Studio tells me that "Type parameters cannot be specified on this declaration."
Is such a declaration possible or will I have to put T as a regular argument?
| stackexchange/codereview |
I have the following problem:
I am using SAAJ for web services. I have a SOAPMessage with the following soap fault:
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<S:Fault xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
<faultcode>S:Server</faultcode>
<faultstrin... | stackexchange/codereview |
I have a txt file with tons of complex names I want to insert into my sql table named cred_insurances. The table is currently blank. Each line should be one record and the name should be in the column called ProviderName. My text file is like this:
Alabama Medicaid
Alaska Medicaid
Arizona Medicaid (AHCCCS)
Arkansas Med... | stackexchange/codereview |
i'm trying to create JNI C++ library that will capture desktop video (frames).
First step is to simply make a screenshot of desktop. Code is :
#include <iostream>
#include <X11/Xlib.h>
using namespace std;
int main()
{
Display *display;
int screen;
Window root;
display = XOpenDisplay(... | stackexchange/codereview |
The following query:
SELECT SUM (peak_power) FROM t_mpi_pv WHERE info_id IN (
SELECT mp_info_id FROM t_mp WHERE mp_id IN (
ARRAY[29800001,29800008,29800015,29800022,29800029]
)
)
Doesn't work. I get the error:
"Operator does not exist: integer = integer[]".
But
SELECT SUM (peak_power) FROM t_mpi_pv WHERE info_i... | stackexchange/codereview |
I have developed an application for iPhone that runs in the background with GPS mode on. I need to ask the server if there are any new tasks for the user? Fir this purpose, I have added the code in the didUpdateToLocation method. Now the problem is that it consumes the battery very fast. Please guide me how to avoid t... | stackexchange/codereview |
I have a winform and some threads. When i try to access a field in the winform from one of the threads, the following error occurs :
Cross-thread operation not valid: Control 'richTextBox1' accessed from a thread other than the thread it was created on.
How can i resolve this problem?
Regards,
Alexandru Badescu
| stackexchange/codereview |
I'm having difficulty getting my colorscheme to change. I've opened both ~/.vimrc and /usr/share/vim/vimrc and added:
colorscheme desert
...and nothing. I noticed the color schemes are here:
/usr/share/vim/vim72/colors/desert.vim (...along with a bunch or others)
which seems like the wrong place so I:
cp /usr/share/v... | stackexchange/codereview |
Let's say I launched multiples winforms from Program.cs with
Form1 form1 = new Form1();
form1.show();
Form2 form2 = new Form2();
form2.show();
Application.Run();
How do I quit application when all forms are closed by User ?
I can of course put Application.Exit() in FormClosed event but it's not very elegant I think. A... | stackexchange/codereview |
I'm trying to make a class inherits from other and override some methods. Classes 'header' is:
class Objeto {
public:
virtual bool interseca(const Rayo &rayo, float magnitud);
virtual bool breakNormal(const Punto &punto);
virtual Vector normal(const Punto &punto);
int idMaterial;
};
class ... | stackexchange/codereview |
There is a particular registry value that my application sometimes creates during execution, i.e. NOT at installation. This value is within a registry key that I don't want to delete; I just want to delete the value that I created. Because it's not created at install it's not automatically deleted at uninstall by windo... | stackexchange/codereview |
I need to create a sample project (for educational purposes) and I'm faced with the choice between Web Site Projects or Web Application Projects.
This feels similar to the choice between C# and VB. My question isn't about the differences between these 2 choices, but rather which is more popular (relevant, recognizab... | stackexchange/codereview |
I accidentally locally deleted a directory in a CVS repository, which I'm also managing with mercurial locally. I can hg revert the directory, but I've got hg set up to ignore the CVS directories, so there's no CVS directory. CVS is freaking out every time I try to do a commit (it's a trivial directory that was remov... | stackexchange/codereview |
I have a html table, form and a hidden iframe in my page. On onclick action of the table column(td), I am rendering a pdf document in the iframe.
In IE, this works fine on subsequent clicks. But in Firefox, it works only the first time and on subsequent clicks, iframe wont get refreshed with the latest data.
Here is m... | stackexchange/codereview |
Wait- please don't suggest the Validation plugin until reading.... I've looked into it..
I'm building a landing page with a signin and signup form.
Here's is what I want to happen:
Anytime a user clicks in a field, I want there to be an indication visually if the input is ok. and I want that to stick after they click t... | stackexchange/codereview |
I've set up a custom control in SL and I'm trying to get the default look of the control to behave properly. I feel (with the help of some smart folks on here) that I am getting pretty close to getting this, but I'm still not quite there yet.
When my control is first added to a panel in Blend, it shows up as I expect b... | stackexchange/codereview |
I have been trying to use UrlRewriter (Intelligencia.UrlRewriter.dll) in a test project.
My rewrite statement is as in the following:
<rewrite url="~/Sample/(.+)" to="~/Sample.aspx?Test=$1"/>
This statement works great for a URL like:
http://localhost:4188/RewriteTest/Sample/12345
or, let's say:
http://RewriteTest.co... | stackexchange/codereview |
I use quickFixEngine and want to use ConfigurationSection for all the engion setting instead the setting.txt file.
however I am not sure how to Initialize the SessionSettings with the setting.
I created a "SessionConfiguration" with all the needed properties.
After loading the section I try to convert it to Stream and... | stackexchange/codereview |
I am developing an aplication with C# to use the WIA 2.0 library. At the moment I could use most of the features, such as ADF (auto document feeder), filters and more.
Now, I need to use the duplexer of my scanner (fujitsu).
I'm trying to set the WIA_DPS_DOCUMENT_HANDLING_SELECT scanner property to the DUPLEX value. Se... | stackexchange/codereview |
I would like to plot a series of vertical lines in gnuplot at a set interval.
Some information about the plot.
The plot is mainly some data from a .dat file. The gnuplot script is called by a bash scripts which alters the gnu plot script using sed. This is a snipit of the an old bash script (ugly I'm sure).
sed -i 's/C... | stackexchange/codereview |
I'd like to know, how coordinates can be transformed to center of the form for drawing mathematical functions.
I already tried ->TranslateTransform(x,y) on Graphics object, this works, but only in one quarter of coordinates. How should I draw math functions on the form?Programming C++ long, but WinForms and Drawing are... | stackexchange/codereview |
I would like to know if it's a good idea to store a delegate of a method sitting in a aspx page into the session
the project that I work on does it and I have a bad feeling about it
| stackexchange/codereview |
I am looking at this boot.rb file:
http://github.com/bestbuyremix/BBYIDX/blob/master/config/boot.rb
And after trying to understand it, it is as if I have learned nothing so far.
Can someone detail what is going on here?
I have no idea how someone could even come up with this?
# Don't change this file!
# Configure your ... | stackexchange/codereview |
In OS X, you turn on and off a web proxy from System Preferences > Network > Proxies, by checking Web Proxy (HTTP) and designating the Web Proxy Server etc. and by clicking OK and then "Apply". This is way too many steps. Is there a way to do this all from the command line and a shell script?
| stackexchange/codereview |
I want to learn how to create my own authentication system, please provide some guidance if am doing this wrong.
I will create a Module in my /lib folder /lib/auth.rb
I will require this module in my ApplicationController.
when a user enters their email + password, I will call a method that will do a lookup in the us... | stackexchange/codereview |
I have some bytes written to a file in isolated storage in my Silverlight application. This file is named "data.dat". I wrote it to Isolated Storage using the following code:
// Store the data in isolated storage
var bytes = GetData();
using (IsolatedStorageFile storage = IsolatedStorageFile.GetUserStoreForApplication(... | stackexchange/codereview |
I am trying to formulate a LINQ query to select a sublist of a list where it meets a where condition like so:
List<Entities.Base> bases = this.GetAllBases();
List<Entities.Base> thebases = from aBase in bases
where aBase.OfficeCD == officeCD
select aBase;
w... | stackexchange/codereview |
I get:
ImportError: cannot import name Image (from image_blob.py)
please help me thanks :s
my code:
image.py:
from google.appengine.ext import db
from app.models.item import Item
class Image(Item):
# imports
from app.models.image_blob import ImageBlob
#from app.models.user import User
#from list_user ... | stackexchange/codereview |
Here is my situation:
User A must monitor the results of an sql query Q.
User B can modify data that may change the results of Q
running Q on the entire database is slow
What I would like have is: whenever user B modifies the data:
with a create, update or delete, then generate the delta to the results of Q.
i.e. ret... | stackexchange/codereview |
In the follwoing code, using libxml libraries :
key = xmlNodeListGetString(doc, cur3->xmlChildrenNode, 1);
if (flag == 1)
{
image2 = key;
printf("the image 2 is %s \n", image2);
flag = 2;
}
... | stackexchange/codereview |
In my project I have many folders. I certainly know I want have changes in only few files (around 15) each of them are in 7 different folders. Also, I don't want to checkout the entire source to accomplish it. Is it possible to checkout only the required folders alone?
I'll have this scenario too often for different s... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.