instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm working on a project where I need to replace text urls anywhere from domain.com to www.domain.com to http(s)://www.domain.com and e-mail addresses to the proper html <a> tag. I was using a great solution in the past, but it used the now depreciated eregi_replace function. On top of that, the regular expression used... | stackexchange/codereview |
So I am currently working on a universal binary for an app that is to be ran on iPad and iPhone. The differences are basically only UI changes.
So, with that in mind, I have a class called ConfigurationController that is of type UIViewController. I then sub class ConfigurationController into iPadConfigurationController... | stackexchange/codereview |
What is the best way to store monetary values in MySql.
I've seen this: decimal(5,2)
but then you can't enter in more than $999.99 for the amount. I mean I know you can change the 5 to something else but this doesn't seem like the most appropriate way to do this.. then again I'm not sure that's why I'm posting.
I've al... | stackexchange/codereview |
In OS's like WS2008R2 and its compliment 7, I need to hibernate one (of two) hard drives. The hard drive in question gets hot (cos its old) and is only used to write images of the main HD too once a week.
I would like to issue it a "sleep" or "hibernate" command.
Also, I dont want it to wake up when unless an app is ne... | stackexchange/codereview |
I am getting different results from regex match when using both regular JS and jQuery v1.4.2 and unable to figure out why. Only match string should be returned.
I use jQuery to grab the whole table via the parent ID using .html(). textToSearch is shorten.
textToSearch = '<tr><th colspan="5">my match with spaces here (<... | stackexchange/codereview |
I have an issue with Full-Text Indexing on SQL Server 2008 x64.
I have three tables:
TableA with 90 000 rows
TableB with 12 000 000 rows
TableC with 22 000 000 rows
I created FTS catalogs with autopopulation.
When I queried TableA :
Select * from TableA where Contains(field1, '"j*"')
I see 11000 records less then 1 s... | stackexchange/codereview |
I would like to learn more about how to use Selenium IDE and RC for creating good automation tests. Is there anybody who is interested in sharing info. or discussing this? Especially for things like:
1) What's a good way to organize the UI tests? Right now I am executing these tests thru NUnit and that executes the tes... | stackexchange/codereview |
I'm a newbie, and the monads get me totally confused. Given a list of filenames i'd like to know whether all the files exist.
Generally, i'd like to do:
import System.Directory
allFilesPresent files = foldr (&&) True (map doesFileExist files)
However i do not know what's the right way to do it, because there's IO Bool... | stackexchange/codereview |
I have a list of images (say 180 images of sequence) to animate. If I use UIImageView with its default image sequence, I get memory issue.
I wanted to use CoreAnimation API, but really don't know how to do it?
What is the best way to do this.
Regards
iWasRobot :P
| stackexchange/codereview |
I want to keep track of a particular feature of the Linux kernel using GIT.
For example say ext3 file system or the arm architecture dependent code. So, I want to configure GIT such that it will show me all the commits and diffs which are concerned with ext3 or ARM.
How could I do that?
| stackexchange/codereview |
Suppose I define a function in C++ as follows:
void foo(int &x) const {
x = x+10;
}
And suppose I call it as follows:
int x = 5;
foo(x);
Now typically (without the const keyword), this would successfully change the value of x from the caller's perspective since the variable is passed by reference. Does the const ke... | stackexchange/codereview |
I am trying to create an array of Arraylists in Java. I have declared it in the following way:
ArrayList[][][] arrayQ = new ArrayList[90][13][18];
for (int i = 0; i < 90; i++) {
for (int j = 0; j < 13; j++) {
for (int k = 0; k < 18; k++) {
arrayQ[i][j][k] = new ArrayList<int>();
}
}
}
However, ad... | stackexchange/codereview |
I am doing an ipad aplication aplication sending scanned photos and signature images that works fine, but while downloading them I have a problem, on sever side they are encoding the image files to base 64 , but I am not getting how to decode the image files at the client side.
Thanks,
Kumar Y R
| stackexchange/codereview |
Actually I need to convert string data (string s="76473") into int array (int[]={7,6,4,7,3})
also want to know how can I got it by 2 or 3 numbers like {76,47,03} / {764,073}
thanks
| stackexchange/codereview |
I have joined together two collections from an XML file containing information regarding orders at a restaurant and their order numbers, which items are in those orders, and how much each item costs. I need to find which order is the most expensive and which is the least expensive using LINQ operations. I have gotten t... | stackexchange/codereview |
I have a PHP class that creates a SQL query based on values entered from a form. I'm getting
Incorrect syntax near the keyword 'WHERE'. ) )
Here is my code. The problem is occurring around each of the WHERE clauses, (already dealing with SQL injections btw).
if($from != ''){
$from = date('Y-m-d H:i:s',str... | stackexchange/codereview |
I am having problems with tortoiseSVN and Subversion. Process is as follows:
I create a new repository on computer A.
I checkout the repository to a working copy on computer B (we use a peer to peer network, both PCs with Windows Vista).
I copy files and directories for an ASP.NET website into the working copy.
I add... | stackexchange/codereview |
I'm trying to perform GLM (Generalized linear model) repeatedly within a python script (within a loop).
1- I tried to use Stats within Scipy glm function but description is quite inexistant and I think I did not use it well --> error message "ValueError: only ttest_ind implemented". I searched within stats.py file and ... | stackexchange/codereview |
currently I use valgrind. but i look something that does no effect the execution of the program.
| stackexchange/codereview |
I'm troubleshooting a Mapper problem and I'm running into an issue trying to use a Mapper class inside of the Scala/Lift console. Our MetaMappers have their datasource configured through a ConnectionIdentifier that points to a JDBC datasource configured in JNDI. This works great when bootstrapping through Jetty.
When ... | stackexchange/codereview |
Just a quick newbie PHP syntax question.
I have a variable, let's call it $tabs which always contains a string of numbers separated by commas, like so: 24,35,43,21
I also have a variable that's an array:
$args = array('post_type' => 'page', 'post__in' => array(27,19,29), 'order' => 'ASC');
That's of course WordPress. ... | stackexchange/codereview |
I have bunch of native C++ objects and classes contains DTL maps, maps of maps and lists and vectors.
I need to call managed C++ functions from C++ native code and need to pass these native objects and STL containers(lists,maps , maps of maps) to C++/CLI. It needs to marshal or some how serialize these objects. How can... | stackexchange/codereview |
If I have a video streaming server (e.g. IIS Media Services) with a live video streaming, I want the user to select from a list of interesting parts of that video and then play just that bit.
For example, if I'm interested in a 25s clip 20m into the full length I want to jump to that bit and then close the video player... | stackexchange/codereview |
When I describe admin options for a model it's possible to put any method in 'list_display' then we can add 'allow_tags=True' and get HTML. Is there any same options but for 'changeview' form?
I can change template for the form but there is some calculation which returns HTML, so It's not good idea to put them all to a... | stackexchange/codereview |
I'm trying to use libRocket in an iPhone application (with cocos2d), but I can't seem to get over OpenGL error 0x0500 in -[EAGLView swapBuffers]. It seems to be triggered when calling glDrawElements(GL_TRIANGLES, num_indices, GL_UNSIGNED_INT, indices); in ShellRenderInterfaceOpenGL.
I had to change GL_RGB8 to GL_RGB i... | stackexchange/codereview |
I have to get size of object which type I does not know. It's a template where I want to achieve sth like this:
void sth(T data)
{
System.out.println("Data size = ", sizeof(data));
}
How I can do this in Java?
sizeof - like a C sizeof ;)
| stackexchange/codereview |
Is there an application which allows me to see what is being sent to a DLL from a process?
I have a process and I have a DLL and I would like to monitor the parameters that are being sent to the functions so that I can use the DLL myself.
The EXPORT of the DLL is.
??0CCPCompressor@@AAE@XZ
??0CCPExpandor@@AAE@XZ
??1CCPC... | stackexchange/codereview |
So I wonder what would be shortest (in terms of effective lines) open AL code for reading data from default microphone and outputting on to default loudspeakers?
I am developing on windows 7 under Visual Studio 2008
| stackexchange/codereview |
I am working with Gxt. I need to set focus to the first enabled field on the page. But I have a lot of pages and I want to centralize that behaviour. There is a lack of documentation in Gxt so I wonder if somebody has met such a problem and can help me.
Now it goes like that in each component's class
protected void res... | stackexchange/codereview |
I have wsdl file with me.But i don't have access to the file where it is deployed.
I need to generate proxy class using the WSDl file. I am getting error while using svcutil.ece to generate proxy file
Error: Cannot import wsdl:port Detail:
Cannot find definition for
http://www.cii.com/Soa/Foundation:Basi
cHttp.... | stackexchange/codereview |
This is blowing my mind.
All I want to do is basic string comparison on a long varchar field.
I have a table of approx. 12M records.
If I query for MY_FIELD='a string', I get a count of 25947, which seems about right.
If I query for MY_FIELD!='a string', I get a count of 989.
Shouldn't these 2 counts add up to the full... | stackexchange/codereview |
Lets say I am fetching a specific episode of a series.
What would be the best way to get the surrounding episodes by episode number?
Simplified model:
class Episode(models.Model):
series = models.ForeignKey(Series)
number = models.IntegerField()
For example, episode 10 would fetch episodes 8-12.
Episode 1 woul... | stackexchange/codereview |
This is probably simple, but im trying to try and understand pointers better.
Lets say I have a struct
struct Person{
char Name[20];
char ID[15];
char Address[50];
char Number[15];
};
and lets say I have a bunch of these stored in memory like one after the other.
so now i declare a new pointer to the struct. ... | stackexchange/codereview |
Here is my code:
Dim Seat As String
Seat = txtSeat.Text.ToUpper
If Seat = "BOX" Then
txtPrice.Text = FormatCurrency(75)
ElseIf Seat = "PAVILION" Then
txtPrice.Text = FormatCurrency(30)
ElseIf Seat = "LAWN" Then
txtPrice.Text = FormatCurrency(21)
End If
My ordeal is I n... | stackexchange/codereview |
I am new to MVVMLight and have started to use it in my WP7 app. I have a View/page which registers for MessageDialogs and then my VM sends the message to show it. This works great. However, when you go back to the previous screen (with WP7 back button) and then enter the page again (using AppBar menu item) then the mes... | stackexchange/codereview |
I am currently writing a stack class that uses linked lists. I feel like i am done but I keep getting an Unresolved external error.
Here it is:
Error: Unresolved external 'Stack<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::Node::Node(std::basic_string<char, std::char_traits<char>, std::allo... | stackexchange/codereview |
I tend to assume that getters are little more than an access control wrapper around an otherwise fairly lightweight set of instructions to return a value (or set of values).
As a result, when I find myself writing longer and more CPU-hungry setters, I feel Perhaps this is not the smartest move. In calling a getter in m... | stackexchange/codereview |
for example a have simple rails app with two models, users and books. now i what to let the user save books to their favorites list. where do i put the logic (users_controller?) to make it RESTful?
| stackexchange/codereview |
i'm having a ListView control with no columns.
an a list
List<String> MyList=new List<string>();
i need to create columns for each list MyList item in the ListView along with one another column for Serial Number.
For example if MyList contains "A", "B" ,"C"
then the list view will be like
I know that we can do this ... | stackexchange/codereview |
It's kind of subjective, but I'm having troubles getting LLVM JIT up to speed. Jitting large bodies of code take 50 times as much time as just interpreting them even with lazy compilation turned on.
So I was wondering how can I speeding jitting up, what kind of settings I can use?
Any other recommendations?
| stackexchange/codereview |
Possible Duplicate:
Does C# support multiple inheritance?
Does C# support multiple inheritance?
| stackexchange/codereview |
How to pass a variable to regular expression like this?
match($0, /([^ ]+) (GET|POST|PUT|DELETE) ([^?]+)[^ ]+ HTTP\/[^ ]+ \"(VAR)\" ([^ ]+) ([^ ]+) ([^ ]+)/, matches)
| stackexchange/codereview |
I have .net3.5 C# application.
The application uses EntityFramework as its DB interface.
This applications calls c++ unmanaged dll which uses the DB as well. This dll updates the DB.
I want to be able to rollback. I want this operation to include the changes done by the main application and the changes done by the dll.... | stackexchange/codereview |
I have some queries.
By default Google appengine (cloud based deployment platform) does not support mysql or any database for that matter. So we thought of using Amazon RDS as a option (Since it is in cloud.). After reading the documentations, i understood that amazon exposes the web services and provides API s for b... | stackexchange/codereview |
I've gone editing code -> which is never a good thing!
the code is for a file uploader in MVC. The thing was I was uploading two files at a time which meant they were inserted into separate rows in a database. This is the original code:
public ActionResult Index()
{
ViewData["Message"] = "Convert your ... | stackexchange/codereview |
Hallo fellow members,
I run into a very strange problem today and I am not exactly sure as to what is causing it. Here is a function which I use to get the current working directory :
#ifdef _WIN32
#include <direct.h>
#define GetCurrentDir _getcwd
#else
#error "There is currently no support for non windows based syste... | stackexchange/codereview |
I have an MVC application for our intranet which uses NTLM authentication however I want to be able to allow external users to access the application. All external connections to our intranet come via a NAT and therefore have a single IP address which can be used to denote if the request is external or not. I want all ... | stackexchange/codereview |
I have created one list view.. it is having 5 items...
Now I want split the list items...
when user clickon the first listitem or focus on first item then immediately it has to show followed some text views or other things..but it has to show same list..
and agian same when he clickon or focus on the second item that ... | stackexchange/codereview |
I have a stackpanel where I have a checkbox and a textblock defined in the xaml, I then add alot of dynamicly created controlls during runtime, and then add these with the stackpanel.children.add(controll) .
The problem is that I want to add all my dynamicly created controlls on top of the ones defined in the xaml. Ho... | stackexchange/codereview |
I have an object of type Foo.
Foo has an Id (int)
a) Is the code bellow "good"?
b) What should I return if both are null?
// overload operator ==
public static bool operator ==(Foo a, Foo b)
{
if (ReferenceEquals(x, y))
{
return true;
}
if (x == null && y == null)
{
return // ???... | stackexchange/codereview |
When I see the border-top property used by different authors, they all say to use it a different way.
For example, at http://www.w3schools.com/css/pr_border-top.asp it is defined in this order:
width style color
If I define in another way, like color or style first, will I get problems?
| stackexchange/codereview |
I have this table class:
class Songs extends Zend_Db_Table_Abstract
{
protected $_name = 'songs';
protected $_primary = 'song_id';
protected $_rowClass = 'Song';
}
And a class that extends the class above with some custom logic.
class Song extends Zend_Db_Table_Row_Abstract
{
protected function _insert... | stackexchange/codereview |
i am debugging a datagridview1.datasource
how can i see the actual data that is stored inside datasource?
| stackexchange/codereview |
OK, I've done my best to find a thread like this but no luck so far and need some help crafting my SQL query. I'm working on a real estate project and have a form with multiple dropdowns, like so:
<select name="bed" id="bed">
<option value="0">Any</option>
<option value="1">1 Bedroom</option>
... | stackexchange/codereview |
I've got a strange problem with jQuery and CSS; it seems a jQuery bug; I've tried to search around but infos are ugly.
There's a large photo as background of the body; when I click on a button I wish to obtain a simple jQuery animation of the background, from "bottom" position to "50%" position.
Well, if I set $("body... | stackexchange/codereview |
Greetings, fellow SO people.
I am working on a project that has me working with an Access database. Here's the setup:
I have three tables:
Tab1 with employee names, ID#s, Manager names and Manager ID#s.
Tab2 with chat info, employee ID#s and employee names.
Tab3 with Manager ID#s, Manager names and team names.
I curr... | stackexchange/codereview |
I know that coalesce will return the first non-null value that is passed to it. is there something simlilar that will return the first not empty / not false value?
example:
select FunctionIWant(0,'','banana') as fruit; //returns banana.
| stackexchange/codereview |
I have a project on GitHub behind a private repository. I want to make the repo public. However, my project uses secret keys.
How can I make the project public while still protecting the "history" of those secret keys? I'm guessing I'm SOL, and should simply invalidate the keys to prevent their use.
Note that this is n... | stackexchange/codereview |
all, i want to create multiple handlers that gets triggered based on users selection, but this handlers implement the same runnable method. the only difference is that they call different postDelayed() method. how do i go about achieving this without rewriting the same code for the runnable?
i am still not clear about... | stackexchange/codereview |
Hello
I have a TabHost activity with two child activities. What would be the best solution to add a "left - right" animation for the child activities?
Best regards!
| stackexchange/codereview |
I've been reading up on multithreading and shared resources access and one of the many (for me) new concepts is the mutex lock. What I can't seem to find out is what is actually happening to the thread that finds a "critical section" is locked. It says in many places that the thread gets "blocked", but what does that m... | stackexchange/codereview |
I'm attempting to make a XML-RPC call that requires HmacSHA-256 hashing of a particular string. I'm currently using the Jasypt library with the following code:
StandardPBEStringEncryptor sha256 = new StandardPBEStringEncryptor();
sha256.setPassword(key);
sha256.setAlgorithm("PBEWithHmacSHA2");
On ... | stackexchange/codereview |
I have a strong-named .NET assembly PluginHost which dynamically loads plugin-assemblies using Assembly.LoadFrom(). It has an Assembly- and File-version of 1.0.0.0. Every plugin-assembly references PluginHost because in PluginHost there is an interface defined, every plugin has to implement.
Now I want to deploy an up... | stackexchange/codereview |
I'm using SIM. I perform a transaction, but Authorize.net doesn't return all the transaction details that I need in the response. So I have to manually make a call for the details after the transaction.
This is the API I found
I'm unfamiliar with SOAP. How can I do this?
| stackexchange/codereview |
Win2k3 sp2 w/ ii6, python7 configured as a script mapping (detailed later). New to python, using the following code works as expected:
import logging as log
import time
import win32api
LOG_FILENAME="C:\\logs\\iistest.log"
TIME_STEP=.0001
log.basicConfig(filename=LOG_FILENAME,filemode="w",level=log.DEBUG)
try:
... | stackexchange/codereview |
I need a way I can read the lines and extract the pixel info into some structure so I can use the putpixel function to create an image based on the ppm p3 file.
I'm working with Python Imaging Library (PIL) and I want to open a PPM image and display it as an image on the screen.
How can I do that using only PIL?
This i... | stackexchange/codereview |
I have the following string:
$foo = "'fdsfdsf', 'fsdfdsfdsfdsfds fdsf sdfd f sfs', 'fsdfsdfsd f' fdfsdfdsfdsfsf";
I want to get everything between ' ' but from first to last occurrence.
I have tried to search my string by /.*('.*').*/ but only 'fdsfdsf' was taken, how to turn on greedy or something like that?
| stackexchange/codereview |
In my unmanaged C++ source i have:
#define _USE_MATH_DEFINES
#include <cmath>
and then I use M_PI a couple of times.
Compiling in Debug configuration works flawlessly but in Release it gives:
error C2065: 'M_PI' : undeclared identifier
What could be the configuration property causing this?
| stackexchange/codereview |
How many Multichannel Mixer audio units can you use simultaneously in an iOS 4.0 application? Is there a hard limit to this?
| stackexchange/codereview |
Say i had a theme file Button.xaml for standard button.
By merged in application resource dictionary it can implicitly applied in application project designer.
But after i move Button.xaml to component project, the component project designer can not implicitly apply the theme file.
How can i make that theme file works ... | stackexchange/codereview |
i can't understand following defining pointer variable. can you help me?
double(*)(double *) foo;
note : sory, i edit name of variable func to foo.
| stackexchange/codereview |
I would like to generate a set of still-frames from an animated WPF storyboard.
My goal is to be able to specify a frame-rate, and 'record' any WPF Storyboard, which will generate still PNG images of each 'step' in the timeline. Then I can wire them together any way I like (animated GIF, AVI etc etc).
Can anyone with i... | stackexchange/codereview |
im creating class so i can understand them better. when im creating a class what should header files be used for and cpp?
| stackexchange/codereview |
I'm considering using Mustache.js for a small project I'm working on.... The one thing that I haven't seen an answer for is - Which is the best way to go about hooking up events?
I was thing of creating a tree menu with mustache but I can't think which would be the best or cleanest way to hook up events to each node?
| stackexchange/codereview |
I am loading one shared library from another. Lets say foo2.so from foo1.so
I am using dlopen followed by dlsym
dlopen succeed with proper handle but dlsym returns with "symbol not found" error .I have used dlerror to print the error.
These are the things i tried. In foo2.so .mk file I added
LOCAL_LDFLAGS += -Wl,--exp... | stackexchange/codereview |
I am trying to use OData4J to retrieve a list of Users from the StackOverflow OData service (onto an Android 2.1 device), but it isn't working.
public static Enumerable<OEntity> getUserInfo() {
ODataConsumer c = ODataConsumer.create("https://odata.sqlazurelabs.com/OData.svc/v0.1/rp1uiewita/StackOverflow/");
retur... | stackexchange/codereview |
MS Word has this capability in its Hebrew and Arabic versions. I would like to achieve this in a windows desktop application, using .Net (may be with win-api calls).
| stackexchange/codereview |
In my UpdatePanel, the user can page, sort and filter a gridview all using AJAX, then they select a row which causes the post to post back and a textbox to be populated with the rows ID.
Problem is, it seems I can't register both an AsyncPostBackTrigger and a PostBackTrigger to the same control - so how would I accompl... | stackexchange/codereview |
Hi I want to add a border to galleria big image. How can I give that?
I give like this
div.galleria-image img{ border: 5px solid #ccc; }
but it cuts right or bottom border and also shows a top border to the thumbail images.
this is my css file.
.galleria-container{position:relative;overflow:hidden; height:570px; m... | stackexchange/codereview |
What is the best way to search for a word in a string
preg_match("/word/",$string)
stripos("word",$string)
Or is there a better way
| stackexchange/codereview |
My professor gave my class an assignment today based on object oriented programming in Pygame. Basically he has said that the game that we are to create will be void of a main game loop. While I believe that it is possible to do this (and this question has stated that it is possible) I don't believe that this is requi... | stackexchange/codereview |
Given this code in Java:
int i,j;
String[] names;
names[0] = new String("mary");
names[1] = "John";
i = names.length;
j = names[0].length();
I need to find the error. As far as I can tell, lines 1, 2, 4, and 5 are correct because they involve simple instance variables, adding elements to arrays, and finding the length... | stackexchange/codereview |
I'm still a newb to phpunit so I hope to be explaining this correctly.
I'm trying to run a controller test with PHPUnit, however the plugin that is using Zend_Auth is redirecting back to the login.
How do I create the stub data? I tried placing it in my setUp but Zend_Auth appears to be reinstantiated after setUp.
Tha... | stackexchange/codereview |
How can I transcode a wav file to ogg vorbis format using Python?
I can convert to mp3 using PyMedia 1.3.7.3, but when I set the output stream type to 'ogg', I get the error: oggvorbis_encode_init: init_encoder failed and the script dies.
| stackexchange/codereview |
I thought I'd be getting along alright with F# since I'm decent at Haskell, but I feel like I'm being stumped by dead simple issues. I have some parsing code for a simple JSON parser, like this:
let rec parseObject tokens = function
| '"' :: cs -> parseString tokens cs
| ':' :: cs -> parseValue tokens cs
| '}' :: c... | stackexchange/codereview |
My java program writes information on PDF form. Does anyone know a good way to write test cases using JUnit to make sure it has printed the required information on PDF form.
| stackexchange/codereview |
I'm relatively new to Python and would like to know if I'm reinventing a wheel or do things in a non-pythonic way - read wrong.
I'm rewriting some parser originally written in Lua. There is one function which accepts a field name from imported table and its value, does some actions on value and stores it in target dict... | stackexchange/codereview |
Like this one:
https://aniscartujo.com/webproxy/default.aspx?prx=http://google.com
| stackexchange/codereview |
I am worried about than am I properly adding object and releasing them.
What NSMutableArray actually contain - object's copy or just a pointer to them?
What is the sequence in working with NSMutableArray? (alloc, init, work, release)
How to retain and release it properly?
NSMutableArray *listData = [[NSMutableArray al... | stackexchange/codereview |
I hear that to access permission like:
- READ_FRAME_BUFFER
The app needs to be signed with system key.
If I understand correctly, that means the manufacturer sign the .apk file.
Question:
- Is it required that the manufacturer signed .apk to be shipped with a system image?
or can it still be downloaded in the market ... | stackexchange/codereview |
I have the following code I am trying to understand:
>>> class DistanceFrom(object):
def __init__(self, origin):
self.origin = origin
def __call__(self, x):
return abs(x - self.origin)
>>> nums = [1, 37, 42, 101, 13, 9, -20]
>>> nums.sort(key=DistanceFrom(10))
>>> nums
[9, 13,... | stackexchange/codereview |
When p4merge is invoked from p4v it displays depot paths as labels on the files. I would like to use p4merge as a diff viewer for SVN, and to that end I have this batch file:
@echo off
pause
p4merge %6 %7
This works, but the labels appearing on the left and right panels are the names of the temporary files SVN has cre... | stackexchange/codereview |
Does there exist a method in C# to get the relative path given two absolute path inputs?
That is I would have two inputs (with the first folder as the base) such as
c:\temp1\adam\
and
c:\temp1\jamie\
Then the output would be
..\jamie\
| stackexchange/codereview |
I've made a simple bash script for server admininstration and I cannot figure how can I run it in safely inside a php page: I'd like to create a php admininstration page but I obviously don't want to hard-code root password anyware. Let's make an example (this is a foo script, of course)
#!/bin/bash
touch /$1
this sim... | stackexchange/codereview |
I have a PreferenceActivity that loads its preferences from an XML file which looks like this
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:key="first_preferencescreen">
<ListPreference
android:key="currlist"
android:title="Ch... | stackexchange/codereview |
I wrote a JMS application that runs within a web service in Glassfish (also deployed it in JBoss), I noticed that after I process several messages through a MessageListener MDP, the JMS server runs out of connections!
Tried it with both Apache ActiveMQ and Glassfish internal JMS broker (openMQ?)
Is there a way to chec... | stackexchange/codereview |
How can i access in two different databases at the same time, i mean can i implement a search from database1 and save for example the id or another information to a database2?
| stackexchange/codereview |
I built a control with a RenderingTemplate for a custom ContentType. It contains additional buttons. If the code behind one button fails, I want to inform the user with a message box.
I tried
string script = "<script language='javascript'>MsgBox('" + errorMessage + "')</script>";
Page.ClientScript.RegisterClientScriptB... | stackexchange/codereview |
A bunch of system variables are missing in Cygwin when using ssh. Some that I noticed include:
A proper PATH including the Visual Studio paths.
VS80COMNTOOLS
TEMP
TMP
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
FP_NO_HOST_CHECK
PSMODULEPATH
This impacts trying to compile source, su... | stackexchange/codereview |
I want to initialize an array on one line with an implicit do loop. However, I always get a syntax or shape error. Can anyone help me correct the following construct?
integer myarray :: (maxdim, nr)
myarray(1:maxdim,nr) = (/ (/i,i=1,maxdim/),nr /)
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.