« first day (1855 days earlier)      last day (3111 days later) » 

6:00 PM
without creating new objects and constructing it for all API request
 
don't use statics for the purpose of avoiding creating new objects
just create them
 
@ircmaxell how is he incorrect?
 
@bwoebi consider who's asking
 
@ircmaxell It does, but you can do many things wrong with these :-D
 
in JAVA class doesn't allocated memory for classes unless it become an object
 
6:02 PM
@bwoebi because memory is allocated when you use classes and store state in static variables
@underscore suggestion: don't prematurely optimize. Build it and then profile. See where your bottlenecks are
 
@ircmaxell right, the class is allocated once, needs to be in memory after compile time… yea
 
but no allocs at runtime though
@ircmaxell but I seem to be missing the point…
 
YES
 
6:05 PM
I realize that I'm just being pedantic…
and that it actually missed Anthonys point…
 
2 messages moved to bin
this is not the place to discuss that
7 messages moved to bin
 
ugh… I think this feature might be ugly :/
 
@DaveyShafik E_CTX
 
last warning, no politics discussions in here on this topic. If you want to discuss in the context of finding out if people we know here are safe, that's fine. But beyond that is not acceptable.
 
@bwoebi hrm?
 
6:11 PM
5 messages moved to bin
 
@DaveyShafik context missing… what feature?
@ircmaxell mhm, why not? At least as long as we're not discriminating anyone?
 
@bwoebi the curl push stuff
 
@DaveyShafik why?
 
@bwoebi so, libcurl regsister the curl handle with the multi handler itself, which means it's not wrapped in the necessary PHP crap
 
@ircmaxell if we are ALLOWED talk about php and only about php, then most of a could as well leave this chat room
4
 
6:14 PM
@DaveyShafik ah, the internal impl… yep :-/ you'll have to work around that :s
 
@bwoebi I'm not sure that I can. :/
Hrm, I get different compile warnings on OS X vs Ubuntu:
/php-src/ext/curl/multi.c: In function '_php_server_push_callback':
/php-src/ext/curl/multi.c:420:12: warning: variable 'parent' set but not used [-Wunused-but-set-variable]
  php_curl *parent;
            ^
 
@tereško well, that's not quite what he was saying… he said no politics. But yeah, I'm disagreeing with him too.
 
@DaveyShafik you set it, but don't use it.
 
@bwoebi … :)
 
6:19 PM
@ircmaxell I don't like political discussions, and yeah I know the name of this room is PHP, but look, You know what happened in Paris? Several innocent people have died. It can be a really important subject. actually it is the most important news in the network news. So, I think talking about that (just a bit) in here is not a big deal ...
 
@rdlowrey there's that anon class in Bootstrapper.php … :-P
 
@Shafizadeh there is no cost to creating a Paris-specific room for those that want to discuss it
 
@DaveyShafik I don't think it is about cost and I doubt you really think it is...
 
well, this code was working similarly on both platforms, now it's broken very differently on each :/
 
yeah, agreed.
 
