« first day (336 days earlier)      last day (4836 days later) » 

18:00
@OZ_ And?
user680786
@ChristianSciberras I found it funny that now even txt-files can be dangerous
They're not. It's the dll loading mechanism that should have been fixed.
But of course, it's easier to weed out a branch than a whole forest.
user680786
@ChristianSciberras anyway, .txt is tool for this exploit
@OZ_ i would take a different lesson from this vuln : if you are using windows with admin-level rights , then you deserve every single horrible thing you get
@OZ_ Huh?
One of the many fixes including associating .txt with other editors.
18:05
i find it so strange how windows users think that using admin for web-browsing is perfectly fine , while same people would throw things if they saw you doing the same on NIX
user680786
@ChristianSciberras read that message on technet again
"Remote Code Execution" - funny considering it's specifically a local attack.
@OZ_ I know how it works. Been in a discussion about the severity of this issue.
@tereško I'm sure you realize Windows has an admin account not accessible by users?
Kind of like a root account.
On the bright side, you can't 'sudo' through it like many people do on NIX :)
i hope you know that there is difference between admin-level account and build in Administrator account
user680786
@ChristianSciberras I understand how it works to. If it works only under admin then I will feel myself safe :)
and UAC is sudo-4-windows
18:08
@tereško There was an interesting exploit that got windows into cloning that built-in account. Thing is, it was completely hidden.
So if you wanted to do a rootkit, you could easily make use of this exploit :)
i am not talking about hidden users
i am talking about you , right now , viewing this chat in admin-level account
because it is a sure bet that you are not using a limited-user account
You could get at my VM. But that's just it :)
@NikiC did you ever had a message in vb telling you to switch display to 32bit in guest OS?
@Gordon Yeah, I think so. I think I just ignored it
@NikiC damn :)
18:12
@Gordon why?
@NikiC because i dont want to ignore it
@Gordon :D Then do set the display to 32 bit :D
@NikiC if only i could. i dont have any options to do that.
@Gordon Then just ignore it ;)
@NikiC gnome3 wont work properly then
18:18
why?
@NikiC because the display is in 24bit mode
lets see if it goes away when installing fedora onto the vdrive
18:40
anyone have a good function for a random string of numbers that could be used as a CustomerID?
or i can write one, but how long ya think i should make it? (for use with a third party recurring billing thing)...
@Justin Try mt_rand()?
nice idea Gaurish :)
that should do the trick...
 
1 hour later…
20:13
word
word up @ircmaxell
I had to re-write another joomla plugin today... hell i tell ya..
@Justin . after such an exposure to Joomla, i prescribe extensive treatment entailing excessive quantities of beer to cleanse your soul
@tereško already started :)
then there is still a change you may live
look at this code though (before i re-wrote it) its horrible...
<?php
(defined( '_VALID_MOS' ) or defined('_JEXEC')) or die( 'Direct Access to this location is not allowed.' );


jimport('joomla.filesystem.file');

