ElkArte Community

General => Chit Chat => Topic started by: emanuele on February 20, 2013, 11:03:47 am

Title: my bookmarks
Post by: emanuele on February 20, 2013, 11:03:47 am
From time to time I search how to do some basic things (in git, in bash, in other things) and since my real bookmarks are so full of stuff that is useless to add another one...I'll put the results here. :P

Linux
http://stackoverflow.com/questions/9901738/find-command-search-only-non-hidden-directories (this is useful if you want to do a search&replace with sed and want to avoid to destroy the git repo O:-))
http://stackoverflow.com/questions/9721253/sed-regex-substitute (memo about sed and regexp: escape, escape, escape!)
http://unix.stackexchange.com/questions/30173/how-to-remove-duplicate-lines-inside-a-text-file

git
http://rob.by/2013/remove-merged-branches-from-git
http://devblog.springest.com/a-script-to-remove-old-git-branches
http://stackoverflow.com/questions/2119480/changing-the-message-of-the-first-commit-git
http://stackoverflow.com/questions/3401732/rewrite-author-in-history
https://gist.github.com/piscisaureus/3342247
http://stackoverflow.com/questions/2016901/viewing-unpushed-git-commits (in particular the second answer)
https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git
http://stackoverflow.com/questions/6658313/generate-a-git-patch-for-a-specific-commit
http://www.burtonini.com/wordpress/2012/07/19/recovering-from-a-bad-git-rebase/
http://stackoverflow.com/questions/4099742/how-can-i-compare-files-from-two-different-branches
http://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-are-already-merged
https://help.github.com/articles/remove-sensitive-data

web
http://gmazzocato.altervista.org/colorwheel/wheel.php
http://www.colorzilla.com/gradient-editor/

other
http://rubular.com/
http://www.modern.ie/en-us/virtualization-tools
https://www.draw.io/
http://www.evanmiller.org/how-not-to-sort-by-average-rating.html
Title: Re: my bookmarks
Post by: emanuele on March 20, 2013, 05:39:35 am
Nice one: https://github.com/blog/1439-closing-issues-across-repositories
Title: Re: my bookmarks
Post by: emanuele on May 16, 2013, 05:16:11 pm
I found (well first result of the search... :P) that: http://www.onemotion.com/flash/sketch-paint/
It's very basic basic but is nice I think.
Title: Re: my bookmarks
Post by: emanuele on October 06, 2013, 07:45:20 am
Don't remember where exactly I found it, though:
Code: [Select]
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
to cleanup old merged branches.
Title: Re: my bookmarks
Post by: Spuds on October 06, 2013, 01:09:04 pm
Nice  :D
Title: Re: my bookmarks
Post by: emanuele on October 09, 2013, 03:35:06 pm
Yep, a very useful script, especially for people (like me) that frequently forgot to cleanup their branches after merge. O:-)
Warning: I think it's better to run it from master.
Title: Re: my bookmarks
Post by: emanuele on January 13, 2014, 06:01:15 pm
Something not "close" to web development, I'd like to start playing with Android, so I was out searching for books:
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md

Plus some pages I wanted to read, but have to close some tabs:
http://developer.android.com/guide/topics/ui/settings.html
http://developer.android.com/reference/android/content/SharedPreferences.html
http://www.i-programmer.info/programming/android/5887-android-adventures-getting-started-with-android-studio.html
http://mobile.tutsplus.com/tutorials/android/android-sdk-working-with-android-studio/
Title: Re: my bookmarks
Post by: emanuele on January 18, 2014, 08:35:37 am
Added to the list: http://www.modern.ie/en-us/virtualization-tools
Title: Re: my bookmarks
Post by: emanuele on January 23, 2014, 09:02:46 am
https://www.draw.io/ Drawing application sketches and work-flow diagrams, you can save the results in several formats and in several places.
Looks interesting.
Title: Re: my bookmarks
Post by: Shawn Gossman on February 20, 2014, 09:06:03 pm
All my bookmarks are mostly YouTube videos I have found and liked :p

I mainly listen to music when I am at home on my PC and since the creation of YouTube, I don't even buy new music anymore...
Title: Re: my bookmarks
Post by: emanuele on February 26, 2014, 01:07:08 pm
I'm loving this! :D
http://xkcd.com/now
Title: Re: my bookmarks
Post by: Allan on February 26, 2014, 02:58:38 pm
I have to many to list, If I had to guess I would say about 400 hundred of them all together.
Title: Re: my bookmarks
Post by: emanuele on February 26, 2014, 03:43:55 pm
I have no idea how many bookmarks I have, I just keep here those that are coding-related and similar things. ;)
Title: Re: my bookmarks
Post by: emanuele on August 05, 2014, 10:01:13 am
I knew about http://jsfiddle.net/ but I didn't knew about: http://sqlfiddle.com/  8)
Title: Re: my bookmarks
Post by: emanuele on January 06, 2015, 03:47:51 pm
http://software.opensuse.org/download.html?project=home%3Acsbuild%3Acentosextra&package=ncftp

Useful, very useful.
Title: Re: my bookmarks
Post by: emanuele on January 21, 2015, 04:27:41 pm
https://github.com/victor-valencia/bootstrap-iconpicker <= works with FA as well.

