find ./ -type f -name '*.htm*' -exec perl -pi -e 's/team-digital/teamdigital/;' {} \;
MinGW install
mkdir c:\MinGW
download:
http://downloads.sourceforge.net/project/mingw/Automated%20MinGW%20Installer/mingw-get/mingw-get-0.1-alpha-3/mingw-get-0.1-mingw32-alpha-3-bin.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmingw%2F&ts=1283281614&use_mirror=ovh
extract into C:\MinGW
add C:\MinGW\bin; to PATH
cd C:\MinGW
mingw-get install gcc g++
– it will download the tools
add the HP Recovery Partition to the Vista Boot Menu on HP Pavilion dv6000
### add the HP Recovery Partition to the Vista Boot Menu on HP Pavilion dv6000
BCDEDIT.EXE /STORE C:\BOOT\BCD /SET {ramdiskoptions} ramdisksdidevice partition=D:
BCDEDIT.EXE /SET {ramdiskoptions} ramdisksdipath \boot\boot.sdi
BCDEDIT.EXE /CREATE {572bcd55-ffa7-11d9-aae2-0007e994107d} -d "HP Recovery Manager" /application OSLOADER
BCDEDIT.EXE /SET {572bcd55-ffa7-11d9-aae2-0007e994107d} device ramdisk=[D:]\sources\boot.wim,{ramdiskoptions}
BCDEDIT.EXE /SET {572bcd55-ffa7-11d9-aae2-0007e994107d} path \windows\system32\boot\winload.exe
BCDEDIT.EXE /SET {572bcd55-ffa7-11d9-aae2-0007e994107d} osdevice ramdisk=[D:]\sources\boot.wim,{ramdiskoptions}
BCDEDIT.EXE /SET {572bcd55-ffa7-11d9-aae2-0007e994107d} systemroot \windows
BCDEDIT.EXE /SET {572bcd55-ffa7-11d9-aae2-0007e994107d} detecthal yes
BCDEDIT.EXE /SET {572bcd55-ffa7-11d9-aae2-0007e994107d} nx optin
BCDEDIT.EXE /SET {572bcd55-ffa7-11d9-aae2-0007e994107d} winpe yes
BCDEDIT.EXE /SET {572bcd55-ffa7-11d9-aae2-0007e994107d} custom:46000010 yes
BCDEDIT.EXE /set {default} recoverysequence {572bcd55-ffa7-11d9-aae2-0007e994107d}
BCDEDIT.EXE /set {default} recoveryenabled yes
BCDEDIT.EXE -displayorder {572bcd55-ffa7-11d9-aae2-0007e994107d} -addlast
GreaseMonkey: MP3 Player
// ==UserScript==
// @name Inline Mp3 Player (Slim)
// @description Add to every link to an mp3 file on page a slim inline player with Play, Pause & Volume controllers.
// @namespace http://musicplayer.sourceforge.net/greasemonkey
// @include *
//by Fabricio Zuardi (http://www.hideout.com.br)
// ==/UserScript==
(function() {
var page_links = document.links;
for (var i=0; i
code_str += "\n"
code_str += "\n"
code_str += "\n"
span.innerHTML = code_str
page_links[i].parentNode.insertBefore(span, page_links[i].nextSibling)
}
}
})();
Get/process files from a list
for filename in $(cat $1)
do
svn export ${filename}
done
Flex 4 Collection Change Example
= 0) {
ac.removeItemAt(dg.selectedIndex);
}
}
// Update an existing person in the ArrayCollection.
public function updatePerson():void {
// Make sure an item is selected.
if (dg.selectedItem !== null) {
ac.setItemAt({first:firstInput.text, last:lastInput.text,
email:emailInput.text}, dg.selectedIndex);
}
}
// The change event listener for the DataGrid.
// Clears the text input controls and updates them with the contents
// of the selected item.
public function dgChangeHandler():void {
clearInputs();
firstInput.text = dg.selectedItem.first;
lastInput.text = dg.selectedItem.last;
emailInput.text = dg.selectedItem.email;
}
// Clear the text from the input controls.
public function clearInputs():void {
firstInput.text = "";
lastInput.text = "";
emailInput.text = "";
}
// The labelFunction for the ComboBox;
// Puts first and last names in the ComboBox.
public function myLabelFunc(item:Object):String {
return item.first + " " + item.last;
}
]]>
AS2/AS3 root
AS2 ActionScript Code:
_root.gotoAndPlay("whatever");
AS3 ActionScript Code:
MovieClip(root).gotoAndPlay("whatever");
This casting to the MovieClip type has been explained many times on these forums. Basically, the reason for this is that there are cases where „root“ might not be a MovieClip, for example, if you used a Document Class that extended Sprite instead of MovieClip.
Flash Right-click menu
import flash.ui.ContextMenu
var my_cMenu:ContextMenu = new ContextMenu();
my_cMenu.hideBuiltInItems();
contextMenu = my_cMenu;
ActionScript Preload
AS in Frame 1:
if (_totalframes eq _framesloaded) {
gotoAndPlay (3);
}
total = getBytesTotal();
loaded = getBytesLoaded();
percent = int(loaded/total*100);
acarregar.barra._width = int(loaded/total*800);
AS in Frame 2:
gotoAndPlay (1);
Firefox Config
insertRelatedAfterCurrent