Hello and Good Day,

I have a multiple images that is played on flanis. On my iFrame, this images are not fitted.

I want to have a flanis that is responsive fitted on my iFrame.

so I tried this one image only in the <img> tag and it works fine.

Here is my code at this moment. Changing the <Height> to <auto> does not do the trick for me. It only show the 1/4 of the images + the control buttons.

Trying the <display: block> does not change any. Even the shrinking part on <img2>

<!-- <style>
body {
        display: block;
        overflow: auto;
img2 {
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="flanis" height="auto" width="800">
                <param name="movie" value="./flanislocal.swf">
                <param name="quality" value="high">
                <param name="menu" value="false">
                <param name="FlashVars" value="configFilename=flanist1.cfg">

                <embed src="./flanislocal.swf" name="flanis" swliveconnect="false" quality="high" menu="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="noscale" flashvars="configFilename=flanist1.cfg" height="820px" width="800px">



I hope anyone can help me figure out other solution.


Hello Daniweb Family,

I am trying to create something like a "Earthnull" look alike. I am not good in coding and try to find something that can help me to start on. I found something very similar on what will be the target output.


<!DOCTYPE html>
<html lang="en">
  <meta charset="utf-8" />
  <canvas width="960" height="500"></canvas>
  <canvas width="960" height="500" class="offscreen" style="display: none;"></canvas>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.5/dat.gui.min.js"></script>
<script src="vec2.js"></script>
<script src="vec3.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=false"></script>

<div id="map" style="height:700px; width:1100px"></div>
    var map = new google.maps.Map(document.getElementById('map'), {
      center: new google.maps.LatLng(13.0000, 122.0000),
        zoom: 6,
        mapTypeId: google.maps.MapTypeId.TERRAIN,
      zoomControlOptions: {
         position: google.maps.ControlPosition.LEFT_BOTTOM

    var infowindow = new google.maps.InfoWindow({
      maxWidth: 800




NOTE: I inserted the google map in here and it did not overlay on the javascript.


function Vec2(x, y) {
  this.x = x || 0;
  this.y = y || 0;
  this.count = 0;
  return this;

Vec2.prototype.add = function(v) {
  this.x += v.x;
  this.y += v.y;
  return this;

Vec2.prototype.subtract = function(v) {
  this.x -= v.x;
  this.y -= v.y;
  return this;

Vec2.prototype.scale = function(s) {
  this.x = this.x * s;
  this.y = this.y * s;
  return this;

Vec2.prototype.scaleTo = function(s) {
  var length = this.length();
  this.x = this.x * s / length;
  this.y = this.y * s / length;
  return this;

Vec2.prototype.normalize = function() {
  var length = this.length();
  this.x = this.x / length;
  this.y = this.y / length;
  return this;

Vec2.prototype.length = function() {
  return Math.sqrt(this.x * this.x + this.y * this.y); ...

Hello Sir Rubberman,

I just delete some of the data to my extracted file. Adjusting to my file is the only way I can do. After I delete first and second column the [:] is now working. The problem I think is even the string/text is included to the graph I make. But thank you for the time and reply sir.

PS: Sorry for late feedback

Hello Daniweb,

As my title, I have a problem in my gnuplot.

I can set the minimum range based on my file.. but doing the maximum range it give a wrong output for min and max yrange.

I been searching for net and tried there solutions but it won't work for me.

This is my script line for me yrange:

set yrange [*:35] noreverse nowriteback
#set yrange [*:*] noreverse nowriteback

The first line is working, but to get the best graphical image is getting the min max of the data.

The second line is not working, as I see that is the closest answer on my problem.

Please help me to get the min max for my yrange.

This is my script:

set terminal pngcairo
set datafile separator ','
set style fill solid 0.3
set grid
set title 'Test Guide'
set offset graph 0.05, graph 0.05, graph 0.05, graph 0.05
set yrange [*:35] noreverse nowriteback
#set yrange [*:*] noreverse nowriteback
set ylabel 'Temperature'
set xlabel 'Day 0 to Day 5'
set output 'test.png'
plot 'new_test.dat' using 2:xticlabels(1) with line t 'Testing'

Thank you and God Bless

Hello Sir Cereal,

This is cool I got it, but I dunno if it really connects coz typing the right password the output still says

"Authentication failure" same when typing a wrong password.

PS: Sorry for the late reply got loads of projects :(

Hello Sir Cereal,

Terrific that line 21 cause of it and also

$myusername = mysqli_real_escape_string($conn, $myusername);
$password = mysqli_real_escape_string($conn, $mypassword);
$sql="select * from $tbl_name where pwd='$mypassword' and name='$myusername'";
$result=mysqli_query($conn, $sql);

the $conn for this :) and Thank you for letting me know the Error Log & Access Log.

I see the line 21 on the Error Log aswell.

But it seems it is not connecting with my database.

Before I add the date, the browser display "Cannot Select Database".

Which is on my line 19

mysqli_select_db("$db_name")or die("Cannot Select DataBase");

but doing "use nms;" in my mysql and do "select * from users;"

There is my database, what could be the cause? :((

But atleast the browser is not blank now lol

Hello Sir Cereal,

I'm abit confuse about

Is the Apache access log registering the requests? Are you accessing the form page from the server or through file:///?

In my firefox browser, I type this.. localhost/portal/Test/login.html

I think I set my localhost as /var/www/html

Currently I change the lines that you have suggested.







$tbl_name = "users";

$conn = mysqli_connect("$username","$password")or die("Cannot Connect!");

mysqli_select_db("$db_name")or die("Cannot Select DataBase");



$myusername = stripslashes($myusername);

$mypassword = stripslashes($mypassword);

$myusername = mysqli_real_escape_string($conn, $myusername);

$password = mysqli_real_escape_string($conn, $mypassword);

$sql="select * from $tbl_name where pwd='$mypassword' and name='$myusername'";

$result=mysqli_query($conn, $sql);


if ($count == 1)
        echo "***Login Successfully***";


        echo "***Authentication Failure***";


and I just run "sudo service apache2 restart" just to be sure..

and yet still no output after filling up and clicking the login button still no output and give me a blank page.

and there is no error appear even I add "error_reporting(E_ALL);" in my login.php file.

By the way, my mysql database name is "nms" and the table name is "users"

Under "users" I just create 3 columns namingly as "userid" "username" and "password"

does any conflict happen with my mysql database to my code?

Hello Sir Cereal,

I done install php5 and mysql aswell the apache2..

I'm back from nowhere again.

I follow some youtube simple login using html as the front end and php as the backend...


<title>Account Login</title>

<form name="Login-Form" id="login-form" method="post" action="login.php">
        <legend>NMS Products Access</legend>
                        <label title="username">Username:
                        <input tabindex="1" accesskey="u" name="uname" type="text" maxlength="255" id="username" />

                        <label title="password">Password:
                        <input tabindex="2" accesskey="p" name="pwd" type="password" maxlength="255" id="password" />
                        <label title="submit">
                        <input tabindex="3" accesskey="s" type="submit" name="cmdlogin" value="Login" />


and login.php






$tbl_name = "users";

$conn = mysqli_connect("$username","$password")or die("Cannot Connect!");

mysqli_select_db("$db_name")or die("Cannot Select DataBase");



$myusername = stripslashes($myusername);

$mypassword = stripslashes($mypassword);

$myusername = mysqli_real_escape_string($myusername);

$password = mysqli_real_escape_string($mypassword);

$sql="select * from $tbl_name where pwd='$mypassword' and name='$myusername'";



if ($count == 1)
        echo "***Login Successfully***";


        echo "***Authentication Failure***";


and still I come to a blank page after clicking the button.

But checking the info.php it appears.

I can't find the problem.

I didn't use the Nginx since I still use the php5.. and I use mysqli instead of mysql.. and I still use the apache2

but still not good. :((

Hello Sir Cereal,

I remove mysql to get the mysqli and also my php5 to get php7.. I even change my apache2 to nginx and I think I mess up in removing this items.

When I was trying to undo what I done everything has been not working lol

So I erase my work and recreate my ubuntu.

Can you give me what I need to install software to make this work please.

Thank you and God Bless

Hello DaniWeb Users;

I'm not a good coder here please hold on me,

My machine is linux ubuntu 14.04 and I install apache2 also the php5.

I was trying to create a simple log in page here (no registration thing)

So in mysql I just create 3 fields (user_id, username, password)

This is my connection script called dbconnect.php

$servername = "localhost";
$username = "root";
$password = "pagasa";

// Create connection
$conn = new mysql($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
echo "Connected successfully";

and this is my log in script called login.php

        require_once 'dbconnect.php';

        if ( isset($_SESSION['user'])!="" ) {
                header("Location: home.php");

        if ( isset($_POST['btn-login']) ) {

                $uname = $_POST['username'];
                $upass = $_POST['password'];

                $uname = strip_tags(trim($uname)));
                $upass = strip_tags(trim($upass)));

                $password = hash('pagasa', $upass);

                $res=mysql_query("SELECT password FROM user WHERE username='$uname'");


                $count = mysql_num_rows($res);

                if ( $count == 1 && $row['password']==$password ) {
                        $_SESSION['user'] = $row['user_id'];
                        header("Location: home.php");
                } else {
                        $errMSG = "Not valid, Please Try again..!";

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


<meta http-equiv="Content-Type" content="text/html"; charset=utf-8 />
<title>Login Page</title>
<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />



        <div class="container">

        <div id="login-form">
                <form method="post" autocomplete="off">

                <div class="col-md-12">

                        <div class="form-group">
                                <h2 class="">Sign In.</h2>

                        <div class="form-group">
                                <hr />

                        if ( isset ( $errMSG ) ) {


                <div class="form-group">
                        <div class="alert alert-danger">
                <span class="glyphicon glyphicon-info-sign"></span> <?php echo $errMSG; ?>


                } ...

Hello Sir Gribouillis,

I try to run the python test1.py (I save it as test1.py)

an error appear

usage: test1.py [-h] DIR
test1.py: error: too few arguments

Do I need to change anything to the code? PS: Sadly, I don't know how to code python. :(

Hello CimmerianX,

I try the code

find . -name "*.gr2" -exec sh -v 'mv $1 $(echo $1 | cut -f 4 -d"_")' _ {} \;

and error appear.

sh: 0: Can't open mv $1 ${echo $1 | cut -f 4 -d"_")
sh: 0: Can't open mv $1 ${echo $1 | cut -f 4 -d"_")
sh: 0: Can't open mv $1 ${echo $1 | cut -f 4 -d"_")
sh: 0: Can't open mv $1 ${echo $1 | cut -f 4 -d"_")
sh: 0: Can't open mv $1 ${echo $1 | cut -f 4 -d"_")

am I missing something or I doing it wrong? or do I need something? coz it says Can't open mv :(

Sorry for the late feedback :(

Hello DaniWeb Users,

I need some help how I can change a file name but not the file extension.

Doing it one by one is pain.

mv file1.gr2 test1.gr2

doing this will need a lot of time.

I been searching for an hour

find . -name "*.gappedPeak" -exec sh -c 'mv "$1" "${1%.gappedPeak}.bed"' _ {} \;

this command change the file extension but not the file name.

Please help me how I can change file name.

Actually I would just cut some of the file name

Example of my file:


I would like to remove this Test_Sampled01 without changing the file extension.

Hello Sir,

I just type the sudo -i baobab

(baobab:14019): Gtk-WARNING **: cannot open display:

Any other way? using a console/terminal?

Hello Sir Griboullis,

I have the Baobab in my /usr/bin/baobab

Sir how I can run this baobab?


Hello Sir Rch1231,

When I backup some of the files and delete some of it.

It give space but the weird thing is why my disk is already full?

but I tried some thing like this:

  1. cd /

  2. du -ch (to all file of /)

and the result is 406g and I think it stop on its own because a message appear:

Message from syslogd@ at Thu May 12 16:19:46 2016 ...
tower05 kernel: journal commit I/O error

Correct me if I'm wrong, doing a du -ch in the path of "/" means checking the size of my linux?

I mean all the file inside of my linux?

Hello Sir Gribouillis,

I'm afraid I may not have the right to install software in our workstation.

Do I need to install this Graphical Disk Usage Analyser?

Hello Daniweb Users,

I just want to know when doing the command "df -lh" my /dev/sda1 got 100%

I do transfer some of the files but still it can be full any moment.

I have 438G size of hard disk. and 398G that has been used "said by the df -lh command"

So this is what I do to solve my problem:

I would like to track how can that be...

  1. cd / (I do go to the directory /)

  2. du -ch (every thing inside of this directory; home, bin, etc....etc..)

after doing this I just get a 3 item that has bigger in size (other have less 1gb)

  1. Home = 65G

  2. OPT = 4.6G

  3. USR = 4.3G

Am I doing it wrong? Please help or suggest what I can do to find things that make my disk full.

I just search for the internet is it maybe some ghost file in my machine?

Hello Sir/s

Just an update..

I just replace the UUID to straight path like /dev/sdc5 and poof it is auto mount now.

Thank you guys for the help.

Here is the final thing I did:

  1. sudo vim /etc/fstab

  2. Instead of UUID I use /dev/sdc5

  3. this is the complete line I wrote.

/dev/sdc5 /media/Archive vfat defaults 1 2

  1. I really don't know the 1 and 2 at the last line. When I did 0 0 it is not working. When I change this to 1 and 2 I think this solve the mystery.

Thank you again Sir. I will be creating new thread for my new problem.

I hope you can help me again.

Hello Sir,

I keep on repeating the step I did and remove the umount procedure.

I found out about the UUID thing. I successfully reboot and auto mount it in my station.

My station has fedora, I don't own this fedora but I just try to this machine and I mount it.

The problem now is I trying this to red hat machine.. using VIM I get a red thing to the line that I just added.

UUID=567B-0050 (the red thing is on the word UUID= and also to the (minus) - )

I was looking to the internet if I need to download this UUID?

Hello Sir/s

An update:

I unplugged and plugged again the external.

and start using fdisk -l (/dev/sdd1)

and turns out that my sdc1 gone and sdd1 appear (my external Hard Disk)

when I use df -lh (/dev/sdc1) it exist.

I look for mtab also but I don't add anything there but it appears like this:

/dev/sdc1 /media/NMS_Archive vfat rw 0 0

This mounting hard to understand

Hello Sir/s,

Thank you for your replies and answering the question.

The work station have a RedHatEnterpriseLinuxClient release 5.6 (Tikanga)

and I do remote this station using an Ubuntu via VMware.

Sorry Sir I don't understand something like GPT or UID.. is this GPT is the Gparted Partition Editor?

Currently this is what I do:

  1. df -lh / fdisk -l (To see my external Hard Disk)

  2. sudo mount /dev/sdc1 /media/Archive/ (This Archive folder is not empty it has files inside)

  3. df -lh (Seen this sdc1 and /media/Archive/ has same size)

  4. sudo vim /etc/fstab (I add /dev/sdc1 /media/Archive/ ntfs defaults 0 0)
    But I remember I format this External to Fat32 but seeing the result in df -lh it is NTFS

  5. sudo umount /dev/sdc1 /media/Archive/

At this moment all files inside of the /media/Archive/ gone but when I check df -lh it says:
Size: 2.8T | Used: 11g | Avail: 2.8T | Use%: 1%| Mounted on: /media/Archive

Anything I did wrong? The File inside of Archive is gone but I do have back up. I just test not to be empty.

Good Day DaniWeb Users,

I'm having hard time to mount my 3 TB External Hard Drive/Disk

I do mount my external hd using this command..

sudo mount /dev/sdc1 /media/Archive/

I do

df -lh

and seen my mounted device.

Here is my Problem:

  1. When I enter fdisk -l ~ I saw a warning:

WARNING: The size of this disk is 3.0 TB (3000558944256 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).

what would be the problem? I do format it in a Windows Machine using Partition Wizard. and set it FAT32 since the Red Hat Machine can't find NTFS format. (That is my conclusion since my USB is Fat32 format and no problem at all)

  1. Suddenly a Power Shut off happen then the system is down. What happen to my mounted External? Is there any solution to remain my mounted external?

  2. Am I right with my code earlier? I'm not really good at linux.

  3. My machine is Ubuntu and the one need to be mount is a Red Hat. I just used ssh command. Does it affect in mounting?

  4. I have an existing folder name "Archive" which is not empty it has files inside. When I mount the external to this folder what will happen?

Thank you and Sorry for my bad english.

Hello Sir Gribouillis,

Thank you for your help sir. That add me knowledge.

I only see my co-worker using the mouse ball to copy and paste but I still don't know the trick on that.

Ctrl+Shift+C / V now it is easy for me to copy & paste :)

I be seeing the Date Command Linux in google. Thank you again Sir.

Will update for the next Question that encounter.

Some commands like "-vp" "-rf" "grep '^-' " and many more that haven't seen commands.

Hello Sir Rubberman,

I create my own file so I won't affect any file in the Crontab.

Correct me if I'm wrong, Crontab is something like a setting a schedule?

My boss said that I can insert my file to Crontab but that will be the last part to do I think.

So I focus now on the Time initialization.

I'm afraid I don't know how to copy paste code because I run my Ubuntu in a VMware.

and I really don't know also how to copy paste in terminal. (Sorry I used Microsoft from my entire life)

So going back.. I access the other Computer (Linux Base) where the running program was there.

Just using the Vim command to rewrite the code.

I try re-type the code where the time and date are related:

So this one is the format to be followed.


function fc_date {
           hh=`printf "%02d" $1`
           FDATE=`date -d ""$YMD" +"$HH" hours +"$hh" hours + 8 hours" +"%a %d-%b-%Y %I%p"1

function date-near3 {
            if [ -z $1 ];
                               chr=`date -u +%-H`
                               rhr=$(( chr%3 ))
                               YMDH=`date -u -d "now - $rhr hours" +%Y%m%d%H`
             elif [[ $1 == *[!0-9]* ]];
                                echo "$1 is not a valid input. Format should be YYYYMMDDHH"
                                exit 1
             elif [[ $1 -le 2012110100 || ${1:8:2}%3 -ne 0 || $1 -ge 202012311 ]];
                                echo "$1 is not a valid input. Format should be YYYYMMDDHH"
                                exit 1

function date_chop {
} ...

Hello DaniWeb / Linux Users and Programmers,

I am 90% new to the world of Linux.

I was instructed to edit a running program.

The purpose of editing this program was to follow the format of the other running program.

But it is hard for me to understand because some of the codes have like this:

-u , -d , +%-H , -ud , $1 , etc...

So I look on the internet but it show the basic commands not the exact meaning for the given example.

anyone can tell me the meaning for it?

for fast track... and also I was focusing first on Time...

Hello Sir Mr.M,

I don't know if this will help you..

I think your image must be .ico file.

This one is running a batch file:

Icon := "C:\SOFTWARE\_icons\red_folder.ico"

  loop 27 { ;A-Z (26) + (0-9) = 27
    SendInput, {AppsKey}
  Sleep 100
  SendInput,r  ;opens pRoperties window at General tab
    WinWaitActive, Properties
    SendInput, ^{Tab} ;Sharing tab
  Sleep 100
    SendInput, ^{Tab} ;Security tab
  Sleep 100
    SendInput, ^{Tab} ;Previous versions tab
  Sleep 100
    SendInput, ^{Tab} ;Customize tab
  Sleep 100
    SendInput, !i ;Change icon
  Sleep 100
    WinWaitActive, Change Icon
    SendInput, %Icon%
  Sleep 500
  SendInput, {Enter 3}
  Sleep 1000
  SendInput, {down} ;to next folder
  Sleep 200

Source: https://autohotkey.com/board/topic/77788-batch-change-file-or-folder-icons/

I think it was set to press "F1" to change the Icon.

Maybe someone can help you in batch if this solution may solve your problem.

Hello Mr.M,

I don't know if I got your idea...

In your example about music (Windows Media Player and VLC)

As default you have Windows Media Player as your Music Player

At the same time you installed VLC for new environment or stuff.

You want to play all your Music using VLC Player and automatic to use VLC.

Right click the one music, choose "Open With.." under that is "Choose default program.."

there you can see all the available music player.

If I got your point maybe you should include what program did you use.

Then maybe I can look a solution or someone can.

PS: I don't know if there is a Extension in a Folder. Folder can change the Icon in its Properties but I don't know if you can apply it to all.

Hello Sir Ben,

Using Frameset or iFrame..

See this link to guide you: http://www.w3schools.com/tags/tag_frame.asp

Ben ben commented: ok, whiceh is the easiest to work with.. thanks for your support +0
gentlemedia commented: frames and framesets is the worst you could use these days. -1

Hello Sir stultuske,

currently I'm using .FORWARD_CLOSED_ARROW as my ICON

<!DOCTYPE html>


var track;
var stepDisplay

var myCenter=new google.maps.LatLng(this is my coordinates);

function initialize()
var mapProp = {

var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);

var trackCoordinates = [
    {lat:7.0 , lng:129.0},
    {lat:8.0 , lng:123.0},
    {lat:8.5 , lng:118.0},
    {lat:7.0 , lng:109.0},


stepDisplay = new google.maps.InfoWindow();

var lineSymbol = {
    path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW,
    scale: 10,
    strokeColor: '#2162a3'

    trackPath = new google.maps.Polyline({
    path: trackCoordinates,
    icons: [{
      icon: lineSymbol,
      offset: '100%'
    strokeColor: '#FF0000',
    strokeOpacity: 1.0,


function animateCircle() {
    var count = 0;
    window.setInterval(function() {
      count = (count + 1) % 200;

      var icons = trackPath.get('icons');
      icons[0].offset = (count / 2) + '%';
      trackPath.set('icons', icons);
      radius: Math.trackPath * 200
  }, 30);

google.maps.event.addDomListener(window, 'load', initialize);

<div id="googleMap" style="width:1000px;height:650px;"></div>

maybe a marker will be cool, so it will be look like a active GPS.

but if it can be an image file that would be awesome.

Hello DaniWeb Community,

I have a question about changing the symbol of my tracker.

I am using google.maps.SymbolPath.CIRCLE

Can I change this to a image of mine? jpeg / png file

If yes, How I can do it?

Thank you and God Bless


Hello DaniWeb,

After searching for solution I figured it out.

I just want to share that someone might encounter same problem as mine.

So I add z-index.

.dropdown:hover .dropdown-menu {
    z-index: 999;
    display: block;

That solve the problem.