Well basically the FF plugin is supposed to interact with Drupal and update a custom content type Trying to figure
that’d be the old module
ok
table ec_transaction_product sort productcount is the
offending sort
it tries to sort on a COUNT() and I could have sworn it use to work but its being weird now
ahh add_orderby has changed a bit when doing formulae
But I don’t remember offhand what the change is
thanks for mentoring an SoC student with his CVS problems — project bittorrent now only has a DRUPAL-5 branch.
excellent
it’s a very fine piece of code
but it’ll be even better in a day or two
Chris just shifted back from feature mode to cleanup
Views integration
btw. have you guys seen nodecloud?
from description, it appears to be a godsend
I haven’t
do you have any idea where i should look for the add_orderby change?
function in views_query I should look at or something
where can i see progress of the SoC modules ?
here and there.
It’s in views_query, yea. Look in views_node.inc for examples of sorting on formula.
i found the Soc announcement on d.o homepage but when i navigate to the project link it leads me to code.google…. page and i can onl ysee the project proposal and not progress
http://groups.drupal.org/soc-2007
ah thank you!
mmm useful
i did not know that and have not followed. very useful.
I was following only bittorrent.
Wow, that URL needs some spreading.
Should I add it to the fp article? I don’t want the usual bunch of idiots to start posting comments on g.d.o.
BT is going very well.
heh
evening, if my module changes a nodes status to ‘0′ by executing some SQL directly on the {node} table, what could possibly change it back to ‘1′ if left for a few hours?
it’s been driving me nuts
scheduler?
Scheduler will publish and unpublish nodes on specified dates. http://drupal.org/project/scheduler
did you change the correct revision ?
ajk^: there’s no modules activated like that.
yeah i did an update matching both the nid and vid
and then double checked the db a few times after it was done.
and all was correct.
4 hours later and the status had changed to ‘1′
nothing in the watdog log?
there’s no weird way the drupal cache could alter it?
*watchdog
nah watchdog is just full of the cron completed messages
and if you switch cron off does the node stay status = 0?
“”nah watchdog is just full of the cron completed messages”"
Oh, the power of observation
ajk^: it’s not my site, and i don’t have crontab access atm
also, check the “changed” see if it aligns with ur cron runs
ah
good point
but..
he’s doing a direct SQL, it wont be in watchdog then
he’s not publishing it, something else is
scheduler for example
scheduler leaves a watchdog message
the created and changed timestamps are identical.
so its something else doing a direct UPDATE SQL…
i’ll update the changed field when i change the status i think, to help track the odd behaviour
Budda, is it MySQL?
yeah
you could try ALTER TABLE node ADD (mychanged TIMESTAMP) and temp add a timestamp field that MySQL autoupdates
hmm, not sure if drupal web host would bork on sneaking in an extra field thou ??
Heine, you any idea about that?
(sec building a db over the phone)
i doubt it will. i’ve seen numerous modules that autogenerate queries based on SELECT * FROM…
my module is acutally setting the $node-status = 0 during the hook_nodeapi() ‘insert’ call.
I was thinking of INSERTS that expect all field values, they can be written that way and adding a field can screw them
mm
Odd, hook_nodeapi insert is executed after node_save has inserted the node.
yeah, so you have the nid
right?
my module is acutally setting the $node-status = 0 . But you also update the db, then?
heh, i decided it wasn’t worth mentioning
soz
in my hook_nodeapi() i was just executing the sql host db_query(‘UPDATE {node} SET status = 0, changed = %d WHERE nid = %d AND vid = %d’, time(), $node-nid, $node-vid);
it works on a local drupal5 install though, annoyingly.
Are you running cron there?
I see nobody scanned aggregator.module for E_NOTICE
yeah every 2 minutes
the local site is not the same as the remote site. i just developed a single module for somebody.
Make a replica, really. I had something like this in April due to their local change of core. Most annoying
Publication via the admin interface doesn’t leave a watchdog trace does it?
no it doesn;t add a msg to watchdog
just a thought, if i am amending fields in the {node} table directly, should i be killing any node cache?
Any suggestions for the best way to authenticate an ajax call from a firefox plugin that needs to interface with Drupal?
(mainly trying to figure out what to use as the “glue” for all of this)
that’s bit of a vague question. can you clarify?
Well, basically the FF plugin is supposed to interact with Drupal and update a custom content type. Trying to figure out how communicate between the plugin and Drupal. Does that make more sense?
won’t that have the same session as you?
xmlrpc?
Smoke signals?
belly dancers!
That’s a good question. I’m not sure. It needs to be able to work independently from having someone logged in on a site itself.
if you’re using AJAX, there is a chance that the call will have the same session stuff
the normal ajax calls i do using jquery do
If the smoke signals don’t work out then perhaps the xmlrpc.
warning: xmlrpc has no built in auth — you’d have to roll your own
how often will this cal happen?
Does anyone remember a module that let you put tags around a chunk of text, and the moduel would automatically turn that into a formatted pull quote? hmm.
(call)
tags_around_a_bunch_of_text.module?
on every request (often)
http://drupal.org/project/quote ?
I’m looking for someone with Apache + PHP as cgi (not fastcgi) and/or IIS + PHP to test something for me. Anyone willing to ? Max 5 min. Any takers?
still no takers on that??
hmmm, no.. the idea was that the text would stay where it is, but would also be *duplicated* in a little callout box, like a pull quote in a magazine..
Nope
i smell a new module
heheh
how’s things going there in sunny CA?
opinions? http://marvin.elte.hu/drawing/graph
Pretty good. Baby had her first laugh today and I got to see it. And she’s sleeping more today than usual.
the question is are _you_ sleeping more than usual??
it’s a graph
its the output of an svg graph engine for drupal
looks ok. the x/y stuff in the parens is a bit annoying
you mean the labels?
no, the stuff inside the graph itself. (240, 300)
i see
thought its good to have the options to see the values. maybe would be better with hover
hover++
review?
I was actually catching up for a couple of days
you want to review, or want me to?
when you hover, i would make it so that it has a background that covers the graph lines behind it
Before that I’ve had troubles sleeping because I tweaked something in my shoulder, and there aren’t many comfortable positions for me ot lie in
are you coming to barcelona?
Planning to. I haven’t actually gotten tickets or anything.
‘kay!
For the baby
did a round tripper for about $750
aw, man
nice!
Thereis a Broken link
i’ve heard the passport stuff has gotten ridiculous
Yea it has
in drupal API site
http://api.drupal.org/api/5/file/developer/examples/node_example.module/source
file an issue, submit a patch
seen unconed
that’s the nice thing about vancouver tho, it’s by the ocean, except it’s not’.
Drupal, menu system, normal, patch (code needs review), 7 IRC mentions
I’m not sure whether it needs more code comments to satisfy Gabor
k
it whould work, however.
(should)
hunmonk and/or pwolanin: Assuming that ajax shares the same session stuff does this mean that the FF plugin could authenticate using standard drupal website auth? The question almost seems to answer itself, but just want to make sure I’m not missing something important.
OOooooh.
Heine / ajk^ – found the f**ker. it was the flashvideo.module – in its cron hook it seems to think it has the right to set its nodes to published.
So close; it was the fourth result in my grep
Budda, you get that feeeeling of an issue coming on?
yep. you’d just need to provide some access control on your callback and it should be fine, i think
another nice thing about that is that you’ll have the $user object handy as well if you need it
i ran a module_implements() on the site and then checked the modules cron hooks.
Hooray – and thanks for helping me out with this.
sure thing. good luck
off for now, folks. most likely be back later this evening…
hey, shiner! my drupal HEAD test site won’t let me login on IE6 but does with FF. It’s about time it happened to me, off to see why!
ajk^: flashvideo have implemented an option in the latest release to control if status should be updated.
well, there you go then, issue adverted
grr, why does IE6 think it’s so smart. Won’t let me set privacy settings for my test site cos it doesn’t live in a “valid TLD”.. grr
ajk^: , what do you use as tld?
..x
I have my own DNS servers here on my network
so my test site is http://d6.x
but IE6 doesn’t like that tld
Geez. Poor aggregator.module has really not gotten any love.
’cause its a bag o’ arse
Yea but it’s been skipped over for all kinds of system-wide upgrades.
It’s failing capitalization, l() updates, E_NOTICE updates
It’s fulla broken
remove it from core
Not my call
Also I don’t believe any of the alternatives are currently set up as a replacement
just puttin it out there
ajk^: add it to the host file?
just creating x.com for just that reason
hehe
well, thats my test site stuck in privacy to allows allow cookies but IE6 still won’t login me in, so I actually have something to look at instead of reading the woes of others who cant login, makes a change
balls, all too easy to fix, nevermind
ping
pong
Would you be interested in evaluating Panels 2 to help figure out a good way to implement content caching?
I know you’ve done good work with caching
And you use Panels 1
I’ll do that, assuming I can find the time
Awesome!
has anyone of you tried polyphasic sleep?
Considered it.
I have too much trouble falling asleep though.
you mean the alternate sleep deprivationmethod of existance?
(http://en.wikipedia.org/wiki/Polyphasic_sleep)
ya, that one
how can i remove e
how can i remove menus?
sorry
caio, try #drupal-support
Sleeping FTW
thank you!
-.-
i have tried it unknowingly
haha
but i usually crash once a month though
one friday i will sleep and wont wake up till like sunday morning
can’t get your caffeine?
hi… is there a drupal function that “finds” a node id (or loads $node object) based on its url alias?
lol i dont drink much caffeince
max a 2/3 cups of tea a day
substitute speed for caffeien
hehe, i dislike the fact tht we spend nearly half our life asleep
no no, not the great darkness that means I ‘might’ miss something
but then again it might be a way our body deals with death….ie its preparing itself for the eternal sleep
and it’s 1/3 not 1/2
I certainly don’t spend 12 hours a day asleep
thats still a lot
Liar
i do about 4hrs max
It’s that extra 4 hours you get at work that really does it
Er
lmao
0am sund through friday morning. bit longer on frid
not me, my friend on the other hand. half to wake him as he sometimes snores in his cubicle
i love napping at lunch times
naps are evil
better than any caffeine
seriously by having short naps, your body i find doesnt need that much continuos sleep
I either sleep or I don’t. I do not nap. My wife can and does
i nap to recoup.. usually on wednesdays since i have to hit the gym then footy afterwards
Green tea is da bomb
it’s called recovery, you cannot recoup sleep
such a friggin pedant
I’ve read that 10 minutes power naps can do miracles.. I’m not sure if it’s true though.
it entirely depends on the individual
I guess
hahahahah… I love googling sites and find they still have the Drup0licon
it’s almost as fun as finding that they have php services on for anon comments
doh…..
that’s just wrong
It looks cool
dude. You found that?
Nope.
It was a big ruffle here on #drupal a couple… weeks? months? back.
eaton, you have a sec for a problem?
nowpublic?
some folks dida google search and found a few dozen sites that had left php on for anon comments.
Whoops!
ajk^: fire away
Drupal, forms system, critical, patch (code needs review), 1 IRC mention
Oh, for the love.
it really needs the Eaton touch I’m afraid
ajk^: this is related to the _value patch tat was mis-committed.
how do you compile that search string?
they commited the wrong version of the patch instead of the one that I fixed that problem in.
ah, you have a link I can follow it up on?
interesting search
ajk^: just posted to your issue and pointed to the other one
cheers
tags in anonymous comments
can you use google to find out wheter a site has php filter turned on/off?
I wouldn’t discuss that in public
merlinofchaos, why not, webchick posted a google search to the dev list
that is a case of misconfiguration
you are right. But I’m..emm.. intrigued
not the default setting
Oh most definitely. I informed the administrator once I figured out what was going on
uOh most definitely. I informed the administrator once I figured out what was going on/u
hi there
I’ll bet if you make a custom Paris hilton search engine, you are gonna be rich
ajk^: no, to the security list.
ah, was it? I get so confused ! (which is pretty easy this time of night
I’m generally not THAT foolish, although someone did post it in this channel, which is why I pinged the security list.
http://grulez.com/~foutrelis/paris/
eaton, should that issue not raise to crit rather than “needs work”? Does it need a new patch rolling for it?
*from normal to crit I mean
ajk^: if you could that would be *awesome*. I just haven’t had a chance to roll a diff that takes us from the state of the ‘bad’ atch in the _value issue to the state of the ‘good’ patch
eaton, ok, I’ll work on that now, tis crit imho
finally! Paris Hilton is hackable
and approachable for geeks
lol
put as backgroundpaper in your shell
you ain’t a geek before you’ve watched all seasons of star trek in ascii
lol
again?
geeky
btw, mplayer can play ascii
I can hot myself with a hammer too, some things just don’t need to be done however
as in output a regular movie in ascii
hot == hit
yes
I can hit you if you want
the point is, if can’t do it ascii, it can’t be done
oddly enough, next to desk
*grabs
is that a ninja sword?
good lord no
Holy crap aggregator.module is broken in HEAD
already known
ok, then I’m safe
how broken, exactly?
VERY broken.
Can’t edit feeds.
Reading feeds works. ADding feeds works. E_NOTICE errors all over
Whoops!
Some l() calls were never converted
wow. that’s cobwebby.
http://head.logrus.com/aggregator/categories/1
Er, need to give perms
Ooooooooooooh notices
And arnings and SQL errors too
awesome
greta?
Greta the Goat-Chinned is add1sun’s evil twin. She is known to delete whatever she finds annoying – which could be most anything – and the goat on her chin makes a horrible bleating noise known to scare even grown men.
The brokenness is making it hard for me to templatize.
Guess I get to fix all this too
webchick?
A wizard?! RUN, my muggle friends, RUN!
Do not meddle in the affairs of wizards, for you are crunchy and taste good with ketchup.
LOL
ootanda?
uuugh, anyone used nodetemplate with audio nodes? Seems like some magic is required.
meta?
Simply ask your question. No need to ask to ask . Unless you are doing a census, asking whether anyone uses a module isn’t going to result in a useful answer.
support?
Please throw a quarter in the support jar (http://association.drupal.org/donations) . #drupal is reserved for development discussions (please see channel topic). Volunteers offering live support can be found in #drupal-support. If no one is available in #drupal-support, try the forums at http://drupal.org/forum. Thank you for giving us a space to work on improving Drupal for you!
really, do try
moi?
ping
http://drupal.org/node/121620#comment-274411
Drupal, forms system, critical, patch (code needs review), 33 IRC mentions
awesome, ajk^ .. .I will test and most likely RTBC that tongiht after I run a quick errand.
It’s regrettable the old version got committed
yeah, but hopefully we can get this in quick cos that was some work going back thru all the patches that were applied after 1.207
rerolling it would be fun
well, prob not that bad now a patch exists at least that jump starts it
yeah, this actually wouldn’t be hard because form.inc doesn’t change that often.
when chx and I aren’t staring at it
heh
merely staring does not change it
but i get what you mean
but when we stare hard at it, the danger of changes is high
heh
yes
that’s true
who is Anthony Oliver?
xamox
ahh…
it says in the message if you’re looking at hte message I think you are
that works for me then
how do I get the first child of an array?
I need to get my resume up on my site this weekend
Crell is on aggregator
‘l;’) how can I get the ‘df’ part?
without knowing the keys
splititng it and fixing as he goes.
array_search?
^^
thanks
but that’s not what I was looking for
how do I get the first element
the first element…?
reset each next
wha?
Ah, ok. I know he’s leaving the theming stuff alone.
current?
these are php functions
ajk^: current is rarely useful…
Though maybe I should pause this one and move onto comment.
WHen I go through Drupal’s modules, only a few jump out as Need To Templatize.
chx, I found a few uses for it
yes and leave node system and user to me.
I told this to crell
is there a wiki page I need to enlist on? I already have a function list for these three
I’m going to work user over when I templatize it. Will definitely wait.
There’s an issue but no wiki
templatize?
Turn theme functions into .tpl.php files
ahhh
See http://drupal.org/node/158536
Drupal, theme system, normal, patch (code needs review), 8 IRC mentions
Oh, I had what I think is a really good idea.
We should create a documentation standard: All functions that are meant to be used in drupal_get_form() should be documented as @ingroup forms and should include a description of what the form is.
hmmm-hmmm
do we have a forms group already?
form api?
if not then good idea
That group is form
So ‘form’ for stuff about making forms, and forms for actual form definitions.
god then
good , i mean
e answers in 5 minutes
159245
1 IRC mention
LMAO
AHAHAHAHAHAHAHAHAHAHAHAHA
yes, very sad
no
it’s a spinoff from dragonfly with some influence from mambo
and i am not coding it, i am keeping an infinite amount of monkeys in the basement glued to typewrites and whatever looks good i submit.
Well, _that_ we suspected :p
lol
pretty good monkeys you have
http://drupal.org/node/159248
1 IRC mention
Once again
Webhostingbuzz doing the sockpuppet dance.
You have my +1 to nuking any webhostingbuzz topic
lmao, what a creative title! http://drupal.org/node/159238
1 IRC mention
I run lighttpd+fastcgi
I’ll send you a mail (should have your address somewhere)
Just sent you an email
Thanks
well, will have just sent you an email in a couple seconds
well, will have just sent you an email services spam free in a couple seconds
there
Ok, reply should be on its way
Entire response to second request was “No input file specified.”
Cool
You’ve send the first one ?
More and more I doubt the mental powers of the PHP developers.
Sending now
OK
(The weird USER stuff in $_SERVER is due to a test I left in my webserver config file)
Thanks a lot!
np
Heine:
I turned on cgi.fix_pathinfo
and got a response
Can you please send that one too?
Yeah
I had broken-scriptfilename on
#
“broken-scriptfilename”: breaks SCRIPT_FILENAME in a way that PHP can extract PATH_INFO from it (default: disabled)
#
O you did already
But apparently PHP doesn’t make use of it without cgi.fix_pathinfo
go figure
So the last one = cgi.fix_pathinfo ON + broken-scriptfilename ON
Yeah
I’ll resend the first test in that configuration too, moment
ok
Is this for a removal of $_GET['q'] perchance?
I’ve received it. Thank you!
pm?
Eh, pm?
oh goody, several thousand comment spam on my site
With captcha?
with _my_ captcha?
no captcha. moderation
how it’s yours?
I am testing something
Heine’s is popular
btw. i have rewritten an –older version of– captcha to not use session
Yep, using session sux
when I had Heine’s on, I had very very very few
No easy timeout (cache), bloat of session, and still form_id collisions
Anyone know if anything in Drupal 5.x-dev requires a db upgrade against 5.1? I don’t think I can hold out for 5.2 anymore, but I’m worried about a potential can of worms.
look in update.php
http://drupal.pastebin.co.uk/19242
good call – thanks.
chx, http://heine.familiedeelstra.com/mycaptcha-download
my version has a lot of to do with wundo’s — at least i did not need to rewrite admin forms
Hello.
the actual implementation, though has nothing to do with his
Is there a way to make some type of node only accessible by a defined group ?
and I loathe image captcha.
I can break math captcha in perhaps 5 mins.
Not much captcha’s remain
Time to sleep (probably for you to chx). Night folks
good night. I already slept four hours but yes I will go back soon
Sorry, you can only read/write strings, ints, floats and dicts
that’s an array.
in php lingo.
PHP ‘array’ is Python ‘dict’
also. what ’bout performance?
i know
performance sucks slightly, but not too bad
I know a very little Python
a python process gets popen’ed, and request/response packets go between php and python via the python proc’s stdio
a python process gets popen’ed, and request/response packets go between php and python via the python proc’s stdio
ick
anyone game to help me reproduce an error before I submit an issue?
so we have a lisp interpreter, though written in PHP. We have a bridge to Python. We can run Drupal in Java.
blimey! Firefox have eaten 780M of my RAM. Begone!
any recommends on good tutorials for custom module / app building in 5.1?
seen hunmonk?
hunmonk was last seen in #drupal 5 hours 34 min ago saying ‘off for now, folks. most likely be back later this evening…’.
ping
condition, etc. ?
did someone say ‘conditions’
why?
Druplicon, why is replyBecause I said so, that’s why.
why?
that’s a dis-allowed keyword
why drupal?
why is drupal?
what is drupal?
drupal?
Drupal?
oh noes!
support?
Please throw a quarter in the support jar (http://association.drupal.org/donations) . #drupal is reserved for development discussions (please see channel topic). Volunteers offering live support can be found in #drupal-support. If no one is available in #drupal-support, try the forums at http://drupal.org/forum. Thank you for giving us a space to work on improving Drupal for you!
haha
good
oh noes really needs to be in that array
i mean really.
ya
scared
Okay.
http://drupaldojo.com/lesson/24
oh noes!
LOL…
If you feel we’re missing something, pop onto irc.freenode.net,
I KNOW!
Is it really a good idea to change the terminology at this stage?
haha
I certainly see that as a benefit for new users
I would at least like to change some of the odder terminollogy
eaton-frys: Where are you that there is a fry’s?
Filter isn’t an odd term
Would you like Fry’s with that?
maybe not filter, but some other things maybe maybe
there’s one in Downers Grove, IL — about 30 minutes or so from here.
oh, yes please, with a side of RAM?
Oh neat. I didn’t realize they were in IL.
You must comment on my devel post.
the speakers in my living room were dying and they had a pair of polks on sale for about 35% of normal retail ,so.
the speakers in my living room were dying and they had a pair of polks on sale for about 35% of normal retail ,so.
are they running the freaking animusic dvd nonstop at your Fry’s too?
on the big screen out front
Nice post. Does it come here often?
so, the idea is putting @ingroup forms around the form builder, submit, etc, validate functions?
I’m not sure if it should include the submit/validate functions (but maybe should include an @see to make it easy to link to them)
Because grouping them all together will make the group pretty littered
My favorite Fry’s is the one in Burbank
http://www.flickr.com/photos/rekrapnala/110118517/
whoa
Mmmmm… Yeah. I’d lean towards everything going into the same group. I love the idea in general though – just a matter of deciding how much.
bMmmmm… Yeah. I’d lean towards everything going into the same group. I love the idea in general though – just a matter of deciding how much./b
ours just has a stupid piano
hah. that’s awesome.
http://asymptotia.com/wp-images/2006/12/frys_electronics_2.jpg
http://www.flickr.com/photos/56979330@N00/524154181/
Here we have the Fry’s & Noble, the Western Fry’s, the Mayan Temple o’ Fry’s and the Aztec Temple o’ Fry’s.
And the Unremarkable Fry’s
you get a UFO… we get a freaking piano
Well. Burbank does. I’m pretty far from Burbank
They apparently got a set designer group to do that. Cause, y’know. THey’re in Burbank.
our fry’s is totally boring.
has anyone ever even bought a piano from fry’s?
other than having lots of cheap speakers.
http://mfrost.typepad.com/cute_overload/images/2007/07/13/breaky.jpg
I think I’m very much in favor of just the main builder function @ingroup, with the submit/validate/theme functions getting @see that link back and forth to each other.
Yeah, the @see makes sense.
posting to devel now
lemme just edit my case study n workflow-ng
I think views can learn quite a bit from it
though it’s still a bit confusing
I will edit and then post tommorow.
are you in Chicago?
but I’m off for now…
yep
Well, Naperville
Or uh near Naperville
What’s that?
Cool…I’m in Lincoln Square, used to be in Forest Park.
And before that, Hyde Park.
Any connection to the Chicago Tech Coop?
(my former employers, currently room mates with a Coop member)
ping
hi there.
someone on the dev list mentioned that module writers could specify in the .info file for their modules from which server updates should be checked by update_status.module, but I can’t seem to find the relevant documentation.
would someone know where this is documented ?
I don’t believe we actually documented it yet
It appears to be ‘project status url’ which I believe is a change from what it was when I initially wrote it
It’s a little verbose, but it doesn’t matter
thanks, I’m currently checking within the code for this. If I did some doc, where should it go ?
Im not sure, I meant to ask dww. Theoretically it could go in writing .info files but I don’t think it should actually go there.
But that’s the most likely place.
this is indeed where I looked first
good night
woohow NYC drupal camp 3 is only 5 hours away ^_^
god
i so
hate
php
hi guys..spammer alert..can someone block this guy? http://drupal.org/user/162989
Oh dear, since when can you advertise for notebooks on d.o. ?
why the PHP-hate?
well
with the soc theming going on
i wanted to investigate if you could create arbitrary masked fills with PHP
i.e; given a grayscale mask
make a transparent png that has a solid color, and the mask as alpha
so you can blend it over another solid color
Right
hence allowing not only arbitrary gradients, but custom colored decorations and such
except
doing it through gd’s imagecolorat/imagesetpixel is incredibly slow, 2s for a 300×300 image
nevermind an entire theme
ewwww.
so i hit upon the idea of saving the mask as a grayscale png with a grayscale 8-bit palette
then editing the file directly, changing the palette to the solid color, and assigning alpha to each palette entry
since png supports this natively
png turns out to be not at all too bad a format
lemme guess, the library doesn’t
and i have this working entirely
except
even though gd has supported loading and saving of paletted alpha images
nobody apparently actually tried to use this to do anything
until january 2007
png is actually shockingly versatile. i did some articles on it for various tech mags in the mid 90s when GIF had just gottan controversial.
unfortunately 10 years later nobody fully supports the spec.
which means
it’s like the CSS of graphic formats.
we need to wait for GD 2.0.34 to be commonplace
mmmmmm.
http://drupal.pastebin.com/m61154d7a
it’s all nice too
anyway, i hate PHP because, as a platform for serious serious dev, it sucks big fat hairy cock
at least for a cms supplier
our hands are so tied
even glorious hacks like this turn out to not work
and the really really frustrating bit$
is that a couple years ago i was handcoding bilinear filtering and other fun image processing ops in tight mmx assembly
i will say, i do miss C# sometimes. though it came with its own ginormous backpack full of platform-suck.
i know how it should be done
heh. yeaaaaah, that’s a wee bit more flexible.
also annoyingly
i had to port the crc32 code from the png spec over to php
to verify if it matched crc32() in php
since the polynomial is not documented
and there are supposedly bugs with 64-bit machines and suhc
Sorry. That’s just…
there is a small subset of the community that would say, I had to port the PNG spec to PHP to verify it.
it was just c code for crc
It warms my heart. Even though the result is crappy.
you insert dollar signs and remove the variable declarations
voila, PHP
heh
tho of course
PHP has no logical right shift operator
only arithmetic
you’d think it would be easy since it’s basically a C wrapper
it just means every bitshift is followed by an and
to null the negative bits shifting in
also
i want closures damnit
$skip = create_function(”, ’static $n = 0; return ($n++ % 3) == 0;’);
$chunk = implode(”, array_filter(str_split($palette), $skip));
this is just ick
also
if I see another $(‘.class’) jquery selector somewhere
i swear if I will start killing puppies
s/if//
Noooooo
think of the puppies!
$(‘.class’) = full dom tree search
makes javascript interpret cry
$(‘#id’) otoh is zippy fast
$(‘tag.class’) is moderately fast
these are like the 3 postulates of John Resig
i figured there’s be stone tablets somewhere that people would see
id, tag.class, and then if you absolutely have to, .class?
$(‘.class’, foo) should only be used on a subset
with a handful of potential matches
basically there is document.getElementById and element.getElementsByTagName
the rest follows from that
since everything else requires manual scanning
and jquery is smart enough to pick the fastest way
some people don’t get that APIs are speed-constrained by their underlying stack
i know
the problem with things like jquery
is that people no longer know dom
it’s the same with drupal
the more we provide abstraction layers
the less people who will know how far down it really goes
and i think for the average drupal user these days, it’s turtles all the way down
indeed.
i agree
its a common problem
“When you’re working on a really, really good team with great programmers, everybody else’s code, frankly, is bug-infested garbage, and nobody else knows how to ship on time. When you’re a cordon bleu chef and you need fresh lavender, you grow it yourself instead of buying it in the farmers’ market, because sometimes they don’t have fresh lavender or they have old lavender which they pass off as fresh.
why addslashes($head_title); would not add slashes when that variable is filled by a function?
function is variable_get
otherwise $head_title = “O’reilly”; addslashes($head_title) works fine
we need druplicon cooking hats
hello, cafepress!
they have cooking hats?
I’m looking. heh.
Awww, only BBQ aprons.
http://www.coolaprons.com/hats.htm
http://www.e-cookbooks.net/aprons/chefhats.htm
a href=”http://www.e-cookbooks.net/aprons/chefhats.htm”http://www.e-cookbooks.net/aprons/chefhats.htm/a