« first day (26 days earlier)      last day (3213 days later) » 

12:08 AM
@drachenstern Now I'm wondering about a problem I have a workaround for again.
 
@mootinator let's go
 
Because of that MVC question
Why this doesn't work:
(InspectionDetail.ItemConditions)bindingContext.ValueProvider.GetValue(String.Format("Details[{0}].Condition", k)).ConvertTo(typeof(InspectionDetail.ItemConditions));
should have not posted that whole thing, but oh well.
 
my **ing *, there should not be code like that in any language
 
Anyhoo, if I convert the GetValue(key).AttemptedValue to an enum it works, but If I use .ConvertTo(typeof(myEnum) it throws a NullReferenceException
@DanGrossman Yeah, that was written in a fit of debugging.
 
like 5% of that is meaningful, the other 95% is overhead to appease a type system
 
12:14 AM
@DanGrossman This is true.
Normally most of that type system appeasing would be buried in an extension method somewhere.
 
@mootinator how are you converting? with .ConverTo(typeof(AttemptedValue))?
 
I never read the back of a bottle of TUMS before. "Relieves sour stomach"?
 
@drachenstern Right. So, how does that translate into a NullReferenceException...
 
yep
about all I use it for
 
I never heard that term before
 
12:18 AM
how do you define myEnum?
MyEnum myEnum ...?
 
public enum MyEnum { name, name2 ...}
 
and are you using typeof(MyEnum) or typeof (myEnum)?
 
Assume it compiles...
I'm using typeof(InspectionDetail.ItemConditions) technically.
 
myenum.value?
you can't do that
brb, need to start a query
ok, it's on the other monitor
 
It's defined inside a class.
So, that doesn't refer to a value.
 
12:23 AM
ok, just making sure
is it an inner class?
or rather
hrmm, how to say this
it's only valid inside the class, yes?
I couldn't use it somewhere else without defining a new instance of your class?
 
No, it's a public type
 
so is it namespaced to prevent collision?
I'm trying to figure out the reason for InspectionDetail. to exist there
most times you don't need to namespace the enum
that could be the reason for the problem
I'm trying to come up with testable scenarios to narrow it down
 
Yes, it is namespaced.
 
oh ok, so that shouldn't be a problem.
so once again, from the top:
 
Enum.Parse(typeof(myClass.myEnum), ValueProvider.GetValue(k).AttemptedValue) works.
 
12:32 AM
(InspectionDetail.ItemConditions)bindingContext.ValueProvider.GetValue(String.Format("Details[{0}].Condition", )).ConvertTo(typeof(InspectionDetail.ItemConditions));
oooooh, faceplam, yeah, I bet it does
cos you're not marshalling I don't guess ... I would need to look at the code on .ConvertTo and Enum.Parse to really know, and I don't think I have the MVC stuff installed on here
 
ValueProvider.GetValue(k).ConvertTo(typeof(myClass.myEnum)) returns a null reference exception.
 
but that's why they have Enum.Parse
 
Right, I just don't understand the error.
 
an NRE on .ConvertTo
I'm gonna go with I can't reflect the one, so idk, and you should use the Enum.Parse when you want an Enum back out.
I have a feeling it's because Enum's don't behave the same as classes, but don't quote me on that
 
Possibly.
Perhaps I'll see if my extension method can handle that one.
later though
dinner time
ciao
 
12:38 AM
ciao
 
1:04 AM
does anybody feel up to helping me rubberduck something?
 
1:21 AM
out
 
 
2 hours later…
3:42 AM
Back
 
wp
 
you win
oh, i wish i had a work related to .net too... :-(
(according to the previous discussions)
 
3:48 AM
i'm too tired of php, i need to breath fresh and sugar c#
;-)
 
Heh.
I'm the only .NET developer in my office.
 
@zerkms Too much sugar is bad for your health :P
 
there are like 4 .NET devs in my office, and 4 dbas, and two of us are overlaps
 
@OlegKuznetsov: now I have too much of pepper, so i don't care ;-)
btw, my next task will be related to the db ~1tb size, it will be tricky
 
We have a designer, me, a mostly php dev, and our manager who sometimes does php or Objective-C
 
3:51 AM
@zerkms oooh a tb? grr, I'm only at 300GB
 
yup, i expected it is few gigabytes, but our dba choked me
*shocked... cannot remember how to spell this word )
 
