Copy Test cases from one project to other project
http://forum.testlink.org/viewtopic.php?f=9&t=6752
Technology Innovation - Blog para Programadores Esta é uma ideia que surgiu para divulgar as possíveis soluções que possam facilitar a vida aos programadores
terça-feira, dezembro 22, 2015
quarta-feira, dezembro 09, 2015
terça-feira, dezembro 08, 2015
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 ????
quarta-feira, abril 08, 2015
Verifique se e mais orientado para as pessoas ou para as tarefas
Verifique se e mais orientado para as pessoas ou para as tarefas
http://www.portaldalideranca.pt/arquivo/inquerito/verifique-se-e-mais-orientado-para-as-pessoas-ou-para-as-tarefas
terça-feira, abril 07, 2015
Instalar o Cliente Telnet usando uma linha de comando
Instalar o Cliente Telnet usando uma linha de comando
No Windows Server 2008 ou no Windows Vista, é possível usar o seguinte procedimento de linha de comando para instalar o Cliente Telnet.
Para instalar o Cliente Telnet usando uma linha de comando
- Abra uma janela de prompt de comando. Clique em Iniciar, digite cmd na caixa Iniciar Pesquisa e pressione ENTER.
- Digite o seguinte comando:
pkgmgr /iu:"TelnetClient"
- Caso a caixa de diálogo Controle de Conta de Usuário apareça, confirme se a ação exibida é a desejada e clique em Continuar.
- Quando o prompt de comando for exibido novamente, a instalação estará concluída.
segunda-feira, março 30, 2015
How to Rename Domain Name in Windows Server 2012?
https://mizitechinfo.wordpress.com/2013/06/10/simple-guide-how-to-rename-domain-name-in-windows-server-2012/
Simple Guide : How to Rename Domain Name in Windows Server 2012?
June 10, 2013
For Server Admin who familiar with Windows Server 2000 & 2003, you maybe still remember about RENDOM utility, which is this use to rename Windows 2000 @ 2003 domain name and have to install manually.
But in Windows Server 2012 domain you don’t have to separately install “Rendom” utility.
It gets installed as part of “Active Directory Domain Services” role when you promote a server to the DC role. And It can be found here : %windir%\system32\rendom.exe.
For this time Simple Guide, I will show you all how to rename domain name in Windows Server 2012, the process is straightforward.. but as usual.. backup any necessary information @ Server before you proceed & I always advice especially to my students, please do this exercises in LAB Environment (Hyper-V). Don’t simply take any risk by doing this is production environment unless you have to!!.
https://mizitechinfo.wordpress.com/2013/06/11/simple-guide-how-to-rename-server-2012-ad-host-name/
But in Windows Server 2012 domain you don’t have to separately install “Rendom” utility.
It gets installed as part of “Active Directory Domain Services” role when you promote a server to the DC role. And It can be found here : %windir%\system32\rendom.exe.
For this time Simple Guide, I will show you all how to rename domain name in Windows Server 2012, the process is straightforward.. but as usual.. backup any necessary information @ Server before you proceed & I always advice especially to my students, please do this exercises in LAB Environment (Hyper-V). Don’t simply take any risk by doing this is production environment unless you have to!!.
https://mizitechinfo.wordpress.com/2013/06/11/simple-guide-how-to-rename-server-2012-ad-host-name/
Simple Guide : How to Rename Server 2012 AD Host Name?
June 11, 2013
I know renaming an AD Server Hostname sounds bad @ seem like a bad idea, but in some cases you have to.. and that’s why as a Server Admin, you need to take time and think about what the domain hostname should be for the company.
But mistakes happen (sometime in my class also…ggrrrrrr..) or you just have a bunch of clients that have AD Hostname for their environment and need to be changed. For example, in this exercise I want to show you how to rename AD Server Hostname from LON-DC1.adatum.com to MIZI01.cpx.local..
Now, if their domain controllers are running 2012 server you are good-to-go, because starting with 2003, you can rename the domain name.
** Domain Controllers configured as a Certificate Authority (CA) cannot be renamed
But mistakes happen (sometime in my class also…ggrrrrrr..) or you just have a bunch of clients that have AD Hostname for their environment and need to be changed. For example, in this exercise I want to show you how to rename AD Server Hostname from LON-DC1.adatum.com to MIZI01.cpx.local..
Now, if their domain controllers are running 2012 server you are good-to-go, because starting with 2003, you can rename the domain name.
** Domain Controllers configured as a Certificate Authority (CA) cannot be renamed
terça-feira, março 17, 2015
Portugal TV Market will change again???
Portugal TV Market will change again???
"Altice" is prepared to lose "Cabovisão" to keep "PT Telecom" business...
Will there be a change to Vodafone grow faster?
Lets see :)
http://www.tvi24.iol.pt/economia/armando-pereira/altice-admite-venda-da-cabovisao
"Altice" is prepared to lose "Cabovisão" to keep "PT Telecom" business...
Will there be a change to Vodafone grow faster?
Lets see :)
http://www.tvi24.iol.pt/economia/armando-pereira/altice-admite-venda-da-cabovisao
quinta-feira, março 05, 2015
Sites com informação de como produzir runing testes de SoapUI
Sites com informação de como produzir runing testes de SoapUI
http://blog.belatrixsf.com/a-groovy-kind-of-trick-for-soapui-free-in-eight-steps/
http://blog.belatrixsf.com/a-groovy-kind-of-trick-for-soapui-free-in-eight-steps/
terça-feira, fevereiro 24, 2015
SQL SERVER - Data Cursors
Artigo original:
https://msdn.microsoft.com/en-us/library/ms180169.aspx
Exemplo:
SET NOCOUNT ON;
DECLARE @vendor_id int, @vendor_name nvarchar(50),
@message varchar(80), @product nvarchar(50);
PRINT '-------- Vendor Products Report --------';
DECLARE vendor_cursor CURSOR FOR
SELECT VendorID, Name
FROM Purchasing.Vendor
WHERE PreferredVendorStatus = 1
ORDER BY VendorID;
OPEN vendor_cursor
FETCH NEXT FROM vendor_cursor
INTO @vendor_id, @vendor_name
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT ' '
SELECT @message = '----- Products From Vendor: ' +
@vendor_name
PRINT @message
-- Declare an inner cursor based
-- on vendor_id from the outer cursor.
DECLARE product_cursor CURSOR FOR
SELECT v.Name
FROM Purchasing.ProductVendor pv, Production.Product v
WHERE pv.ProductID = v.ProductID AND
pv.VendorID = @vendor_id -- Variable value from the outer cursor
OPEN product_cursor
FETCH NEXT FROM product_cursor INTO @product
IF @@FETCH_STATUS <> 0
PRINT ' <<None>>'
WHILE @@FETCH_STATUS = 0
BEGIN
SELECT @message = ' ' + @product
PRINT @message
FETCH NEXT FROM product_cursor INTO @product
END
CLOSE product_cursor
DEALLOCATE product_cursor
-- Get the next vendor.
FETCH NEXT FROM vendor_cursor
INTO @vendor_id, @vendor_name
END
CLOSE vendor_cursor;
DEALLOCATE vendor_cursor;
domingo, fevereiro 22, 2015
TPLINK: How to configure alarm sending through FTP Client on TP-LINK IP cameras?
When the TP-LINK
IP cameras detect a motion, they can send alarms to a specific email address or
a FTP server to notify the owner. This article is about how to configure
the camera to send an alarm to a FTP server automatically. Here we take
TL-SC3130 for example
Step 1 Open your Internet browser and
type in the IP address of the IP camera in the address bar. If you’ve no idea
about the camera’s IP address, please click here.
Step 2 In the pop-up window, please
type in the username and password of your IP camera. The default username and
password are both admin
Step 3 After log in ,on the left hand
side, click on Settings->Advance->FTP Client->General, check FTP
Client On, and then make a name for the FTP client, for example, tp-link,
and then type in the correct FTP server information. Click on OK to save
the settings.
Step 4 Click on Test button to
check whether it is working or not. If it works, you will have the picture
below.
Step 5 Click on Alarm SendingOn the left hand
side, and check Alarm Sending On, make a folder name in the Remote
path bar ,this folder is for saving the image files. Make a name for the
image file. Motion detection box should be checked.
Step 6 click on the Motion
Detection button, you can configure 3 motion detection areas. And the
threshold and sensitivity can be set separately based on your
application. Click on OK to save your settings.
Now we have done all the
configurations and camera will send pictures to the FTP server when some
motions are detected
We could see the pictures on
the FTP server when we flip the calendar
If you still
have some problems, please feel free to contact TP-LINK support.
Original lynk:
http://www.tp-link.com.au/article/?faqid=366
Original lynk:
http://www.tp-link.com.au/article/?faqid=366
TPLINK: How to remote view IP camera via web browser
In this FAQ, we are
showing you how to view the camera using a web browser such as IE, Firefox,
Chrome or Safari. Here we just take IE as an example.
The steps below are based on the assumption that you
have already connected your IP camera to a router or modem router on which you
already has internet access.
Step 1
Login the web interface of the camera by typing the IP
address of camera in the address bar of your web browser. If you don’t know the
IP of it, please click here.
Step 2
Go to SETTING->BASIC->Network->Information
to find the HTTP port number used by the camera. The default is 80.
Usually there is no need to change the port number. However some ISP blocks
port 80, so you may need to change the port to accommodate it. Here we change
it to 3333 for example.
Step 3
After you change the port, please go to SETTING->BASIC->System->Initialize.
You need to reboot the camera in order to make the port change take into
effect.
Step 4
After rebooting we can access the camera using http://192.168.1.101:3333
on local PC.
Then we need to do port forwarding settings on
your router. The configuration depends on the router you are using, please
consult your router’s technical support accordingly. Here we just take a
TP-LINK TL-WR941ND for example.
Step 1
Login the router. Go to Forwarding->Virtual
Servers and click Add New to add new virtual server entry.
Step 2
Type the IP and port used by the camera in the
corresponding field. For the Protocol, we recommend you select ALL.
Click Save to add this new entry.
Step 3
Now port 3333 is opened for the camera on the router.
Step 4
Go to Status page to check the WAN IP
address of the router.
Step 5
Then on a remote PC, you can open your web browser. In
the address bar, simply type in http://183.38.7.205:3333
and press enter, then you can access the web interface of the camera.
http://www.tp-link.com/en/article/?articleid=304
Subscrever:
Mensagens (Atom)