Omnimaga

General Discussion => Technology and Development => Web Programming and Design => Topic started by: flyingfisch on December 18, 2011, 05:22:27 pm

Title: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on December 18, 2011, 05:22:27 pm
Post your favorite web design info sources!

I'll start:

http://www.justbenicestudio.com/studio/websymbols/
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Michael_Lee on December 18, 2011, 05:26:49 pm
http://css-tricks.com (http://css-tricks.com)
^That.  Contains a bunch more then CSS.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on December 18, 2011, 05:30:17 pm
http://css-tricks.com (http://css-tricks.com)
^That.  Contains a bunch more then CSS.

Oh yeah, I love that site! I would recommend signing up for their RSS feed. ;)
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Darl181 on December 18, 2011, 05:52:09 pm
I don't do much web design, but I've found this useful multiple times for various things.
http://www.tedmontgomery.com/tutorial/ALTchrc-a.html
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on December 18, 2011, 06:14:20 pm
I don't do much web design, but I've found this useful multiple times for various things.
http://www.tedmontgomery.com/tutorial/ALTchrc-a.html
http://www.mclean.net.nz/ucf/ is my favorite place to find characters. For basic web design tutorials, I really like W3Schools (http://www.w3schools.com/).
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on December 18, 2011, 07:51:42 pm
IDK if i made this clear, but this page is not a character chart. It is a free webfont that I find very useful to use instead of SVG's. If you search css-tricks, you can find more info on this. ;)


Post your favorite web design info sources!

I'll start:

http://www.justbenicestudio.com/studio/websymbols/

Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on December 18, 2011, 08:12:03 pm
Whoa, that's actually pretty cool O.O
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on December 19, 2011, 01:33:21 pm
Whoa, that's actually pretty cool O.O

Yeah i know. Erler dingbats are also good. And free. ;)
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on December 26, 2011, 12:41:26 pm
I just started using that WebSymbols font, and wow... That is one useful tool. Thanks for sharing!
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on December 26, 2011, 12:57:33 pm
you're welcome! It's amazing how helpful they can be.

Word of caution: use the ":before" pseudo-class instead of just putting symbols directly into the page. This will keep screen readers from reading it and also disallow highlighting for most browsers ;)
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on December 26, 2011, 12:58:55 pm
Hey, that's a nice trick, too.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on December 26, 2011, 01:02:05 pm
I have to give credit for that trick to CSS-tricks (mentioned above)
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: jwalker on December 28, 2011, 08:44:50 pm
with the little bit of web stuff i did i mostly learned from here:
http://www.w3schools.com/default.asp (http://www.w3schools.com/default.asp)
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on December 29, 2011, 11:25:29 am
Yeah, w3schools is definitely the place for newbs to start and is great for reference.

Here's a cool css-tricks article: http://css-tricks.com/adobe-like-arrow-headers/
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on December 29, 2011, 12:25:47 pm
I really need to start following CSS-Tricks more. They've got some really cool stuff O.O
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on January 06, 2012, 01:40:01 pm
Check this out! (http://www.useragentman.com/blog/2012/01/03/cross-browser-html5-progress-bars-in-depth/)

Progress bars built into HTML5!!! Nice thing to know about ;)
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on March 02, 2012, 10:39:52 am
Test out PHP online, without having to upload to server or use apache. Great for using if you are trying to do a tutorial and follow along at the same time. ;)

http://writecodeonline.com/php/
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on March 02, 2012, 05:50:14 pm
I just found that site a few days ago. It's been really, really useful since.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on November 02, 2012, 02:12:48 pm
See how your site would look in IE, even if you don't have IE:

http://netrenderer.com/

