local

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 fails unless the client is bound too. (the common error is Transport endpoint is not conne...

What is the difference between my and local in Perl?

I am seeing both of them used in this script I am trying to debug and the literature is just not clear. Can someone demystify this for me? ...

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

Hey, 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 (for example at midnight) and process them. However, there are going to be many inp...

Delete Folder Contents in Python

How can I delete the contents of a local folder in Python. The current project is for Windows but I would like to see *nix also. ...

How can I localize Perl variables in a different stack frame?

I have some auto-generated code which effectively writes out the following in a bunch of different places in some code: no warnings 'uninitialized'; local %ENV = %ENV; local $/ = $/; local @INC = @INC; local %INC = %INC; local $_ = $_; local $| = $|; local %SIG = %SIG; use warnings 'uninitialized'; When auto-generating code, som...

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

Hi! 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 a directory? I'm using Tortoise SVN, but command line answers are cool. Thanks! [...

How to check if program is running in local console?

In Windows Server 2003, how I can check if my program is running in local console ("on the screen of the server machine") instead of remote session? I'm using Delphi Win32, so any Windows API based method should work.. ...

Spring.NET problem with <idref> tag in config.

According to the help file that comes with the Spring.NET framework, you can inject a dependancy defined in the local file by using an 'idref' tag along with a 'local' attribute. I have been trying to do this with no success and was hoping someone had the experience to help me out. Below I have a snippet from the config where I am ...

What technology is suitable for this application?

Right now at work, the an application we have is being tested by QA guys and the app sends requests to a server. The downside of this is that the client can only request and cannot modify the files on the server for testing different test cases without contacting one of the programmers. I've been tasked with researching an implementati...

Can someone explain the difference between @Remote / @Local or only @Stateless in ejb?

I guess the topic says it. I have tried googling this, but havent gotten the answer I am looking for. I have many EJB's with only @Stateless. And sometimes I put @Local on them withouth really knowing why, and the benefits/cons. I also know I can put @Remote, but really dont know the difference. Hope someone can give a clear descriptio...

How to create empty local databases based on an existing .sdf file on VS2008 and SQL Server Compact

I'd like to use Visual Studio 2008 IDE for editing my local database schema for a SQL Server Compact 3.5 database. However, everything in the documentation and in the UI seems to make an assumption that the application/assembly only wants to use a single database and never wishes to create new ones based on the existing schema. I'd lik...

Javascript local variable technique

I have a simple question related to one-line programming. First an example: function test(a) { var b=a.toString(); return b.replace("a","b"); } It's very simple (this function is, of course, useless), but the question here is little more complicated: What if I was to do this in one line? I have my thoughts, but tell me does this...

Does it help GC to null local variables in Java

I was 'forced' to add myLocalVar = null; statement into finally clause just before leaving method. Reason is to help GC. I was told I will get SMS's during night when server crashes next time, so I better did it :-). I think this is pointless, as myLocalVar is scoped to method, and will be 'lost' as soon as method exits. Extra nulling j...

Advantage of Local Classes Java

What is the advantage of local classes in Java or in any other language that makes use of this feature? ...

How do I set up a local ASP.NET 2.0 site in IIS7 for local testing?

This thing is so confusing compared to the old IIS, I haven't even found where to pick the version of .NET still. I had to comment out the and from my web.config because I kept getting: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by defa...

local database for mobile dicitonary for j2me

hi.... i'm now developing phrase english arabic for mobile phone for my final year project.i'm using eclipse(j2me) software.However,one of the requirements of my project is to use local database.I was thinking to use MySQL since i used to use it before,but it has to connect with the server.Thus, i have no idea what database that suitabl...

C# cannot find library during runtime

I have a C# project that uses a dll. I added the dll to project references and I set the property Copy Local to False (I do not want to have local copies of that dll). The compilation looks fine, but when I try to run the C# application, it cannot find the dll. Where can I tell the project where to look for the library during runtime...

Local vs. Centralized Processing

Hi Everyone, I work at a company with a large SAP investment, and we also have dozens of large .Net systems (mostly internally for engineering systems), and Java platforms (mostly for external web applications). As such, we have large development shops on ABAP, C#, and JEE. We have over 20 major facilities distributed over very large d...

Why gcc gives error of unused variable for local variables but not for global variables?

Hello, I have a question regarding gcc. Why I get an error of unused variable when I define the variable locally in a function but not when the variable is global in a unique file?. I can understand that it can be use for someone else, but to do that then I need to put the external word right? Thanks in advance. ...

Locale instance in web service

How can I use instances of java.util.Locale as parameter or result in a webservice? My webservice uses Apache CXF. ...