Skip to main content
Topic: my bookmarks (Read 14681 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: my bookmarks

Reply #15

https://github.com/victor-valencia/bootstrap-iconpicker <= works with FA as well.

 emanuele would love to use it on some addons he has in mind.
Bugs creator.
Features destroyer.
Template killer.


Re: my bookmarks

Reply #17

https://github.com/brunobar79/J-I-C
@Spuds and @Joker™ I'm pretty sure you could make something awesome out of it!
Bugs creator.
Features destroyer.
Template killer.

Re: my bookmarks

Reply #18

@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 :)
Last Edit: February 01, 2015, 09:21:25 am by Joker™

Re: my bookmarks

Reply #19

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 !

Re: my bookmarks

Reply #20

: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:-)
Bugs creator.
Features destroyer.
Template killer.

Re: my bookmarks

Reply #21

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 !


Re: my bookmarks

Reply #23

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)
)
);
Bugs creator.
Features destroyer.
Template killer.



Re: my bookmarks

Reply #26

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).
Bugs creator.
Features destroyer.
Template killer.



Re: my bookmarks

Reply #29

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.
Bugs creator.
Features destroyer.
Template killer.