Do these thermos have mercury in them and is it dangerous?

S3 bucket
IAM credentials

http://www.mintron.com/HTM/Q&A/Htm/Super%20HAD%20CCD%20camera.htm

No piont buying old iPhone 2Gs to get unlimited data. It doesnt work anymore. ATT closes loop on the iPhone 2G unlimited data plan.

And drops Galaxy S II to $149. Damn it.

root/admin for certain shared folders

<username>/smb

root/root for MAIN FOLDERS

The PICTURE and VIDEO folders are automatically linked via symbolic links by Promise 4300. So if you swap in a new drive and those PICTURE and VIDEO folders are on anything other than VOLUME1, it’ll become lost.

You’ll need to SSH into the server and rename the folder to something else. 

I used command mv PICTURE PHOTOS

So your stuff are still there. Just hidden.

http://www.patrickjwaters.com/blog/2011-07-13/my-favorite-web-server-setup-ubuntu-server-lamp-webmin-and-virtualmin/3524

http://www.google.nu/support/forum/p/voice/thread?tid=1c3cc515d0f6433a&hl=en

useful OS X commands

ps -axww | grep Sym

Find out the file path to process

http://reviewhorizon.com/2011/10/how-to-install-cyanogenmod-on-hp-touchpad/

The Kindle Fire software is now public…. so anyone tried this?

http://www.storiesinflight.com/html5/pseudo_after.html

 

<div class="framedphoto"><img src="images/crossings1.jpg" width="200" height="150"></div>

<style>
.framedphoto {
	position: relative;
	display: inline-block;
	font-size: 0;
	line-height: 0;
}

.framedphoto:after {
	position: absolute;
	top: 0px;
	left: 0px;
	bottom: 0px;
	right: 0px;
	content: " ";
	border: 10px solid;
	-moz-border-image: url('images/overlay2.png') 20 20 20 20 stretch stretch;
	-webkit-border-image: url('images/overlay2.png') 20 20 20 20 stretch stretch;
	border-image: url('images/overlay2.png') 20 20 20 20 stretch stretch;
}
</style>

http://www.storiesinflight.com/html5/pseudo_after.html

http://www.storiesinflight.com/html5/pseudo_after.html

Nice CSS flowchart diagram

http://www.htmlforums.com/css/t-flowchart-using-css-85999.html

http://valid-webs.com/samples/arrow.php

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>family tree using 32 divs </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
<!--
h1 {
    width:580px;
    font-family:verdana,arial,helvetica,sans-serif;
    font-size:18px;
    text-align:center;
    margin:40px auto;
 }
#container {
    width:580px;
    font-family:verdana,arial,helvetica,sans-serif;
    font-size:11px;
    text-align:center;
    margin:auto;
 }
#container a {
    display:block;
    color:#000;
    text-decoration:none;
    background-color:#f6f6ff;
 }
#container a:hover {
    color:#900;
    background-color:#f6f6ff;
 }
#no1 {
    width:190px;
    line-height:60px;
    border:1px solid #000;
    margin:auto;
 }
#no1 a {
    height:60px;
 }
#line1 {
    font-size:0;
    width:1px;
    height:20px;
    color:#fff;
    background-color:#000;
    margin:auto;
 }
#line2 {
    font-size:0;
    width:424px;
    height:1px;
    color:#fff;
    background-color:#000;
    margin:auto;
 }
#line3 {
    font-size:0;
    display:inline;
    width:1px;
    height:20px;
    color:#fff;
    background-color:#000;
    margin-left:78px;
    float:left;
 }
#line4,#line5,#line6 {
    font-size:0;
    display:inline;
    width:1px;
    height:20px;
    color:#fff;
    background-color:#000;
    margin-left:140px;
    float:left;
 }
#no2 {
    display:inline;
    border:1px solid #000;
    clear:both;
    margin-left:35px;
    float:left;
 }
#no2 a,#no4 a,#no8 a {
    width:84px;
    height:50px;
    padding-top:8px;
 }
#no3 {
    display:inline;
    border:1px solid #000;
    margin-left:58px;
    float:left;
 }
#no3 a,#no5 a,#no6 a,#no7 a,#no9 a {
    width:84px;
    height:42px;
    padding-top:16px;
 }
#no4 {
    display:inline;
    border:1px solid #000;
    margin-left:53px;
    float:left;
 }
#no5 {
    display:inline;
    border:1px solid #000;
    margin-left:55px;
    float:left;
 }
#line7,#line13 {
    font-size:0;
    display:inline;
    width:1px;
    height:38px;
    color:#fff;
    background-color:#000;
    margin-left:219px;
    float:left;
 }
#line8,#line14 {
    font-size:0;
    display:inline;
    width:1px;
    height:38px;
    color:#fff;
    background-color:#000;
    margin-left:281px;
    float:left;
 }