function process(&$row)
{

 global $cfg;

$paymentType = urlencode('Sale');				// or 'Sale'

$firstName = urlencode($row->firstname);

$lastName =  urlencode($row->lastname);



$creditCardType =  urlencode($row->card_type);



$creditCardNumber =  urlencode($row->credit_card);



$expDate = urlencode($row->expiration_month) . "20" . urlencode($row->expiration_year);
functions within functions thus having to re-use code... functions that don't do anything and are never called... and packaged with a boatload of errors...
re-use = re-write
20:23
Hello @ircmaxell!
@Justin Bet they're proud about their LOC count...
user336242
@Justin everything about that code makes me want to cry
@JamesButler i know thats what im saying
Second line's a good practice IMHO.
yeah thats about all thats good about that code is the second line lol
user336242
20:26
@Justin someone has gone to a lot of effort to produce that though, its not as if its pure laziness that spawned it
@ircmaxell Hey! How's everything going for you?
@JamesButler yeah someone wrote it, and they even CHARGE for it
but doesn't mean it works at all...
@ChristianSciberras , how exactly that line is a good practice ?!?!
Good. Just purchased a nice new watch. happy about it...
especially compared to "do not keep your code in DOCUMENT_ROOT" ?!?
20:30
@tereško And since when anyone takes heed of that?
@tereško In case someone doesn't listen to
1 min ago, by tereško
especially compared to "do not keep your code in DOCUMENT_ROOT" ?!?
@ircmaxell which broadband standards does it support ?
@Justin Bad code is bad code, regardless of the platform that it's written for
yes that is true
@tereško None. Doesn't even have a battery...
@ircmaxell Unless you believe the myth that some platforms are worse than others. (lol)
20:32
Since we are already discussing Joomla. I wonder what you guys think about Drupal's code?
@ChristianSciberras All have flaws
@Gaurish code? blah at absolute best
I haven't ever used Drupal Gaurish so I couldn't tell you
@ircmaxell Heh :P
@ircmaxell i am not sure if it was a waste of money , or a good investment in case of "solar storm apocalypse" scenario
@ircmaxell That's why I've always said we should leave this coding business to our machine friends.
20:33
@ChristianSciberras machines make flaws as well...
@ircmaxell No they don't. GIGO, remember?
@ircmaxell , i bet you will still use your phone to tell the time
=P
user336242
Drupal, Joomla are both attempts to do everything in one system... jack of all trades, master of (largely) none
@tereško Nah, been wearing watches for a while now. Don't use the phone at all for time. just entertainment
Drupal seems popular, heck whitehouse.gov run on Drupal!~!
20:35
As I was saying, Drupal's code is ok. They have a good set of guidelines.
The problem is that they don't have priorities.
any they write crappy code
So they ended up with a front codebase that is better written than the core.
@ChristianSciberras If you think it's ok, you haven't worked with it before
it is literally undebugable...
@ircmaxell OK, you have a point there.
and untestable
user336242
20:36
@ChristianSciberras - code itself maybe ok, but the higher level architecture (sorry, naughty word), is awful!
i'd like to see a CMS that if you write a plugin that looks like the code above -- that it throws an error saying something like 'learn how to program you incompetent quack'
@tereško That too
But I've seen it work better than both Joomla and WP.
you shouldn't even include WP into this convo...
20:36
So let's settle for "code that is better than WP/joomla"
@Justin Error: E_FATAL Unexpected T_PEBKAC error detected
2
user336242
WP really shouldn't be talked about in the context of CMS
WP is nothing more than a blogging platform.. and the use of plugins will never make it a CMS...
are you really limiting the competition of "best solution" to drupal, joomla and wordpress ?
maybe add phpbb for a good measure
( yes , some people use it as framework/cms )
@ChristianSciberras The Joomla code base is actually fairly reasonable (a bunch of design issues, but it's nowhere near as bad as a lot that's out there)
20:37
@ircmaxell +1
user336242
what else is there out there in terms of reasonably function CMS frameworks/Apps ?
Shouldn't it be E_USER_FATAL?
@ircmaxell The problem with Joomla is that you can't easily override functions without hacking the core
20:39
@Gaurish HUH? If you can't override it easily, you haven't tried to.
@Gaurish Actually, they have a registry system, so you can do that.
I have in the passed swapped out just about every single core function without problem
The question is, whether you're able to do that before other things do.
Ok, I guess I need to re-look their codebase. ;)
@ircmaxell Say, you could have helped me out on an issue I had...
20:39
and there are only a handful of functions, and those that are there are just shortcut proxies for class methods. Almost all logic is in classes (which can be polymorphically overridden)
I tried it on Joomla 1.5x series
@Gaurish 1.5 is the improved codebase. 1.0 sounds like what you are talking about
1
Q: Creating admin menu items dynamically in joomla

Christian SciberrasAnother day playing around with joomla, and another shortcoming to fix :) This time it comes in the form of the administration(backend) menu. To add items/subitems to this menu, people have to write the menu items in an xml file accompanying their components/extension/plugin/whatever. When the e...

