local

How to localize a variable in an upper scope in Perl?

I have run across the following pattern a few times while developing Perl modules that use AUTOLOAD or other subroutine dispatch techniques: sub AUTOLOAD { my $self = $_[0]; my $code = $self->figure_out_code_ref( $AUTOLOAD ); goto &$code; } This works fine, and caller sees the correct scope. Now what I would like to do ...

Where should Map put temporary files when running under Hadoop

Hi, I am running Hadoop 0.20.1 under SLES 10 (SUSE). My Map task takes a file and generates a few more, I then generate my results from these files. I would like to know where I should place these files, so that performance is good and there are no collisions. If Hadoop can delete the directory automatically - that would be nice. Right...

On-Disk database storage, best practices

If this question seems common to you, I apologise, I did a quick search around this site and a few google searches and could not find a satisfying answer. My question is this; I have only been a software developer for 3-4 years now. This may seem like a time long enough to answer this question myself however in all my time, I have nev...

iphone 4.0 local notification

Hi guys hope you doing well i want to launch my application automatically when it gets notification without showing alert, how it is possible. One more question is that it is possible to run a continuous sound in the background when the notification arrive means "local Notification". Thanks in Advance. ...

What technology are they using in this Shopkick demo to achieve pinpoint geoLocation?

I know they have some hardware installed around the store but what does the hardware do and how is it interpreted by the app? (at one point they show hardware attached to the celling in one of the locations they are in) WOAH sorry forgot the link, http://techcrunch.com/2010/08/03/shopkick/ Thanks! ...

Javascript local variable works like class variable in window

I find this behavior of the global window object a little weird. var x = 10; function SomeClass(){ var y = 15; console.log("Someclass:y - " + this.y); //prints undefined } console.log("window.x: " + window.x); //prints 10 var obj = new SomeClass(); console.log("obj.y: " + obj.y); //prints - undefined Both variables x and ...

iPhone: How to set repeat daily/hourly local notification?

I want to test add local notification. I want it repeat daily/hourly. How can I do that? NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar]; // Get the current date NSDate *now = [NSDate date]; // Break the date up into components NSDateComponents *dateComponents = [calendar components:( NSYearCalendarUnit | NSMo...

ASP.NET equivalent to Classic ASP/CDOSYS method

Hi Guys, I know How to send e-mail messages by using CDOSYS and the local SMTP directory with Visual Basic .NET Is that method obslete in ASP.NET? If so, what is the new method? Please guide me in the right direction. I am coding in C#. Regards, naveenj Edit: The idea is to send mail using "localhost" as server without authentication...

RDCL 2008 /*Local Query*/

Hi all, I am new for RDCL 2008 format. I used RDLC 2005 format for a while and it works fine. However, recently, my company is changing to RDLC 2008 format from RDLC 2005 format. The original report rendering engine crashed. Because in RDLC 2008 format, the connection string and the query string became <ConnectString>/* Local Connection...

How to get self into a Python method without explicitly accepting it

I'm developing a documentation testing framework -- basically unit tests for PDFs. Tests are (decorated) methods of instances of classes defined by the framework, and these are located and instantiated at runtime and the methods are invoked to execute the tests. My goal is to cut down on the amount of quirky Python syntax that the peopl...

Are there any web browser plugins that can give access to machine's command line? (for local use)

EDIT: please read the question and why I want to do it before passing judgement on this, I want to develop locally using a web browser as the interface, I KNOW its a security hole, but if there is a way for the end user to disable this security so it can be used locally I want to know, of course this isn't possible under normal circumsta...

How to read local xml file is resource folder as a input stream in android?

Hey All, I am trying to get a input stream from something like this. InputSource myInputSource = new InputSource(activity.getResources().openRawResource(com.MYCLass.R.xml.programs)); myXMLReader.parse(myInputSource); and then call parse on the parser instance i Created. SOm how i get nothing . Works fine if I use a server XML.... ...

Positiong nested movieclips based on stage

I have multiple nested movieclip in its own different movieclip, and i would like to arrange them accordingly. My idea was to use the localToGlobal function. I can get the position of the MC on stage, but how do I use the function and place the MC based on stage? cAPos = new Point(objectA.y); newcAPos = objectA.localToGlobal(cAPos); cB...

wget flashcontent offline

Hi, Im downloading a complete site for offline use: wget \ --recursive \ --no-clobber \ --page-requisites \ --html-extension \ --convert-links \ --level=10 \ --restrict-file-names=windows \ --domains mysite.com \ --no-parent \ www.mysite.com Everything works fine. Except local SW...

Embedded WSGI backend for Python desktop app using webkit

Disclaimer: I'm not very familiar with any of the things mentioned in the question title. Would it be possible to use a browser control (like Webkit) as a frontend for a WSGI app (using a framework like Flask) without starting a local WSGI server? Basically the requests and responses are managed by a middle layer between the HTML UI an...

PHP ini file and session deletion

Hi, Posted a question about an error I was getting the over day about Memory exceed when handling an image resize. Managed to solve the problem with a local php.ini file and setting [PHP] upload_max_filesize = 5M post_max_size = 5M memory_limit = 64M Now I realised I have a whole new problem :) If I access a php file in the direct...

iphone local notification in simulator

Hello I just downloaded xcode and trying to make local notification example. The question is if local notification works in simulator? thank you ...

java StackOverflowError when local and instance objects creation

Hi can anybody please explain me why is this code snippet giving me StackOverflowError I really appreciate if you can explain what is happening when instanceObj initializing and calling ObjectTest constructor and java.lang.Object constructor. It seems to me ObjectTest constructor loop over and over.But I don't know exact reason? So any ...

C++: Is deleting an array stored as static local variable needed, and how?

I have a few arrays and a resource that needs deletion, the value of these variables are retained throughout the lifetime of the program and they are only used in a single function so it naturally fits into static variables: void func() { static GLfloat arrs[4] = {1, 1, 1, 1}; static GLUquadric* quad = gluNewQuadric(); // delete...

Absolute GMT date on iPhone

I'm trying to get a date that represents noon GMT for a recurring local notification. I need this local notification to fire at the exact moment to anyone using the app. So far, I'm trying this: NSCalendar *calendar = [NSCalendar currentCalendar]; NSDateComponents *dateComps = [[NSDateComponents alloc] init]; [dateComps setHour:12]; [...