| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Comments:
<0> TML: i'll have to look into this, you've peaked my interest in this now <1> TML: I've noticed minor variations though when using em... but *shrug* I'm no expert :) <2> zircu: :) <3> i've read that some font experts says that it should be "ex" as the standard, except that we can't use it now because of browser inconsistencies <2> I've never used em in place of pt because its meaning is confusing in the font-size context. <2> I mean, it means one thing everywhere *EXCEPT* in font-size, where it means something completely different. <3> TML: em is much easier to use in standards mode. quirks mode adds in some headache <2> deadroot: I always write in standards mode. <2> " The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. The exception is when 'em' occurs in the value of the 'font-size' property itself, in which case it refers to the font size of the parent element." <2> (quoth the specs) <2> I read that paragraph as basically saying "Don't use em" :) <2> Thus, I always use pt size for fonts, and percentages for everything else. <4> woot <0> "pt: Differs greatly between resolutions" <3> after parsing that language, it was "1em is always equal to the computed font-size, unless the font-size is specified with em. in which case, it will be relative to the parent element." <2> zircu: That's right. Point sizes scale at precisely the same rate as resolutions do.
<0> TML: so basically your saying that pt gives a more reliable scaled font <2> zircu: "more reliable"? Hmmm... <2> zircu: em is reliable, if in a confusing (to me) manner. <2> It's easier for me to conceptualize a point size's scaling method. <3> couldn't 1pt = 72px and 1pt = 720px on different monitors? <0> well, there are some gotchas as you quoted above with em's <5> 1 point = 1/72 of an inch <3> zircu: the quoted text basically says em is like percentages <4> what's the point of me putting public $var; at the beginning, php don't need it to initiate right? <4> beginning of cl*** i mean <6> Froshs: it's good practice <3> Froshs: for clarity <0> Froshs: it self documents as well as initialized the object with the default value (if specified) <2> Froshs: If the value doesn't change, it's static. Therefore, it should be declared statically, so that everyone who reads the cl*** understands that the cl*** expects this value to be consistent. <0> TML: http://www.w3.org/QA/Tips/font-size <0> ^ that strayed me from pt <4> so I should define every variable i plan to use just for good practice, clarity? <4> constructor sometimes seem unneccessary <7> if i want to print a line of code repeatedly in a loop structure, is there a way to do it without using echo or print , but instead with an alternative control struture? <3> "Avoid sizes in em smaller than 1em for text body, except maybe for copyright statements or other kinds of "fine print."" < is not a completely good idea. i would initialise the body to 0.7 or 0.8 em first, at least for IE and Fx <0> yeah, i would only define a constructor if it is needed <0> Geren: an alternative control structure? <2> Geren: You can't print using a control structure <7> huh? <7> i mean instead of doing while { echo" " } <7> is there a way to do it wthout using echo in each iteration <2> You said "without using echo or print, but instead using an alternative control struture". control strutures cannot replace echo or print, because control strutures cannot generate output <8> Geren: No, and what difference does it make? <7> i mean <7> like shortened form <8> echo is only 4 characters <8> you could do a function and have it a([TEXT HERE]) and that save a single character <2> Geren: You can store a value until you've done whatever it is you're wanting to do, and then only call echo at the end. <0> $. = 'printf'; while(1) $.('hello'); <0> hmm.. . isn't valid var ***ignment :) <2> zircu: WHAT IN THE NAME OF...?!?! <2> Why would you even *TRY* such a thing, you monster? <6> zircu: come on, you can do better than that <0> TML: i was trying to make it as short as possible <7> i heard you can do it without using :"echo" <2> zircu: is "." shorter than, say, "p"? <4> I know this wouldn't be recommended, but is it possible, does it even work, if I copy a working script into a cl*** method? and just call it out? <0> TML: depeneds on the font :) <2> heh <2> zircu: I suppose. I always use monospaced fonts. <0> same here, it just percieved as shorter for me <2> Froshs: It depends on what the "working script" does. <4> because I want to make it into OO <6> Geren: why would you want to do it without echo? it's 4 letters <4> as a learning experience and hope it works :D <6> $a = '', $$a = 'printf'; while(a) $('hello'); <6> now _that_ is obscure <2> aidan: If I *EVER* end up cleaning that up somewhere, I'm holding you personally responsible. <6> * while(1) <6> haha TML <9> lol <2> Although it is rather wickedly delicious <2> ah...doesn't work, unfortunately <6> oh?
<6> is there an error? <2> parse error at $() <6> dammit :( <0> yeah something is odd with that <6> eval! <2> heh <0> aidan: now you are getting desperate like i was <6> $a = '', $$a = 'test'; echo $; does that work? <2> Can you imagine, looking at someone's code, 15 includes down from $a=''; $$a='really_hairy_function_with_lots_of_side_effects';, and trying to figure out what the hell $(); does, and why it breaks EVERYTHING? <2> aidan: Nope. Again, breaks at the lack of an identifier after $ <0> yeah parser doesn't like $; <2> heh <2> aidan: Here you are <2> $a = ''; $$a = 'test'; echo ${NULL}; <6> ah, that is ***y <4> just wondering for fun would this work, a different portion of a script, can break it into methods, and then call each methods after another? <6> ${} work? <2> $a = ''; $$a = 'printf'; ${NULL}("T"); <7> no actually i meant like <?="adsfasdf"?> <7> the short form of echo <2> No, {} breaks at } <4> would it read like a whole script as without cl***? <2> Geren: That's deprecated. Don't use it. <2> Froshs: The question doesn't make sense. <7> well what else could it mean by alternative loop structure then!? <2> Geren: That's not a loop structure <4> say you have a whole script <6> Geren: that's not the short form of echo ... You can't use that in a block of PHP code. If you're not in a PHP block, then yes, that would work (until the next version of PHP) <4> break it at random lines <2> A loop structure is while, do/while, or for. <4> put each in a method <6> Froshs: ... one line per thought please <4> then just call them out <2> Geren: "Alternative loop structure" refers to the use of: while(test): code; more code; endwhile; <4> would that work? <2> Geren: And such constructs. <6> Froshs: and yes ... if you do it properly, it will work fine ... and that's the beginning of writing OOP code <7> TML, yes that's part of it, but that does not eliminate the echo statement <4> good to know <7> i want an alterntive structure wthout echo <7> yet still have those lines printed <3> "$a = ''; $$a = 'test'; echo ${NULL};" :O <10> I reinstalled PHP4 and it's working with PHPBB, but now it's telling me it cant read or write files <6> Geren: .. could you get over the not wanting to use 'echo' please? <10> What do i need to change to fix that? <6> Jaywalker: #phpbb :) <2> Geren: Then call print, printf, var_dump, printr, or some other output generating function or statement. <10> aidan: not a problem there <10> refering to earlier <10> it's a PHP problem <7> i think it meant using that short tag thing <10> it won't let me read or write anything to a file <2> Geren: "that short tag thing" is deprecated, and you shouldn't use it, because it's going away. <6> Jaywalker: If your PHPBB install is not working, it is a #phpbb problem <2> (Just in case you don't understand what I meant by "deprecated") <10> aidan: you didn't read what i said <7> ok , oh well <7> alright i'll work on it <0> if you dont want much typing use something like BF <10> the problem has no relation to PHPBB <10> the problem is with my own codes that worked before <6> Jaywalker: ... Then why did you mention PHPBB? <4> wow, OO really needs planning <4> unlike other stuff <10> aidan: i was talking about it earlier <2> Froshs: yes, that's the general idea behind OO <2> Froshs: Spend more time in planning and less in debugging. <10> The issue i'm having is PHP can't read or write to any file with fopen <4> but once its done, it's suppose to make everything easier right?? combine this with that? <6> Jaywalker: what's the error given? <2> Jaywalker: permissions on files is the most likely problems. <4> like phpbb, they do that in cl***?
Return to
#php or Go to some related
logs:
bluetooth ubuntu obex source.list #gimp olivia d'abo bolero underage pb crontab autoexpect diffing koans #debian #kde PHP Warning: PHP Startup: Unable to load dynamic library zip.so ebuild bb gentoo aalib #gimp
|
|