How can I Deny access to all files (and in subdirectories) except index.php and phpinfo.php (in root) and images and documentation (folders)
Using .htacces?
I found that my map tasks is currently inefficient when parsing one particular set of files (total 2 TB). I'd like to change the block size of files in the Hadoop dfs (from 64MB to 128 MB). I can't find how to do it in the documentation for only one set of files and not the entire cluster, does anyone know the command that would change the block size when I upload it (ie copy from local to the dfs)?
Thanks!
in the navigator i can only see the current class' members.
is there a way to include the parents' members.
cause it is very useful when working with a framework, then you don't have to look for them in the documentation.
i think this is available in eclipse but not netbeans.
Simple question - is the C++ API provided by Perforce thread-safe? There is no mention of it in the documentation.
By "thread-safe" I mean for server requests from the client. Obviously there will be issues if I have multiple threads trying to set client names and such on the same connection.
But given a single connection object, can I have multiple threads fetching changelists, getting status, translating files through a p4 map, etc.?
What are your best practices for making sure newly hired developers quickly get up to speed with the code? And ensuring developers moving on don't set back ongoing releases.
Some ideas to get started:
Documentation
Use well established frameworks
Training / encourage mentoring
Notice period in contract
When we add a new file,
In .h & .m file, there is always a comments/documentation section at top.
example.
//
// abc.h
// Project name
//
// Created by myname on 06/11/12.
//
//
How to modify those default comments to :
// File Name: abc.h
// Created By: myName
// Created On: 06/11/12.
// Purpose:
// Copyright (c) 2012 mycompany name. All rights reserved.
Please do help me on this issue
I think I'm being a bit silly here, but I keep getting errors complaining about the SERVER_NAME key missing from the env hash, and I can't find any substantial documentation on Rack::SendFile..
so- how do I serve up files?
The Django documentation gives en example like so:
b = Blog.objects.get(id=1)
b.entry_set.all()
Which from what I understand results in 2 queries. What if I wanted to get the blog, the blog entries and all the comments associated with that entry in a number of queries that does not depend on the number of entries? Or do I have to drop down to SQL to do that?
I'm writing a program which needs to traverse a set of directories. Tried to use the following code:
file.eachDirMatch(/.*[^.svn]/){
//some code here
}
But that ended up match none of my directories. I realize this boils down figuring out the right regex hang head in shame but even after revisiting some Java Regular Expression documentation I thought this should work.
The default month view display of FullCalendar shows the short version of day names.
I have been trying to find out how to change the display to show full day names. I have read the documentation about dayNames and dayNamesShort, but I can't get it to work.
Any help in how to display the full day names will be appreciated.
Thanks.
I've just inherited a large project previously coded by about 4-5 people. The documentation consists of comments, and is not very well written. I have to get up to date on this project. How do I start? It consists of many different source files. Do you just dig in? Are there tools that can help visualize the structure/flow?
It seems that a similar question has been asked before, http://stackoverflow.com/questions/373357/obtaining-iphone-photo-exposure-information
I wondering with the new iPhone camera, if there is any way to extract exposure data from the camera? it seems that it is able to sample different exposures based on where you focus, but I have yet to find any further documentation.
Thanks
I'd like to test whether particular socket options have been set on an existing socket. Ie, pretty much everything you can see in:
#!/usr/bin/env python
'''See possible TCP socket options'''
import socket
sockettypelist = [x for x in dir(socket) if x.startswith('SO_')]
sockettypelist.sort()
for sockettype in sockettypelist:
print sockettype
Anyone know how I can see the options on existing sockets, ie those created by other processes? Alas nearly all the documentation I read on Python socket programming is about making new sockets.
what java method takes an int and returns +1 or -1? the criteria for this is weather or not the int is positive or negative. I looked through the documentation but i'm bad at reading it and i can't find it. I know i've seen it somewhere though.
In various bits of Android code I've seen:
public class MyActivity extends Activity {
public void method() {
mContext = this; // since Activity extends Context
mContext = getApplicationContext();
mContext = getBaseContext();
}
}
However I can't find any decent explanation of which is preferable, and under what circumstances which should be used.
Pointers to documentation on this, and guidance about what might break if the wrong one is chosen, would be much appreciated.
Does anyone know of an existing Java component that implements a TokenField, similar to Cocoa's NSTokenField?
An overview of the Cocoa control is at:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TokenField%5FGuide/Introduction/Introduction.html
Suggestions for implementation?
Thanks!
In the monit documentation I can see there is a check directory command but I can't see any examples of how to use it to see if the directory exists and if it doesn't to create the directory using the mkdir command.
I need to waste a single ink channel on my epson printer, anyone know how to do it?
I mean, there is no documented way to do that, but I could program a software that could do that, send RAW commands, or special colors.
I searched for some documentation, no luck.
As far as I have read in the Internet and official documentation, it isn't possible to make a scrollable widget. Also all my tries failed. I even tried to subclass TextView to implement my own scroll method, but nothing worked.
Are there any ways to achieve that?
Btw.... there are solutions if you use for example htc sense or home desktop ++, but i want to make it available to other users which don't use this
Is there an API that works for pre OS 3.2 for getting the current time of a video being played back? There's this one
http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MPMediaPlayback_protocol/Reference/Reference.html
But it's 3.2 or later....
Is there any way to do this with the MPMoviePlayerController API?
Why are there not more opensource easy to use charting libraries for Java?. The only successful opensource project in this area seems to be jfreechart, and it doesn't even have any documentation or examples available.
have a VS2005 windows service where i have the need to use 'useUnsafeHeaderParsing' as per documentation from MSDN.
as this is a library used within my windows service, i do not have a web.config to add httpwebrequest element and set useUnsafeHeaderParsing to true.
How would i go about achieving this in code. I tried
link text
and
link text
but that was a no show.
Using the command line, I'd like to see all changesets made by a particular user. Is this possible? I've looked at the documentation for svn log but can't see how to do this.
I need help to call a function(Struct C) that detects the devices, so I'm calling the function this way:
from ctypes import *
fp = CDLL('./libfprint.so.0')
fp.fp_discover_devs.argtypes = None
fp.fp_discover_devs.restype = c_char_p
ret = fp.fp_discover_devs()
print ret # is "0"
That is not detected any device, because the return is "0".
See the documentation of the function:
I'm using Ubuntu and I downloaded the "fprint_demo" and works perfectly. Did you install any package missing?
Thanks.