« first day (30 days earlier)      last day (3209 days later) » 
01:00 - 05:0005:00 - 00:00

01:36
/me is crying
1
A: PHP session var enough for user auth?

zerkmsIt is enough to store just user login (or user id) in the session. To prevent session fixation/hijacking everything you need is just to implement simple algorythm (pseudocode): if (!isset($_SESSION['hash']) { $_SESSION['hash'] = md5(!empty($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_...

01:47
why is /you crying?
now i'm not ;-)
i was crying because I could not explain why the article is dummy
"@z - Stop ordering me to look at the code you provided. Of course I am looking at it, which is why we are having this conversation. But, you have finally provided a straight answer to my question, so you win. "
omg
"Stop ordering me to look at the code you provided" - is not it a little rude?
i've given him a great sample. the only thing he need to do - is to be polite and say thanks
:-S
That's ok, I gave a link to the exact resources an author needed yesterday and I had someone with 11k rep argue me that I didn't give code, that I gave the downloads to the microsoft samples which covered how to do what the author wanted and many more examples
lol, and he unchecked my answer
/me is crying again
so after 18 hours of arguing with mr 11k, I deleted my answer and went on with my life. I learned because I downloaded the samples and played with the code to learn, so I think others would learn well the same way, no?
I also love that on this question the guy is arguing that I am encouraging him to use a bad tool, when it's already built in and works well with little for him to consider stackoverflow.com/questions/4175266/… :\
"oh, they store way more information than I need!! boohoo for me"
btw, membership provider is a weird thing
02:02
howso?
It's not all that weird..
@drachenstern: because
))
custom membership provider gives another abstraction that abstracts from nothing
i can't explain :-( it was too long ago
but as I discussed with a lot of .net gurus - they agreed to me
I'm waiting on the day (I'll never hear about it) when that guy figures out how often the membership provider gets called from the .NET framework
I don't understand how it's an abstraction that abstracts from nothing
that is confusing
02:04
that abstraction is too specific
i mean - it should be an abstract tool, but it mandates to implement too much specific things
It's odd that you can't extend it..
ifaik - it requires me to have email for any user
does it?
*for each
no it doesn't require that
i worked with it > than year ago, so i forgot what problems i had with it
02:06
it requires a username and a password, and you could probably get away without a specific password
it requires a password and username?!?!?!?
it is terrible
ok, why is my frigging internet so slow
@zerkms that's probably why he doesn't like it so much
i have a project that does not require a user to have a password or username
tvfedor.ru - that is that project :-)
I know that Microsoft spent time and effort to make it an easily extensible (by fields, not function, see the Profile) and fairly dynamic and easily adaptable membership system. I'm not sure why people feel the need to reinvent the wheel. Unless they're in the business of selling User Membership controls
"why people feel the need to reinvent the wheel" -- because "it requires a username and a password"
02:10
That looks like it uses an email and a password... what's the difference between email and username?
if the solution requires that - it is not flexible, it is weird
as i pointed to my project - it does not require a user to have either password, email and nickname
you're free to use openid
or facebook connect
@zerkms then if you will use openid or facebook connect you won't use the Microsoft control
it is php ;-)
and there is nothing to stop you from using the email in the username field
aspnet_Applications is redundant? If you don't use it it stores a whole single row. Quel dommage!
02:12
@zerkms ah you see
why won't I?
@mootinator I know!!!
i have some similar authentication layer
written in php by me
it is abstract
it does not require anything
it is flexible
that is what I expect from authentication layer
@zerkms I don't like abstract interfaces, I need concrete classes in my projects ...
I have 4 concrete auth implementations
openid, facebook, twitter, email
02:14
I can't work with abstract (non-implemented) code in my projects ... makes it too hard on the user to guess how to use the system
hehehe
and the abstract auth does not require any authentication method to have any specific fields
and it is right way to implement auth system, imho
@zerkms the MembershipProvider doesn't either, I don't think ... not anything specific
for the application everything we need to know is just "is user authenticated or not". point
anyway, i'm too out of context, to continue this discussion ;-)
lol, mkay
CreateUser(string username,
string password, string email,
out MembershipCreateStatus status)'
02:16
what is this?
The interface strongly suggests specific things but there's no reason you have to use them, I guess.
lol, what is the reason in that interface then?
if interface does not specify contract we use
yeah, let's "implement" interface with dummy blank methods!! it is a true way
;-)
So, what is the reason to use provider and its interfaces if we don't use its methods? :-)
The important bit is, as always, either use the tools provided, find new tools, or write your own.
02:18
So, it should really be something along the lines of: CreateUser(MembershipUser)
the benefit for me, on the .NET platform in ASP.NET, is that the guesswork is already done for me, so that is enough.
I use this interface.
and for me the benefit on the asp.net is that c# is available there ;-)
I could use a different one, but all the work is provided for me by the ASP.NET platform if I use the things provided for me.
i've read some antlr documentation at this holiday and got that the set of BNFs to analyze the abstract sql query is not a trivia task :-(
as you remember - i want to implement sql pony formatter %)
02:21
nod
yep
does paint.net do animated gifs?
I don't think it does
it will be a lirary that can take unformatted query and format it according the rules + 2 GUIs: wpf and asp.net mvc2(3?)
so can I beg one of you two as a pointwhore for a point on an answer so I can be a badgewhore?
perchance
6
Q: What programming language is this?

