Script
install Dreamweaver in Ubuntu
by Y3N on Nov.19, 2009, under Internet, Script, Software
http://maketecheasier.com/how-to-install-dreamweaver-cs3-in-ubuntu-hardy/2008/06/20
It would be great if there is a Linux build of the popular Dreamweaver CS3, or that it could be easily installed via WINE. The truth is, none of the above work. There is no Linux version, nor will it work via WINE direct installation. The only way to get it to work is to port it over from a Windows installation.
If you are new to Dreamweaver CS3, it is one of the best, if not, the best web editor software in the market. While there are many open source and free web editors out there, none of them come close to it in term of quality and capability. Although it comes with a hefty price tag of $399, it is well worth the money if you are into serious web developing. As such, if you wish to follow this guide and install Dreamweaver CS3 in your Ubuntu machine, please make sure you have the licensed copy, or proceed to Adobe to make your purchase. Do not attempt to use illegal software.
Initial Installation – WINE
We will need WINE to create a Windows environment for Dreamweaver. If you have already installed WINE, you can skip to the next section.
sudo apt-get install wine
winecfg
The WINE configuration window will pop up. Click OK to close the window. You can now find a .wine folder in your Home directory (if you can’t see it, go to View and check “Show Hidden Files“).
Porting Dreamweaver CS 3 From Windows
Install your Dreamweaver CS 3 in Windows. (For this step, I would advise you to install it on a Windows virtual machine so that you can transfer files between the two OS easily later on.)
Now there are 5 main folders that you need to copy to your Ubuntu machine.
1) Open up File Manager and navigate to C:\Program Files. Copy the whole ‘Adobe‘ folder to Ubuntu /home/username/.wine/drive_c/Program Files folder.
2) Still in the Windows File manager, navigate to C:\Documents and Settings\your-windows-user-name\Application Data (if you can’t find the Application Data folder, go to Tools->Folder Option->View and select ‘show hidden files and folders‘) and copy the whole ‘Adobe‘ folder to Ubuntu /home/username/.wine/drive_c/windows/profiles/All Users/Application Data/
3) In the Windows File manager, go to C:\Program Files\Common Files and copy the whole ‘Adobe‘ folder to Ubuntu /home/username/.wine/drive_c/Program Files/Common Files
4) In the Windows file manager, go to C:\WINDOWS\system32 and copy the whole ‘marcomed‘ folder to Ubuntu /home/username/.wine/drive_c/windows/system32
5) In the Windows file manager, go to C:\WINDOWS and copy the whole ‘WinSxS‘ folder to Ubuntu /home/username/.wine/drive_c/windows
Next, we need to import the Dreamweaver registry to WINE.
In your Windows, go to Start->Run. Type in ‘regedit‘ and press Enter.
In the window that pop up, on the left pane, navigate to HKEY_LOCAL_MACHINE-> SOFTWARE->Adobe->Dreamweaver. Right click on the ‘Dreamweaver‘ folder and select ‘Export’. Save the file as dreamweaver.reg
Copy this dreamweaver.reg to your Ubuntu home folder.
Now you need to convert the registry file to ASCII format.
sudo apt-get install recode
recode ucs-2..ascii dreamweaver.reg
wine regedit dreamweaver.reg
At this time, you have successfully ported all the necessary files from Windows to Ubuntu. To test your installation:
cd .wine/drive_c/Program\ Files/Adobe/Adobe\ Dreamweaver\ CS3/
wine Dreamweaver.exe
Dreamweaver CS3 should now launch.
Creating entry in Applications menu
To create an entry in your Applications menu, right click on the Applications menu and select ‘Edit Menus’.
Scroll down to the Wine->Programs entry and select New Item. Enter the following
Type: Application
Name: Dreamweaver CS3
Command: wine /home/username/.wine/drive_c/Program\ Files/Adobe/Adobe\ Dreamweaver\ CS3/Dreamweaver.exe
Click Close. You should now see an entry in your Application menu. You can drag the entry to your desktop or to the panel to create a shortcut.
back javascript
by Y3N on Jun.10, 2009, under Script
< a href = " javascript: history.go(-1) " > Back < / a >
How to put sidebar widget?
by Y3N on May.12, 2009, under Internet, Script
To put some content here,
go to Site Admin -> Appearance/Presentation -> Widgets -> Select “Left Sidebar” -> Click “Show” -> Click on “Add” on one of the widgets on the left side -> Click “Save changes” -> Done
cara pake sidebarlogin widget
by Y3N on Apr.19, 2009, under Script
First time installation instructions
1. Unzip and upload the php file to your wordpress plugin directory
2. Activate the plugin
3. For a sidebar widget: Goto the design > widgets tab - Drag the widget into a sidebar and save!
4. To use the template tag: Add <?php sidebarlogin(); ?> to your template.
Configuration
You will find a config page in tools/settings > Sidebar Login. Here you can set links and redirects up.
inline-js.php
by Y3N on Apr.07, 2009, under Internet, Script
/*
Plugin Name: Inline Javascript Plugin
Plugin URI: http://www.ooso.net/index.php/inline-js/
Feed URI: http://www.ooso.net/index.php/feed/
Description: Plugin that insert inline javascript in Posts/Pages
Version: 0.4
Author: Volcano
Author URI: http://www.ooso.net
*/
$_inline_autop = defined('ExecPhp_VERSION') ? false : true;
function inline_autop($content) {
global $_inline_autop;
$str = str_replace(array('[inline]', '[/inline]'), '', $content);
if($str != $content)
$_inline_autop = false;
if($_inline_autop) {
$content = wpautop($content);
$content = wptexturize($content);
}
return $content;
}
function inline_javascript($content){
global $_inline_autop;
$str = $content;
$str = preg_replace_callback('/\[inline\](.*?)\[\/inline\]/is', 'inline_render', $content);
if(is_home() or is_page() or is_single())
$str = str_replace(array('[inline]', '[/inline]'), '', $str);
return $str;
}
function inline_render($m) {
$str = $m[0];
$str = str_replace('[/script]', '</script>', $str);
$str = preg_replace(array("/\[script(.*?)\]/i"), array("<script$1>"), $str);
return $str;
}
function inline_callback($m) {
$str = $m[0];
$str = str_replace(array('</script>', '</SCRIPT>'), '[/script]', $str);
$str = preg_replace(array("'<script(.*?)>'i"), array("[script$1]"), $str);
return $str;
}
function inline_save_pre($content) {
$str = preg_replace_callback('/\[inline\](.*?)\[\/inline\]/is', 'inline_callback', $content);
return $str;
}
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
add_filter('content_save_pre', 'inline_save_pre', 0);
add_filter('the_content', 'inline_javascript', 99);
add_filter('the_content', 'inline_autop', 1);
add_filter('content_edit_pre', 'inline_javascript');
?>
Looking for something?
Use the form below to search the site:
Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!
Visit our friends!
A few highly recommended friends...
Archives
All entries, chronologically...