access

accessing files created by java runtime process

I'm running a windows program from within java: String command = "cmd /C start "+fileName+".bat"; Runtime rt = Runtime.getRuntime(); Process pr = rt.exec(command, null, new File(currWD)); int exitValue = pr.waitFor(); The program completes successfully (exitValue == 0) and creates a file "fileName" in the worki...

OOP, protected vs public. When to use?

Im trying to understand the benefits of making a class variable private, versus public. I understand getters / setters to access / modify the private / protected data, but is its sole purpose is to 'keep me from mangling my data'? Example : I dont get how saying $person->age = x;//bad? has different potential for havoc than $person-...

Grant CCK Field edit rights to a user referenced from User Reference; Drupal

In Drupal I am trying to create a content node where the original author can upload an image and then 'challenge' another user to upload an image into that node as well. I can already grant the 2nd user access rights through CCK > User Reference > Node Access User Reference but I don't want that new user to be able to edit the whole node...

How can i access a file (say .xml) from a native code,invoked from an android activity class, where do i need to place that XML file?

Hi, I am trying out an example of OpenCV from http://github.com/billmccord/OpenCV-Android and am stuck at the point where it is mentioned "Before attempting to run the VideoEmulator application, you must first copy this XML file into the emulator in the following location: /data/data/org.siprop.opencv/files/haarcascade_frontalface_alt.xm...

Subversion svn+http access

Hi Currently we access our repo via svn:\, but recently the need to access a restricted set of files via http:// has arisen. We have certain raw html and txt files which we need to display directly from the repo using http://. Our repo is hosted by the svnserve process on a windows server and ALL access is on an INTRANET so there's no ...

How would I go about accessing the iPhone filesystem via Java?

I was wondering how such a thing is possible to do? I am aware Java isn't exactly the most hardware language available, but is there a way to access the devices filesystem? If so could you link me to some helpful information and how I would go about doing so? Thank you very much! ...

Posting info to Twitter with a known username / pass and the Oauth token without having to grant access

I'm using C# to build some functionality for a website. They want to twitter a message to their account at the point when a new vacancy gets added to their website. I face the issue that when i try to do this using the OAuth token approach i have to grant access to the application everytime. I want this all to work automatically without ...

display bounded property in a design time

Hello, I am solving the following problem. I have a textfield with binding and I would like to display the bounded source property as a text while being in design time mode. Couldnt find any example I have no idea how to access binding properties of a current component. For example class TextField extend JTextField{ private String te...

how do i access my root folders, through my php script?

i have this include function in a file inside another folder called ajax, but it wnt let me access this include file: include("includes/connect.php"); i dont know what to do, thanks, and im using localhost? Warning: include(includes/connect.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\f...

Flash AS3 - Internal namespace modifier

Hi, I am working on a library that I wish to hide the internals of to the outside world. I figured I can use 'internal class' where ever I wanted to hide the class, How ever to my understanding, declaring a class in namespace test.NS1 means it can only access classes defines in test.NS1 and nothing else. For example, (both in the sa...

c / c++ disable access to files

Is it possible to disable access of some program to files completely? Because I don't want it to have any kind of access to files on system, is it possible to compile it so it doesn't have access to file stream or to run it someway it cant access files? ...

Testing Username / Password against Active Directory Domain in VBScript?

I need to test a username and password pair against a given domain in a VBScript. The script will know the username, password, and domain against which it needs to check for access, and all I need returned is a true or false as to whether the account is valid. Can anyone suggest a good way to accomplish this? Thanks! ...

.NET class access modifiers (friend and public)

I am developing a class library that will be used in several projects. In my class library, I have a "Shape" Class which has a number of properties. One of these properties is "Dimensions" returns a class with "Height" "Width" and "Depth" properties. How would I suppress the Dimension class from being viewable in the editor, whilst fre...

Accessing data with balance between performance and persistence

Generally, in-memory data structures such as B-Tree or STL map usually has good performance on both lookup and update. However, the contained data are lost once the process is closed or power is shutdown. On the other hand, on-disk data structures such as embedded database and file mapping persist data, at the cost of low performance bec...

How do I restrict access to certain pages in ASP.NET MVC?

Hi, I wish to lock out access to html page (eg. /manual/manual_A/index.html) if a certain condition is not met (eg. HttpContext.Current.Request.Form["key"].toString().Equals("a") ), I wish redirect to specific view (eg. /errorPage/) else continue (eg. /index). In register Route I add: routes.MapRoute( "ErrorPage", ...

How to set up a new Access Point in Android phone, programmatically?

I have searched alot on this but could not find anything on google or stack overflow. ...

Accessing non-static DAL methods

Hi, I am fairly new to .net and am creating a web app for learning purposes. I have a DAL with non static methods in it. My question is, how should i be accessing these methods in the business layer? I'm not sure if this is a good or a bad way but currently i use this class to create instances of the DAL methods: public DataAccess { ...

web access by python

hello everyone i'am looking up for way to enter web site "Login" i tried this login_form_seq = [ ('user', 'Lick'), ('pass', 'Shot'), ('submit', 'login')] A=urllib.urlencode(login_form_seq) opener = urllib2.build_opener() try: site = opener.open('http://www.SMS-Example.com/user.php', A).read() site2 = urllib.urlope...

[GENERAL] Suggestion for graphics library for 2D game (PC)

Hello. I'm trying to set base to a 2D game with destructible terrain and/or particle effects, scroll, zoom, characters, etc... I'd like to know if there is a graphics library that would support those things in both software and hardware acceleration .. (Need pixel access). I've tried SDL (even with directX backend), but it seems hardware...

How to hide Zend's application.ini from the public?

I am using the Zend Framework for construction of my site, which uses the application.ini file to store database info (such as username and password). I discovered that typing /application/configs/application.ini in the web browser plainly shows all the contents of the applications.ini file. How can I prevent this? I tried setting the ch...