Sean Cannon:#PCA=Campaign//CampId//CampDesc//CampBusId = 2 :#PE=PubEdition//EdId//EdCode//EdCampId = :#PCA :#PCT=ContactType//ContTypeCd//ContTypeDesc//ContTypeUsrId in (21, 25) :#PCC=Country//CtryId//CtryName//CtryId in (1,2) :#lS=Status//StatCd//StatDesc//StatUsrId = 21 :#PT=TelecomKind//TeleKindCd//TeleK...

I'm curious.
9
A: Practical rules for premature optimization

drachensternMy vote goes for most people optimize what they think is the weak point, but they don't profile. So regardless of how well you know algorithms and regardless of how well you've written your code, you don't know what else is happening outside your module. What do the APIs you've called do behind ...

Yeah I'm really really curious about that language
I think it's a TSQL variant for sure, but I couldn't dig up any answers from google last night, nor wikipedia, and as we all know, no syntax on searches
02:30
there are no rules. premature optimization should be denied
btw, the most "strange" programming language i ever seen was malbolgo
Malbolge is a public domain esoteric programming language invented by Ben Olmstead in 1998, named after the eighth circle of hell in Dante's Inferno, the Malebolge. The peculiarity of Malbolge is that it was designed to be the most difficult and esoteric programming language. However, several of the tricks used to make understanding it difficult can be simplified away. Programming in Malbolge Malbolge was so difficult to understand when it arrived that it took two years for the first Malbolge program to appear. The program was not even written by a human being: it was generated by a be...
*ge
I agree premature optimization should be denied, that's why I said "they pretend to optimize"
all optimizations without testing (nes, profiling) are premature
yep
woot, thanks guys, I get a new bronze badge :D
write clean and understandable code
after that you could refactor it to use more performant algorythms
since I have an answer with +10 score
You've earned the "Nice Answer" badge for :D
I just realized why I seem to lose chat lines a lot on this laptop while I'm composing, the Esc is above the ` key
good job on the mortarboard
I think I'm a ways away from that one, but I came close this weekend, 130 points in one day ...
@drachenstern I got that one a couple weeks ago.
You may hate me now.
11 more upvotes and I get to 2500
@mootinator which one? and I would never!
@drachenstern Mortarboard. And I was the top new user the week I joined, but there's no badge for that, just an e-mail asking me to stick around.
lol, how interesting
I'll get my mortarboard one day, I'm not worried
I wanna get past 3k rep before I bemoan not having mortarboard :p
02:37
;)
I haven't been inspired to be helpful lately, lol.
yeah, the users are starting to make me get rather annoyed
@drachenstern one sec...
ta-dah :-)
ta-dah whatsthat?
what did you do? upvote ten of my answers? :p
you've got 2500
lol, ok then ;)
thanks
02:42
i've seen a lot of times when people believe in the user's competence just looking at his reputation
yeah, me too
that's why I'm not afraid to argue someone down, but I get to a point and i'm like "nope, I'm done with this question"
@tina go ahead and ask your questions, perhaps a user here can assist you
Yeah, I've noticed if I answer a question someone with more rep than me asked, and someone with more rep comes in after me and gives the same answer they often get the check.
@mootinator yeah me too
Ooh, I think I found what that SQL variant is.
1
A: Propose a new 20k reputation privilege

Joel SpolskyThe ability to put a bounty on someone else's question, spending only a fraction of the reputation it would normally take. For example, when you saw a question that you really wanted to help, you could spend 50 of your own reputation to give that question a +250 point bounty. This would allow 2...

