Posts by Guilherme Louro • 543 points
17 posts
-
0
votes2
answers843
viewsA: Display contents of a dictionary in sorted mode according to values
You can use a Construct called lambda to create an anonymous function: sorted(months.items(), key=lambda x: x[1])
python-3.xanswered Guilherme Louro 543 -
1
votes2
answers719
viewsA: Filling Flash objects with solid colors and textures
A very simple solution to this is: You have a movieclip where in each frame you put a different texture and your button will have an event that displays the frame with the desired texture: Example:…
-
0
votes4
answers107
viewsA: How to use ' inside an array?
Use in this way: <?php ":'(" => "choro.png", ?>
-
1
votes4
answers4082
viewsA: Change page without changing user URL
Maybe you want to work with the exchange of links that if the page suffers a Reload.. I got it right? The best advised for such cases is to work with Deep Linking A great library to work with Deep…
-
20
votes3
answers5939
viewsA: What are the techniques for making scroll-based animations?
I’ve used the superscrollorama to do this. It’s very simple to use.. their own example is very intuitive. It uses the library greensock to work with the animation that by the way is fantastic. The…
-
1
votes1
answer173
viewsA: Cutting image with PHP
Use the library Timthumb to do this. Get her here It is used as follows: <img src="timthumb.php?src=url_da_imagem&w=100&h=150" alt=""> Where: w = Width you want for the image h =…
phpanswered Guilherme Louro 543 -
3
votes1
answer3045
viewsA: How to develop a basic game using opengl that accepts keyboard commands
Working with openGL and C++ to create a game you will need to program it very low level even, I say this by the way of dealing collisions and some other functionality for example, it is more…
-
2
votes1
answer274
viewsA: Is it possible to create HTML frames?
In the rough it would be more or less like this, you would adapt according to your design HTML <html> <head> <meta charset="UTF-8"> <title>Document</title>…
-
0
votes2
answers11772
viewsA: JSON does not accept accentuation
When using string in the ISO-8859-1(latin1) charset, the json_encode function of php presents problems, cutting the value after the first accented character. To avoid this problem, before converting…
-
2
votes1
answer800
viewsA: Transition effect of website content
You can do using the library greensock. Very good for animation in js. She’s used that way: HTML <html> <head> <meta charset="UTF-8"> <title>Document</title>…
-
1
votes1
answer97
viewsA: Problem with Phonegap installation
Make sure you have Git set in your windows PATH... Right click on My Computer Click Advanced system settings Click Environment variables at the bottom of the window Then add the git path to the end…
-
0
votes3
answers1577
viewsA: Embed for my website content
A good way to create an embed is through javascript, instead of using iframe and getting stuck to content size. Your embed can stay with this structure: <div class="widget"> <div…
-
0
votes2
answers1101
viewsA: How to create upload files without using "input file"?
If your idea is to pass the url of some image through the textField field you can do as follows: <?php $url = "http://...."; //url da imagem que venha de um textField //PEGA INFORMAÇÕES DA IMAGEM…
-
2
votes2
answers2761
viewsA: PHP value rounding error
There are more specific functions for you to work with rounded php numbers. Round up values: <?php echo ceil(9.3); // saída = 10 ?> Round down values: <?php echo floor(9.6); // saída = 9…
-
1
votes2
answers2569
viewsA: Upload progress with jquery or php
First you will have to do this using AJAX and jQuery Form. Your form being so: <form action="processupload.php" method="post" enctype="multipart/form-data" id="UploadForm"> <input…
-
1
votes1
answer117
viewsA: Overlay Section
From what I understand you’re willing to do this: (using jQuery) $(window).on('scroll', scrolling); function scrolling () { var top = $(document).scrollTop(); var stop = $("#secao_1").offset().top;…
-
1
votes2
answers278
viewsA: Starting GIT from Terminal
If you want to start a new git project, first check that the . git folder already exists where you will initialize your git with the command ls -la. If there is no folder just start the project. git…