Posts by Marcelo de Andrade • 7,261 points
255 posts
-
2
votes2
answers1632
viewsQ: How to get the <a> tag inside a <DIV, using XPATH?
I’m trying to get the data from a DIV that contains the following structure: <div class="item" style="height:273px"> <a href="/arapiraca/anuncios/detalhes/159695-honda-cg-150-2008">…
-
2
votes1
answer763
viewsA: How do I get how long ago was a news post, e.x.: 30 minutes ago, in php?
Using the time() strtotime() functions and comparing the dates, you can do it as follows: class Data { public static function ExibirTempoDecorrido($date) { if(empty($date)) { return "Informe a…
phpanswered Marcelo de Andrade 7,261 -
2
votes2
answers2979
viewsA: View column quantities in each table
In Phpmyadmin you just select the database and click on (+) and it will expand and display all tables of the selected database, re-apply on (+) next to the table will display its fields. See: If you…
-
-1
votes3
answers1792
viewsA: How to create a solid mask from a semi-transparent Bitmap?
Try using the Canvas and Fillrect property. Something like: procedure CreateBitmapSolidColor(Width,Height:Word;Color:TColor;const FileName : TFileName); var bmp : TBitmap; begin bmp:=TBitmap.Create;…
-
1
votes2
answers2612
viewsA: Javascript mask for input hours
Using Regex: /^([0-9]?[0-9]?[0-9]):[0-5][0-9]$/ This way you can validate the formats: 9:59 | 09:59 | 009:59 | 100:00 | 999:59
javascriptanswered Marcelo de Andrade 7,261