Run the following command in the terminal
sudo dscacheutil -flushcache
For Windows:
ipconfig /flushdns
HTML: Open link in a new window
The key to use is target="_blank"
Eg:
Eg:
<a target="_blank" href="http://glidingphenomena.blogspot.com/">
My Blog
</a>
MySQL : Sort by Date and Time together when there are in different columns
Suppose you have date and time in two different columns of your table.
We can sort date and time together by using the ADDTIME function.
You can also use the ADDTIME in the select clause to get data and time together.
We can sort date and time together by using the ADDTIME function.
select * from mytable ORDER BY ADDTIME(mydate, mytime);
You can also use the ADDTIME in the select clause to get data and time together.
select ADDTIME(mydate, mytime), city from mytable
jQuery : Scroll to top/bottom of a specific DIV
Scroll to the bottom of the div:
Scroll to the top of the div:
$jq('#divWithOverflowAuto').animate({
scrollTop: $jq('#divWithOverflowAuto')[0].scrollHeight}
);
}
Or you can use: $jq('#divWithOverflowAuto').animate({
scrollTop: $jq('#divWithOverflowAuto').attr('scrollHeight')}
);
}
Scroll to the top of the div:
$jq('#divWithOverflowAuto').animate({
scrollTop: 0 }
);
}
Subscribe to:
Posts (Atom)
Detectron2 + PyTorch CPU : Fix Install issue
Detectron2 + PyTorch CPU ❌ The error $ pip install -q --extra-index-url https://download.pytorch.org/whl/cpu torch torchvision $ pip inst...
-
I was moving my cakephp application to a new server and had this issue: Error: The requested address “/” was not found on this server. The...
-
How to fix Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' Apparently, Ma...
-
We can login into Amazon EC2 instance using Filezilla FTP client for simple transfers of local files. Following are the steps: 1. Downloa...