Author Topic: Your favorite web design tools/tips/tricks/tutorials/sites  (Read 29756 times)

0 Members and 1 Guest are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #30 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

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #31 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....



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #32 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)

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #33 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.
« Last Edit: November 03, 2012, 07:25:08 pm by flyingfisch »



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #34 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 <_<

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #35 on: November 03, 2012, 08:04:01 pm »
Adblock for opera

Adblock for IE

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.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #36 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.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #37 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

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #38 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.
« Last Edit: November 06, 2012, 01:06:33 pm by Art_of_camelot »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #39 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.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #40 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;
}
?>

/e

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #41 on: July 23, 2016, 12:42:32 pm »
I just stumbled upon this and it is really sweet: https://xerographer.github.io/multicoloure/

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #42 on: August 18, 2016, 06:07:11 am »
While we're on the topic of fonts...

I stumbled upon Fira Code 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.




Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #43 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?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Your favorite web design tools/tips/tricks/tutorials/sites
« Reply #44 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