Posted on 26 August 2008. Tags: div, JavaScript - Ajax
<script>
function go()
{
var a = window.open(”,”,’width=300,height=300′);
a.document.open(“text/html”);
a.document.write(document.getElementById(‘foo’).innerHTML);
a.document.close();
a.print();
}
</script>
<div id=”foo”>This is a test</div>
<input type=”button” onclick=”go()” value=”Print this Page”>
Posted in HTML - XHTML, JavaScript - Ajax, Programming
Posted on 26 August 2008. Tags: pecl_http, PHP
pecl list-all
pecl install pecl_http
configuration option “php_ini” is not set to php.ini location
You should add “extension=http.so” to php.ini
Posted in Linux, Plesk
Posted on 26 August 2008. Tags: detect plug-ins, plug-ins, plugins
Cut & Paste Detect Plugin (Flash, Java, RealPlayer etc) script
Description: Frederic’s versatile plugin detector can be used to detect most of the important browser plugins. They include:
- Flash
- Windows Media Player
- Java
- Shockwave
- RealPlayer
- QuickTime
- Acrobat Reader
- SVG Viewer
Working in both IE and NS, this is a very handy script to have around! Continue Reading
Posted in HTML - XHTML, JavaScript - Ajax, Programming
Posted on 26 August 2008. Tags: curl
After the Mashed Museum day yesterday, I finally got in gear to see what the OpenCalais service could do to enrich the tags upon our blog post archives and forthcoming posts. To do this I used two separate plugins that have already been written and tested out by others (i’ll write about this in a separate post). However, to get this to work, I had to get the Curl library working on our main server (backup already functions) and to do this required a clean install of curl. So first off, I’ll be techie and explain how to get curl working on your linux box post installation of apache and PHP. Most of the articles I found talked about doing this prior to installing PHP. Continue Reading
Posted in Linux
Posted on 26 August 2008. Tags: pear, php-pear
APC,
Alternate PHP Cache, is now the most maintained free/open source op-code cache, and is being used more and more as it emerges to be the
most stable. Continue Reading
Posted in Linux
Posted on 26 August 2008. Tags: task manager
‘ps’ actually only shows you the tasks started in that shell. To see all running tasks, use:
You can then use ‘kill PID’ or ‘killall <process-name>’. Note that the latter will, of course, end all instances of that application.
Posted in Linux
Posted on 25 August 2008.
Posted in Linux
Posted on 25 August 2008. Tags: asl, vim
1) vim /etc/yum.repos.d/asl.repo
2) Delete all lines from file
3)Save & quit the doc :wq
more command for VIM
http://www.prosoxi.gr/2008/08/25/basic-vi-features-vim/
Posted in Linux
Posted on 25 August 2008. Tags: vi, vim
Basic “vi” features
One edits a file in vi by issuing the command: vi file-to-edit.txt
The vi editor has three modes, command mode, insert mode and command line mode.
- Command mode: letters or sequence of letters interactively command vi. Commands are case sensitive. The ESC key can end a command.
- Insert mode: Text is inserted. The ESC key ends insert mode and returns you to command mode. One can enter insert mode with the “i” (insert), “a” (insert after), “A” (insert at end of line), “o” (open new line after current line) or “O” (Open line above current line) commands.
- Command line mode: One enters this mode by typing “:” which puts the command line entry at the foot of the screen. Continue Reading
Posted in Linux
Posted on 25 August 2008. Tags: .=, do while, PHP
<?php do { ?>
<?php $prosoxi <strong>.=</strong> $row_keywords['keywords']; ?>
<?php } while ($row_keywords = mysql_fetch_assoc($keywords)); ?>
<?php echo $prosoxi; ?>
The .= connect the Data
Posted in PHP