(not that you'd want to or anything...) :P
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on November 02, 2012, 07:22:06 pm
SauceLabs (http://www.saucelabs.com/) is what I use for that. It's a full visualizer, which means you can interact with (and even debug!) browsers on Windows, Mac, and Linux going back to IE6.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on November 02, 2012, 07:26:26 pm
Wow that's awesome! :D
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on November 02, 2012, 07:28:56 pm
The free version has a monthly time cap, but it's been incredibly useful nonetheless.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on November 02, 2012, 07:48:09 pm
Somehow I seem to remember a similar service that was free....
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Sorunome on November 03, 2012, 02:13:58 am
See how your site would look in IE, even if you don't have IE:

http://netrenderer.com/

(not that you'd want to or anything...) :P
Who would even bother making it look good there?
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on November 03, 2012, 01:28:26 pm
People who care at all about a misinformed segment of their audience.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on November 03, 2012, 01:44:12 pm
People who care at all about a misinformed segment of their audience.

And those who have not given their clients IE never, (ever, ever) (http://ourl.ca/12450/239231) yet.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: DJ Omnimaga on November 03, 2012, 01:48:29 pm
Lol in IE6 Omnimaga doesn't look as bad as what Netham45 was describing a few years ago. Just the top is messed up.

Also some less tech-savy people will never want to switch from IE6-8 just because they prefer their interface and don't care about the risks.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on November 03, 2012, 01:50:08 pm
Also some less tech-savy people will never want to switch from IE6-8 just because they prefer their interface and don't care about the risks.
I've found that sometimes they think switching to a better browser carries risks (since it's software they're installing from the web), and they don't want to do it for fear of trashing their computer somehow.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on November 03, 2012, 02:02:05 pm
Also some less tech-savy people will never want to switch from IE6-8 just because they prefer their interface and don't care about the risks.
I've found that sometimes they think switching to a better browser carries risks (since it's software they're installing from the web), and they don't want to do it for fear of trashing their computer somehow.

Yeah, my uncle is still using an ancient version of flash because he thinks he is taking a risk by installing the new version...
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: DJ Omnimaga on November 03, 2012, 06:26:38 pm
Yeah that too. I remember one of the Omnimaga staff was stuck using IE because his dad thought Firefox was a virus. In my bro's case, he got a virus from Opera once and Firefox kept crashing so he switched back to IE. I myself got far more viruses in IE, though.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Sorunome on November 03, 2012, 06:32:10 pm
I myself use chromium, I don't know how i got there, lol
I got my host-mum to using firefox, she thought that it was slower and more complicated than IE
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on November 03, 2012, 07:02:06 pm
Yeah that too. I remember one of the Omnimaga staff was stuck using IE because his dad thought Firefox was a virus. In my bro's case, he got a virus from Opera once and Firefox kept crashing so he switched back to IE. I myself got far more viruses in IE, though.

adblock does wonders....
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: DJ Omnimaga on November 03, 2012, 07:14:10 pm
What does adblock have to do with viruses though? There's no adblock in Opera nor IE (they use their own pop up blockers and Opera has its own, very crappy and limited content blocker)
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on November 03, 2012, 07:24:33 pm
What does adblock have to do with viruses though? There's no adblock in Opera nor IE (they use their own pop up blockers and Opera has its own, very crappy and limited content blocker)


There is an adblock addon for both opera and IE, and adblock helps get rid of advertisements that non-tech-savvy people are wont to click on...which may get them a virus, spyware, scam, spam, etc.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: DJ Omnimaga on November 03, 2012, 07:29:02 pm
Really? I didn't know about that. A while ago I went on Opera website and couldn't find any extensions/widget section other than weird widgets you downloaded and it added plenty of gimmick on your Windows desktop, and I didn't even know IE had extension/add-on support at all. However until now I didn't know in English extensions were called add-ons instead of extensions, so I guess I'll have to check more carefully.

I was really sure, however, that Adblock was a Firefox-only thing. In Opera the default Block Content feature just blocks the entire video box rather than just ads.

I'm betting that if kids installed that stuff on their parent's computers and those parents are scared of Internets softwares, then they would be scared and think that adblock is a scam and a virus, though <_<
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: flyingfisch on November 03, 2012, 08:04:01 pm
Adblock for opera (https://addons.opera.com/en/extensions/details/opera-adblock/)

Adblock for IE (http://simple-adblock.com/)

I was wrong, the ie version isnt technically and addon....but it works.

anyway, i guess most people's situation is different than mine because it was my dad who introduced me to adblock, and my mom pretty much trusts me as far as computers go, as do all my aunts and uncles.
Title: Re: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Juju on November 03, 2012, 08:49:59 pm
I think my mom doesn't even know what's going on on my computers, even though she knows her way around a computer.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Sorunome on November 03, 2012, 08:52:48 pm
Yeah that too. I remember one of the Omnimaga staff was stuck using IE because his dad thought Firefox was a virus. In my bro's case, he got a virus from Opera once and Firefox kept crashing so he switched back to IE. I myself got far more viruses in IE, though.

adblock does wonders....
I use ghostery, it blocks out tracking sites (like google adsence and facebook and many many others) and i don't even get youtube ads anymore XD
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: TIfanx1999 on November 06, 2012, 01:05:56 pm
See how your site would look in IE, even if you don't have IE:

http://netrenderer.com/

(not that you'd want to or anything...) :P
Who would even bother making it look good there?
A large portion of people still use IE, and some computers users are unable to change their software (limited user permisions). Although looks are important, it's even more important that it actually works in IE. In web dev. it is very important that your website functions in all current browsers.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Sorunome on November 10, 2015, 12:31:27 pm
technically tricks fit in here, too :P
So yeah, just did this thing:
Code: [Select]
<?php
class Foo {
        protected 
$hello 'there';
        public function 
__construct(){
                
$this->hello 'world';
        }
        public function 
upgrade(){
                
$reflect = new ReflectionClass($this);
                
$props = array();
                foreach(
$reflect->getProperties() as $p){
                        
$name $p->name;
                        
$props[$name] = &$this->$name;
                }
                return new 
Bar($props);
        }
}
 
class 
Bar extends Foo {
        public function 
__construct($props){
                foreach(
$props as $var => $val){
                        
$this->$var $val;
                }
        }
        public function 
test(){
                echo 
$this->hello;
        }
}
 
$obj = new Foo();
var_dump($obj);
$obj $obj->upgrade();
var_dump($obj);
$obj->test();
?>
Allows you to "upgrade" a class to another one and copy all the public/protected vars over to the new one.
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Eeems on November 10, 2015, 12:51:37 pm
Using ReflectionClass can be fun :)
I use it for argument pass-off in my sql class.
Code: [Select]
<?php
/**
* SQL class. Used for handling SQL connections
*
* @module sql
* @class SQL
* @constructor
*/
class SQL {
/**
* This is the mysqli connection beneath everything

* @property sql
* @type {mysqli}
* @private
* @required
*/
private $sql;
public function __construct($server,$user,$pass,$db){
$this->sql = new mysqli($server,$user,$pass,$db) or die('Unable to connect to mysql');
}
public function __invoke(){
return $this->sql;
}
public function __get($name){
switch($name){
case 'error':
return $this->sql->error;
break;
}
}
/**
* Returns a Query object based on inputs
*
* @method query
* @param {String} sql The sql expression to run
* @param {String=null} [types] A string containing all the types of arguments being passed
* @param {Mixed} [bindings]* The bindings to use in the sql statement
* @return {Query} Returns the query object
*/
public function query(){
$reflect = new ReflectionClass('Query');
$args array_merge(array($this),func_get_args());
return $reflect->newInstanceArgs($args);
}
public function escape($s){
return $this->sql->escape_string($s);
}
public function charset($charset){
return $this->sql->set_charset($charset);
}
}
/**
* Query class. Returned by SQL::query()
*
* @class Query
* @constructor
*/
class Query {
private $query;
private $sql;
public function __construct($sql,$source,$types=null){
$args func_get_args();
$args array_splice($args,2);
$this->sql $sql();
$this->query $sql()->prepare($source);
if(!is_null($types)){
call_user_func_array(array($this->query'bind_param'),make_referenced($args)) or die($sql()->error);
}
}
public function __invoke(){
return $this->query;
}
public function execute(){
if($this->query){
$r $this->query->execute();
$this->sql->commit();
return $r;
}else{
return false;
}
}
public function __get($name){
switch($name){
/**
* Returns the mysqli::results object for the
* query

* @property results
* @type {mysqli::results}
* @public
*/
case 'results':
if($this->query){
$this->execute();
$result $this->query->get_result();
$this->query->close();
return $result;
}else{
return false;
}
break;
/**
* Returns an associative array of the query resulsts

* @property assoc_results
* @type {Array}
* @public
*/
/**
* Returns an associative array of the query resulsts

* @property resulsts_assoc
* @type {Array}
* @public
*/
case 'assoc_results':case 'results_assoc':
if($this->query){
$a = array();
$r $this->results;
while($row $r->fetch_assoc()){
array_push($a,$row);
}
return $a;
}else{
return false;
}
break;
/**
* Returns a numbered array of the query results

* @property num_results
* @type {Array}
* @public
*/
/**
* Returns a numbered array of the query results

* @property resulsts_num
* @type {Array}
* @public
*/
case 'num_results':case 'results_num':
if($this->query){
$a = array();
$r $this->results;
while($row $r->fetch_num()){
array_push($a,$row);
}
return $a;
}else{
return false;
}
break;
case 'assoc_result':case 'result_assoc':
if($this->query){
$r $this->results;
return $r?$r->fetch_assoc():false;
}else{
return false;
}
break;
case 'num_result':case 'result_num':
if($this->query){
$r $this->results;
return $r?$r->fetch_num():false;
}else{
return false;
}
break;
case 'insert_id':
return $this->sql->insert_id;
break;
}
}
}
function make_referenced(&$arr){
$refs = array();
foreach($arr as $key => $value){
$refs[$key] = &$arr[$key];
}
return $refs;
}
?>

Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Sorunome on July 23, 2016, 12:42:32 pm
I just stumbled upon this and it is really sweet: https://xerographer.github.io/multicoloure/
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on August 18, 2016, 06:07:11 am
While we're on the topic of fonts...

I stumbled upon Fira Code (https://github.com/tonsky/FiraCode) recently. It blew my mind.

Basically, it uses ligatures (a feature whereby two adjacent characters may be displayed differently from the two characters by themselves) to render some common multiple-character programming operators in really neat ways. It's especially useful for Haskell, but it works great in other languages too, for example by combining things like != and >= into ≠ and ≥.

A picture is worth a thousand words. (https://raw.githubusercontent.com/tonsky/FiraCode/master/showcases/all_ligatures.png)
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Sorunome on August 18, 2016, 06:11:09 am
Wow, that's a pretty neat idea! I can easily imagine that it takes quite some time to get used to it, though.

Also, is it so that when you backspace both characters dis-appear then?
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Deep Toaster on August 18, 2016, 06:14:49 am
Nope, the file itself still has the two characters separately—it just shows up as a combined character, taking up twice the space. So pressing Backspace on ≠ gives you !.

It doesn't really take any getting used to, since the characters are all still there, just displayed slightly differently. If anything it's made my code more intuitive because I can see where one operator ends and another begins :D
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Sorunome on August 18, 2016, 06:16:09 am
Nope, the file itself still has the two characters separately—it just shows up as a combined character, taking up twice the space. So pressing Backspace on ≠ gives you !.

It doesn't really take any getting used to, since the characters are all still there, just displayed slightly differently. If anything it's made my code more intuitive because I can see where one operator ends and another begins :D
That's exactly what i mean: Stuff gets displayed differently. So it would take at first longer for me to realise what a certain piece of code means, as i'm soooooo used to != and === and stuff like that...
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: p2 on August 18, 2016, 06:44:49 am
I really like this ite since it gives great examples for advanced stuff like parallax effects and fance animations  :love:
http://callmenick.com/page/archive
Title: Re: Your favorite web design tools/tips/tricks/tutorials/sites
Post by: Eeems on August 18, 2016, 03:16:48 pm
Fira Code seems awesome, if only my editors supported it properly :(