@ircmaxell, yeah but just using that wouldn't determine if that actual php code is horrible with joomla...
@ircmaxell It's never too late for a reply :D
20:41
@ircmaxell I saw your bio, I think you are biased towards joomla. no offence :P
:P
@Gaurish He is.
@Gaurish No, honestly as a platform I think it's completely misguided
Just the code base itself isn't nearly as bad as people are trying to make it out to be (especially compared to a lot of other things on the market)
@ChristianSciberras Just create a new menu module (extending what functionality you can from the core one) and swap the core one for yours... 20 minutes tops...
Out of the all things in the world, CMS seems to be facing identity crisis . there are just too many of them
user336242
In a controversial move I'd like to suggest they are all awful....
@ircmaxell That's not "dynamic". I can't go doing that kinds of things people would be able to remove it by mistake.
20:44
@ChristianSciberras what do you mean not "dynamic"?
so saying, Saying joomla is completely misguided can be right & wrong at the same time, depending on how you look at it.
@ChristianSciberras And you can't stop people from removing functionality. Nor should you
If you get what I am trying to saying ;)
@ircmaxell by mistake
20:46
It's like installing MS Office and allowing people to happily remove the document editor out of the UI.
As long as you provide an option to bring it back, why not?
It's an invitation to a load of woes of why "x is installed but doesn't show up"
@ChristianSciberras Not at all.
@ChristianSciberras because you removed it. Simple answer
Then again, it is indeed the only sane way to have this working.
Man I hate writing joomla modules :( ah well.
@ircmaxell Go write a short answer and I'll approve.
20:47
Huh?
For the sake of others with my same question? :)
You add it
I might slip an insult or two at joomla if I had to answer it myself ;)
@ircmaxell Ah well, someone has to do it I guess :)
One last @ircmaxell-related question for the night... :P
4 hours ago, by Christian Sciberras
@ircmaxell You once said my is_assoc() function was not correct, and I forgot to fix it up. Mind reminding me what was wrong with it?
it's not that it's not correct (it is now), it's that it's quite inefficient...
20:56
uhm, it is now?
Please go on with the recommendations :)
I looked at the code as stands now, and it will correctly validate contiguous arrays.
recommendation? I wouldn't do that at all. it's never efficient to detect, and who cares if it is?
@ircmaxell Who cares if a value is a number or a string? ;)
If it's there, it's there for a reason (I guess) it's quite of a specific function, I can't see a way to avoid doing that operation for this reason.
One of the reasons it may be used is to whether to use [] or {} when converting to javascript. I know there's json_*, it could be used when those are not there, or something.
who cares the indexes of the array
eih
@ChristianSciberras You sound like PHP ;)
huh, [a,b,c] != {'a':1,'b':2,'c':3}
21:01
eih...
Well, I'm kind of confused why I shouldn't care. Surely those two are different structures? It's only PHP that uses them as one.
not saying it's totally unnecessary, but the usecases are very few and far between
and how would that help in not having the function?
I mean, it isn't like the server's going to bulge under the weight of one unused function? :)
depends on the server i suppose, i know a server that would blow up if it found a missing ; it's so horrible hehe
@Justin Since when PHP doesn't do that? Only yesterday it crashed because of a misnamed function. :P
21:04
no i mean the entire server would BLOW UP
you mean httpd?
crap, got to leave, brb guys...
no not the httpd.. i mean the entire server would cease to exist due to spontaneous combustion
@Nikic linuxundich.de/de/software/… worked for me (german)
Goodnight @all
franticly searching is HaTwHiTe has ever said anything else here
21:16
lol I've never seen him say anything
lol, i ment not goodbye
again Heloo @all
and even that i screwed up haha
@Gordon Yes, the guest extensions worked for me, too.
Always afraid to join a chat...and try to ask a question, couse theres a forum to do that
but i didnt got any response on it
either you are bad at explaining your problem , or it is something obscure and/or unique
i would lean toward the former
perhaps it is both
21:20
@wHiTeHaT I remember you having joined the countability discussion, haven't you?
yep, you have :D
my question is abouth subquery @NikiC,yes , and it turned out the experts also choosed for number 3
can we either cv stackoverflow.com/questions/7457833/how-to-use-php-dom-document please or provide a comprehensive tutorial that can serve as a canonical for future reference
bed now. laters
sleep well
anyway , what is the issue , @wHiTeHaT
where is the code we can look at , and how "does not work" look like
0
Q: webdatabase subquery

wHiTeHaTI'm struggeling with a javascript function to get data from 2 different querys.if i execute the querys seperated in the function i only get the last result from the first in the second query.I come to the conclusion that i have to subquery the 2 querys,so the function wil run properly. here are ...

Is it this one?
21:23
i wonder if with these 2 querys i can create a subquery stackoverflow.com/questions/7393163/webdatabase-subquery
yes
the original code is php for these querys
but i converting it to javascript, but that shouldnt be a problem for the querys
ok , do you know what is SQL JOIN ?
yes i now,however i doubt it is a good way
but ofcourse i can be totaly wrong
first step in combining the two queries would be to fix the existing ones
you mean fix as repair?
or mean x AS x1
rewrite queries using joins and get rid of DISTINCT
that would be the first step
21:30
yes i readed it isnt needed
well , maybe it is needed , i du not know
wel i readed it would work anyway in a subquery
wouldnt
result would be the same if not use it
but i more curious of why need to use a join, i thought the current query methode is using join as default?
indepandendly both querys working
@ircmaxell I think you have a sighing problem :P You should visit a doctor ;)
21:38
:-P
though normally it's a , not just a sigh ;)
@wHiTeHaT well .. for me the combination looks kinda like this :
SELECT
	ProductOptionValues.products_options_values_id,
	ProductOptionValues.products_options_values_name,
	ProductAttributes.options_values_price,
	ProductAttributes.price_prefix
	ProductOptions.products_options_id,
	ProductOptions.products_options_name

FROM ProductAttributes

LEFT JOIN  ProductOptionValues
	ON ProductAttributes.options_values_id = ProductOptionValues.products_options_values_id

LEFT JOIN ProductAttributes
	ON ProductAttributes.options_id = ProductOptions.products_options_id
though , i used a bot different naming convention for the tables
no , wait
thats wrong
original php is this:
$products_options_name_query = tep_db_query("
select
distinct
popt.products_options_id,
popt.products_options_name
from
" . TABLE_PRODUCTS_OPTIONS . " popt,
" . TABLE_PRODUCTS_ATTRIBUTES . " patrib
where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "'
and
patrib.options_id = popt.products_options_id
and
popt.language_id = '" . (int)$languages_id . "'
order by
popt.products_options_name");
while (
$products_options_name = tep_db_fetch_array($products_options_name_query)) {
$products_options_array = array();
it is the most confusing part of the whole script
21:53
what is that ?!?!
only thing that comes to mind is SPAGHETTI
that is the original php code (blame oscommerce for it please...not me)
lol
thank god i am not the only one who thinks this is confusing
and this code generates a select menu
per product
you mean you want to see the messages, no mather what user?
last inserted row
21:58
what if there are two messages in period between last poll?
and time
the must use time i think... bt i not sure... but makes sence to my humble brain
will make a question

« first day (336 days earlier)      last day (4836 days later) »