Fortigate bandwidth monitoring
I have a Fortigate 200B with Forti OS 5.0.
How can I watch the total bandwidth being used by my unit both incoming
and outgoing?
Thanks
Monday, 30 September 2013
What seems wrong with this bash script?
What seems wrong with this bash script?
I found an initscript that for some reason insists on starting the
specified application as the root user. I can't wrap my head around why it
is doing this, any hints? The script runs on Redhat Enterprise Linux 5.9.
#!/bin/bash
#
# Start/Stop apfe.
#
# chkconfig: - 62 38
# description: apfe
# Start script for an apfe process.
# Apfe does not normally run as root, so we change user
# and call the real script in $USERDIR.
STARTUSER=apfe
USERDIR=/app/apfe/apps/apfeutils/bin
PROGNAME=apfe
su - $STARTUSER -c "$USERDIR/$PROGNAME $*"
I found an initscript that for some reason insists on starting the
specified application as the root user. I can't wrap my head around why it
is doing this, any hints? The script runs on Redhat Enterprise Linux 5.9.
#!/bin/bash
#
# Start/Stop apfe.
#
# chkconfig: - 62 38
# description: apfe
# Start script for an apfe process.
# Apfe does not normally run as root, so we change user
# and call the real script in $USERDIR.
STARTUSER=apfe
USERDIR=/app/apfe/apps/apfeutils/bin
PROGNAME=apfe
su - $STARTUSER -c "$USERDIR/$PROGNAME $*"
How can I check if website is already opened in a webbrowser?
How can I check if website is already opened in a webbrowser?
I'm doing this:
Process.Start("http://www.google.com");
After the default webbrowser is opened the website i want to check somehow
that the website is opened by the webbrowser and close the specicif tab
with this website.
To make a button click event that will check that if the website is
already opened then close it.
I'm doing this:
Process.Start("http://www.google.com");
After the default webbrowser is opened the website i want to check somehow
that the website is opened by the webbrowser and close the specicif tab
with this website.
To make a button click event that will check that if the website is
already opened then close it.
What does y scaling mean in svm-scale
What does y scaling mean in svm-scale
Does it mean to scale the value of the target(class),which is the first
column of every instance?
Regards,
amber@cent64 libsvm-3.17]$ svm-scale Usage: svm-scale [options]
data_filename options: -l lower : x scaling lower limit (default -1) -u
upper : x scaling upper limit (default +1) -y y_lower y_upper : y scaling
limits (default: no y scaling) -s save_filename : save scaling parameters
to save_filename -r restore_filename : restore scaling parameters from
restore_filename
Does it mean to scale the value of the target(class),which is the first
column of every instance?
Regards,
amber@cent64 libsvm-3.17]$ svm-scale Usage: svm-scale [options]
data_filename options: -l lower : x scaling lower limit (default -1) -u
upper : x scaling upper limit (default +1) -y y_lower y_upper : y scaling
limits (default: no y scaling) -s save_filename : save scaling parameters
to save_filename -r restore_filename : restore scaling parameters from
restore_filename
Sunday, 29 September 2013
responsive navigation links wont react to class
responsive navigation links wont react to class
I am working on a website simplemedia.dk
i have a responsive menu that works, but when i am trying to define the
in responsive mode the browsers does not recognize the style ..
in responsive mode i get a class called "responsified" and i tried adding
the class .responsified in front of my navigation style but it doesnt
react to it.
.responsive-menus .responsive-menus-0-0 .absolute .responsified
.responsive-toggled #navigation ul.menu{display:block; float:left; }
.responsive-menus .responsive-menus-0-0 .absolute .responsified
.responsive-toggled #navigation ul.menu li{display:block; float:left;}
In normal mode i want it to display table-cell which it does, but in
responsive i want it to show block.
I am working on a website simplemedia.dk
i have a responsive menu that works, but when i am trying to define the
in responsive mode the browsers does not recognize the style ..
in responsive mode i get a class called "responsified" and i tried adding
the class .responsified in front of my navigation style but it doesnt
react to it.
.responsive-menus .responsive-menus-0-0 .absolute .responsified
.responsive-toggled #navigation ul.menu{display:block; float:left; }
.responsive-menus .responsive-menus-0-0 .absolute .responsified
.responsive-toggled #navigation ul.menu li{display:block; float:left;}
In normal mode i want it to display table-cell which it does, but in
responsive i want it to show block.
How do I make a Time Conversion program on java?
How do I make a Time Conversion program on java?
![Its a Project im working on at school][1]
How do i make it go from Minutes-Hours? 135mins-2:15hours I just started
programming help me please!!
![Its a Project im working on at school][1]
How do i make it go from Minutes-Hours? 135mins-2:15hours I just started
programming help me please!!
How remap CTRL-key to Alt right (tried everything)
How remap CTRL-key to Alt right (tried everything)
My specs: Xubuntu 13.04, which uses (what I believe) Xorf as X Window
Manager.
Intro: some weeks ago I switched to Linux (Xubuntu). I configured
everything to work only with my keyboard without ever using the mouse.
Works like a charm. But recent, I wanted to remap the [ctrl] to
[capslock]. ~/.xmodmap seems not working. I found the answer here:
**/usr/bin/setxkbmap -option "ctrl:nocaps"** does the trick. I putted the
command as autostart.
Works fine until I got RSI-like issues with my left pink the last days. My
pink tingles weird and causes much pain at the end of day (even I'm using
ergonomic keyboard!). I tried everything to avoid this, like the correct
posture and taking breaks, weight lifting. Nothing helps. Then I looked
closer to my keyboard flow. I noticed I use the spacebar most, on second
the [Capslock]-button that behaves like [ctrl]. But I have no pain in my
thumbs. I dont use the right [Alt], so it would be better if I remap the
[ctrl]-key to [alt-key], so I can activate [ctrl] with my thumb.
What have I done?
Tried this: /usr/bin/setxkbmap -option "ctrl:alt_R" Not working.
Tried this: /usr/bin/setxkbmap -option "ctrl:Meta_R" Not working.
Tried the .xmodmap configuration. I start xev, pressed the right [alt] key
and it gives me keycode 108. [ctrl] gives me 37. So i create up ~/.Xmodmap
and map: keycode 108 = Control_L and reboot. Not working.
I've searched through the forums a lot, but have not found a solution. Any
suggestions how manage the right Alt+key behave as [ctrl]-key?
Thanks in advance for your appreciated help.
================== Edit: found the answer! Without the open source spirit,
I would never able to find my way here. And everyone benefits too!
The answer is..... bumbumbrrrrr...
setxkbmap -option ctrl:ralt_rctrl :D
My specs: Xubuntu 13.04, which uses (what I believe) Xorf as X Window
Manager.
Intro: some weeks ago I switched to Linux (Xubuntu). I configured
everything to work only with my keyboard without ever using the mouse.
Works like a charm. But recent, I wanted to remap the [ctrl] to
[capslock]. ~/.xmodmap seems not working. I found the answer here:
**/usr/bin/setxkbmap -option "ctrl:nocaps"** does the trick. I putted the
command as autostart.
Works fine until I got RSI-like issues with my left pink the last days. My
pink tingles weird and causes much pain at the end of day (even I'm using
ergonomic keyboard!). I tried everything to avoid this, like the correct
posture and taking breaks, weight lifting. Nothing helps. Then I looked
closer to my keyboard flow. I noticed I use the spacebar most, on second
the [Capslock]-button that behaves like [ctrl]. But I have no pain in my
thumbs. I dont use the right [Alt], so it would be better if I remap the
[ctrl]-key to [alt-key], so I can activate [ctrl] with my thumb.
What have I done?
Tried this: /usr/bin/setxkbmap -option "ctrl:alt_R" Not working.
Tried this: /usr/bin/setxkbmap -option "ctrl:Meta_R" Not working.
Tried the .xmodmap configuration. I start xev, pressed the right [alt] key
and it gives me keycode 108. [ctrl] gives me 37. So i create up ~/.Xmodmap
and map: keycode 108 = Control_L and reboot. Not working.
I've searched through the forums a lot, but have not found a solution. Any
suggestions how manage the right Alt+key behave as [ctrl]-key?
Thanks in advance for your appreciated help.
================== Edit: found the answer! Without the open source spirit,
I would never able to find my way here. And everyone benefits too!
The answer is..... bumbumbrrrrr...
setxkbmap -option ctrl:ralt_rctrl :D
Subscribe to:
Posts (Atom)