It seems CMD does not have it's own jumplist.Has someone created one already?
I would like to be able to pin script and command files to cmd.exe only.I can pin them separately with the /explorer as the first line on target box but i would like all of them to be pinned to cmd.exe by default.Kind of like all folders are pinned to explorer.exe.I also made a rather bad looking mockup to make the question a little more clear: http://img576.imageshack.us/img576/9263/cmdjumplist.jpg
I am looking for free software to do batch conversions of divx video files to iPhone format.
I have read the thread:
http://superuser.com/questions/5784/looking-to-convert-video-to-iphone-format
Handbrake works good for single files but it has very little customization with regards to files names and the batch functionality is not very good (or at least I can't get it to work very easily).
Can anyone recommend a good batch converter? A script for Handbrake to do a batch for all in a specific directory would be useful even.
I have a site that uses PHP session for authentication. There is one directory that I would like to restrict access to that does not use any PHP, it's just full of static content.
I just don't know how to restrict access without every request going through a PHP script. Is there some way to have Apache check the session credentials and restrict access like Basic Auth?
we have recently set up a new development infrastructure and process for one of our clients. This involves the strict use of subversion as a central source code repository. The svn repositories contains a seperate branch for code on the live system (/branches/live/).
The repositories are use for PHP content (mainly Wordpress Blogs), but in future they may hold other asp code as well. Bonus points for a solutions which more or less in the same way with ASP code on Windows Server 2008 R2.
We have two servers: one staging system and one live system. The staging system is updated regularly with the code of the trunk. The live system is update manually. Each webroot on the servers are working copy of either the trunk (staging system) or the live branch (live system).
The current workflow is:
Developing on the dev's box - commit into the trunk - auto-deploy on staging system - testing on the staging system - merging into /branches/live/ - manual deployment on live system.
This works for one-way changes very well, however we have some troubles on every wordpress (or plugin) update: The WP update process removes the directories and unpack the archive of the new version. This removes the svn admin area as well, which produces a lot of errors. We could switch to SVN 1.7 with a single, global admin area, but this would only solve on part of the problem.
Finally, we have done the update via the WP Gui, restored the svn admin area, added/removed the files and committed the changes to the trunk. After testing, we had to do basically the same thing on the live server (except the commit, we just reverted the changes and merged the new files from the staging system to the live system).
I'm currently thinking of the following:
The htdocs of each website is a svn export
Each website has a svn working copy beside the htdocs directory
a script which "replays" the changes in the wc from htdocs after an update in WP (rsync'ing the changed files to the working copy, rsync'ing new files and svn add them and finally svn delete the deleted files). The script would have to exclude some files (like wp-config.php, uploads/temp directories, etc.).
Are there better ways to do this? Unfortunaly, a complete CI server is out of scope due to time and budget limitations.
I'm looking for a script/some software that I can put on/as a website where users can upload files, which can then be downloaded by other users and people. Does anyone have any suggestions for any free software that can do that?
Cheers!
For some reason my post-received hook never executes. It's a simple two liner diagnostic script: echo "test" && touch /tmp/test. When I do git push origin master nothing happens. Does any-one know what am I doing wrong?
I have a startup script placed in /etc/init.d wherein I make the following call:
nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1
This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?
I have a folder in which .wmvs are saved after they are finished recording. I would like to set up a script which encodes all of the files in this folder into .flvs with the appropriate size, frame rate, etc and then moves them to another folder. I have been looking for a command line .wmv to .flv converter to do this without much success. Has someone automatically encoded .wmvs to .flvs before that can point me in the right direction?
I have a number of Scheduled Tasks running on a Windows machine, which is design to run stand alone and show useful information to the office.
Part of it's use is to run a screensaver that itself shows useful information.
There are some scheduled tasks which need to display information to the screen, however as the screensaver is running these messages can't be seen until the screensaver it manually deactivated.
How can the currently running screensaver in Windows be deactivated from command script?
We are working to get a large (inherited) VMware ESX 3.5 environment with multiple SANs under control. We first need to create a diagram / Excel spreadsheet / whatever that explains what VM is stored where. This is a rather time-consuming task to complete by just using the VI client to copy down everything. Is there a good script or tool out there that can do this for us?
I would like to see:
VM Name, LUN, Actual file-name/location of VMDK/VMX, Power State, Host
Any ideas?
I Have a LG Viewty (actually a KP501), and I use mencoder (part of mplayer) to convert videos, using the following script :
mencoder "input.avi" -ovc lavc -oac lavc -lavcopts acodec=mp3:abitrate=128 -vop scale=400:240 -ffourcc DX50 -o "output.avi"
Do you have similar mencoder scripts, for other phones ?
We're sending ~60k emails to non-local addresses with sendmail and I manually set the -f flag to [email protected].
This all works fine and dandy when I limit my PHP script to 5000 addresses. If I remove the limitation, sendmail ingnores the parameters and sends all emails with a reply-to and return-path of [email protected].
I'm sleeping in between each email for 500ms, that should not be the problem.
iCal uses a built in script file to email reminders through Mail.app. It works great, but I don't use Mail.app for my main email account, just for sending calendar notifications.
So, Mail.app opens and sends the alert, but then it stays open.
I've tried to edit the applescript file to make it quit Mail, but that doesn't seem to work.
Can anyone offer some advice?
Thanks :-)
I am on Windows 7 using XAMPP and am trying to write file to the default install location of "C:\xampp\htdocs" using a php script but I am getting write failures. I can write to my own user area. How can I allow php to write to C:\xampp\htdocs?
Best regards,
Malachi
This script works perfect it forces the trailing slash and hides the .php extension
BUT! it does not redirect people going directly to the .php extension.
How can I also force people going directly to the file.php to /file/
RewriteEngine On
RewriteRule ^(.*)/$ /$1.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.mysite.com/$1/ [R=301,L]
SCENARIO
To simplify this down to it's easiest example:
I have a Windows 2008 R2 standard DC with the DHCP server role. It hands out IPs via various IPv4 scopes, no problem there.
WHAT I'D LIKE
I would like a way to create a notification/eventlog entry/similar whenever a device gets a DHCP address lease and that device IS NOT a domain joined computer in Active Directory. It doesn't matter to me whether it is custom Powershell, etc.
Bottom line = I'd like a way to know when non-domain devices are on the network without using 802.1X at the moment. I know this won't account for static IP devices. I do have monitoring software that will scan the network and find devices, but it isn't quite this granular in detail.
RESEARCH DONE/OPTIONS CONSIDERED
I don't see any such possibilities with the built in logging.
Yes, I'm aware of 802.1X and have the ability to implement it long-term at this location but we are some time away from a project like that, and while that would solve network authentication issues, this is still helpful to me outside of 802.1X goals.
I've looked around for some script bits, etc. that might prove useful but the things I'm finding lead me to believe that my google-fu is failing me at the moment.
I believe the below logic is sound (assuming there isn't some existing solution):
Device receives DHCP address
Event log entry is recorded (event ID 10 in the DHCP audit log should work (since a new lease is what I'd be most interested in, not renewals): http://technet.microsoft.com/en-us/library/dd759178.aspx)
At this point a script of some kind would probably have to take over for the remaining "STEPS" below.
Somehow query this DHCP log for these event ID 10's (I would love
push, but I'm guessing pull is the only recourse here)
Parse the query for the name of the device being assigned the new lease
Query AD for the device's name
IF not found in AD, send a notification email
If anyone has any ideas on how to properly do this, I'd really appreciate it. I'm not looking for a "gimme the codez" but would love to know if there are alternatives to the above list or if I'm not thinking clear and another method exists for gathering this information. If you have code snippets/PS commands you'd like to share to help accomplish this, all the better.
Whenever I send an email to my catchall alias via SSH (i.e., locally), Exim successfully pipes the e-mail to a PHP script, as I told it to do. However, when I try to send an e-mail to my catchall alias via my e-mail client (i.e., remotely), Exim won't pipe the e-mail. Any ideas?
hey guyz i have a function
$result = create_watermark( 'input_file_name' ,'output_file_name');
i have dir called /images n have 500 images in it and all images are link images_(some_unknown_numbers).png (all png) now i want run them thru function in loop and want out put like /markedimage/images_1.png images_2.png images_3.png
i need help how can i run them in loop and how out put name can change
want run script on Ubuntu so we can use shell too
if any body want check function it is here
http://paste2.org/p/789149
plz provide me code because i m newbie
thanks in advance
I am writing a script that uses MS KB 823732 to temporarily prevent users from plugging in new USB storage devices. This works fine, and the HKLM\...\Services\UsbStor registry key successfully blocks newly-connected devices from being accessed.
Is there a WMI event that will tell me that a drive was connected, regardless of whether it was mounted?
I tried querying for __InstanceCreationEvent but that is apparently raised only after the drive is mounted and made available, which doesn't fit my requirements.
I have experience with nginx but it's always been pre-installed for me (via VPS.net pre-configured image). I really like what it does for me, and now I'm trying to install it on my own server with apt-get. This is a fairly fresh Debian 5 install. I have few extra packages installed but they're all .deb's, no manual compiling or anything crazy going on.
Apache is already installed but I disabled it. I did apt-get install nginx and that worked fine. Changed the config around a bit for my needs, although the same problem I'm about to describe happens even with the default config.
It took me a while to figure out that the default debian package for nginx doesn't spawn fastcgi processes automatically. That's pretty lame, but I figured out how to do that with this script, which I found posted on many different web sites:
#!/bin/bash
## ABSOLUTE path to the PHP binary
PHPFCGI="/usr/bin/php5-cgi"
## tcp-port to bind on
FCGIPORT="9000"
## IP to bind on
FCGIADDR="127.0.0.1"
## number of PHP children to spawn
PHP_FCGI_CHILDREN=10
## number of request before php-process will be restarted
PHP_FCGI_MAX_REQUESTS=1000
# allowed environment variables sperated by spaces
ALLOWED_ENV="ORACLE_HOME PATH USER"
## if this script is run as root switch to the following user
USERID=www-data
################## no config below this line
if test x$PHP_FCGI_CHILDREN = x; then
PHP_FCGI_CHILDREN=5
fi
ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_CHILDREN"
ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_MAX_REQUESTS"
ALLOWED_ENV="$ALLOWED_ENV FCGI_WEB_SERVER_ADDRS"
if test x$UID = x0; then
EX="/bin/su -m -c \"$PHPFCGI -q -b $FCGIADDR:$FCGIPORT\" $USERID"
else
EX="$PHPFCGI -b $FCGIADDR:$FCGIPORT"
fi
echo $EX
# copy the allowed environment variables
E=
for i in $ALLOWED_ENV; do
E="$E $i=${!i}"
done
# clean environment and set up a new one
nohup env - $E sh -c "$EX" &> /dev/null &
When I do a "ps -A | grep php5-cgi", I see the 10 processes running, that should be ready to listen.
But when I try to view a web page via nginx, I just get a 502 bad gateway error.
After futzing around a bit, I tried telneting to 127.0.0.1 9000 (fastcgi is listening on port 9000, and nginx is configured to talk to that port), but it just immediately closes the connection.
This makes me think the problem is with fastcgi, but I'm not sure what I can do to test it. It may just be closing the connection because it's not getting fed any data to process, but it closes immediately so that makes me think otherwise.
So... any advice? I can't figure it out. It doesn't help that it's 1AM, but I'm going crazy here!
hi
i need to type in my username and pass to connect to internet through a captive portal provided by my isp is there a automatic way(any software/script) to type in info(in username and pass fields) and login without me typing and pressing that %$^& login button every time on my browser(chrome)?
I have CentOS server ( Server version: Apache/2.2.15 (Unix) Server built: Feb 13 2012 22:31:42 ) with mod_fastcgi.x86_64(2.4.6-2.el6.rf) and php 5.3.3.
some sites not work on fastcgi mode.
In apache error.log:
[Mon Sep 03 19:20:37 2012] [warn] [client 80.*.*.*] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Sep 03 19:20:37 2012] [error] [client 80.*.*.*] Premature end of script headers: index.php
Can anybody tell me how solve this?
On Ubuntu Server I've written a c++ program which launches another process which is in python. The c++ process runs fine on startup but the python process never launches. It gets created and when I run "top" I can see that both process's are running but next to the one that says python it reads python defunct. I've created the startup script in /etc/init.d and updated rc.d. Is there something else I have to do in order for it to see the python application?
i need functionality of this tool in Autohotkey keyboard shortcut. If i would select all code and press AHK key combination then code should be set like this tool does. single line/ multiline.
Need to AHK script for both multiline and single line
http://www.newmediacampaigns.com/files/posts/css-formatting/clean.php