public

How do I detect new aspx file and get information from them?

Hi, I'm developing a website that has modular section. I would like it that when a new aspx (and aspx.cs) file is placed in a subdirectory of the application that I can ask the class some information... The idea is that when the file is placed in the directory a new menu item is added to the menu. To do that I need to "ask the class" f...

setTimeout call triggered before current callstack unrolls: ie7 & ie8

Specifically with ie 7 & 8 I have a case that I don't fully understand in which I have a setTimeout function call that is getting added to the the call stack before the current call stack is unrolled. For me this appears to only take place when I incorperate 2+ calls to communicate through javascript to a java applet just after my setTi...

Public Apache2 Server

Hi, I wonder how to make my apache2 server public? I mean, I have a static ip and someone who knew that ip can access my website from out-world. I already install apache2. I test it from http://localhost, I mean its working. My OS is ubuntu by the way. Thanks ...

Does the order of PHP public functions in a class affect its execution?

I've been following this Symfony tutorial. In some sections it just tells me to add a public function inside a class but it doesn't say if I should add it at the beginning or at the end of the class. For instance: /** * JobeetCategory * * This class has been auto-generated by the Doctrine ORM Framework * * @package jobeet * @s...

iPhone SDK @package vs. @private vs. @public and struct

Hey I have a really simple question that needs more of just an explanation than a debug, but I have seen in the interface definitions for many class objects the keywords "@package", "@private", "@public", and then even weirder "struct {...}". I have been able to make complete programs without using any of the aforementioned, so I was hop...

Need a secure way to publicly display hash values

I am building a windows application to store backups of sensitive files. The purpose of my application is to store a copy of a file with its hash. The program or user will then display the hash publicly in case the user needs to prove they had the backup of the sensitive file at a certain time. Motivation: Some situations where this m...

Import CSV contacts to Public Folders

I am trying to import a CSV file containing many contacts to a public folder in exchange 2007 installed on SBS2008 for use by outlook users. I have this script that I am trying to run through powershell 1.0 (there seems to be no powershell 2.0 installable for SBS2008). I have created a folder in the Public Folder area called pub_contac...

How to declare a public variable and a public sub in an aspx web page?

How do declare a public variable .aspx web page that can be used in all the pages within my web application? And/or create a Public Sub? ...

ASP.net c# publicly accessible functions in namespace

In my namespace I can have public classes which are accessible to all other pages in my namespace. How do I go about having public functions? Do I have to create a class with the functions in it? Or is there an easier way? ...

How to make directory public on Grails?

Hi all, my Grails app generates files in a folder (e.g. "output"). How can I make that folder public, in order to expose the output files through URLs like: http://localhost:8080/MyGrailsApp/output/myOutputFile1.xml http://localhost:8080/MyGrailsApp/output/myOutputFile2.xml Cheers! ...

Bus public transport algorithm

I am working on a offline C# application that can find bus routes. I can extract the timetable/bus/route data. I am searching for the most simple solution that will work with basic data. What algorithm can be used to find a route from bus stop "A" to bus stop "B"? Is there a open-source solution ready for C#/Java? Is the google GTFS ...

Android link to another package's function

I've got two android apps, one with a public void. How would the other app call this function? ...

what are the tradeoffs of using accessor methods vs public variables in php

I'm looking for advice/experience on using public variables vs private variables with accessor methods in php. eg $obj->foo = 'a'; echo $obj->foo; vs $obj->setFoo('a'); echo $obj->getFoo(); What I like about public variables is the shorter syntax - just seems less work to use. I understand that it could make refactoring more diffic...

Reasons to avoid access modifiers in php

hi, here's my question. What are valid reasons NOT to use keywords public, private, protected in php? The story: I've started a project with a team that actively uses access modifiers in their code (even "public" explicitly) and wants to convince me to do the same. I always find this kind of stuff totally useless in a dynamic language ...

using local variable in another button

There's an error: "The type being set is not compatible with the value representation of the tag." string fi = null; public void reading(object sender, EventArgs e) { read_from_folder = folderBrowserDialog1.ShowDialog(); if (read_from_folder == DialogResult.OK) { files_in_folder = Di...

Public variable not accessible in my classes

I am using the XNA framework to make one of my first games. In it's main game class (Breakout.cs), I put this: public int screenHeight; public int screenWidth; And in the Initialize method: this.screenHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; this.screenWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMod...

How to make a public module that can do some common functions in java?

As asked in title, can I make a 'common' public Class and some public static foo() in it? Thanks! ...