choked me is good enough
when you're really shocked
 
))
similar to "goof night" typo, yes )
oh, i'm twice starred in the right bar
 
congrats
 
whoot
 
3:58 AM
what should I do for dinner?
it's probably an hour till bedtime as is
 
get a lasagna
))
 
lol, or not
thinking a bowl of chili with some cheese and some toast
that crap chili they sell at the stores too
 
never even tried it
could you recommend any online recipe of it?
i with my gf are planning to prepare it for a long ago, but too lazy to google and choose the most "proper" one )
 
@zerkms the chili? Hormels
it comes in a can
 
it is already prepared
 
4:02 AM
yeah
but most people would recommend you to actually prepare it yourself
instead of using a can
 
that is what i asked :-)
i have no idea what is the proper recipe
 
yeah, I don't either
everyone claims they have the best one
 
lol)) forgot about it
 
Nooo, cooking.stackexchange.com is for objective questions about cooking, not subjective things like recipe swapping :P
 
so ask them where to find a good reference recipe for making chili from scratch when you've never had it and don't live in the US
That sounds objective enough
 
4:08 AM
Ahh.
 
especially if you stress that you've heard about it but never had it and don't need something "over the top" or proprietary
 
hehe
 
besides, most cooks fall over themselves to share chili recipes, until it comes to competitions
I've seen people put beans and hunks of stewed beef and tomatoes and a few peppers in a pot and call it chili
I've seen people make a thick stew and call it chili
 
/me remembered SP episode about chilli
 
Interesting.
 
4:49 AM
hello all
 
5:00 AM
ola
 
@zerkms hmmm, I would do the each thing ;)
 
@drachenstern: for what? ;-)
 
for that answer
no since taking it out ;)
I'm gonna pull my answer tho
 
@drachenstern: i don't understand what you meant in your comment, weird english :-(
 
So, apparently I'm on crack.
 
5:05 AM
I was referencing that I posted his code with this in place of document but that I didn't see the "closest" when it should've been sibling
 
yeah, also each() is pointless there
 
@mootinator why do you say that?
@zerkms I know it is, but let him have his each
 
lol
 
he will feel better about the closure
and the double this reference will make him scratch his head
 
@drachenstern I was getting that null reference no matter which method I used, which makes sense.
But it makes me wonder how that code passed tests yesterday.
Drugs is the only explanation.
 
5:07 AM
even with enum parse?
no no no, yesterday the moon was obviously in phase
today it's out of phase
 
Yeah.
.ConvertTo works just fine, even.
 
well which is it mate?
earlier that didn't work ...
grrrr
 
I suspect it is some difference between my Create and Edit view.
 
eh...
 
Edit was using the same name= for everything
Sooo, looking up the right value was returning a null reference...
 
5:10 AM
what language? looks familiar somehow
 
Sad, really.
 
@Quinn1000 welcome to the party, if you want to know, scroll up
way up
 
And I'll call Rusty.
 
yah, started to but got tired
 
and congratulations on joining SO in the past 45 days and on getting enough points to come over here and participate
 
5:12 AM
Anyhow, that was a waste of time.
 
so you got it sorted then?
 
Yep.
 
ty.. trick is to start programming in the early 1980's with an Atari 400 and hold it all in until just recently
 
then I promise to not hold it against you
@Quinn1000 I've found that just the opposite works well
start programming on a Tandy and don't bottle a thing, including frustration and anger at idiots
 
heh
 
5:13 AM
hello
 
hello alex
 
@alex: :-P
 
allo allo
 
how is it going ? Thought I'd drop in here... been a while
 
@alex slow as shit
lol
 
5:15 AM
ahah
haha*
 
yep, I'm a regular shakespeare
 
anyone working (or meant to be) ?
 
me
 
So, possibly an mvc bug
 
making sure a TSQL script gets going before I get to bed
 
5:16 AM
well i'm trying to choose a CMS for a coding project.. but that's my own thing
 
does that count?
 
in the progress of designing few tables and triggers, pl/sql
;-)
 
@mootinator is it your bug or theirs?
pl/sql? :\
I like my TSQL just fine ;)
 
@drachenstern: oracle
 
works so well with my other .NET
@zerkms yarr
 
5:17 AM
oracle is for big boys ;-P
 
@zerkms uh huh, sure sure
so is postgresql
so is cassandra
:-p
 
upvote for redis
 
