Skip to content

Instantly share code, notes, and snippets.

View Rub21's full-sized avatar
🐕

Ruben L. Mendoza Rub21

🐕
View GitHub Profile

perf guide

Profiling tools are critical for trying to understand performance bottlenecks in code.

Without real data about what a program is doing while running, detecting bottlenecks is at best a process of trial and error for both users and developers. While thoughtful testing of various program configurations along with measuring time elapsed for decrete runs can often be enough - why not learn faster and funner ways to rapidly collect real data about what a program is doing?

Actual data about program execution like which functions are being called while a program is active helps point to hot parts of the code where most time may be being spent. While users of applications may not easily understand the output of profiling tools, being equipped to generate profiling output can be extremely useful for sharing with developers, since the time to set up robust test cases for developers is can be greater than the time it takes to understand and optimize slow code paths. Therefore it can be invaluable to get

@amarillo : #fff000;
@celeste: #61BBF3;
#osm_roads{
line-color:@celeste;
line-comp-op:src-out;
[zoom=7] { line-width: 1 ; }
[zoom=8] { line-width: 2 ; }
[zoom>9] { line-width: 2 ; }
}
Para llamar a OSM Roads
(select id, osm_id,osm_uid,osm_version,osm_timestamp,way from osm_roads) as osm_roads
-83.673338 36.540816,-75.245877 39.465979
Para llaamr a TIGER Roads
(SELECT gid, geom FROM roads_t2012) as tiger
-83.673338 36.540816,-75.245877 39.465979
@Rub21
Rub21 / index.html
Created January 11, 2013 15:52 — forked from yhahn/index.html
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
@Rub21
Rub21 / lamp
Created January 13, 2013 12:04
sudo /opt/lampp/lampp start
You can now access XAMPP from this link to see if it is well started:
http://localhost
The default folder for installing your web files and applications is /opt/lampp/htdocs. For stopping or restarting XAMPP, you can use later these commands:
sudo /opt/lampp/lampp stop
instalar desde synaptic
One annoying “feature” for him is that Dolphin uses single click by default. Normally a user could change this under System Settings, however this is not installed.
So, the easiest way to change this (probably even if you do have System Settings installed!) is to edit the configuration file in your home directly.
sudo vim ~/.kde/share/config/kdeglobals
Under the
[KDE]
$ sudo chmod -R 755 /var/www/CodeIgniterInstallFolder/
If nothing happens, try to look on your server log.
$ sudo gedit /var/log/apache2/error.log
mapbox@mapbox-pc:~$ ifconfig
eth0 Link encap:Ethernet HWaddr e0:69:95:68:bd:44
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:20 Memory:fe600000-fe620000
lo Link encap:Local Loopback
@Rub21
Rub21 / gist:4637385
Last active December 11, 2015 17:48
# (change requires restart)
# If external_pid_file is not explicitly set, no extra PID file is written.
external_pid_file = '/var/run/postgresql/9.1-main.pid' # write an extra PID file
# (change requires restart)
#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------
@Rub21
Rub21 / index.html
Created January 31, 2013 04:39 — forked from tmcw/index.html
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.4/mapbox.css' rel='stylesheet' />
<title>VTIrene recap</title>
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }