Companies to watch in big data
http://www.greentechmedia.com/content/images/reports/leading-vendors-soft-grid.png
quarta-feira, 26 de dezembro de 2012
sexta-feira, 21 de dezembro de 2012
Europe Tech Awars
Hi!
Just discover a europe tech awards site :
http://www.theeuropas.com
ping it there are great startup´s there.
tecbea
Just discover a europe tech awards site :
http://www.theeuropas.com
ping it there are great startup´s there.
tecbea
terça-feira, 11 de dezembro de 2012
Quick mysql datatable export into file
Hi ,
just as easy to export a datatable as this:
SELECT * FROM table into outfile '/home/user/table.sql';
regds,
tecbea
just as easy to export a datatable as this:
SELECT * FROM table into outfile '/home/user/table.sql';
regds,
tecbea
quinta-feira, 6 de dezembro de 2012
Quick Pivot Table with Mysql
Hi,
a pivot table is easy to make on mysql:
replace into tablea
select tableb.col1
from tableb as tableb
where 1=1
;
But the secret for a good pivot table is that we can make business logic on the query:
1) count(case when c like '%something%' then 1 end) as col2
2) other aggregation functions can be used like avg, ...
best
tecbea
a pivot table is easy to make on mysql:
replace into tablea
select tableb.col1
from tableb as tableb
where 1=1
;
But the secret for a good pivot table is that we can make business logic on the query:
1) count(case when c like '%something%' then 1 end) as col2
2) other aggregation functions can be used like avg, ...
best
tecbea
quarta-feira, 5 de dezembro de 2012
Mysql procedure to quick insert test data
Hi,
usually a procure for mysql quick insert data can be done like this:
DELIMITER $$
DROP PROCEDURE IF EXISTS sampleData$$
CREATE PROCEDURE sampleData()
BEGIN
DECLARE x INT;
DECLARE thedate DATETIME;
SET thedate = '2012-12-01';
SET x = 1;
WHILE x <= 6 DO
SET x = x + 1;
SET thedate = DATE_ADD(thedate, INTERVAL 1 DAY);
INSERT INTO `temptable` (`x`, `thedate`)
VALUES (x, thedate);
END WHILE;
END$$
DELIMITER ;
best,
tecbea
usually a procure for mysql quick insert data can be done like this:
DELIMITER $$
DROP PROCEDURE IF EXISTS sampleData$$
CREATE PROCEDURE sampleData()
BEGIN
DECLARE x INT;
DECLARE thedate DATETIME;
SET thedate = '2012-12-01';
SET x = 1;
WHILE x <= 6 DO
SET x = x + 1;
SET thedate = DATE_ADD(thedate, INTERVAL 1 DAY);
INSERT INTO `temptable` (`x`, `thedate`)
VALUES (x, thedate);
END WHILE;
END$$
DELIMITER ;
best,
tecbea
How to show file size on disk
Hi,
This scripts shows how to show directory content with size of files:
option 1) using awk
ls -l | awk '{printf "%s %i %s %s %.3fMB %s %i %s %s\n", $1,$2,$3,$4,$5/1024000,$6,$7,$8,$9}'
option 2) using ls
ls -las t_ts* --block-size=1M
best,
tecbea
option 1) using awk
ls -l | awk '{printf "%s %i %s %s %.3fMB %s %i %s %s\n", $1,$2,$3,$4,$5/1024000,$6,$7,$8,$9}'
option 2) using ls
ls -las t_ts* --block-size=1M
best,
tecbea
Subscrever:
Comentários (Atom)
Java Obfuscate Properties
Hi there how many times we have fuckin stupid commentaries of , hey the code has a password... bullshit you can always get the password... ...
-
Hi, Pivot4J is a awesome JSF project (I'm in love by JSF). So I decide it to start it looking to it, 1st thing is to build it: 1...
-
Hi, as as continuation part of older post on Pivot4J, here is the path to put it working with a IDE: 1. Java First thing first, make s...