Posts by Rui Cardoso • 285 points
6 posts
-
3
votes1
answer55
viewsA: Fragments setArguments and getArguments error
The function getArguments should be called after Fragment is created, typically in the method onCreate doing for example: @Override public void onCreate(Bundle savedInstanceState) {…
-
2
votes1
answer34
viewsA: You doubt conditions in cakephp?
Great, you’re almost there. What you have to do is something like: "conditions"=>array("OR"=>array( array('Tipopessoa.descricao' =>'RESPONSAVEL'), array('Tipopessoa.descricao'…
-
4
votes1
answer154
viewsA: Validate Google Site Verification URL with Regex
Good, I think this regex works for what you want: [Gg]oogle[a-z0-9]*.html will detect google or google, any character for Random values and then html extension. If you want me to detect other…
-
-2
votes3
answers80
viewsA: Move the mouse, and know that I’m on top of an object
Through the use of jQuery, you have the onHover function. Basically you have to do: $(document).ready(function(){ $("image").hover(function(){ $(this).css( 'cursor', 'pointer' ); console.log("Estou…
javascriptanswered Rui Cardoso 285 -
0
votes3
answers2559
viewsA: Is it possible to add int with str composed of text and numbers in Python?
To do what you want, I think you can do the following: int( re.search(r'\d+', '1cachorro).group() ) What this will do is take the string you placed, search the integer and return it. Then you can…
-
3
votes4
answers886
viewsA: Select data from two tables
I think what you want to do is an INNER JOIN: SELECT Favoritos.id_utilizador, Posts.id_post, Posts.titulo, Posts.descricao FROM Favoritos INNER JOIN Posts ON…
phpanswered Rui Cardoso 285