instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm developing an Android application with database storage.
I want to test some classes that I use to access database.
I've found ActivityInstrumentationTestCase2 to test Activities but I haven't found anything to test classes.
How can I do that? I haven't used jUnit before.
Thanks.
| stackexchange/codereview |
In Building a Desktop To-Do Application with NHibernate, Oren Eini (a.k.a. Ayende Rahien) shares that the general recommended NHibernate practice is to use one session per form in a desktop application. In the example given, this is easily implemented because the form presenters have knowledge of the persistence layer... | stackexchange/codereview |
What would be a basic regular expression which finds some string if given the string quuz="bleh" foo="some string" bar="some other string" where some string and some other string are arbitrary strings.
| stackexchange/codereview |
I have this code to send email notification in my page.
MailAddress to = new MailAddress("xxxxx@gmail.com");
MailAddress from = new MailAddress("xxx@gmail.com");
MailMessage message = new MailMessage(from, to);
message.Subject = "Error Occred in the application:";
message.Body = ex.Message;
SmtpClient client = ne... | stackexchange/codereview |
I recently received a 64-bit crash dump from a customer.
Our processes are all 32-bit, but the customer's machine is running x64 Server 2008.
Visual Studio (both 2008 and 2010 Express) is telling me that I have to use the 64-bit version of MSVSMON.EXE, which I can't because I don't have a 64-bit machine.
I'm pretty sur... | stackexchange/codereview |
I know "why is my this framework like/not like xyz?" questions are a bit dangerous but I want to see what I'm missing.
In WinForms, you can't update the UI from another thread. Most people use this pattern:
private void EventHandler(object sender, DirtyEventArgs e)
{
if (myControl.InvokeRequired)
myControl.... | stackexchange/codereview |
I'm performing some large date-based delete queries on tables with indexes on fields other than date. I've been told that dropping those indexes, performing the delete, and then re-building the index could be faster than just running the delete against the indexed table. Is this the case?
I can see why the actual remov... | stackexchange/codereview |
What is the recommended (read most efficient) way to obtain a single entity out of the datastore based on a value that's closest to one provided.
For example, I have the following DataModel:
class MyObject(db.Model):
someValue = db.IntegerProperty()
shortDescription = db.TextProperty()
During a GET a value is ... | stackexchange/codereview |
I can't seem to find a simple, concrete explanation of how to bind controls in a WinForms app to nested objects using data binding. For example:
class MyObject : INotifyPropertyChanged
{
private string _Name;
public string Name
{
get { return _Name; }
set
{
_Name = ... | stackexchange/codereview |
How can i make Sitecore able to search 2 indexes using dtSearch?
In the Sitecore documentation I can't find anything about adding more then one index to the configs.
| stackexchange/codereview |
(please ignore this question - it is foolish...)
I want something that will do this:
rep(1:3, each = 1:3)
# And will output this vector:
c(1,2,2,3,3,3)
Does it exist? (and if so, how?)
Update: I can write it like this -
rep2 <- function(x, each)
{
output <- NULL
for(i in 1:length(x))
{
output <- c... | stackexchange/codereview |
Im running xampp and i see the Pear folders in the php subdirectory. I have the html_quickform folder but i dont know where to place it?
Do i place it in the first Pear folders or the next Pear folders? I created a HTML folder on the first Pear folder to place it in but im getting this error:
**index.php**
require_once... | stackexchange/codereview |
I have two tables afrostarprofiles and afrostarvvideos created as shown below. artistid field in afrostarvideos is the primary id of afrostarprofiles. I want a single query that will return for me most popular afrostarprofile based on sum of views(afrostarvideo) and views of afrostarprofiles. i basically need an algori... | stackexchange/codereview |
I find myself doing this a lot:
window.onload = function(){
$.get("http://example.com/example.html", function(data) {
$('#contentHere').html(data);
setTimeout("javaScriptClass.init()", 200);
});
}
But setTimeout seems a bit hacky (and 200ms is already over three times the attention span of the a... | stackexchange/codereview |
I'm having difficulty with a php script using copy() on a shared remote host. I've read here the host may simply not allow the use of the copy() function. I started a trouble ticket and the trouble was half fixed and blamed on mod_security. I persisted and now my script is working. A strange last response, after the fi... | stackexchange/codereview |
I have this script
<div id="div2">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
<div class="bar4"></div>
<div class="bar5"></div>
<div class="bar6"></div>
</div>
<script>
function rotate() {
var count = 0;
var elem = document.getElementById('div2');
elem.style.MozT... | stackexchange/codereview |
I am developing an eshop and the client wants ajax. I think that this is a bad idea because its going be slow.
However while viewing the products there are some filters on the left. When a user selects a filter some other should be disabled.
For example there may be jackets for both males and female, but the red colour... | stackexchange/codereview |
I am writing an app that automatically has an image load full screen immediately after the app is launched. When this happens, it seems that the only way for the user to get out of this full screen mode is to CMD-Q and quit the app. How can I set my own custom key stroke combination so the user can exit full screen m... | stackexchange/codereview |
My Javascript function returns a char arrya which might contain non-printable characters. In fact each character is a byte (represented as a number from 0-255). The problem is that when I try to copy this char array to the notepad, for example, I get these results:
ORIGINAL STRING IN JAVASCRIPT:
performance of thisĎask... | stackexchange/codereview |
I want to delete a folder when the page is refreshed on closed. Here is my code, what exactly is wrong, why is it not deleting the directory
window.onunload=closed;
function closed()
var FolderName = "uploads-temp/"+<? echo $create_temp_dir; ?>+"*";
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.... | stackexchange/codereview |
I have an abstruse sqlldr problem that's bothering me. My control file looks something like this:
load data
infile 'txgen.dat'
into table TRANSACTION_NEW
fields terminated by "," optionally enclosed by '"'
TRAILING NULLCOLS
( A,
B,
C,
D,
ID "ID_SEQ.NEXTVAL"
)
Data is something like this:
a,b,c,
a,b,,d
a,b,,
a... | stackexchange/codereview |
I'm currently using the GeoTools toolkit to do calculations on marine vessel data, such as calculating the Great Circle distance between two lon/lat points. I have two other requirements that I need to satisfy, but I'm not sure where to look in GeoTools to find classes to do these kind of calculations.
REQUIREMENT #1:
... | stackexchange/codereview |
I'm trying to create a simple stored procedure which queries a sys.tables table.
CREATE PROCEDURE dbo.test
@dbname NVARCHAR(255),
@col NVARCHAR(255)
AS
SET NOCOUNT ON
SET XACT_ABORT ON
USE @dbname
SELECT TOP 100 *
FROM sys.tables
WHERE name = @col
GO
This does not seem to work cause... | stackexchange/codereview |
I'm using uploadify: http://www.uploadify.com/
And have an onComplete:
onComplete: function(response) {
alert(response);
},
My server is sendin back album_id... How do I access that in the response?
Thanks
UPDATING
onComplete: function(response) {
jsonObject = jQuery.parseJSON(response.response);
... | stackexchange/codereview |
I know this will give me the day of the month as a number (11, 21, 23):
SimpleDateFormat formatDayOfMonth = new SimpleDateFormat("d");
But how do you format the day of the month to include an ordinal indicator, say 11th, 21st or 23rd?
| stackexchange/codereview |
How would I be able to run an IBAction based on another event? For example I could use a piece of code to run an IBAction.
What I'm trying to do is have two different buttons run one or more IBActions.
| stackexchange/codereview |
Is there a simple way to expose, say, NSString or UIColor properties of a class such that they can be modified in interface builder?
This would be useful e.g. for adding color properties to a custom view (which are then used programmatically) so that they can be manipulated in Interface Builder as is appropriate.
| stackexchange/codereview |
i need to get contents on web page and read it via cURL on php,but contents not include data on javascript any body can help me to solve this problem ?
| stackexchange/codereview |
How I got into a pickle:
svn switch http://repo/project/rbanches/branchname/plugins/com.securemacprogramming.myplugin com.securemacprogramming.myplugin
What this caused (in addition to "incoming delete on switch" in svn status):
svn switch http://repo/project/branches/branchname/plugins/com.securemacprogramming.myplug... | stackexchange/codereview |
I have a program that accesses a database using SQLite. When I open a OpenFileDialog or a SaveFileDialog before I do the SQLite call:
result = sqlite3_prepare_v2(databaseConnection,converted,10000,&stmt,&strptr);
and choose "Cancel", everything works okay (result == SQLITE_OK) but when I choose "Open", even if I don't... | stackexchange/codereview |
by default for an android listview, when you touch it, it has an orange color.
does anyone know how to override this? there doesn't seem to be a method for it.
| stackexchange/codereview |
If for some reason, the project cannot use bundler and gem install, we can use
script/plugin install git://github/<author name>/ ... /foo.git
but what if it is not on github and for sure it is a ruby gem, can script/plugin install install from the rubygems.org which is the official gems place? (that's the one gem ins... | stackexchange/codereview |
I have an application which is javascript and HTML to be delivered with about 500 short (18MB) videos on 2 physical discs. I'm making an ajax request to check a file exists before displaying it, if it does not I prompt the user to insert the other disc.
video.innerHTML = "<p class=\"no-video\">Working...</p>";
$.aj... | stackexchange/codereview |
I have a movieclip that contains two frames, each frame contains a different set of buttons.
it seems that i cannot add the event listeners to buttons that are not in my current viewed frame.
so.. problem one: is there a way to add event listeners to all the elements in the movieclip even if the elements are in a diffe... | stackexchange/codereview |
I've created a design package with component registration (component itself is in run-time) and some IDE menu items.
If I click on "Install" menu item in context menu from Project manager - package will be loadeded and works normally (always).
If I close IDE and restart it - package may be loaded or may not be loaded. ... | stackexchange/codereview |
I have a simple library written in C++ which I'm creating a Python wrapper for using boost.python. Some functions take a long time to execute (over 30 seconds), and I would like to make it interruptible so that when I hit ctrl-d to trigger KeyboardInterrupt in the python interpreter, I'm somehow able to respond to that... | stackexchange/codereview |
I have an existing database with a users table and questions/answers table. I'd like to use bbpress (or any forum really) as a front end for this for access via the web. Is this possible? Has anyone done this?
Look forward to the responses. Thanks!
| stackexchange/codereview |
I am having a problem displaying some pictures (more than one) in a picturebox.
<div id="salary_total" style="display: block;"><table style="border: 3px solid rgb(71, 5, 6); padding-right: 1px;" bgcolor="#ffffff" cellpadding="0" cellspacing="0"><tbody><tr><td><img src="./images/counter/b.gif"></td>
<td><img src="./ima... | stackexchange/codereview |
I need a little bit of help here. First off, I am not sure if i should use the .ajax function or the .load function. I want to grab a PHP file on the server and just load the page into a DIV container. How could i go about this?
EDIT:
Thankyou for the help. Now I am running into another problem. Here is the code i am u... | stackexchange/codereview |
Greetings,
I'm developing a project in C++ where I want to use characters like á é õ and ┌ ─ ┐ │ to draw a couple of nice frames. My doubt resides in what I should change in my code/project settings since, without any kind of modifications, the console just prints pseudo-random characters.
I know that the above charac... | stackexchange/codereview |
class MyStringBuffer {
//TODO explain: why you would need these data members.
private char[] chars; //character storage.
private int length; //number of characters used
public String toString(){
//TODO
//Hint: just construct a new String from the ‘chars’ data member
//and ret... | stackexchange/codereview |
I have a question.
I was once asked this in the interview --
Suppose you have a queue.A very large queue containing objects. And you cannot fit this queue in the memory. So how do you go about implementing it so that you can add from the end of the queue.And remove from the start of the queue.How is this solution imple... | stackexchange/codereview |
I'm currently trying to implement a Swing/GUI that could be regarded as a RDF editor.
For each property , I can add/remove one ore more widgets storing the values (JTextField, JScrollPane+JTextArea, JCombo, etc.... ).
I've been trying to use the GridBagLayout to put the Components in place but I can get any good resu... | stackexchange/codereview |
What is the syntax to assign a speed to each fade?
function fadeIn()
{
$(this).fadeIn( fadeOut );
}
function fadeOut()
{
$(this).fadeOut( fadeIn );
}
fadeIn.call($("#myImage"));
| stackexchange/codereview |
How can I use a variable in getElementById
html:
<td><a href="#" onclick='selectEditActivity("id3319201010153333");'>Click</a></td>
javascript:
function selectEditActivity(pass_id){
// this works
alert(pass_id)
// this works;
var A = document.getElementById("id33192010101533333").getAttribute("seq");
a... | stackexchange/codereview |
I'm using http://sourceforge.net/projects/dockpanelsuite/ as a docking control in my application and I have added a form as a docking container, and from it I need to access a string from the main form. I was just messing around to see if I could load it using (Owner as MainWindow), but it did not work.
for (in... | stackexchange/codereview |
I have a HTML.BeginForm() to change user's data (email, password etc) but I want to separate the contents at the same page, I mean that there will be:
MainContent with submit button and also
- a HTML.BeginForm() with fields to change password + submit button
- a HTML.BeginForm() with fields to change email + subm... | stackexchange/codereview |
I have an ASP.NET MVC application in which i am using entity model for connecting to MySQl database
Here I am joining 2 tables and then applying group by on one of the fields. Then fetching the result from GroupBy result.
Everything is working fine on development machine but getting next error:
Object Must Implement I... | stackexchange/codereview |
I'd like some advice on building in known errors. Let's say I have a Windows form that needs to set the source path of an image in an object. It must be:
A valid path
An image
A PNG
32 x 32 in size
No transparency
The thing about catching errors is that I'd like the class to handle the errors as much as possible, ins... | stackexchange/codereview |
I have an application which store files (mostly Office documents) in various distant locations. I want my users to be able to search for these files based on some criteria on its own machine. I though I could use Windows Search to create an index. I've had that idea because a few years ago and to search for email in Ou... | stackexchange/codereview |
Something like:
host = getHost(id)
>>> 172.16.25.52
Ideally, the algorithm should minimize the number of cache misses when the pool of servers is expanded / contracted.
Are there any known algorithms out there that do this? Or libraries, potentially (I'm using Python).
Thank you.
| stackexchange/codereview |
I'd like to implement a badge/reputation system on one of my site. When a user performs an action an event will be raised (ex: QUESTION_PUBLISHED) so that the system can check if a new badge can be awarded to the user.
The logic for some of the badges is quite complex and would require slow sql queries. Instead of usin... | stackexchange/codereview |
When sending the WM_MOUSEMOVE message to the client area of an application (in this case Open Office Writer) the image will flicker as if the mouse is over the specified coordinates, but does not stay in that state. The code is:
PostMessage(hWndClient, WM_MOUSEMOVE, 0, MAKEWORD(x, y))
where x and y are relative to th... | stackexchange/codereview |
I want to reduce opacity of "PNG" images in IE. Alpha filter works well in mozilla but in IE there is black outline around image.
I dont want transparent PNG image for IE. I want to set opacity of PNG image in IE.
Thanks alot for help
Regards
| stackexchange/codereview |
I want to setup label attributes, and event listeners for a toolbaritem when it's being used. Because even though I add my extension's toolbaritem to <toolbarpalette id="BrowserToolbarPalette"> it is not found by document.getElementById unless it is being used. At the moment I have DOMNodeInserted event listeners on th... | stackexchange/codereview |
Quick question - Is there any simple way (module perhaps?) to set the admin account to stay logged in forever?
I admin a bunch of Drupal sites and am getting really tired of constantly logging in after whatever interval it logs out automatically.
| stackexchange/codereview |
Well I have a lot of confusions about wordpress. And I unfortunately could not find a satisfactory answer to my questions. So expecting a detailed answer.
To what extent we can customize a wordpress website?
for what kind of projects we should use wordpress.
Can we create a database oriented website in wordpress?
For e... | stackexchange/codereview |
I'm trying to write a custom Maven plugin that will parse the SCM changelog of the current Maven project, as well as any of its direct dependencies.
I know that MavenProject.getScm().getConnection() returns the connection URL of the current project.
However, I would also like to retrieve the connection URL of any direc... | stackexchange/codereview |
My client needs to let a user record a message from the browser, then export the message as an audio file (e.g., WAV).
How is this best accomplished? Flash, Java, HTML5? By best, I mean something that is straightforward to implement and also broadly supported.
What are people's experiences using HTML5?
Thanks!
| stackexchange/codereview |
My ASP MVC (1.0) website has a default login page (based on OpenId - but that shouldn't make a different). It works fine when AuthorizedAttribute is on the Action/Controller.
However, I have AJAX requests coming in as well. Here is what I do with them:
if (Request.IsAjaxRequest())
{
if (Request.IsAuthenticated)
{
... | stackexchange/codereview |
Unhandled Exception: System.IO.FileLoadException: Could not load file
or assembl y 'TheLibrary, Version=1.2.3905.36284, Culture=neutral,
PublicKeyToken=14 04827c3a8f2601' or one of its dependencies. The
application has failed to start because its side-by-side configuration
is incorrect. Please see the applicat... | stackexchange/codereview |
Has anyone used check as the unit test framework in an embedded device which also requires cross-compilation?
Is it even a good idea, or should I just use something else (e.g. embunit or similar)?
If so, how should I write the Makefile.ams and configure.ac? I haven't used autotools to begin with so all this cross-compi... | stackexchange/codereview |
Im having an ongoing issue with my site, it basically times out and dies. I have gotten to the point now where I have had to set the application pool to auto recycle every 5 minutes, but even that has failed as I’ve just got back from work and my email inbox is full of 4000 emails all with the same error.
System.Data.S... | stackexchange/codereview |
I have a Gallery application that has Album and Photo models.
I have the user search in the Album's show view (search in the specific album) and I store the results in a variable named @search in the show action of the controller.
I want to pass this variable to the Photo model's show page so when a user clicked on a ... | stackexchange/codereview |
how can i display the link of the image wich was clicked in the document?
i've added a class to the image when the image was clicked that works fine but when i want to display the image where the class was added with getelementbyid it doesn't find it and in the source code it is not visible.
please help me!!
EDIT:
abov... | stackexchange/codereview |
I am porting from Linux to FreeBSD and have run into ::mknod() failing with errno:
[EINVAL] Creating anything else than a block or character spe-
cial file (or a whiteout) is not supported.
But I also see it states earlier on the man page:
The mknod() system call requires super-user privi... | stackexchange/codereview |
My workflow is basically:
Create a repo on my desktop PC
Do some work on it and commit changes
Clone onto my laptop
Work on that, commit changes
Now I want to synchronise the changes with my desktop. Trying git push desktop.local:~/my-repo will fail, because the master branch is already checked out. I know of two sol... | stackexchange/codereview |
I'm trying to get information from a site by parsing/scraping it via PHP & Curl. But sometimes the current page doesn't finish loading, so the script runs without anything happening. It's a simple script like this...
...
curl_setopt($curl, CURLOPT_URL, $url);
$page = curl_exec($curl);
...
Is there a way to simply r... | stackexchange/codereview |
I am kinda new to php and i am trying to figure out how to make recaptcha work on my site.
Here is an excerpt from my "signup.php" and i have corresponding signup.html which acts like a template... The head part of it looks like below...
<?php
require_once('includes/config.php');
require_once('includes/functions/func.... | stackexchange/codereview |
I have a stored procedure that has a BEGIN TRANSACTION and COMMIT TRANSACTION statement. Within the transaction is a select query WITH(XLOCK, ROWLOCK).
The transaction can potentially fail due to some calculations that cause an arithmetic overflow error if out of bounds values are supplied. This error would happen bef... | stackexchange/codereview |
I'm trying to port a curses program to Windows. Now one of the problems is that the default ACS_XXXX characters become double-width on Windows console, thus breaking the alignment.
I tried looking for other characters to do the job, like '-' or '|' in basic ASCII, but none of them looks good because the line is not con... | stackexchange/codereview |
I am new to python, I come here from the land of PHP. I constructed a SQL query like this in python based on my PHP knowledge and I get warnings and errors
cursor_.execute("update posts set comment_count = comment_count + "+str(cursor_.rowcount)+" where ID = " + str(postid))
# rowcount here is int
What is the right wa... | stackexchange/codereview |
Trying to make a quick and dirty news system.
Have a basic XML file.
<?xml version="1.0" encoding="ISO-8859-1"?>
<articles>
<article id="1">
<title>Article title 001</title>
<short>Short text</short>
<long>Long text</long>
</article>
<article id="2">
<title>Article title 002</title>
<short>Short ... | stackexchange/codereview |
I'm reading about indexes in my database book and I was wondering if I was correct in my assumption that a WHERE clause with a non-constant expression in it will not use the index.
So if i have
SELECT * FROM statuses WHERE app_user_id % 10 = 0;
This would not use an index created on app_user_id. But
SELECT * FROM sta... | stackexchange/codereview |
I'm create project using Josh Smith THE MODEL-VIEW-VIEWMODEL (MVVM) DESIGN PATTER FOR WPF
But has one problem. Same workspace shown same operation. My VIEW contains tabcontrol. after creating 2 or more same workspace,when i changing selected index for tabcontrol from any workspace, other same workspace tabcontrol shown... | stackexchange/codereview |
I have java service which communicates over https. I want to connect to this service from C#.
I am getting this exception:
System.ServiceModel.FaultException:
WSDoAllReceiver: Incoming message does
not contain required Security header.
Someone knows what is wrong?
C# Code:
EndpointAddress address = new EndpointAd... | stackexchange/codereview |
We have a modal view that contains a Table view that contains UITableViewCells used to edit an item. On the iPhone everything works fine, but on the iPad we're unable to get the UITableViewCell to register as anything besides 320 px wide. It will basically display correctly, but the items inside of the cell align as if... | stackexchange/codereview |
I'm trying to dynamically send a SOAP request to different webservices. Each webservice has its own ID, so I just basically have to change the ID of the webservice in the URL, E.G.:
http://mywebservice.com/ID/servicedosomething
Anyway, I don't know how to do this manually. I can't reference the services because I would... | stackexchange/codereview |
I am working on finishing up a graph generated using ggplot2 like so...
ggplot(timeSeries, aes(x=Date, y=Unique.Visitors, colour=Revenue))
+ geom_point() + stat_smooth() + scale_y_continuous(formatter=comma)
I have attached the result and you can see the numeric values in the legend for Revenue do not have a comma. H... | stackexchange/codereview |
I'm doing web interface testing program which should open two urls in two webkit windows simultaneously.
I already did the code for the test automation.
1) User pushes 'Go' button and webkit (QWidget) window opens
2) TestBot class object performs tests
3) Closes
Now my question: After clicking on the button 'Go', how d... | stackexchange/codereview |
I'm creating an application which should show a progress bar in the dock icon. Currently I have this, but it's not working:
NSProgressIndicator *progressIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(0.0f, 0.0f, 10.0f, 20.0f)];
[progressIndicator setStyle:NSProgressIndicatorBarStyle];
[progress... | stackexchange/codereview |
For me, the best feature in Maven is not having to keep 3rd party libraries at part of the source tree. Is there a tool for .Net/Visual Studio that does something like that?
| stackexchange/codereview |
I would like to make a simple user login/registration system using PHP and mysql. I don't need to get any information beyond what is necessary for the user to log in and out. I want to make sure that the system is secure.
The way that I currently understand how it should work is:
Registration
User enters their email ad... | stackexchange/codereview |
This I think may be a silly question, but I have become quite confused on what I should do here for the best.
When salting a password hash, should the salt also be hashed or left as plaintext?
NOTE: I am hashing a password in SHA-256 and the Salt is a pre defined string as only one password will ever be stored at a tim... | stackexchange/codereview |
A long time ago, I remember using some Solaris make, and they had an ingenious option that would automatically detect when the compiler options had changed, and rebuild all rules appropriately. For example, suppose I switch from:
g++ -O3
to
g++ -g
Then all files should be recompiled. I'm using gnu make, and haven't ... | stackexchange/codereview |
I am trying to open the file in browser (browser will give me Open/Save dialog box). This is what I am using
FileStream MyFileStream = new FileStream(@"C:\bb.txt", FileMode.Open);
long FileSize;
FileSize = MyFileStream.Length;
byte[] Buffer = new byte[(int)FileSize];
MyFileStream.Read(Buffer, 0, (int)MyFileStr... | stackexchange/codereview |
Possible Duplicate:
Asp.net MVC page is giving Mime type warnings for image files
I am working in my ASP.NET MVC app within VS 2010 and so I use the development server for this purpose.
When I enable resource traking on Chrome Developer tool I am seeing a plethora of warnings regarding the images of my app. The warn... | stackexchange/codereview |
I have been unsuccessfully trying to find an article or post listing functional limitations of WiX (Windows Installer XML)/WiX Toolset. After using WiX for a couple of weeks, I can think of at least two limitations in the most recent RTM version (v3.0):
WiX Toolset cannot make a bootstrapper (setup.exe).
WiX Toolset c... | stackexchange/codereview |
For example, multithreading would never work if mutexes were not resilient to multithreaded access (e.g., two simultaneous calls to mutex.lock() can't screw things up).
Does this extend to condition variables too? Specifically, I want to release a lock and then call cond.notify_one(). Theoretically, another thread coul... | stackexchange/codereview |
Possible Duplicate:
Any recommendations for a CSS minifier?
I am looking for a css compressor that can run on our build server that can be executed on a number of css files. Does anyone know of any good ones that work offline?
| stackexchange/codereview |
I want to send some data (NOT MULTIMEDIA) through an SMS message in Android. Can this be done? I just want to send a very small amount of data from one phone to another, as XML or something.
| stackexchange/codereview |
I'm extracting some data from AS400 using excel macro. In the AS400, this particular column (Ref), shows 20100729000078154 but when I extracted it to excel, it will be 2.01007E+16. I need to hv 20100729000078154 as my final output. This is the macro that I used to extract the info from AS400 :-
Sub Extract()
Dim StrSQ... | stackexchange/codereview |
I need to do redirect my site visitors to a third party site, without the original referrer showing as the urls disclose private information.
Is there a way to instruct a browser redirection without a referrer being sent to the destination site? E.g. using javascript?
Thanks
| stackexchange/codereview |
We currently have a simple Log class that can take in an exception. In our business logic if we happen to need a try/catch around a specific set of code, we log the exception and then rethrow it. The problem is that our Log class is in a common dll and when it writes the log I want to be able to also grab the path of... | stackexchange/codereview |
The shareware registration system I'm currently developing embeds the public DSA key in the executable itself, and the private key resides on a server. (For the sake of discussion let's assume that the server is 100% secure, and there is no way for anybody to get their hands on the private key.)
Whenever the program is... | stackexchange/codereview |
My Job wants me to create a popup with an updatepanel inside of it. The updatepanel would have a wizard control that would take you through some steps.
Would it be better to use an iframe to simulate an updatepanel between steps or just use an updatepanel?
| stackexchange/codereview |
I need to redirect requests for PDFs to an html page that shows the requested pdf in a frame/iframe
My fear is that some browsers (at least IE used to do this) will hand over the request to Acrobat reader. I can imagine that Acrobat will not be too happy with an html page instead of application/pdf
Thanks for any infor... | stackexchange/codereview |
I am using Razor view with asp mvc preview 3
I am trying to create some methods which I would like available directly in the views. These are not really Html helper methods so I don't think extending HtmlHelper makes sense?
my goal, be able to call methods in the view i.e.
@HelloWorld(); vs @Html.HelloWorld()
I can ge... | stackexchange/codereview |
Prawn::Document::Snapshot is a module in the prawn library, so we can include this in our modules. But Prawn::Document::BoundingBox is not a module and it is a class, so how am i suppose to use(include) it in my module? And is inheritance the only way to use that class?
| stackexchange/codereview |
I am just starting out with Android and I am attempting my first test app, but I am a bit stuck.
I have an SQLite database and a user is selecting a picture and a reference to this a long with a short description is getting stored in the database.
This is all working fine, now I want to bind the images from to database... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.