6:22 PM
@PeeHaa some people don't want this stuff shoved in their face, that's their way of coping, so yes, taking it to an opt-in space is a better option, and costs nothing (and I don't just mean fiscally)
 
sup guys
 
Abe
@PeeHaa yo \o
 
sup @taco @Abe o/
 
so can we get back to fixing my code? :P
 
6:25 PM
sup PeeHoo
 
@rdlowrey Also, yeah… it's nice. but we still have that issue with the reactor and shutdown funcs :-(
@DaveyShafik alternatively you just could start writing non-broken code… just kidding… what's the issue?
 
@bwoebi on OSX:
Program received signal SIGSEGV, Segmentation fault.
0x00000001006d7b51 in Curl_http_done () from /usr/local/opt/curl/lib/libcurl.4.dylib
 
Abe
so guys, writing all methods like:
public function bar(
    int $lol,
    string $bar,
    BoboFactory $boboFactory
): Bobo{
even when not necessary, yay or nay?
 
@bwoebi on Linux:
php: http2.c:411: on_frame_recv: Assertion `conn->data == data_s' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff706f267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
 
What does "not necessary" mean?
You mean the multiline?
 
Abe
6:28 PM
yeah
 
@DaveyShafik maybe your curl on OSX is compiled without asserts?
 
Don't
 
Abe
even if it's just one argument and it's short
 
@bwoebi oh, I bet --enable-debug could be the cause of that.
 
reading
like
this
sucks
 
Abe
6:29 PM
@PeeHaa it's for consistency
 
@Abe don't have methods needing so many args that you'd need to split the line.
 
^^ this
 
I personally find it annoying enough when I have too long args
 
Abe
if you have ~2 parameters and the return type, you end up writing past the right margin sometimes
 
@bwoebi Depending on the hints that gets hard at some point
 
Abe
6:30 PM
i personally find annoying when arguments don't tell what they are
int $int // NO WAY
 
@PeeHaa then you need sane class names not being too long.
 
Not about too long
 
@Abe depends on where your right margin is? 80 chars? way not enough.
 
just alias all class names to a single character, problem solved
 
haha
@Abe I recommend 120-160 chars soft limit
 
Abe
6:33 PM
public function [20chars]([20chars type] [10chars var], [20chars type] [10chars var]): [20 chars type] // rekt
 
@bwoebi You really go to 160 chars?
 
@Abe @peehaa is wrong.....once you get used to reading functions like that, it becomes way easier than having to scan across....
 
@PeeHaa I don't need to… lines by default are anyway smaller
 
@Danack eeeeewww
 
Hrm, anyone else seeing their CFLAGS added to the end of config.nice?
(as if they were config flags)
I'm seeing it on OS X and Ubuntu
 
The only case where multiple on one line is good is when they are 'attached':
 
Abe
@Danack i want to start doing it everywhere except functions having 0 params
 
function drawTriangle(
  $x1, $y1,
  $x2, $y2,
  $x3, $y3,
  $color
) {
   // do the thing.
}
 
KILL IT WITH FIRE
 
Abe
i'm already doing it more than half of the times
 
6:36 PM
@Danack this is why we use objects
 
@Danack Every time I need to do multi line (exceptional cases) I hate it :(
 
Abe
@DaveyShafik you will get there too
@tereško yeah that wasn't the best example :P
 
@tereško Because you're not capable of writing code that has more than two parameters?
 
weird… now I'm using the same configure for OS X and Linux, (except for my CFLAGS) but it still fails differently :/
 
@Danack no, because having so many parameters in a function is a code-smell, IMO
 
6:38 PM
ah, wait, it looks like it's nghttp2 now. bleh.
 
@Danack was it you who shared a translation example couple days back?
 
Abe
@Danack class Point{} would better fit, but the lengthy arguments problem is real
 
@PeeHaa thoughts, not an example: gist.github.com/Danack/703010ec1e855684296e
 
@PeeHaa like in Aerys I have 4 lines with 140+ chars, and a single one more than 160 (186 chars). Every other line exceeding the limits is a comment or just a standalone long exception msg.
 
Oh good. I suddenly thought I remembered you somehow had no way to pass params. But you do
 
6:39 PM
and the longest method actually is:
public function __construct(Options $options, VhostContainer $vhosts, Logger $logger, Ticker $ticker, array $httpDrivers) { (124 chars)
 
@bwoebi I hate those long exception message that screw every thing up :P
 
lol
 
@bwoebi really .. logger as a mandatory dependency
 
sorry thanks PeeHaa ... not PeeHoo (PeeWhy?)
 
@Abe It's okay to not encapsulate everything, and when it doesn't actually add value, then it just adds a layer of 'stuff' that makes it harder to read, write code:
drawTriangle(
  rand(100, 200), rand(100, 200),
  rand(100, 200), rand(100, 200),
  rand(100, 200), rand(100, 200),
  'red'
);
vs
drawTriangle(
  new Point(rand(100, 200), rand(100, 200)),
  new Point(rand(100, 200), rand(100, 200)),
  new Point(rand(100, 200), rand(100, 200)),
  'red'
);
There is just no value there.
 
6:41 PM
(new Point())->rand(100, 200) :P
 
@Danack why do you need 6 points for a triangle?
 
Abe
yesterday, by Danack
@Abe One line, one operation......
:D
 
@tereško thank you for asking what I was too scared was a dumb question ;)
 
@DaveyShafik .....because it's a responsibility of the point class to be able to generate random values?
 
@tereško yeah, not necessary actually… but everything which should instantiate this class will pass it anyway.
 
6:42 PM
@Danack good point! new RandomPoint(100, 200);
 
@tereško 3 "x y" co-ordinate pairs = 6 values.
 
@Danack look at your code
 
drawTriangle(
  new Point(rand(100, 200), rand(100, 200)), //1 point, with xy values
  new Point(rand(100, 200), rand(100, 200)), //1 point, with xy values
  new Point(rand(100, 200), rand(100, 200)), //1 point, with xy values
  'red'
);
 
oh
fuck
 
What am I looking for?
 
6:43 PM
:P
 
sorry
I am dumb
fuck
jezz ... now, everyone, forget what I said
 
@tereško I feel ya :P
 
@tereško everyone is, no need to yell "fuck" aloud two times :-P
 
@taco hehe Either way works for me :P
 
6:46 PM
hey guys
0
Q: choose a user of the list (loop)

sajadhere i fetched all information of my users with a loop. as you see my table is like this: and my code is this: <?php $id=$fgmembersite->UserID(); /* echo "$id"; */ $db_host = 'localhost'; $db_name= 'site'; $db_table= 'tablesite'; $db_user = 'root'; $db_pass = ''; $con = mysql_connect(...

 
@bwoebi I will blame this:
 
can solve my question?
 
@tereško That's local?
 
nobody else is seeing this?
CFLAGS='-O0 -ggdb3' \
'./configure' \
'--disable-all' \
'--enable-debug' \
'--with-curl' \
'CFLAGS=-O0 \
'-ggdb3'' \
"$@"
 
@tereško @PeeHaa
 
6:48 PM
@PeeHaa yes. And it sell in a show that's just on the other side of the street from may apartment
 
@sajad if you ask a question on the site, it's usually polite to wait more than 6 mins before asking in chat rooms. Also, "I do not how to" is not a question....
 
.. but it's a bit over 2€ (and worth every cent)
 
For a single bottle?
 
yes
 
@Danack 9 minutes ago!
 
6:50 PM
@PeeHaa a good beer here costs starting from 1.30€
 
Abe
@Danack i didn't ask for internals. i've originally asked if a java/c# developer was around to discuss the thing and eventually consider if it's worth having it in php
 
@Abe Yeah....you already have it in PHP, just done in userland.
 
btw, you probably should make a beer-tour next string through Baltic states
 
@AnmolRaghuvanshiVersion1.0
 
If only I have time for days off
 
Abe
6:52 PM
there is way much more than just the method @Danack getting object equality right is a pita
 
@PeeHaa you can always schedule a "I quit my job" event for few months
hell, if you are a good employee, you could just ask for "pay-less 3 months vacation"
 
Abe
unrelated - for your amusement acidcow.com/pics/…
 
Atm that's somewhat hard to do for me. And asking a 3 month vacation wouldn't really work in my situation, because if I don't work there is no one to pay my salary ;-)
 
don't you have any savings?
 
Sure I have some, but I cannot just tell my clients: going out for a while see you whenever I get back o/
 
6:56 PM
oh, you are private
 
Yeah
 
that kind sucks in long-term
 
It certainly has its advantages, but yeah there is also most certainly a downside
 
Abe
@PeeHaa [bro hug image]
 
been there, done that .. it really wasn't worth it
 
Abe
6:56 PM
i'm on the same boat :(
 
@Abe :)
@tereško The biggest advantage to me is that I can (mostly) pick the interesting clients/projects
 
Abe
tbh i had several chances to get a vacation this year, but not an actually enjoyable vacation
 
only "private" shit I do there days is tech support for doctors in my home-town
 
@JoeWatkins, jfyi, looks like phpdbg.com domain expired
 
@Abe well, don't take it personally, but you look Irish
 
6:59 PM
 
@sajad I m in middle of journey so can't help now
 
Abe
smelling flames so i'm afk
later
 
it's called "smoke"
you can't smell flames .. well .. aside from burned nose-hair smell
 
@PeeHaa, even better, didn't know that. So we may expect phpdbg manual on php.net site in a few days, right?
 
Depends on whether or not people were bored and wrote it :)
 
7:07 PM
@PeeHaa Fallout 4 & Legacy of the Void was released
so .. NO
there will be no major updates to php docs till december
 
That first title I think I know, but that second one?
oh starcraft
 
@zaq178miami I need a minion experienced in docbook syntax, then we'd see it within 2 days.
 
@PeeHaa yes .. it's a thing
someone also thought that this is a good time to release the new Tomb Raider (well .. at least on consoles)
 
market people...
seriously /php, is 2 pm too early for the first beer?
 
depends
are you employed?
 
7:12 PM
more or less. I'm somewhat improving a site, from home
 
give it an hour more
 
@AlmaDo that's one of two different puns relating to my surname and I hate both of them :p
 
Other one being faux? :)
 
Fold.
 
:D
 
7:14 PM
(oh shit I should weaponise this for Haskell jokes)
 
Flowed?
 
@Andrea naah .. it has a lot more potential in poker
 
@tereško ooh, yes
@NikiC why, do you prefer crisps? :)
 
lets just call them "thin potato beer snacks" .. otherwise it gets confusing
 
should I be able to write a fast enough image serving script handling resizing? like calling /image/unique_id/300/450 serving an image as if it were a file.
 
7:24 PM
Whats the best way to insert a timestamp or time on a hidden form field?
 
Abe
@LeviMorrison is there a formal name for alias names used in generics declarations?
class A<T extends Foo>{} "T extends Foo" is a TypeParameter, would be fine 'T' being TypeParameterAliasName?
 
@FélixGagnon-Grenier yes, but you also should be caching the resized files
 
some kind of server-side caching? for now, they are cached on the client, but the first call is so very not fluid
other idea was actually save image file once resized, then serve the file on next call.
 
@FélixGagnon-Grenier That's what @tereško said ;-)
@FélixGagnon-Grenier What do you mean by fluid btw?
 
"dank" ?
 
7:31 PM
lol
sry, meant like, images appearing in a jerky fashion, mainly due to a slower load time than just calling the file
 
@tereško ?
@FélixGagnon-Grenier I assume it will depend on the image size, but in general Iwhenever I had to do image resizing it was rather fast (not jerky), but to be honest I don't know nearly enough about it other than "having done it"
How are you resizing?
 
@tereško you could conceivably have either with beer
 
with gd image functions
 
@Andrea granted
I really should not buy another beer
 
thing is they are somewhat large images (2-4mb) @PeeHaa. Even though it's quite fast, it still takes a few hundred of miliseconds too much to not see it with your eye
but problem mostly solved, I'll save the images, thx
 
7:48 PM
@Abe it's called type variables
 
Abe
@nikita2206 great, thanks :D
 
8:12 PM
Hi every one
Hope all are fine
i need a little bit help in laravel 5
 
just ask away
 
i am using jquery ajax request in laravel 5
i have 3 sections on the page the problem is that when ever the i refresh the page 1 or 2 times it gives me this message Tokenmissmatch exception in verifytoken
or if refresh the submit a form using juqery ajax 2 or three time click on save button then it gives me the same error
 
@usama Are tokens valid over multiple requests in laravel?
 
here is my code
<meta name="_token" content="{{ csrf_token() }}">
$.ajaxSetup({
headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') }
});
and in each form i am also using this
<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
@PeeHaa may that can be problem because i have user homepage on which i am using <meta name="_token" content="{{ csrf_token() }}"> after that i redirect the user to the members_area which also have <meta name="_token" content="{{ csrf_token() }}"> this in head
 
lol. just remembered that first time I got in this chat for a hat. Teresko shit bricks all over my head an PeeHaa kicked me in a record time. Ahhh...
 
8:19 PM
:P
 
@Félix nice but i really need help on this could you please help me on this i will really appreciate that
 
Sorry Usama, I'm really not proficient with laravel. I'd probably throw you in a bad direction
 
@FélixGagnon-Grenier I certainly hope the SO team is going to prevent hat hunters from making too big of a mess. Although knowing the team they will be most likely fail in a big way :P
 
@Félix ok no problem
 
That being said @usama I did find this which seems to my realy untrained eye somewhat related laravel.io/forum/…
 
8:23 PM
Also I have seen a lot of question about laravels csrf protection on main
 
Lol. That musta been quite a show. Star 10 messages in chat. Sometimes I wonder if they were not trolling someones
 
@FélixGagnon-Grenier the problem is not this the problem which i am facing is that the after 1 or 2 save ajax request then it gives me this error
@PeeHaa sometime i login then refresh my page then it's give me this message and some times it's not this is the problem
 
@FélixGagnon-Grenier Sometimes I am sure they are trolling. "What could possibly go wrong??? You grinch!" was the reaction I got on meta.
 
@usama I don't we we will be useful to you. Only thing I can offer is making educated guesses, but when dealing with bugs like yours I honesty have no idea how to help
 
8:27 PM
@PeeHaa ok no problem
 
Is sourceforge down for everyone or just me?
 
Abe
user image
9
@usama sorry for using you :D
 
@Abe lol
 
Abe
this room isn't actually pro laravel :D
 
lolx @Abe no problem :P
 
8:32 PM
Holy shit! I just realized you can just target the same font with different style/weight using @font-face!
Dafuk did I alywas use fontregular, fontbold, fontblack, fontboldtalic, fontblackitalic etc for?
 
isn't it sourcedown forge @PeeHaa ?
 
Abe
@sherlockhaa :D
 
#MindBlown
@FélixGagnon-Grenier :)
 
May I ask if I can ask about asking someone about them asking someone else?
 
Troll level 1000
 
8:43 PM
Really, sometimes when such a problem is presented in PHP I get confused. Like now.
 
You and me both buddy
 
So... there's a string. For example "scary art is cool". And we have two "needles" - "ar" and "art". And we need to modify our string so it looks like so: "sc<span class="1">a</span>ry <span class="2"><span class="1">ar</span>t</span> is cool". What would be the best way to do that? Convert the string to an array, look for positions, record them, etc or is there an easier way?
Basically wrap both "ar" and "art" in separate <span> tags.
 
First wrap art and after that wrap ar?
 
Hmmmm....
What if we have "cart" as a string and the needles are "car" and "art"?
 
Oh I se what you mean :)
 
8:52 PM
But if I already modify the string and wrap "car" in <span>s, how would I be able to f
yep.
 
How would you wrap it in that case?
 
<span class="1>c<span class="2">ar</span>t</span>
But that ain't gonna work in HTML though as I see now.
 
What is the use case for that (to prevent XYing)
@ЗахарJoe Exactly ;)
 
The idea is when a person issues a search for two overlapping needles and we have this text and we need to overlay a color over "car" (red) and over "art" (green) and in the middle where they intersect (that'll be "ar") the color is red+green: the overlay is semi-transparent.
 
Sounds confusing to me, but maybe I am missing the use case :)
 
8:59 PM
Yes, it's for linguistics. Researches are searching for lexemes and sometimes they overlap. I need to show both separately and the only way to do that visually is to assign a different color to each lexeme and overlay colors where they intersect inside a text.
Otherwise I'll need to force them to search for a single lexeme or for non-overlapping ones which isn't nice.
 
Abe
@ЗахарJoe php?
 
@ЗахарJoe Agreed
 
PHP yes.
 
You could always use three wrappers I think
 
Like <span class="3">?
 
9:01 PM
Yeah (with as sane class name)
 
Coding that will get real messy. I'm not sure my head can handle that.
 
<span class="word1">c</span><span class="overlap">ar</span><span class="word2">t</span>
 
Because we're talking about 10 possible lexemes at once.
 
yeah I imagine it will be hard to keep up not only in code but also to visualize
 
I wanted to do it Photoshop-way but looks like it's not even possible to do in HTML...
 
9:03 PM
How do others do it?
 
They don't bother - a single lexeme is allowed and that's that.
I want to push it further.
 
@Abe You would probably need to consult Java's documentation for that nomenclature.
I am not familiar with it off the top of my head.
 
@bwoebi disagree all you like. I'll still kick-ban. There is more context here than you're privy to. And I'd appreciate it if you realized that and not tried to undermine it.
 
Abe
@ЗахарJoe why overlap rather than nesting <span>'s ?
or even this:
<span class="word1">c</span><span class="word1 word2">ar</span><span class="word2">t</span>
 
9:08 PM
Seems I've missed some drama.
 
@Abe Great idea!
 
Abe
@PeeHaa yes, but why that?
 
@ircmaxell Maybe there is, but then I'm not realizing it. At least sorry in that case; I'd appreciate though to understand the issue here more completely. … Feel free to tell me in private if you don't want to discuss that here now.
 
Abe
or, easier (and different, you can do more, like having two semitransparent backgrounds):
<span class="word1">c</span><span class="word1"><span class="word2">ar</span></span><span class="word2">t</span>
 
@Abe Because.......... no idea
 
Abe
9:09 PM
@PeeHaa wasn't really following
 
"know idea" that was bad..
Mind to text translatyor is broken again
 
Abe
@PeeHaa surprisingly i understood it was "no" :D
 
Guys, guys... I'm thinking!
 
@Abe :-)
 
Abe, so I would have to close <span> after c and I'm not sure how that can be done cleanly or easily.
 
Abe
9:12 PM
@ЗахарJoe jsfiddle.net/h2mp4c0b
 
@Abe yeah! that's what I had in mind visually! Question is how to translate it to PHP now.
 
Abe
@ЗахарJoe wait, why aren't you using dom?
 
@Abe, you need to push me further than that. I'm trying to understand how to apply the dom here.
A quick explanation maybe?
 
Abe
9:15 PM
off the top of my head: find innermost text nodes that have no siblings (apply first <span>'s if needed), then bubble up
you have no knowledge of dom am i right?
 
Only very preliminary.
 
Abe
it might be easier if i just write the code, but you'll owe me a case of beer :P
 
beerware FTW!
2
 
Ah wait! I don't want to make you work for me. Maybe you can just guide me in the right direction and I'll figure it out.
 
@ЗахарJoe ssssshhhhh he's interested now! :P
 
9:18 PM
I've got beer alright, if only he was in Moscow.
 
Abe
free beer is so tempting
 
I've got a selection of britain's finest.
 
Abe
by the way, if libxml didn't suck, this would be way easier to do with developer.mozilla.org/en-US/docs/Web/API/Window/getSelection
does the original text string contain html, or is it plain text?
 
It is plain text.
I've already written a pretty huge 100-line PHP script that analyzes the source and splits it up.
Javascript is out of the question. It's PHP only.
I've got bits of text to analyze. Usually they are blocks containing one to three sentences.
 
Abe
this is hella hard :B
 
9:27 PM
:P
 
@Abe... is it?
Why?
 
Abe
because i should be working and i shouldn't take code challenges from strangers :D
 
Abe
:P:P
 
But it's Caturday!
 
Abe
9:30 PM
trying it though...
 
Wish this project could bring not even money... at least some participation from visitors, but for now it's just an effort to save a language dying at medium speed.
Hmm... What if we wrap every letter inside a <span> and just generate an array of classes?
I have a feeling there's a better language than PHP for this but...
 
Abe
yeah php isn't very good with xml/html stuff
i wish we could use blink/mozilla's dom from within php
 
But we don't have HTML... yet. How can we use DOM?
 
Abe
what do you mean? there's dom library
which sadly doesn't even fully support dom2
 
I mean... if I understand things correctly, DOM is a concept applied to HTML, not plain text.
or XML or the like.
 
Abe
9:40 PM
yes but you are applying tags to plain text
and you handle tags with dom :P
 
Ah!
Sooooo... compared to just wrapping things in tags in PHP, how is using DOM going to be different? Aren't we going to have the same tags in the same places?
A span inside a span...?
Equals... something?
 
Abe
it's because it's easier to manipulate the tree
 
How are we going to build the tree? Where are spans going to be?
 
Abe
nested span's are the tree
 
That's what I had in mind, but what's the structure exactly? In the "cart" example they're only overlaying, if we're nesting them, then why use DOM if we can just use classes?
I have a vague feeling we can generate a valid XML here instead of HTML.
 
Abe
9:51 PM
<span class="word3">
    <span class="word1">c</span>
    <span class="word1">
          <span class="word2">ar</span>
    </span>
    <span class="word2">t</span>
</span>
this is the tree
 
So we're searching for the combined needle, splitting it into parts and wrap overlapping parts into two spans.
I don't see where DOM comes in. It's a pretty simple structure.
Or rather where there is an advantage in using DOM manipulating functions.
Why not just use CSS.
 

« first day (1855 days earlier)      last day (3111 days later) »