#no6,#no8 {
    display:inline;
    border:1px solid #000;
    margin-left:107px;
    float:left;
 }
#line9,#line11,#line15,#line17 {
    font-size:0;
    display:inline;
    width:26px;
    height:1px;
    color:#fff;
    background-color:#000;
    margin-top:29px;
    float:left;
 }
#line10,#line12,#line16,#line18 {
    font-size:0;
    display:inline;
    width:1px;
    height:60px;
    color:#fff;
    background-color:#000;
    float:left;
 }
#line16,#line18 {
    height:30px;
 }
#no7,#no9 {
    display:inline;
    border:1px solid #000;
    margin-left:169px;
    float:left;
 }
.clear {
    clear:both;
 }
-->
</style>

</head>
<body>

<h1>A simple family tree using 32 divs</h1>

<div id="container">

<div id="no1"><a href="">Managing Director</a></div>
<div id="line1"></div>
<div id="line2"></div>
<div id="line3"></div>
<div id="line4"></div>
<div id="line5"></div>
<div id="line6"></div>
<div id="no2"><a href="#">Sales &amp; Marketing Director</a></div>
<div id="no3"><a href="#">Production Director</a></div>
<div id="no4"><a href="#">Human Resources Director</a></div>
<div id="no5"><a href="#">Finance Director</a></div>
<div id="line7"></div>
<div id="line8"></div>
<div class="clear"></div>
<div id="no6"><a href="#">Factory Manager</a></div>
<div id="line9"></div>
<div id="line10"></div>
<div id="no7"><a href="#">Management Accountant</a></div>
<div id="line11"></div>
<div id="line12"></div>
<div class="clear"></div>
<div id="line13"></div>
<div id="line14"></div>
<div class="clear"></div>
<div id="no8"><a href="#">Quality Control Manager</a></div>
<div id="line15"></div>
<div id="line16"></div>
<div id="no9"><a href="#">Financial Accountant</a></div>
<div id="line17"></div>
<div id="line18"></div>
<div class="clear"></div>

</div>

</body>
</html>

Have to update the code a bit to work with Jquery 1.7

 

function handleData(iframe, type) {

    if (type == “json”) {

    return $(iframe).contents().find(‘body’).html();

    } else {

    var data, contents = $(iframe).contents().get(0);

    if ($.isXMLDoc(contents) || contents.XMLDocument) {

    return contents.XMLDocument || contents;

    }

    data = $(contents).find(‘body’).html();

    if (type == ‘xml’) return parseXml(data);

    else return data;

    }

  } 

http://medialize.github.com/jQuery-contextMenu/index.html

Good jQuery color picker

http://abeautifulsite.net/blog/

http://www.lendmeyourear.net/breadcrumb-navigation-with-css-arrows.html

http://fireworks.abeall.com/extensions/commands/

http://www.vart.io/awesome-extensions/

jQuery deferred function

http://msdn.microsoft.com/en-us/scriptjunkie/gg723713

HTML5 performance boosts

http://www.1stwebdesigner.com/design/snippets-html5-boilerplate/

Drag select in jQuery

http://www.myphpetc.com/2009/01/jquery-multiple-draggable-elements.html

http://plugins.jquery.com/files/jquery.dragselect.js_.txt

http://threedubmedia.com/code/event/drop/demo/selection

http://pastebin.me/4878f6c4784a4

Some cool jQuery stuff

http://www.1stwebdesigner.com/freebies/drag-drop-jquery-plugins/

http://www.makemineatriple.com/2007/10/passing-parameters-to-a-function-called-with-settimeout

setTimeout(function(){myFunction(parameter)}, myTimeout);

http://tympanus.net/Tutorials/ImageVampUp/

jQuery this selector

http://www.javascript-coder.com/jquery/jquery-selector-this.phtml

 

When you handle events for a particular element, it is often required to make a change only within children of the element. Here is how to do it.

Suppose this is the HTML code

<h2>Select the services you want:</h2>
<ul id='services'>
<li><img src='tick.gif'>Build a Website</li>
<li><img src='tick.gif'>Page design</li>
<li><img src='tick.gif'>Flash banners</li>
<li><img src='tick.gif'>SEO</li></ul>
</ul>

When someone clicks on each of the service, the image is to toggle.
Here is the jQuery code to do that

$(function()
{
    //handle the click for each of 'li'
    $('ul#services li').click(function()
    {
        //toggle the image
        var newimg =
            $('img',this).attr('src') == 'tick.png' 'cross.png' 'tick.png';
        /*
        notice the second parameter to $() is the context.
         'this' is the 'li' that was clicked.*/
        $('img'this).attr('src',newimg);
    });
});

http://jsbin.com/ipoxe5/edit#javascript,html,live

 