@drachenstern Well, mine. I was using the PropertyName on ModelMetaData.
Which isn't supposed to be defined unless your model is a property.
 
@mootinator so how's that an MVC bug then? :P
 
hmm.. wish postgre was an option but i don't see it
 
5:18 AM
Which, it wasn't.
But when I went into my create view in debug, it had the correct value, so assumed I could use it.
 
oh, lol, I see
wow, what a trick
I'll have to remember that concern in the future
 
maybe i should just go without a CMS.. they are annoying after all
 
@Quinn1000 what do you need a CMS for?
 
@Quinn1000: what programming language?
 
heh.. psuedocode for now
just my own personal project
 
5:21 AM
im working on a legacy PHP thing... and wel all know 'legacy PHP app' means awful, awful code
 
0o
 
@alex O_o
@Quinn1000 what are your requirements? what's the CMS for?
 
meatballs
i am working on a virtual animal project that is a long-term goal of mine.. take an endangered animal and start coding it up so when it is gone there will be a working copy of it
 
saywhat?
so like passenger pigeons?
only, not yet dead
 
sry meatballs refers to alex
and his spaghetti code
 
5:23 AM
oh I knew that wasn't to me, why are you apologizing?
 
right, but there is no record of the pigeons so more like animals that people are recording now etc
start simple and work it up as time goes on
 
[holywar] kohana rockz [/holywar]
 
sounds like a wiki to get started, and a basic set of details to be recorded
that gives you lots of flexibility and searchability
 
for now i have to admit (though i hate to) that Java is probably the way to go
 
transform it later, once you feel you start to have enough detail
 
5:25 AM
there should be an option in my IDE right now "submit to daily WTF"
@zerkms Yeah, it is my preferred framework for PHP
 
in .ru-net we have such site: govnokod.ru
@alex: i've seen you suggested it few times at SO. btw - i have several commits in their core repo
 
@alex there is ... if you're on VS
 
yeah drach i guess the question is what CMS has the best functionality in terms of code insertion
(to make it easiest to post code)
 
wikipedia
forgot they did an eclipse version as well
 
@drachenstern Ah cool!
 
5:29 AM
in the true FLOSS tradition there's TWO eclipse plugins, that work almost but not quite the same
 
@zerkms I havn't contributed any code , but had a feature request that was implemenetd :)
 
@alex: what was that request about?
 
"the following advertisement contains a compensated actor" ... really? You had to tell me that the person who can do three things at once is really working in controlled settings?
 
@drachenstern lol, nice.
 
i should have gone with a diffferent host i think.. my host will let me use cuss words (which i think is essential) but they are not so focused on developers
 
5:30 AM
@mootinator also note Eclipse
 
@zerkms I wanted Session::instance()->delete('session-key') to handle multiple args
so just looped with func_get_args() and my life was a little easier :)
 
ah.. the scope resolution operator is always a winner
 
speaking of ouch:
1
Q: Using different columns values twice in a single SQL query?

Frank ParentHey guys! I'm new to SQL and all and I'm trying to make a query that will probably look really easy for you, but so freakin hard to me! I have a mySQL table called "User" containing multiple mixed values as this: [user_id][user_email][birthday] 1 x@xxx.com 01/01/1981 2 y@yyy.co...

 
hehe... can't remember when i needed to delete something from session the last time )
 
yay for db design
 
5:31 AM
dont u mean PAAYIMUM NEKA..
haha :)
 
my last and needed request was about Route::url()
 
I had an epic wtf I haven't gotten around to submitting.
 
what did you change about it ?
 
@alex: i offered it )
 
oh nice
 
5:32 AM
hey be careful about scope resoluting in your code.. seems like it is very specific
 
was going to say i dont think i've ever used it
besides setting routes I only use Route::get()
 
how do you generate urls then?
Route::url(routename, params) - this is what i use
echo Route::url('task_file_download', array('file_id' => $file['FILE_ID']));
 
absolutlely, with a lookup table
 
href="<?php echo url::base() . Route::get('my-route')->uri(); ?>" (and please now enlighten me :)
 
the one from my current code
 
5:34 AM
hire some poor bloke to code them in
 
compare to Route::url('my_route') ;-)
 
oh awesome
 
which will produce the same result
 
a shortcut helper ?
oh nice
 
yeah
 
5:34 AM
and it addss url::base() ? I assume?
well thanks for the request - consider me enlightened
 
return URL::site(Route::get($name)->uri($params), $protocol);
 
