Technology Innovation - Blog para Programadores Esta é uma ideia que surgiu para divulgar as possíveis soluções que possam facilitar a vida aos programadores
quinta-feira, novembro 19, 2015
How to clean all the PWD stored in Windows
How to clean/backup/restore all the PWD stored in Windows
http://security.stackexchange.com/questions/15574/how-do-i-clear-cached-credentials-from-my-windows-profile
sexta-feira, julho 31, 2015
domingo, julho 12, 2015
How to change your default Index page in htaccess
How to change your default Index page in htaccess
http://www.inmotionhosting.com/support/website/htaccess/htaccess-change-index-page
- Edit htaccess file. Paste the following code at the top of the page to configure your desired index page. In our example below, we decided to make the index page of our folders named first.html.
#Alternate default index pageYou can also list more than one file in the configuration. The file will be read left to right and check for them in that order. In this example, we add index.htm, index.html, and index.php to the list. First the server will check for first.html, if it does not find a file with that name, it continues to index.htm and so on.
DirectoryIndex first.html#Alternate default index pages
DirectoryIndex first.html index.htm index.html index.php - Be sure to hit the Save Changes button in the upper right corner to save your new htaccess configuration.
domingo, julho 05, 2015
quarta-feira, junho 17, 2015
Watershed (broadcasting)
Watershed (broadcasting)
From Wikipedia, the free encyclopedia
Jump to: navigation , search
In British broadcasting, watershed is the point in time after which programmes with adult content may be broadcast. In the same way that a watershed refers to the crest dividing two drainage basins, a broadcasting watershed serves as a dividing line. It divides the day into the overnight period where family-oriented programming suitable for children may be aired and where programming aimed at or suitable for a more adult audience is permitted, though not required. It may also mean the period of time during which programmes with adult content may be broadcast. Examples of adult content include, but are not limited to, graphic violence, horror, strong language, nudity, sexual intercourse, gambling and drug use, or references to these themes without necessarily portraying them. In most countries, the same set of rules also applies to advertisements on radios and television, both for the content of the commercial and the nature of the product or service being advertised.
Watershed has other names in other countries; it is known as safe harbor in the United States (a reference to the legal term of safe harbor, in this case indicating the time when broadcasters are protected from penalties for airing indecent but not obscene material), and as adult time in Venezuela.
Due to cultural differences around the world, watershed times can vary. For instance, in New Zealand, the watershed time starts at 20:30 (8:30 p.m.), and in Italy it starts at 22:30 (10:30 p.m.). Some countries also have multiple watershed layers, where less-inappropriate content than others may be allowed at an earlier time of the evening, but may still be restricted. In addition, some countries are more lenient towards subscription television and radio or pay-per-view channels than towards free-to-air channels and stations (see pervasiveness doctrine for the U.S. context of this).
Watershed has other names in other countries; it is known as safe harbor in the United States (a reference to the legal term of safe harbor, in this case indicating the time when broadcasters are protected from penalties for airing indecent but not obscene material), and as adult time in Venezuela.
Due to cultural differences around the world, watershed times can vary. For instance, in New Zealand, the watershed time starts at 20:30 (8:30 p.m.), and in Italy it starts at 22:30 (10:30 p.m.). Some countries also have multiple watershed layers, where less-inappropriate content than others may be allowed at an earlier time of the evening, but may still be restricted. In addition, some countries are more lenient towards subscription television and radio or pay-per-view channels than towards free-to-air channels and stations (see pervasiveness doctrine for the U.S. context of this).
segunda-feira, junho 15, 2015
How to check which timezone in Linux?
Same exemples:
cd /usr/share/zoneinfo
find * -type f -exec sh -c "diff -q /etc/localtime '{}' > /dev/null && echo {}" \;
date +'%:z %Z'
I wanted to find the timezone in "US/Eastern" or "Europe/London" form instead. You can find this in:
http://superuser.com/questions/309034/how-to-check-which-timezone-in-linux
cd /usr/share/zoneinfo
find * -type f -exec sh -c "diff -q /etc/localtime '{}' > /dev/null && echo {}" \;
date +'%:z %Z'
I wanted to find the timezone in "US/Eastern" or "Europe/London" form instead. You can find this in:
- /etc/timezone (present on Ubuntu and Red Hat? but not e.g. Amazon Linux)
- (on Red Hat style systems) as
ZONE="US/Eastern"in /etc/sysconfig/clock
http://superuser.com/questions/309034/how-to-check-which-timezone-in-linux
sábado, abril 25, 2015
Replicação de aplicações entre maquinas linux
Aproveito
para deixar um que e capaz de ser útil para fazer replicação de aplicações
entre maquinas
SOURCE : tar -c <folder> | nc -l 9999
DESTIN
: nc <IP da source> 9999 | tar –xv
Cria
um tar file (e um agregador de ficheiros sem compressão) e faz um netcat ficar
a escuta na port 9999
No
destino executa a ligação ao servidor onde executamos o primeiro comando e faz
descompressão do tar para o local, replicando a estrutura dentro do TAR que
criamos previamente.
quinta-feira, abril 23, 2015
A Groovy kind of trick for SoapUI free in eight steps
A Groovy kind of trick for SoapUI free in eight steps
Imagine you are testing a web service, and you want to run the same test with a different data set. In the pro version, you can simply use a DataSource step inside your test case to take data from an external source. Unfortunately, in the free version this kind of step is not available, and the simplest solution would be to create as many test cases as data sets you have… this could work out well if you have ten data sets, but imagine if you have a hundred or more!!
http://blog.belatrixsf.com/a-groovy-kind-of-trick-for-soapui-free-in-eight-steps/
Imagine you are testing a web service, and you want to run the same test with a different data set. In the pro version, you can simply use a DataSource step inside your test case to take data from an external source. Unfortunately, in the free version this kind of step is not available, and the simplest solution would be to create as many test cases as data sets you have… this could work out well if you have ten data sets, but imagine if you have a hundred or more!!
http://blog.belatrixsf.com/a-groovy-kind-of-trick-for-soapui-free-in-eight-steps/
terça-feira, abril 21, 2015
A collection of Unix/Linux find command examples
Linux/Unix FAQ: Can you share some find command examples?
Sure. The Linux
In this article we'll take a look at the most common uses of the
http://alvinalexander.com/unix/edu/examples/find.shtml
basic 'find file' commands
--------------------------
find / -name foo.txt -type f -print # full command
find / -name foo.txt -type f # -print isn't necessary
find / -name foo.txt # don't have to specify "type==file"
find . -name foo.txt # search under the current dir
find . -name "foo.*" # wildcard
find . -name "*.txt" # wildcard
find /users/al -name Cookbook -type d # search '/users/al'
search multiple dirs
--------------------
find /opt /usr /var -name foo.scala -type f # search multiple dirs
case-insensitive searching
--------------------------
find . -iname foo # find foo, Foo, FOo, FOO, etc.
find . -iname foo -type d # same thing, but only dirs
find . -iname foo -type f # same thing, but only files
find files with different extensions
------------------------------------
find . -type f \( -name "*.c" -o -name "*.sh" \) # *.c and *.sh files
find . -type f \( -name "*cache" -o -name "*xml" -o -name "*html" \) # three patterns
find files that don't match a pattern (-not)
--------------------------------------------
find . -type f -not -name "*.html" # find all files not ending in ".html"
find files by text in the file (find + grep)
--------------------------------------------
find . -type f -name "*.java" -exec grep -l StringBuffer {} \; # find StringBuffer in all *.java files
find . -type f -name "*.java" -exec grep -il string {} \; # ignore case with -i option
find . -type f -name "*.gz" -exec zgrep 'GET /foo' {} \; # search for a string in gzip'd files
5 lines before, 10 lines after grep matches
-------------------------------------------
find . -type f -name "*.scala" -exec grep -B5 -A10 'null' {} \;
(see http://alvinalexander.com/linux-unix/find-grep-print-lines-before-after-...)
find files and act on them (find + exec)
----------------------------------------
find /usr/local -name "*.html" -type f -exec chmod 644 {} \; # change html files to mode 644
find htdocs cgi-bin -name "*.cgi" -type f -exec chmod 755 {} \; # change cgi files to mode 755
find . -name "*.pl" -exec ls -ld {} \; # run ls command on files found
find and copy
-------------
find . -type f -name "*.mp3" -exec cp {} /tmp/MusicFiles \; # cp *.mp3 files to /tmp/MusicFiles
copy one file to many dirs
--------------------------
find dir1 dir2 dir3 dir4 -type d -exec cp header.shtml {} \; # copy the file header.shtml to those dirs
find and delete
---------------
find . -type f -name "Foo*" -exec rm {} \; # remove all "Foo*" files under current dir
find . -type d -name CVS -exec rm -r {} \; # remove all subdirectories named "CVS" under current dir
find files by modification time
-------------------------------
find . -mtime 1 # 24 hours
find . -mtime -7 # last 7 days
find . -mtime -7 -type f # just files
find . -mtime -7 -type d # just dirs
find files by modification time using a temp file
-------------------------------------------------
touch 09301330 poop # 1) create a temp file with a specific timestamp
find . -mnewer poop # 2) returns a list of new files
rm poop # 3) rm the temp file
find with time: this works on mac os x
--------------------------------------
find / -newerct '1 minute ago' -print
find and tar
------------
find . -type f -name "*.java" | xargs tar cvf myfile.tar
find . -type f -name "*.java" | xargs tar rvf myfile.tar
(see http://alvinalexander.com/blog/post/linux-unix/using-find-xargs-tar-crea...
for more information)
find, tar, and xargs
--------------------
find . -name -type f '*.mp3' -mtime -180 -print0 | xargs -0 tar rvf music.tar
(-print0 helps handle spaces in filenames)
(see http://alvinalexander.com/mac-os-x/mac-backup-filename-directories-space...)
find and pax (instead of xargs and tar)
---------------------------------------
find . -type f -name "*html" | xargs tar cvf jw-htmlfiles.tar -
find . -type f -name "*html" | pax -w -f jw-htmlfiles.tar
(see http://alvinalexander.com/blog/post/linux-unix/using-pax-instead-of-tar)
Sure. The Linux
find command is very powerful. It can search the entire filesystem to find files and directories according to the search criteria you specify. Besides using the find command to locate files, you can also use the command to execute other Linux commands (grep, mv, rm, etc.) on the files and directories you find, which makes find extremely powerful.In this article we'll take a look at the most common uses of the
find command.http://alvinalexander.com/unix/edu/examples/find.shtml
basic 'find file' commands
--------------------------
find / -name foo.txt -type f -print # full command
find / -name foo.txt -type f # -print isn't necessary
find / -name foo.txt # don't have to specify "type==file"
find . -name foo.txt # search under the current dir
find . -name "foo.*" # wildcard
find . -name "*.txt" # wildcard
find /users/al -name Cookbook -type d # search '/users/al'
search multiple dirs
--------------------
find /opt /usr /var -name foo.scala -type f # search multiple dirs
case-insensitive searching
--------------------------
find . -iname foo # find foo, Foo, FOo, FOO, etc.
find . -iname foo -type d # same thing, but only dirs
find . -iname foo -type f # same thing, but only files
find files with different extensions
------------------------------------
find . -type f \( -name "*.c" -o -name "*.sh" \) # *.c and *.sh files
find . -type f \( -name "*cache" -o -name "*xml" -o -name "*html" \) # three patterns
find files that don't match a pattern (-not)
--------------------------------------------
find . -type f -not -name "*.html" # find all files not ending in ".html"
find files by text in the file (find + grep)
--------------------------------------------
find . -type f -name "*.java" -exec grep -l StringBuffer {} \; # find StringBuffer in all *.java files
find . -type f -name "*.java" -exec grep -il string {} \; # ignore case with -i option
find . -type f -name "*.gz" -exec zgrep 'GET /foo' {} \; # search for a string in gzip'd files
5 lines before, 10 lines after grep matches
-------------------------------------------
find . -type f -name "*.scala" -exec grep -B5 -A10 'null' {} \;
(see http://alvinalexander.com/linux-unix/find-grep-print-lines-before-after-...)
find files and act on them (find + exec)
----------------------------------------
find /usr/local -name "*.html" -type f -exec chmod 644 {} \; # change html files to mode 644
find htdocs cgi-bin -name "*.cgi" -type f -exec chmod 755 {} \; # change cgi files to mode 755
find . -name "*.pl" -exec ls -ld {} \; # run ls command on files found
find and copy
-------------
find . -type f -name "*.mp3" -exec cp {} /tmp/MusicFiles \; # cp *.mp3 files to /tmp/MusicFiles
copy one file to many dirs
--------------------------
find dir1 dir2 dir3 dir4 -type d -exec cp header.shtml {} \; # copy the file header.shtml to those dirs
find and delete
---------------
find . -type f -name "Foo*" -exec rm {} \; # remove all "Foo*" files under current dir
find . -type d -name CVS -exec rm -r {} \; # remove all subdirectories named "CVS" under current dir
find files by modification time
-------------------------------
find . -mtime 1 # 24 hours
find . -mtime -7 # last 7 days
find . -mtime -7 -type f # just files
find . -mtime -7 -type d # just dirs
find files by modification time using a temp file
-------------------------------------------------
touch 09301330 poop # 1) create a temp file with a specific timestamp
find . -mnewer poop # 2) returns a list of new files
rm poop # 3) rm the temp file
find with time: this works on mac os x
--------------------------------------
find / -newerct '1 minute ago' -print
find and tar
------------
find . -type f -name "*.java" | xargs tar cvf myfile.tar
find . -type f -name "*.java" | xargs tar rvf myfile.tar
(see http://alvinalexander.com/blog/post/linux-unix/using-find-xargs-tar-crea...
for more information)
find, tar, and xargs
--------------------
find . -name -type f '*.mp3' -mtime -180 -print0 | xargs -0 tar rvf music.tar
(-print0 helps handle spaces in filenames)
(see http://alvinalexander.com/mac-os-x/mac-backup-filename-directories-space...)
find and pax (instead of xargs and tar)
---------------------------------------
find . -type f -name "*html" | xargs tar cvf jw-htmlfiles.tar -
find . -type f -name "*html" | pax -w -f jw-htmlfiles.tar
(see http://alvinalexander.com/blog/post/linux-unix/using-pax-instead-of-tar)
quarta-feira, abril 15, 2015
Nokia "purchase" ALU
YAUUUU :)
Nokia "purchase" ALU ????
Is the hunting season open for the IT market ????
Subscrever:
Mensagens (Atom)
