Tuesday, 1 October 2013

How can I tell if a certain IIS configuration key has been imported?

How can I tell if a certain IIS configuration key has been imported?

I'm building some configuration management scripts that need to be
idempotent. I need to check if the IIS keys for the web farm have been
imported on a server and if not import them.
I've got the commands to do the import, but I can't seem to find a
consistent way to check that a particular set of keys has been imported.

Setting mysqld to run at startup in MacOS

Setting mysqld to run at startup in MacOS

I using MacOS Machine for which every time I want to you mysql I have to
first start it using the following command
mysqld 2> /dev/null &
all seem great and thing work pleasantly after I run it but sure there is
way to avoid this as well has brought me over here I'm trying to find a
way to add it as script and run it in startup but I not sure how to
achieve
Another thing there is MySQL Server Status Application which look
something like this

Although I see something to display the status correctly but it Stop Mysql
server / Start Mysql server button did not work when try to use them
neither the check that states
Automatically Start MySql Server on Startup
Has any one got an idea how to fix this
Thanks

Monday, 30 September 2013

Fortigate bandwidth monitoring

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

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 $*"

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.

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

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.