$(document).ready(function(){

  $(“img”).resizable({ handles:’n,e,s,w,ne,se,nw,sw’ , maxHeight: 300, aspectRatio: true }).parent().draggable({containment: “#droppable”, snap:false});  

  $( “#droppable” ).droppable({

      drop: function( event, ui ) {

        $( this )

          .find( “p” ).hide();

      }

    });

});

http://aleembawany.com/2009/01/25/jquery-resizable-draggable-bug-workaround/

 

$('#box').resizable().parent('.ui-wrapper').draggable(); 

http://ryanflorence.com/sandbox/aligned-labels.html

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<title>untitled</title>
	<style type="text/css">
	ol{
		padding-left: 0;
		margin-left:0;
	}

	ol>li {
		list-style-type: none;
		margin-bottom: .5em;
	}

	ol>li input[type=radio] {
		display: -moz-inline-box;
		display: inline-block;
		vertical-align: middle;
	}

	ol>li label {
		display: -moz-inline-box;
		display: inline-block;
		vertical-align: middle;
	}
	</style>
</head>

<body>
	<fieldset>
	    <legend>Radio Buttons</legend>
	    <ol>
	        <li>
	            <input type="radio" name="radio" id="x">
	            <label for="x">blah blah<br/>blah blah<br/>blah</label>
	        </li>
	        <li>
	            <input type="radio" name="radio" id="y">
	            <label for="y">blah blah<br/>blah blah<br/>blah</label>
	        </li>
	    </ol>
	</fieldset>

</body>
</html>

http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/

 

$(‘.container’).hover(function(){

var position = $(this).children().position();

$(“.detail”, this).stop().animate({bottom: 0},{queue:false,duration:600});

}, function() {

var position = $(this).children().position();

$(“. detail”, this).stop().animate({bottom : -70},{queue:false,duration:600});

});

});

http://blog.gotofritz.net/

http://support.firecore.com/entries/387605

  1. Go to http://www.16paws.com/projects/NS4300N/dropbear.html
  2. Download the http://www.16paws.com/projects/NS4300N/dropbear_ppg/dropbear_005200.ppg
  3. Copy ppg file to your Promise drive
  4. Go to your web admin for your 4300n drive
  5. Go to Application Plug-ins and enable the new ppg file
  6. SSH into your promise drive using ssh admin@IP address using your admin password

Once you are inside SmartStor SSH:

  • The sudoers file is at /etc/sudoers
  • Type uname -mrs to see the operating system. Should be Linux 2.6.11SR3_1_2 ppc
  • You can copy and move files using cp and mv commands
  • Commands are: alias bg break cd chdir command continue eval exec exit export  false fg getopts hash help jobs kill let local pwd read readonly  return set shift times trap true type ulimit umask unalias unset  wait [ ash basename bunzip2 busybox bzcat cat chgrp chmod chroot  chvt clear cmp cp cut dd deallocvt df dirname dmesg du echo egrep  env expr false fgrep free getty grep gunzip gzip head hostname  id ifconfig insmod install kill killall ln loadkmap logger login  ls lsmod mkdir mknod mkswap more mv netstat nslookup openvt passwd  pidof ping ps pwd reset rm rmdir rmmod route run-parts sed sh  sleep sort start-stop-daemon strings stty sulogin swapoff swapon  sync tail tar tee test time top touch tr true tty uname uniq  unzip uptime usleep vi vlock wc whoami xargs yes zcat 

 

Latest DLNA drivers

this is the new ftp address for the DLNA plugin 01.02.0000.05 A6
thanks to Promise on Twitter

ftp://oem.promise.com
username: promisenas
password: dlna

Go here to learn more http://www.avsforum.com/avs-vb/showthread.php?t=859675&page=19

http://mizupc8.bio.mie-u.ac.jp/pukiwiki/?Promise%20NS4300N#hf420c97

Know any more hacks? I want to increase the speed of copies. 4300n is so damn slow over network.

history
get history of commands

history | grep “sudo”
find all history of commands that has sudo in it

history > commands.txt
output the history to a text file

increase scrollback buffer in OS X

  1. Edit .bash_profile 
  2. Add HISTFILESIZE=2000

 

Copy files recursively keeping directories
cp . -b –parent /usbdrive

Find files by certain size and copy them
find . -size -4gb -exec cp -b –parent ‘{}’ /downloads \;

restart shell

  • . .bash_profile
  • sh .bash_profile

 

Rsync only certain file size
rsync -rv –max-size=1.5m root@tss01:/tmp/dm

Prevent SSH disconnect
edit /etc/ssh/ssh_config
ServerAliveInterval 100

Copy files without overwrite and typing Y over and over again
yes n | cp -R -h -i /dirone/* /dirtwo 

Creating alias shortcuts
alias browse=’nautilus’
alias gohere=’cd /gohere’

You can save shorts to your .bash_profile file. 

http://mizupc8.bio.mie-u.ac.jp/pukiwiki/?Promise%20NS4300N

http://www.lineshjose.com/how-to-create-x-time-ago-date-format-in-php.html

Older Posts »