@mootinator see my concerns on inflation ;)
@mootinator DO SHARE!!! I wanna know
for anyone who thinks they can help @tina with her UML modeling on her three packages, you should also be encouraged to visit her other questions (found on her profile page).
She is trying to model some C++ classes in UML, for her own understanding.
02:50
@drachenstern Well, I'm not sure.
@mootinator oh that wasn't nice :p ... what do you think it is?
@drachenstern Inline T-SQL, using something like this:
That page doesn't specifically mention a syntax for :# define though.
@tina please note that sarcasm does not translate well over text. I hope we did help you. If you can elaborate how we helped, that would be nice.
@mootinator I don't think that's it.
It's got to define that operator to be the answer ...
True, but given this: INSERT INTO emp(empno, ename, deptno)
VALUES(:x, :y, :z); it could be some library based on it. It would make sense for someone to extend it with precompiler looking # aliases
Yeah, that's what I'm trying to decide.
but I could tell from the syntax it was pretty well TSQL. I've just NEVER seen that parameter syntax before
it's that damned :# that's the bugaboo
03:02
Yeah
heh, @zerkms I think the system reverted your upvotes :p
note that I'm not upset by that, I'm just surprised it was so fast
@drachenstern: is it??
argh\
at least it is fair ;-)
Why do people don't like to denormalize data?
0
Q: Sort comments by votes?

JonnyI'm making an application that is similar to stackoverflow in that it has ratings for questions and answers and i also have tabs that show comments by oldest,newest and votes. Im having trouble sorting by votes. Here is my function: /** * * @param int $threadid * @param string $...

*why don't people like
@zerkms wasn't this guy asking similar questions yesterday? does he want us to write the whole database side of his app? :P
Also, I like some denormalization, so I know what you mean.
03:12
@drachenstern: i did not see
(i mean i did not see the similar Q yesterday)
is there any good debug (php related preferred) cheat sheet to point the questions like stackoverflow.com/questions/4181124/…
it is a great russian one phpfaq.ru/debug, but don't know if any english exists
I don't know sir
at our biggest php forum (phpclub.ru) about 40% of answers is a link to that debug-manual %)
a black background? wtf?
that was from my day today, I thought it turned out well for me ;)
@drachenstern: i'm eating now!!!!
Risotto is a class of Italian dishes of rice cooked in broth to a creamy consistency. The broth may be meat-based, fish-based, or vegetable-based; many kinds include parmesan cheese, butter, and onion. It is one of the most common ways of cooking rice in Italy. Its origins are in northern Italy, specifically Eastern Piedmont, Western Lombardy, and the Veneto, where rice paddies are abundant. Risottos are made using short-grain rice (italian cultivars of Oryza sativa japonica), with the stock being added gradually while the rice is stirred constantly. The cooking technique leads the ri...
If God didn't want us to masturbate he would have made our arms shorter. Maybe that's why the T- Rex was always so angry. http://cl.ly/3FSe
lol
03:33
@drachenstern What does that tell me?
it does define that syntax about halfway down, but it's the first I've come across it
the # makes me think it's a unixy thing
Honestly.
honestly what?
It's probably just someone trying to be clever.
it seems like a combination of tsql and makefile
03:38
If I had to bet, it's custom code which does some substitution then generates valid ESQL/C
Which has some substitution done on it, rather.
The part that makes me think I might be wrong is this line: :#PT=TelecomKind//TeleKindCd//TeleKindDesc
The others all alias four things.
That one doesn't fit.
but what's up with the multiple variations on each line? It's like it allows multiple variations on each parameter to be passed. I think each line is:
:#(declare parameter) [name of passed parameter] { // [name of passed parameter] }* { = [default value] } { in [parenthesis surrounded comma delimited list of valid values] } where {optional} and [plain English term] and (comment)
that seems rather tricky
it needs a frigging grammar just to explain what I think each part means, and I'm not in the mood to correctly define a grammar
I don't think it's that complicated.
the multiple optionals makes me say a grammar would be appropriate :p
@tina I don't know that will help ... I'm not sure I'm going to be able to help you that much. Do you know any professors of Computer Science you could talk to?
It's got a trying to fix a bad code smell to it.
my "grammar" or the post?
03:53
The post. Looks like it's trying to solve the problem of a database being designed with minor variations of column names for different customers.
@tina and I wish you luck, but I don't think I will be a good resource for you
@tina since I'm talking on StackOverflow chat I think I'm a garbage collector ;)
@drachenstern: stackoverflow.com/q/4181229/251311 - is not my comment there sounds rude?
my Major of study at Uni was Computer Science, with dual minors
@zerkms not rude
@tina that is the second time tonight you have said in chat "ahhan arasoyo" what does it mean?
@tina I told you already sarcasm does not translate well over the internet
on what language?
@tina in "Dilbert" the garbage man is quite funny. Here is an example:
I'm not, but thanks anyways.
04:07
@drachenstern: seems like there are a huge cultural differences - that comics don't look funny to me :-S
*those
@zerkms they are out of context, he frequently does long-running series
0
Q: Editing row data not possible with binary primary key?

