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
Nice one: https://github.com/blog/1439-closing-issues-across-repositories
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.
Don't remember where exactly I found it, though:
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
to cleanup old merged branches.
Nice :D
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.
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/
Added to the list: http://www.modern.ie/en-us/virtualization-tools
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.
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...
I'm loving this! :D
http://xkcd.com/now
I have to many to list, If I had to guess I would say about 400 hundred of them all together.
I have no idea how many bookmarks I have, I just keep here those that are coding-related and similar things. ;)
I knew about http://jsfiddle.net/ but I didn't knew about: http://sqlfiddle.com/ 8)
http://software.opensuse.org/download.html?project=home%3Acsbuild%3Acentosextra&package=ncftp
Useful, very useful.
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.
http://thetokenizer.com/2013/04/28/build-your-own-summary-tool/
https://github.com/jbrooksuk/node-summary
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 :)
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 !
: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:-)
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 !
http://stackoverflow.com/questions/6758652/mysql-how-to-drop-multiple-tables-using-single-query
Memo: how to find all the public static methods of a class via reflection.
$reflection = new ReflectionClass(__CLASS__);
var_dump(
array_diff(
$reflection->getMethods(ReflectionMethod::IS_STATIC),
$reflection->getMethods(ReflectionMethod::IS_PRIVATE),
$reflection->getMethods(ReflectionMethod::IS_PROTECTED)
)
);
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
drop tables
http://stackoverflow.com/questions/6758652/mysql-how-to-drop-multiple-tables-using-single-query
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).
https://blog.jcoglan.com/2014/05/01/do-i-need-di/
Could be an interesting reading:
https://www.sig.eu/en/building-maintainable-software/
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.
https://3v4l.org/ very nice for testing different versions of php in one go!
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 ::)
Just zoom in and out. ;)
nice, didn't knew that responsiveness works when zooming in-out :D
https://regex101.com/