/me would love to use it on some addons he has in mind.
Title: Re: my bookmarks
Post by: emanuele on January 29, 2015, 09:06:06 am
http://thetokenizer.com/2013/04/28/build-your-own-summary-tool/
https://github.com/jbrooksuk/node-summary
Title: Re: my bookmarks
Post by: emanuele on January 31, 2015, 04:44:11 pm
https://github.com/brunobar79/J-I-C
@Spuds and @Joker™ I'm pretty sure you could make something awesome out of it!
Title: Re: my bookmarks
Post by: Joker™ on February 01, 2015, 08:04:54 am
Quote from: emanuele – https://github.com/brunobar79/J-I-C
@Spuds and @Joker™ I'm pretty sure you could make something awesome out of it!
@emanuele will surely look into this. Looks quite interesting.

Was cleaning up my computer and came across a quite similar script which I've created year ago for a POC. Lets see how we can fit it into elkarte :)
Title: Re: my bookmarks
Post by: Spuds on February 07, 2015, 01:23:31 pm
Interesting ...

I'm not 100% sure the data upload would be smaller since it looks (at a quick glance) to be converting the image to a data_url which tend to be larger in terms of raw data.  I guess since you can manipulate the quality it could be smaller.  But seeing how that works does get the wheels spinning on what to do, and reading the canvas stuff it looks like there will be some additional coolness coming !
Title: Re: my bookmarks
Post by: emanuele on February 07, 2015, 02:34:44 pm
:D

I was thinking at the common (at least IIRC) problem of people that upload images from phones at maybe 3000x4000 px and there is an upload limit set at lower res. by the admin, so instead of returning an error or have to resize the image server-side a similar trick may be used.
Or for the avatar as well, now that I think about it: instead of fail or resize server-side it could be resized client-side. O:-)
Title: Re: my bookmarks
Post by: Spuds on February 07, 2015, 05:06:50 pm
nods Good point, phones and tablets (anything with the built in cameras) tend to send massive images that you need to deal with server side (now) since its a PITA to resize some of that on the phone.   Need to investigate !
Title: Re: my bookmarks
Post by: emanuele on March 26, 2015, 04:03:51 pm
http://stackoverflow.com/questions/6758652/mysql-how-to-drop-multiple-tables-using-single-query
Title: Re: my bookmarks
Post by: emanuele on March 30, 2015, 02:52:54 pm
Memo: how to find all the public static methods of a class via reflection.
Code: [Select]
		$reflection = new ReflectionClass(__CLASS__);

var_dump(
array_diff(
$reflection->getMethods(ReflectionMethod::IS_STATIC),
$reflection->getMethods(ReflectionMethod::IS_PRIVATE),
$reflection->getMethods(ReflectionMethod::IS_PROTECTED)
)
);
Title: Re: my bookmarks
Post by: emanuele on April 04, 2015, 12:46:43 pm
php by-ref, by-val and memory footprint (byref byval)

http://web.archive.org/web/20090614052353/http://porteightyeight.com/2008/03/18/the-truth-about-php-variables
Title: Re: my bookmarks
Post by: emanuele on April 11, 2015, 05:24:08 pm
drop tables
http://stackoverflow.com/questions/6758652/mysql-how-to-drop-multiple-tables-using-single-query
Title: Re: my bookmarks
Post by: emanuele on May 11, 2015, 04:32:14 pm
Interesting reading on hierarchical data using MySQL.
http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/
I did some tests on out boards table and it has some limitations (mainly the fact I can't join all the other tables we need leading to yet another query), but it would cut down the results returned in the sub-boards (that is actually rather annoying :P).
Title: Re: my bookmarks
Post by: emanuele on January 02, 2016, 07:03:18 pm
https://blog.jcoglan.com/2014/05/01/do-i-need-di/
Title: Re: my bookmarks
Post by: emanuele on January 18, 2016, 07:22:33 pm
Could be an interesting reading:
https://www.sig.eu/en/building-maintainable-software/
Title: Re: my bookmarks
Post by: emanuele on March 11, 2016, 09:13:49 am
http://arr.gr/blog/2014/05/php-memory-usage-unnecessary-string-concatenation/
http://johnciacia.com/2011/02/01/array-vs-splfixedarray/ <= shame it's fixed size and only arrays... :-\
http://php.net/manual/en/splpriorityqueue.insert.php <= interesting as a base for the Elk's one.
Title: Re: my bookmarks
Post by: emanuele on June 29, 2016, 04:51:33 pm
https://3v4l.org/ very nice for testing different versions of php in one go!
Title: Re: my bookmarks
Post by: Adrek on July 01, 2016, 04:01:55 am
Do you have something to check responsive layouts on the same screen? I'm using this Chrome addon: https://chrome.google.com/webstore/detail/viewport-resizer/kapnjjcfcncngkadhpmijlkblpibdcgm but I can't see what is on the right side of my screen when checking 1920x1080 on 1366x768 screen ::)
Title: Re: my bookmarks
Post by: Frenzie on July 01, 2016, 04:07:27 am
Just zoom in and out. ;)
Title: Re: my bookmarks
Post by: Adrek on July 01, 2016, 05:09:04 am
nice, didn't knew that responsiveness works when zooming in-out :D
Title: Re: my bookmarks
Post by: emanuele on August 03, 2016, 03:56:52 pm
https://regex101.com/