GregI'm binary uuids for keys. Is there any way to edit table data with Mysql Workbench for this kind of schema? I end up with: UPDATE `db`.`table` SET `foo`='bar' WHERE `uuid`=?; Which obviously returns an error: ERROR 0: Value not set for all parameters I have no other way to reference the ro...

such a conceptual approach
to use binary as a PK
:-S
That is strange
Why not store the UUID in a hexadecimal representation like usual so it can be a text-type column?
@tina I don't have a clue what you just asked, can you try a different way? What do you need help with?
@DanGrossman because ... duh, the disk doesn't store in hexadecimal, it stores in binary!!
I think binary pk means two column key
in this case, that is
04:15
Ok, so :#{EnglishName}//{IdColumn}//{DescriptionColumn}//[Condition]
But why?
hahahahahaha
Damn these random puzzles.
@mootinator possibly
04:17
@drachenstern I've been at that meeting. Though never at a company which had shareholders.
interesting
That's SOP for government and NGOs.
@tina what do you mean "I think it's not a funny chat room" this is the goofing off room
@mootinator so the only problem with that definition is the last line
I'm gonna ask my dba tomorrow see if she recognizes it at all
@drachenstern How so?
I have no idea what it would do with the condition, but it being the only optional part fits with the last line.
oh wait, I misunderstood the intent on that
@tina have a good evening
@mootinator I agree
04:21
A tavern is a place to relax and drink alcohol
This is "The SO Tavern"
Unfortunately, SO cannot sell me any alcohol as Pennsylvania is one of the states that still forbids its shipping to homes
...and its sale in supermarkets
...and its sale in restaurants, beyond glasses, for the most part
Texas doesn't sell alcohol in stores, or at least not in Houston
and if they do I sure missed it
uhm, how do you buy alcohol then???
an alcohol store
There are stores owned by the state that sell it
omg
04:24
there are private stores that sell it
yes, our stores also need license to sell alcohol, but there are a lot of them
only beer in licensed restaurants here, other alcohol is only from the state stores
but in Louisiana we have drive-up alcohol stores, where they sell you a blended drink out of the window
really?
yeah, still can't drink and drive
04:25
and any restaurent, as well as cafe or bar - sells alcohol without any problems
but you can buy a 32 oz styrofoam drink ;)
no open bottle laws?
driving with an open container of alcohol in the vehicle = illegal, even if nobody is drunk
@DanGrossman yeah, that's my point
04:27
@DanGrossman: omg, why?!?!?
it comes with a lid, so technically it's not an open container I think
I have no clue how they work that one out
I never purchase any like that, I'm a bottled beer kind of guy
@zerkms There are no U.S. federal alcohol laws, each of the 50 states has their own, some more modern than others...
"In 2010, a trial was initiated to test selling wine in grocery stores using vending machines. The buyer must present identification, look into a camera to allow an offsite PLCB employee to verify the identification, and blow into a breathalyzer to authorize the sale."
why is that so funny?
it's not
I think it's implying that the pointy haired dude will need to be looking for a new job, and that he should apply at walmart as a greeter
04:38
@david "Pointy Haired Boss" ... it's his name
i know, i couldn't remember the 3rd word ><
The pointy-haired boss (often abbreviated to just PHB) is Dilbert's boss in the Dilbert comic strip. He is notable for his micromanagement, gross incompetence and unawareness of his surroundings, yet somehow retains power in the workplace. In the Dilbert TV series, in which he is voiced by comedian Larry Miller, the character is notably smarter (although still quite stupid) and more actively evil. The phrase "pointy-haired boss" has acquired a generic usage to refer to incompetent managers. It is also possible to speak of someone being pointy-haired or having pointy hair metaphorically,...
04:54
and that's why it's funny :D
@TwelveTwo
This is where I share the adventures of my day!
144 tweets, 1.4k followers, following 7 users
I love following that cat on twitter too ...
01:00 - 05:0005:00 - 00:00

« first day (30 days earlier)      last day (3209 days later) »