local

Embedded C++, any tips to avoid a local thats only used to return a value on the stack?

I have a local that's only used for the purposes of checking the result from another function and passing it on if it meets certain criteria. Most of the time, that criteria will never be met. Is there any way I can avoid this "extra" local? I only have about 1MB of storage for my binary, and I have several thousand function calls that...

Building smarter connectionStrings for use Live / Local

Currently we are running multiple Sitecore projects. Whenever the projects go live we create new repositories in our subversion system. The downside in this case is, that when we go live we edit the connectionstring obviously, so that the connectionstrings correspond to the live servers instead of our local servers we run on. When a pers...

How to control visibility of variables in Java?

I can imagine 3 type of visibility for variables (but I think there are more): Variable is used within a method and any changes of the value of this variable are not visible from outside of the method (so it is local for a particular method). A variable is local to the class meaning that it is unvisible from outisde of the class. Howev...

Can I programatically get hold of the Autos/local variables that is shown when debugging?

Im trying to build an error-logger that loggs running values that is active in the function that caused the error. (just for fun so its not a critical problem) When going in break-mode and looking at the locals-tab and autos-tab you can see all active variables (name, type and value), it would be useful to get hold of that for logging ...

Can't connect to local IP address on OSX

I'm trying to connect to a webserver that's running on my mac OSX 1.6. I'm able to connect to it locally using http://127.0.0.1:8888/myapp but when I attempt to connect to it using my machine's local IP address (http://192.168.1.15:8888/myapp IP shown below) from the same machine (or another on the network) I cannot connect. I can ping t...

Reproduce a network filesystem error without a network

I have some software that is usually relies on data that is stored on a local hard drive. However one of my clients is encountering an error that I am unable to reproduce, and I think this may have something to do with the fact that their data is on a SAN. The program crashes randomly, and only when manipulating files. It would be usefu...

ASP.NET Local Resources Localizacion

We use resx files to localize my web applications. We have created a bunch of resource files under different APP_LocalResource folders and we are accessing that resources from pages and user controls through meta:resourcekey. We want to move all the resource files into one folder, without changing meta:resourcekey Is that possible? ...

Can I change the default directory on my local drive for all Git activity?

So I just started using Git and GitHub. It's still a steep climb, but I'm starting to enjoy it. One thing I've noticed from when I clone a repository is that it always downloads to my home folder /users/username. Is there a way to change this? I went searching through the Git manual and thought I might be able to use --git-dir=GIT_DIR, ...

Local use of MySQL database

Hi all, Is it possible to use MySQL local? I mean NOT at a server. I read a lot about MySQL on a webserver with PHP, Joomla etc. I want to program a piece of software and use a database local to store results. Can I use MySQL for that? If so, is ther anyware on the net a good tutorial how to do that? ...

how to enable iFrame designMode in a local webpage without using the localhost server?

The code... <html> <body> <iframe id="editableFrame"></iframe> <script type="text/javascript"> editableFrame.document.designMode="on"; </script> </body> </html> gets the iFrame editable only when run off a server(http://...)(online or from localhost). How do I get this working by simply o...

Implement abstract class as a local class? pros and cons

Hi, for some reason I'm thinking on implementing interface within a some function(method) as local class. Consider following: class A{ public: virtual void MethodToOverride() = 0; }; A * GetPtrToAImplementation(){ class B : public A { public: B(){} ~B(){} void MethodToOverride() { /...

Resharper Local Variable is never used

Okay, I have a problem with Resharper that is driving me nuts. Let's say I create a method such as private int returnAValue(string something) { int dmid; } As I'm typing the method Resharper take the variable dmid and declares that it is a 'Local Variable that is never used'. As a result it changes the coloring o...

How to save svg canvas to local filesystem

Is there a way to allow a user, after he has created a vector graph on a javascript svg canvas using a browser, to download this file to their local filesystem? SVG is a total new field for me so please be patient if my wording is not accurate. kind regards, Jeroen. ...

Get contents of local folder in javascript (or ASP.NET VB)

Is it possible for a webpage to popup a open folder dialog, ask the user to select a folder, then show the contents of that folder in a list(or something) in the webpage. It won't write to the files, only read them. The webpage is hosted remotely. Jonathan ...

Display local image in iPhone HTML mail

Hello there, In my app, I am composing an HMTL email message with the 3.0+ MFMailComposeViewController. To do this, I created an HTML file, with some placeholders. In my code, I read the HTML file, and with replaceOccurrencesOfString, I replace the placeholders with data from the app. In that way, I compose the body of the email I want t...

I have a slight confusion with setting up Mercurial on my webserver...

I'm starting to use Mercurial on my web server (in this case MediaTemple's Grid). I've used SVN previously, though I'm not an expert of version control systems. I'm just needing a little help with clearing up some confusion with getting it set up optimally. I have a 'data' folder which is outside the web server root and that the browser...

jqGrid - how to search when using datatype:local Or loadonce: true

Hi guys, I have a problem with jqGrid when I'm using the options specified. Seems that nothing happens when I click 'Find'. From jqGrid documentation I understand that sorting and searching is done locally when using loadonce option. Sorting is fine but search not, should it work locally or just server side, if so how to do that? Thank...

How do I.. get a value for time at 9:00am local, regardless of the timezone?

In my app, I need to set a variable for a start time to be 9:00 a.m. local, wherever the user is located. I have a timezone variable for each user and the save and retrieve are all working. But I need to set a variable when I create a new event to be 9:00 am in the user's local time zone. My current method uses the local time of the s...

Apache local configuration to resolve files correctly

Hello, I am new at this so bare with me. I have just configured Apache and PHP to work on my local Mac OS X computer. Now PHP works fine, except when I try to load the files for my live sites. The live sites have separate directories and are sorted by client name etc. I've created symlinks in the default root for the local web server ...

Use of Local Resources in MVC

I have used Global Resources in asp.net MVC, but how do I use Local Resources in asp.net MVC? ...