Questions tagged [local]

A tag for questions about accessing resources local to a given runtime environment or network.

Accessing data on a local network, or accessing files local to the computer can pose unexpected complications, especially when using languages that are not typically used for local resource access.

Additional exceptions, or hardware/firmware considerations, can come into play in these scenarios that are often abstracted away when accessing remote resources.

3710 questions
8
votes
1 answer

Is it possible to define a named dollar local label in GNU Assembler?

Is it possible to write something like .finished$: instead of 1$: and this label would still be only valid until the next not-local label is defined? That way it would be much more descriptive and I would still know after months why this is…
user3784955
8
votes
9 answers

SVN: How do I maintain my local config.blah file?

On the SVN server, there is a file called config.conf. I have a local version called the same thing (in the same place). How can I make sure that my local config does not get overwritten, nor checked in? While I'm here, is the answer different for…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421
8
votes
12 answers

Which database would you recommend to use with C# (.NET) application?

I'm developing a little project plan and I came to a point when I need to decide what local databse system to use. The input data is going to be stored on webserver (hosting - MySQL DB). The idea is to build a process to download all necessary data…
Skuta
  • 5,830
  • 27
  • 60
  • 68
8
votes
1 answer

How to get a web browser to download a file that is stored in a JavaScript String?

I've been able to write JavaScript to cause the browser to download a file from a remote server using code like this: var iframe = document.createElement("iframe"); iframe.style.display = "none"; iframe.src =…
Sean N.
  • 963
  • 2
  • 10
  • 23
8
votes
2 answers

How is reading an InputStream object from a local file different than from the network (via Amazon S3)?

I didn't think there was a difference between an inputstream object read from a local file vs one from a network source (Amazon S3 in this case) so hopefully someone can enlighten me. These programs were run on a VM running Centos 6.3. The test file…
Classified
  • 5,759
  • 18
  • 68
  • 99
8
votes
1 answer

How to run Websphere Portal/portlets locally from within RAD to debug

I have been looking around on the internet how to setup a local Portal environment together with the RAD IDE, I found threads like this but that's a thread of the ancient history (speaking in IT terms) or only refers to optimizing Portal with RAD…
tjeerdnet
  • 344
  • 1
  • 6
  • 14
8
votes
2 answers

Library for Caching Web Pages on iPhone?

Is there a library or framework that I can use to cache web pages locally for offline viewing on iPhone? If not, what's the best strategy for doing so? Currently what I'm thinking of doing is downloading the HTML, harvesting its URLs, caching those…
leftspin
  • 2,468
  • 1
  • 25
  • 40
8
votes
2 answers

Are there any (local) HTML validators for Ruby on Rails that work?

I've looked around all day yesterday for a working HTML validator that I could use to check the code generated by my rails application. So far, I've tried several different strategies such as RailsTidy, which no longer works as of Rails 1.9,…
boka
  • 165
  • 2
  • 11
8
votes
8 answers

Javascript local variable declare

Basically this is a question how to access local scope handler. I trying to achieve something similar for global variable definition like: window['newObject'] = "some string"; alert(newObject); but for local scope. Right now only solution I have is…
7
votes
2 answers

Unit testing Url.IsLocalUrl(returnUrl.ToString()), how can I get it to return false in unit test?

From the standard LogOn method in the account controller in MVC3 applications, how can I test the Url.IsLocalUrl(returnUrl.ToString()) line of code where the url is not local? In other words, what url do I have to feed into this line of code when…
DevDave
  • 6,700
  • 12
  • 65
  • 99
7
votes
4 answers

Automated naming of AF_UNIX local datagram sockets?

I'm implementing a simple service using datagrams over unix local sockets (AF_UNIX address family, i.e. not UDP). The server is bound to a public address, and it receives requests just fine. Unfortunately, when it comes to answering back, sendto…
JB.
  • 40,344
  • 12
  • 79
  • 106
7
votes
6 answers

Global and Local and Private Functions (Javascript)

I am currently reading a book on Javascript by Pragmatic, and I'm confused about one thing. They have a section on how to make variables global, local, or private. What is the difference between local and private variables? Is there one? How does…
Billjk
  • 10,387
  • 23
  • 54
  • 73
7
votes
2 answers

How to get the contents of a *user-selected* *local* file in javascript without any posts, gets, submits, etc

I'm using jQuery if that's any benefit; and I would like to have: The user selects a file on the local filesystem my javascript gets the contents of said file without going "across the wire". I am checking the browser type and am prepared to use…
kovacsbv
  • 351
  • 4
  • 11
7
votes
2 answers

Chrome Renders CSS Differently Online vs Offline?

I'm having a problem with Chrome rendering my page fine when loaded locally, but something goes wrong once the page is online. The first thing I did was check Safari, because they both share the same rendering engine. Safari renders my page…
helloworld
  • 406
  • 4
  • 10
7
votes
1 answer

HTAccess LocationMatch Server Error

I'm trying to use this .htaccess to change the RewriteBase if the location is local or live server. Options +FollowSymlinks RewriteEngine on #RewriteBase /beta/admin/ RewriteCond %{REQUEST_URI}…
James
  • 5,137
  • 5
  • 40
  • 80