that is kind of brilliant
 
and site() uses base()
 
awesme
"i just tripled my productivity"
 
wow
 
5:35 AM
(realising I could use Y from the shell instead of Yes)
 
yeah well be careful
 
This application I maintain was extremely slow when I took over.
 
don't be the guy who crashed the internet :-)
 
haha
 
It was full of calls to a function which contained a single for loop.
 
5:36 AM
and remember your timing
 
night room
 
anyone have any recommended reading on linked lists in C ?
 
nn drach ty
 
goodnight~
 
that guy is seriously brilliant, isn't he?
 
5:37 AM
night d
Which called sleep for no apparent reason.
 
anyway, anyone ever messed with Textpattern?
 
cant say i have
 
ok let me post my possible CMS's
 
@alex: donald knuth. (about lists)
 
any specfic book or online thing ?
 
5:41 AM
joomla, drupal, concrete5, ocPortal, MODx, Moodle, e107, Mambo, XOOPS, Geeklog, Zikula, phpwcms, Mahara, Textpattern, Hotaru CMS, Saurus CMS are my options
 
i started programming as a web dev so i'm trying to learn a bit more, you see
joomla is very popular
 
any of those flip a 'good for posting code' flag with anyone?
 
wordpress not an option ?
 
yes, also LifeType, b2evolution, pixelpost, nucleus
 
or may be i've missed knuth with Virt and his "algorythms and data structures" :-S
 
5:42 AM
basically it looks like anything php based is an option :-)
i just want to make it as easy as possible for anyone to seperate their code from their comments
 
well wordpress is good if you dont plan on editing anything major in the PHP
zerkms - do you know much about hashing and salting etc ?
 
@alex: enough for my work ;-)
but not enough to prove that md5 is weird
 
ok here is my question
the answer is deleted though
 
i unfortunately know about hashing at a low level
 
i've seen it, yes
 
5:48 AM
salting.. guess we haven't covered that yet
i am also a CS student
 
but they posted a hashing that did a sha1 of md5 and i said "
Won't doing a sha1() of an md5() theoretically make a collision more imminent (32-character hexadecimal number - fixed width with small pool of source chars)?" - i am wondering - is what I said correct? (it was mainly a guess by me)
@Quinn1000 Perfect! :)
 
hey, we just went over 'how the compiler evaluates ( [ { and pushes that (and operators) onto the stack and pops them back off...
 
sha1(md5()) is pointless
 
@zerkms I thought as much - but does it also mean a collision is more likely ?
 
btw, it will not cause to have more collisions
 
5:50 AM
was very cool.. i had always wondered how a computer (or a calculator for that matter) can figure out ((x+y)*(a*b)/[sin(y)])
now we are on Ackerman's function.. which is apparently designed to annoy CS students
 
ah okay
 
just because sha is longer than md5
so with very big probability each possible md5() has unique sha1()
 
anyway, if i had my way we would all be programming assembly.. but since I pushed control of the current universe...
 
assembler has its own niche indeed, but it is too expensive to use it in any task
 
@zerkms not even embedded systems ?
 
5:53 AM
but someone has to program the assembly right?
 
@alex: embedded is almost the main area of assembler applications iirc
 
console
 
what console?
gaming consoles?
 
yah
 
maybe NES days :)
 
5:54 AM
it is C(++) there
 
c# on xbox isnt it ?
 
and someone needs to get from C++ to microcode
or C#
tools programmers 4TW!
 
@alex: let's see what is there
 
btw, anyone remember the NES days ?
 
yah
 
5:55 AM
takes me back haha
anyone play mario bros on atari 2600 ?
 
dare i drop my link to the old v's of Compute magazine?
 
seems like it is c++ inside xbox
 
ahh okay
 
every month.. a new game.. you just had to type it in
 
i thought maybe some of it was c# (considering microsoft etc)_
 
5:56 AM
mario bros was never on 2600?
 
for c# is it .net need to be installed
also consoles have not as much resources as PCs have... so better handling -> better performance
 
MASM.. once you can actually push F11 and see each hex value load into registers and simultaneously watch main memory in the computer change as you step through your program... sooooo sexy
that is true power
 
yeah it was!
 
well, it still is
 
5:59 AM
 
yah this was my EC program: shellnotes.com/quinn/default.aspx
no restrictions
 

« first day (26 days earlier)      last day (3213 days later) »