How safety is Ubuntu Tweak Janitor for system?
I had some trouble with Tweak Janitor.
I cleaned my system with all checkboxes that was available.
After cleaning when I restarted PC I caught to text terminal it's all, smt:
Ubuntu 12.04.3 LTS nazar-desctop tty1
nazar-dezsctop login: // I typed correct login + password
nazar-dezsctop password:
and after log in next info:
7 packages can be updated
7 updatees are security updates
I got out from this trouble by next steps:
Stop LightDM with sudo stop lightdm
Install GDM with sudo apt-get install gdm
Start GDM with sudo start gdm
Run sudo dpkg-reconfigure lightdm to set the default display manager for gdm
Restart computer and login.
I wondering to know about safety usage of Ubuntu Tweak Janitor.
Question:
For example what happen if I'll try to use it again in the future?
If I had use LightDM what would happen?
Why ubuntu didn't tall me about these updates after cleaning?
Tuesday, 1 October 2013
"Standard" components...? electronics.stackexchange.com
"Standard" components...? – electronics.stackexchange.com
In class we are designing a few different circuits and it uses some diodes
and opamps. Everything is fine on paper and everything makes sense. These
are only ever refereed to as a "diode" or "opamp". …
In class we are designing a few different circuits and it uses some diodes
and opamps. Everything is fine on paper and everything makes sense. These
are only ever refereed to as a "diode" or "opamp". …
Monday, 30 September 2013
Main Domain is SSL and need to add multiple non-SSL domains to subfolders, .htaccess help needed
Main Domain is SSL and need to add multiple non-SSL domains to subfolders,
.htaccess help needed
My main domain is red dot com it comes up with ssl as https www dot red
dot com I need to add multiple domains to the subfolders. For instance red
dot co dot uk would point to folder /var/www/html/uk or red dot tv would
point to folder /var/www/html/tv and so on.
My dns servers are pointing right, and I added virtual servers for each
domain but nothing worked so far because the .htaccess is not configured
properly, can someone give me an idea how to configure the virtual server
and .htaccess?
I also wanted to mention that I have 2 seperate ip addresses both pointing
to main domain
my existing .htaccess file looks like this
# BEGIN WordPress
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.red.com/$1 [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
This is my config file http://pastebin.com/QWF5a4r7
and this is ssl config file http://pastebin.com/bZpP153d
.htaccess help needed
My main domain is red dot com it comes up with ssl as https www dot red
dot com I need to add multiple domains to the subfolders. For instance red
dot co dot uk would point to folder /var/www/html/uk or red dot tv would
point to folder /var/www/html/tv and so on.
My dns servers are pointing right, and I added virtual servers for each
domain but nothing worked so far because the .htaccess is not configured
properly, can someone give me an idea how to configure the virtual server
and .htaccess?
I also wanted to mention that I have 2 seperate ip addresses both pointing
to main domain
my existing .htaccess file looks like this
# BEGIN WordPress
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.red.com/$1 [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
This is my config file http://pastebin.com/QWF5a4r7
and this is ssl config file http://pastebin.com/bZpP153d
Squid url_rewrite_program is not working
Squid url_rewrite_program is not working
I'm writing a url_rewrite module for squid in python (OS: Ubuntu 13). For
now the code is just a test which should print the received stdin to a
file:
#!/usr/bin/python
import sys,os
url = sys.stdin.read()
os.system('echo "%s" >> log.txt' % url)
sys.stdout.write(url)
sys.stdout.flush()
When I start squid and launch a request from my browser connected to the
proxy it doesn't work and checking the logs I can see some related errors:
syslog:
squid3: The redirector helpers are crashing too rapidly, need help!
cache.log
2013/09/30 14:51:44| WARNING: redirector #1 (FD 7) exited
2013/09/30 14:51:44| WARNING: redirector #2 (FD 9) exited
2013/09/30 14:51:44| WARNING: redirector #3 (FD 11) exited
2013/09/30 14:51:44| WARNING: redirector #4 (FD 13) exited
2013/09/30 14:51:44| Too few redirector processes are running
2013/09/30 14:51:44| storeDirWriteCleanLogs: Starting...
2013/09/30 14:51:44| Finished. Wrote 0 entries.
2013/09/30 14:51:44| Took 0.00 seconds ( 0.00 entries/sec).
FATAL: The redirector helpers are crashing too rapidly, need help!
Did anyone faced this issue and can figure out how to solve it? Regards.
I'm writing a url_rewrite module for squid in python (OS: Ubuntu 13). For
now the code is just a test which should print the received stdin to a
file:
#!/usr/bin/python
import sys,os
url = sys.stdin.read()
os.system('echo "%s" >> log.txt' % url)
sys.stdout.write(url)
sys.stdout.flush()
When I start squid and launch a request from my browser connected to the
proxy it doesn't work and checking the logs I can see some related errors:
syslog:
squid3: The redirector helpers are crashing too rapidly, need help!
cache.log
2013/09/30 14:51:44| WARNING: redirector #1 (FD 7) exited
2013/09/30 14:51:44| WARNING: redirector #2 (FD 9) exited
2013/09/30 14:51:44| WARNING: redirector #3 (FD 11) exited
2013/09/30 14:51:44| WARNING: redirector #4 (FD 13) exited
2013/09/30 14:51:44| Too few redirector processes are running
2013/09/30 14:51:44| storeDirWriteCleanLogs: Starting...
2013/09/30 14:51:44| Finished. Wrote 0 entries.
2013/09/30 14:51:44| Took 0.00 seconds ( 0.00 entries/sec).
FATAL: The redirector helpers are crashing too rapidly, need help!
Did anyone faced this issue and can figure out how to solve it? Regards.
PHP string comparasion
PHP string comparasion
I have a variable and its type is string. var_dump() shows:
var_dump() output is below:
string(14)
//this is my code..
$game_cat = "Some text"; // some text mean actually it is one of below
Category 1,2,3,4 ...
if ( $game_cat === "Category 1" ) {
$cid = 1;
}
if ( $game_cat === "Category 2" ) {
$cid = 2;
}
if ( $game_cat === "Category 3" ) {
$cid = 0;
}
else{
$cid = 999999;
}
For example when I change $game_cat to Category 1 like $game_cat =
"Category 1"; $cid must 1 but output is 999999.
Why?
I have a variable and its type is string. var_dump() shows:
var_dump() output is below:
string(14)
//this is my code..
$game_cat = "Some text"; // some text mean actually it is one of below
Category 1,2,3,4 ...
if ( $game_cat === "Category 1" ) {
$cid = 1;
}
if ( $game_cat === "Category 2" ) {
$cid = 2;
}
if ( $game_cat === "Category 3" ) {
$cid = 0;
}
else{
$cid = 999999;
}
For example when I change $game_cat to Category 1 like $game_cat =
"Category 1"; $cid must 1 but output is 999999.
Why?
GIT: should force ever be used?
GIT: should force ever be used?
Git has --force flag in a lot of operations but when I use them I feel a
bit strange. Like ignoring warning messages in my code.
For example I just wanted to unstage a file and did this:
git rm --cached myfile.ext
git complained error:
the following file has staged content different from both the file and the
HEAD
I really don't care about this error and it seems not to be an issue - I
just want to leave my code as it is, but unstage the file. --force flag
simply solved this issue.
My question is about best practices as I was unable to find any
information about this issue - should one use force flags in git commands
or is it a bad practice?
Git has --force flag in a lot of operations but when I use them I feel a
bit strange. Like ignoring warning messages in my code.
For example I just wanted to unstage a file and did this:
git rm --cached myfile.ext
git complained error:
the following file has staged content different from both the file and the
HEAD
I really don't care about this error and it seems not to be an issue - I
just want to leave my code as it is, but unstage the file. --force flag
simply solved this issue.
My question is about best practices as I was unable to find any
information about this issue - should one use force flags in git commands
or is it a bad practice?
Sunday, 29 September 2013
double border around a container
double border around a container
I wanted to create an effect like this around my border, basically a
double sided border. Currently I am using an image as a background-image,
but the issue comes when I want to make the site responsive. So I want to
re-create this using CSS. Is this even possible?
I wanted to create an effect like this around my border, basically a
double sided border. Currently I am using an image as a background-image,
but the issue comes when I want to make the site responsive. So I want to
re-create this using CSS. Is this even possible?
Subscribe to:
Posts (Atom)