instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm working on a wordpress theme and want to switch between two thumbnail images on hover.
The code that i have looks something like this :
<a class="thumb" href="posturl"> <img src="img1.jpg" class="image1" /> <img src="img2.jpg" class="image2" /> </a>
So now I need some css to change between image1 and image2 on ho... | stackexchange/codereview |
I need to draw a graph of the response time of various requests into my webapp. I have parsed the access logs from my application to produce a data file in the following format:
DateTime,ResponseTime,RequestType
For example:
09/Nov/2010:21:00:00,0.002,EVENT
09/Nov/2010:21:00:01,0.040,ACTION
My data file has 500k line... | stackexchange/codereview |
In C#, consider we have a generic class and a concrete class
[Serializable]
public class GenericUser
{ ...
[Serializable]
public class ConcreteUser : GenericUser
{ ...
is it necessary to mark ConcreteUser as [Serializable] or inheritance will take care of it?
| stackexchange/codereview |
Everytime I svn update I get the following error
Failed to add file path/to/file: object of the same name is already scheduled for addition
I tried to rename the file, delete it...but the error is still there.
I've read this article and say something about reverting...but I still can't understand how to do it...
http:... | stackexchange/codereview |
I'm calling a method I've written in app delegate which calls an alertView to ask the user for a password, I use the method in applicationWillEnterForeground also.
So the value is set in clickedButtonAtIndex in app delegate.
How do I determine when the value has been set in the view controller (where I'm calling the me... | stackexchange/codereview |
I am a little unsure about the right forum for this question. It is between theoretical comp. sci./math and programming.
I use Mersenne-Twister to generate pseudo random numbers. Now, starting from a given seed, I would like to jump to the n-th number in the sequence.
I have seen this: http://www-personal.umich.edu... | stackexchange/codereview |
This seems to be a white elephant for the iPhone. I've tried all sorts, even loops and I can't make it work.
I have a view that loads a table. However I've moved into object archiving and for development purposes I want to have an initial AlertView that asks if a user wants to use a saved database or download a fresh ... | stackexchange/codereview |
I write an application in PowerShell, and I want to convert seconds to date.
In C# there is an AddSeconds function that adds seconds to date. What function in PowerShell does a similar performance?
| stackexchange/codereview |
I'm trying to copy a file and the cmd returns asking if C:\test\2006 is indicating a file name or a folder name at its location
(B= file, D= folder)?
I know that I want D = folder however I can't seem to autorun this
for those able to read Dutch this is the code it returns:
Geeft C:\test\2006 een bestandsnaam of een ma... | stackexchange/codereview |
My checkbox looks like this:
<input type="checkbox" name="activate[]" class="setSetting" value="<?php echo $row["id"]; ?>">
And then i have a foreach:
$activate = $_POST['activate'];
foreach($activate as $a){
echo $a ."<br>";
}
Works fine to get the value out of. But how can i determine if th... | stackexchange/codereview |
I wrote this code in C#:
using (StreamWriter streamWriter = File.CreateText(@"C:\File.Html"))
{
streamWriter.WriteLine(TextBox2.Text);
}
This code opens File.Html and copies the value of TextBox2 But When I open File.Html all characters are on one line, even though there were multple lines of text in the TextBox.... | stackexchange/codereview |
I am running visual studio 2008 SP1 on Windows Server 2008 R2 Enterprise 64-bit. I am getting the following exception when I try to debug against IIS.
"Unable to start debugging on the web server. The object identifier does not represent a valid object".
IIS and Visual Studio are on the same box.
I've tried enabling Wi... | stackexchange/codereview |
I'm getting troubles on a simple php function!
What i want to do is:
$text = "this is my data content with many words on it";
I want to write a function that turns the variable string $text as an array like this:
$array = array("this is my", "data content with", "many words on", "it");
In other words, each array piec... | stackexchange/codereview |
The main view of my app don't have a UINavigationController but when a button is tapped it goes to a view to create an event. This CreateEvent view does have a UINavigationController to move though the differents views needed to create the new event. The UINavigationController is displayed but can't set a title or add ... | stackexchange/codereview |
I've done a few searches but I couldn't find anything about this topic. Perhaps because it is common programmer knowledge (I'm not a programmer, I've learned from necessity), or because I'm going about it the wrong way.
I would like ideas/suggestions on how to manage button states for a GUI. For example, if I have a p... | stackexchange/codereview |
I have a rather complex object that takes a few other objects as its members. Something like this:
from engine import engine
Class Car(object):
def __init__(self,engine_type):
self.engine=engine(engine_type)
Is there a pain-free approach to map such nested definitions to a database, using SQLAlchemy for ... | stackexchange/codereview |
I am planning to write a few git hooks as a project which logs the user's actions in a database. This database can then be used for querying for all his activities. The actions I am trying to log are
commit
pull
push
merge
branch
I want to get this packaged in distros which can be installed via package manager.
Git ... | stackexchange/codereview |
This may be a silly question, but I need to know it anyway. I am using the Scintilla component in my application, and I was wondering if the user should put the SciLexer.dll file somewhere in their computer when they use the application. If they do, where should it be placed?
| stackexchange/codereview |
I can build the whole project by calling MSBuild from the command line:
C:\MyProject>MSBuild MyProject.vcproj
However I didn't find any information about compiling a single file.
In essence I would like to do something like
C:\MyProject>MSBuild MyProject.vcproj /t:Compile:MySourceFile.cpp
I do not want to directly us... | stackexchange/codereview |
My Question is around usability. In most of the sites i have seen and developed i see taxonomy as a way a user would find something he is looking for in the site. But quite recently i have seen the concept of tagging. Where products services questions are tagged and can be found with the tagname. Is tagging an alternat... | stackexchange/codereview |
i have to create a xml editor in vb.net.. i have to validate xml code if there is a error in the syntax it should be displayed in a another textbox.. validation should be done while typing the xml code itself.. the error should be while typing xml coding in run time application . i should get the syntax while typing t... | stackexchange/codereview |
Just like C, you can break a long line into multiple short lines. But in Python, if I do this, there will be an indent error... Is it possible?
| stackexchange/codereview |
Is Objective C an Apple language or can you run Objective C on other platforms like linux?
| stackexchange/codereview |
I have a modified FilesInUse dialog. Just including it in project and changing reference in UI does not help - I get "ICE20: Standard Dialog: 'FilesInUse' not found in Dialog table" error when building installation project.
Browsing the Net I've found one advice - to supress ICE validation for ICE20. Well, building the... | stackexchange/codereview |
It's been announced that R3 Hostkit is being available:
http://www.rebol.com/r3/docs/concepts/host-kit.html
but I don't even know what's it's about. Could RT communicate better to me and the outside world :)
So can someone explain to me what I can do with it ? For example can I use it for interfacing it with .NET or Ja... | stackexchange/codereview |
Dear Android hackers,
I am trying to do the following in my Android App: When the User clicks on a list item in a ListActivity, a ProgressDialog should show up, some preloading should happen and after it's done, another Activity should be called using an intent.
I tried different approaches. What didn't work at all wa... | stackexchange/codereview |
In our iPhone application we have a requirement to display UK County and Area name of a location ( we have latitude and longitude) . Initially we used MAPKit framework (reverse geocoding) to get this information. But during testing we found that we are not getting correct data from Google always.
Can somebody suggest a... | stackexchange/codereview |
Is there a tool to take a PHP file, with all its dependencies to other external PHP files, and create one, huge, final PHP file that includes them all?
Thanks
| stackexchange/codereview |
For a company we are making 2 different sites, now one of those sites got an flv player in it and streams local flv files to the clients with the webpart from: http://www.aspnetflashvideo.com
Now on the second site we also want an flv player but this one without local files, it should stream the flv file from the other... | stackexchange/codereview |
I have a bit of a problem with a DropDownList I am using. When the user changes the SelectedIndex, they get redirected to the same page, but with a query string on the end based on their selected value.
Because I'm not posting, and redirecting instead, the state of the dropdownbox is not saved, so it always defaults to... | stackexchange/codereview |
I have trouble to figure out a php problem described below.
I have one PHP page that lists several users in a table (the list is generated by PHP). Next to every user, there is a "remove" button. By clicking this button, the page will redirect to a new removal confirmation page, and therefore we need to pass along info... | stackexchange/codereview |
I am creating a id card making project in wpf mvvm.I want to implement a feature to acquire photo from camera. how can implement this?Please give me some sample code.
| stackexchange/codereview |
my question is: Are your service layer bound to tecnology you use?
For example, if you using hibernate, you put into your service layer some hql-queries or criteria-queries that are only hibernate features or you call simply DAO(and dao has hibernate implementation, and maybe jdbc implementation etc..) ?
I have some tr... | stackexchange/codereview |
Quite recently I read about JavaScript call usage in MDC
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/call
one linke of the example shown below, I still don't understand.
Why are they using inheritance here like this
Prod_dept.prototype = new Product();
is this necessary? Because ther... | stackexchange/codereview |
I'm trying to create an loading icon by moving the css 'background-position' of an image in a loop:
$('#LoginButton').click(function () {
var i = 1, h = 0, top;
for (i = 0; i <= 12; i++) {
h = i * 40;
top = h + 'px';
$('#ajaxLoading').css('background-position', '0 -' + top).delay(800);... | stackexchange/codereview |
I was wondering if there's a way to Load Springs application context without having to define it in a web.xml.
I see you can use:
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
But if you wanted to use a bean you've got to getBean() to have access to it. I am thinkin... | stackexchange/codereview |
Edit:
So this question was misinterpreted to such a ludicrous degree that it has no point anymore. I don't know how, since the question that I actually asked was whether my specific implementation of this—yes, known to be pointless, yes, not remotely resembling idiomatic C++—macro was as good as it could be, and whethe... | stackexchange/codereview |
I have a game that's moving fewer than 10 small animated UIImageViews at once, maximum. I'm driving their animation with a CADisplay timer running at 60fps. Here is an example of how I move the views in my update method:
// for each insect in insectArray
insectView.center = insect.hitCenter // I pull a position from my... | stackexchange/codereview |
Suppose I have struct or class that looks something like this:
struct foo{
string attribute_1;
int attribute_2;
string attribute_3;
int value_1;
int value_2;
double value_3;
};
What are some good ways of supporting aggregate operations on collections of foo across the different attributes? E.g. I mi... | stackexchange/codereview |
I'm writing a small program, it can show and manager all files and folder in the android mobile. Now I get a problem need to help, when I click to a file icon, example a audio, i want the audio player can run and play it. Who can help me
| stackexchange/codereview |
We are refactoring a legacy web app and as a result are "killing" quite a lot of JavaScript code but we're afraid of deleting what we think is dead code due to not being sure. Is there any tool / technique for positively identifying dead code in JavaScript?
| stackexchange/codereview |
I have a dbgrid and on its datasources onchange event there is some code that does some work and it takes 2-3 seconds. when i scroll with mouse weel on dbgrid thant code on datasource works for all rows that i have scrolled but i want it to work for the last row how can i do that. there is a afterscroll event for query... | stackexchange/codereview |
As mentioned here, this component became a part of the windows operating system. However VB6 runtime may not be supported on Windows 8 and beyond. So I'm afraid this component may be going away too (even tho it is a part of windows OS). We are going to be attempting to utilize it via a C# consumer using Interop.MSScrip... | stackexchange/codereview |
I need to filter List View as per the user's input in the Edit Text Field.If the user Enter the letter 'a' i need to show the list items starts with 'a'.Can anyone give some ideas to me to solve this ? Thanks in advance?
void searchEngine(final String[] strArr){
LinearLayout llay=new LinearLayout(this);
l... | stackexchange/codereview |
Here's my dilemma, we're looking at building a new version of an online toolset. Basically we have custom pages to store information. Now, the dilemma is that we are trying to make things a little less static and we have 2 methods proposed for doing it.
Store the page information in a database and build the pages ... | stackexchange/codereview |
Iam about to create a search, But the point here is that Iam going to collect values from different activities, maybe I will store them in a keyvalue,
Where can I store the keyvalue object so I can reach from every activity without sending to eachother all the time?
okej, well iam going to store values, so i can sen... | stackexchange/codereview |
I have a translation script that allows for translators to submit arabic translations, but for some reason Ruby doesn't like the encoding. Is there a way to encode the submitted text as utf-16?
| stackexchange/codereview |
What is the difference between DOM and HTML?
| stackexchange/codereview |
I'm doing something like the following:
Bitmap mBitmap;
mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.myimage);
In onDraw I'm doing this:
canvas.drawBitmap(mBitmap,0,0,null);
My Manifest looks like this:
<supports-screens android:smallScreens="false" android:normalScreens="true" android:largeScree... | stackexchange/codereview |
I need to put a bitmap into the center of another bitmap with WPF.
I managed to create a empty picture with the dimensions I want but I don't understand how to copy another BitmapFrame into it.
BitmapSource bs = BitmapSource.Create(
width, height,
dpi, dpi,
PixelFormats.Rgb24,
null,
bits,
stride... | stackexchange/codereview |
I can not take the value from a web textarea
the code is as follows
<input type="text" name="ID1" id="subject" size="20" value="TEST1" />
<input type="text" name="ID2" id="subject" size="20" value="TEST2" />
I want to insert the value TEST1 and TEST2 in a vb.net form
and show messagebox with the value
thanks I hope ... | stackexchange/codereview |
Is it possible to add Clear when editing starts to a text view? This option is available for the text field but I couldn't find anything for the text view.
Thanks!
| stackexchange/codereview |
I am working with Spring 3 and RestTemplate. I have basically, two applications and one of them have to post values to the other app. through rest template.
When the values to post are Strings, it's work perfect, but when i have to post mixed and complex params (like MultipartFiles) i get an converter exception.
As ex... | stackexchange/codereview |
I'm using one of the new google api fonts for a heading on a site. It's Yannone Kaffeesatz and is quite a condensed typeface.
My font stack is as follows:
font-family: 'Yanone Kaffeesatz', arial, serif;
This is fine when the Yannone Kaffeesatz font renders, but if it doesn't, Arial is much more open and the headin... | stackexchange/codereview |
I've played only briefly with LightSwitch and while it looks like it could be a great framework for internal applications, I'm worried it will be like so many other tools that promised simple-to-create applications but once you varied at all from the most basic application, it became much more arduous than just doing i... | stackexchange/codereview |
I'm using C# and WCF to do web services. I have a member variable of a class that implements IEnumerable. I tried to have it be serialized as part of my data contract by doing:
[DataContract]
class Item
{
[DataMember]
private IEnumerable<KeyValuePair<string, object>> Member1
{
get { return this._Pro... | stackexchange/codereview |
I have a Rails app using Devise for authentication. Users belong to Dealers and I want to prevent users who belong to disabled dealers from being able to sign in.
Is there a straightforward way to extend Devise's authentication finder so that it will not include users from deleted dealers? Perhaps using a named scope o... | stackexchange/codereview |
I would like to have a user land on a page and see on view that depends on her role. When I tried to create two views with the same path, Views did not object. But I'm wondering if it's not meant to work this way.
| stackexchange/codereview |
I don't know too much about css so I have to ask. I have a css file that I believe resets the values. I have another css file of all of the values that I want. I can see that a td tag is being overwritten by the reset file.
display: table-cell;
vertical-align: inherit;
How do I stop this from happening? These are the ... | stackexchange/codereview |
I am pretty baffled by this one. I doubt anyone can tell me right off the bat what the issue is, but any answers suggesting ways of debugging and investigating this would be much appreciated -- I've tried putting in some debugging calls into the controller without much luck in following the path through the guts of Rai... | stackexchange/codereview |
I'm planning to use html5 capability of localstorage to write a simple application, I would like to share the database file across multiple browsers(users on various machines) I'm not too worried about locking etc, as the number of users are only 3-5. Could anybody help on how i could achieve this.
| stackexchange/codereview |
Hi
I have a site in which paypal ipn is implemented with cart..
the Payment is working fine.
But after payment iam updating my database with the return value which is getting from POST from paypal
but now iam getting this POST array as null
Any one have the idea?
please help me
Thanks in advance
| stackexchange/codereview |
I am developing an application using c# and asp. It need to access some places in the local network . There is a text box in the form which accept the path to be accessed from the user and will store it to a string variable named location.
The if loop always return false if the application run in windows 7. and it oc... | stackexchange/codereview |
What's meant by parameter (int initialCapacity) in an ArrayList, I thought it's the number of elements but it didn't work when I did this:
public class MyClass {
private ArrayList<Integer> arr;
public MyClass(int n_elements) {
arr = new ArrayList<Integer>(n_elements);
}
}
| stackexchange/codereview |
Is there a better way to write this:
User.where(:genre_id => Genre.where(:name => 'Acoustic').first.id).first.first_name
Basically, I am trying to return all users with genre 'Acoustic'.
Above will work if there are users with the Acoustic setting. But if i do:
User.where(:genre_id => Genre.where(:name => 'Pop').first... | stackexchange/codereview |
Good Morning,
I have the following line of code:
var viewModel = new ClassifiedsBrowseViewModel
{
Category = categoryModel,
Listings = categoryModel.Listings.OrderBy(c => c.Price).ToList()
};
All is good in the world, and this code works fine. But now I would like to add a sw... | stackexchange/codereview |
I have 2 arrays: colors and favorite colors.
I want to output an array with all the colors but the favorite colors on top, keeping the same sort order.
My example is working fine, but wanted to know if this is the correct (fastest) way to do this.
Thank you
$colors_arr = array("yellow","orange","red","green","blue","pu... | stackexchange/codereview |
I have a master page with three DIV blocks, say div1, div2, div3. I have a Content Web Form which is linked to this master page. From this content form, I want to programatically, write lines in say div2. How to do call this div of the master page? I mean what to write inside the tags to embed text in this div?
| stackexchange/codereview |
Hi I am trying to find the memory address of where my data gets stored.
This is the assembly code of the function.
0x08048b20 <+0>: push %ebp
0x08048b21 <+1>: mov %esp,%ebp
0x08048b23 <+3>: sub $0x28,%esp
0x08048b26 <+6>: lea -0x14(%ebp),%eax
0x08048b29 <+9>: mov %eax,(%... | stackexchange/codereview |
I'm experiencing problem with the following code, I created two buttons with onClickListener added.
It works fine for the Button -- btnAbout, I'm trying to use another way to handle btnIntro, instead of by using findViewById(...) method, but the statement will not be executed when I click btnIntro.
Why does this happ... | stackexchange/codereview |
I am trying to hook a Win32 API function. I am making a DLL from which I want to export the function, but I am already failing at the basics. My declaration is as follows:
extern "C" __declspec(dllexport) int WINAPI fnTest(void);
but the exported function name is not "fnTest" - as I would expect - but is "_fnTest@0". ... | stackexchange/codereview |
i have a case where at my JAVA application, inside a transaction i want to call another service (JMS, WebService, SMS gate way, ...etc), i don't want to depend on the result of the call (Success, Fail, Exception thrown, ... etc), so if it fails somehow it won't affect my transaction completion,
what is the best approac... | stackexchange/codereview |
Some Android application restarts automatically when i kill process manually.
How this can be possible?
Is there anyone who know how to do like this on Android platform?
| stackexchange/codereview |
I'm trying to convert a CVS repository to mercurial but can't get it to work.
I start with a clean checkout:
cvs -d :sspi;username=xxx;hostname=yyy.local:/cvsrepos checkout repo
Which works fine
I then do:
hg convert .
But it fails with:
assuming destination .-hg
initializing destination .-hg repository
connectin... | stackexchange/codereview |
I need to submit an aspx page from java. I am using HTTp Client and as well as HttpUrlConnection to do so. Calling the page is easy, but i need to set a radio button to checked state and then set the value of input field to what I am searching for and post the page.
I used post requestmethod on HttpUrlConnection and t... | stackexchange/codereview |
I'm starting to do a little game for Android.
Recently I did have a reading where the user touches the screen;)
I would like on the basis of these data, moving image.
Displays an image in the XML (imageView). What to write java code to move at that image?
I would like to rotate the image, move it anywhere on the phone ... | stackexchange/codereview |
I have a form "B" where we get all the detaills for the elements from form "A" i mean request flows from "A "to "B" .For one Element
we need to call call the Ajax request and get the Assocaited details . Now we are sending the ajax request for "change" event .
Which event needs to be used inorder to satisfy bot... | stackexchange/codereview |
Oddly enough, I didn't find this.
What's the simplest way to convert an object to a JSON string? (Edge cases like loops in the object graphs aren't of much interest to me. Let's find a solution to the simple case of class A that contains some objects of classes B,C,D and some primitives).
Basic collection support is a ... | stackexchange/codereview |
I have the following situation:
I made some commits to my local repository, and then a huge merge of another branch (~150 commits) into the master. It had a lot of conflicts in it.
Now, I want to move a commit I made before the merge to be after it before pushing.
Normally, I would use rebase -i for it.
Unfortunate... | stackexchange/codereview |
This is my program:
{
statement1;
...
background.Visbile = true;
...
statementx;
}
When I run this program, it stops at background.Visible=true; statement. Anybody know why?
More information:
background is TableLayoutPanel object.
'stop' mean program freeze and don't run to next statement.
I can't... | stackexchange/codereview |
I would like to use the \path command inside a \newcommand definition inside a latex document. However my definition does not work as I would expect it to work. A minimal example for this is
\documentclass[12pt]{article}
\usepackage{path}
\newcommand{\code}[1]{\path!{#1}!}
\begin{document}
Testing the path command wit... | stackexchange/codereview |
Well, I'm working an an ul - li multilevel menu and have problem.
Firstly, some code (I know it's not perfect but the crappy div is automatically added by Wordpress):
<nav id="page-navigation">
<div class="menu-menu-container">
<ul id="menu-menu" class="menu">
<li><a href="#">Home</a></li>
<li><a hr... | stackexchange/codereview |
I would like to plot multiple pie charts over an existing plot using absolute coordinates.
I went through the add_axes method and also the AxesGrid toolikt but couldn't find a solution.
To be more specific, I want to draw pie charts over a geographical map using the basemap module.
| stackexchange/codereview |
I have created a C# web service, a web client, and successfully debugged the service with ASP.NET Development Server (that thingy that gets activated when you just press F5). All fine. Now I need a web service that is almost the same as previous, but differs in a few lines of code. For this purpose I created two new co... | stackexchange/codereview |
Rookie question:
I have been experiencing a minor bug in my mvc2 application. I was able to trace it back to this code:
List<Stream2FieldTypes> Stream2FieldTypes = new List<Stream2FieldTypes>();
foreach (var item in stream.Stream2FieldTypes)
{
Stream2FieldTypes.Add(item);
}
The problem that I am experiencing is... | stackexchange/codereview |
I have a Google App Engine site, with multiple pages that are rendered using templates. I'd like to have a hello, user!-type greeting on the header of every page. I can call users.get_current_user().nickname()(or something like) on every handler and add that to the template values dictionary, but I was wondering if the... | stackexchange/codereview |
I've seen this question about advice for C# programmers writing Python code but I am going the opposite direction.
What are some tips, tricks, caveats for a Python programmer writing C# code?
| stackexchange/codereview |
My Android application currently has TableLayout with several TableRows containing an ImageView then TextView side-by-side.
Clicking any where on a TableRow will load a new activity showing further info.
If I use the trackball, it will work its way through the rows, but I don't see which is currently selected so have n... | stackexchange/codereview |
I store my sessions with memcached. I am looking to detect how many active sessions there are currently.
I am convinced it must be possible - But I have googled and googled but to no avail so please stackoverflowers give me some guidence :)
| stackexchange/codereview |
So, I have a large number of message Payload classes for a serial API, each of which has a number of immutable fields, a parse method, and some methods which are shared. The way I'm structuring this is that each will inherit from a namedtuple for the field behaviours, and receive the common methods from a parent class.... | stackexchange/codereview |
I can launch Excel with the document I want using VB.Net 2010:
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c:\temp\myfile.xlsx"
p.Start()
Excel starts OK with the file opened. I edit the file, but when I close it down, Excel doesn't ask if I want to save changes. So it closes and loses my edi... | stackexchange/codereview |
I have a Workbook_Open sub that does some stuff and then calls application.quit. However, now that I have added this, how I can edit the routine given that excel closes right after it opens?
| stackexchange/codereview |
It could be a stupid question since almost everyone is preffering embedded container technique to test EJBs, but I have to clarify this because of my lack of experience.
Also, some my argue that embedded containers my not reproduce the real life situation of deploying in a real app server.
So, when testing ejb3, why i... | stackexchange/codereview |
I expect this little powershell one liner to echo a full path to foo.txt, where the directory is my current directory.
[System.IO.Path]::GetFullPath(".\foo.txt")
But it's not. It prints...
C:\Documents and Settings\Administrator\foo.txt
I am not in the $home directory. Why is it resolving there?
| stackexchange/codereview |
The Situation: I am new to Mercurial. I recently setup and have started using a repository in a model recommended to me (see Rudi's diagram below). Things have been going fine but I have run into my first practical application problem. Mercurial seems to be geared toward forward/blended merges and I would like to backu... | stackexchange/codereview |
I am using EF4 with POCO and trying to make it testable architecture.
So I create IObjectContext interface as follow :
public interface IObjectContext
{
IObjectSet<Employee> Employees { get; }
IObjectSet<Team> Teams { get; }
void Commit();
}
Then I changed type of properties to IObjectS... | stackexchange/codereview |
I am new to JBoss. Basically I have managed to cluster 2 nodes with:
Node 1: run.bat -c all -g DefaultPartition –u 230.0.0.4 -b 10.67.51.28 -Djboss.messaging.ServerPeerID=1
Node 2: run.bat -c all -g DefaultPartition –u 230.0.0.4 -b 10.67.50.21 -Djboss.messaging.ServerPeerID=2
I know that if i cofigure a Apache load b... | stackexchange/codereview |
I would like to update rows over linked server. I created linked server on my local SQL-Server with this instruction.
I can update rows over Query Analyzer with below code. No error returned and rows update on Linked Server successfully.
UPDATE [LinkedServer].[Database].[dbo].[Table]
SET A = 'A', B = 'B'
WHERE id = 1... | stackexchange/codereview |
I am using jQuery modal dialogs in my app to handle normal CRUD operations. In some cases I have even two stacked modal dialogs open.
I have then created two generic function in an external javascript file to handle respectively the showing and the submit of CRUD forms.
To show modal dialogs I call the following fun... | stackexchange/codereview |
I'm doing a small forum on the web by PHP. I was wondering how to do the registration. Namely, I decided to ask user email and then sen her/him mail that contains a link that should be pressed at most two days after the server sent a mail. But it is possible for server to see what time the link was clicked? Or is there... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.