« first day (818 days earlier)      last day (4124 days later) » 

11:00 PM
I present to you: THE UGLY XML NODE EVER: <xsl:text>&lt;p&gt;&lt;b&gt;Features&lt;/b&gt;&lt;ul&gt;</xsl:text>
 
Eve
It's not so ugly.
"t;p" is a winking guy with a nice hat.
 
anyone know much about generics in C (not C#)
 
@StuartBlackler yep!
well, there's no such thing
 
Is it as easy as in C#?
 
11:05 PM
do you mean C++?
C does not have generics
 
nope pure C
hmm
 
pure C does not have generics.
what are you trying to do?
 
nothing yet. I am thinking about using C for my dissertation in a week or so's time
just figuring if what I want to do is possible
 
@StuartBlackler don't think "I want to use language X to solve Y", think "what is the best tool to solve Y?"
what is the problem you're trying to solve?
 
well, I am going to attempt to build a recommendation service
for example, take a question that you answer and suggest other questions that you might like to answer
 
11:09 PM
hmm. any reason you want to use C for that?
 
but I want to make it generic in the sense that it doesn't have to be text that you are recommending
 
sounds like something that string matching would be useful for. strings in C are a huge pain in the ass
 
PropertyInfo pi = (some property)
pi.GetCustomAttributes(true);

this only get attributes from inherited classes. how do i get attributes from implemented interfaces?
 
ok, so why not do it in C# and make the "score" for each recommendation based on an interface that could be strings, text, whatever?
 
i could write it in C# quiet easily, but I was thinking of making it more of a challenge as I want a better overall mark
 
thats effectively what the algorithms do
 
place your bets ladies and germs
 
provide a score
bet me all
 
I'm about to update the leaderboard
 
Eve
What is the leaderboard?
 
11:11 PM
:O
 
@StuartBlackler it's better to use the best tool available, rather than making it difficult on yourself. If I was a (sensible) professor, I would rather you provide me with an efficient, readable solution than some C garbage that is impossible to read or maintain
 
@Pheonixblade9 thanks
 
Eve
@KyleTrauberman Nice code eve.cx/paste/xLf8CFz5.txt
 
@SteveKonves np.
 
11:13 PM
@Pheonix I must admit I am just researching it tonight. It would be a heck of a lot easier in C# but I am not sure about the performance of C#. I really do not want to go into writing IL in order to get better perf
 
@StuartBlackler doing something like that in C just doesn't make much sense to me... why reinvent the wheel?
@StuartBlackler why are you concerned about performance?
is this going to be a superscalar solution?
 
@Pheonixblade9 because the audience is large websites aka SO
 
rather, what are you concerned about performance wise?
C is going to be no faster than C# at reading databases.
 
I wont be reading databases, pure putting x inputs through algorithm y and returning a score
 
oh shit I'm only 1 star behind @rlemon now
 
11:15 PM
its done
FUCK YOU @BILLDR
 
@StuartBlackler if the audience is SO, you WILL be reading from databases.
 
160 stars ahead of me
jerk
 
oh shit I'm only 0 stars behind @rlemon now
 
@Pheonixblade9 then plan was something like: Read from DB in c# > Pass to processing engine (this is the bit I am focusing on researching at the mo and needs to be fast) > send results back to C#
 
Ell
Hi guys
 
11:16 PM
@StuartBlackler your efficiency loss from interop is likely to be much higher than your performance gains from using C.
oh shit I'm 1 star ahead of @rlemon now
quick @KyleTrauberman recalculate it!
 
@eve its sloppy code, so just refresh and that will go away
 
Eve
It's okay, wasn't criticizing. And I figured as much.
 
@Pheonixblade9 done
 
@KyleTrauberman you rock!
 
11:18 PM
6	Pheonixblade9	2 @KyleTrauberman THEY GONNA PUT A TUBE UP HER BUTT?	 209	 122	 1.71
solid.
 
@kyle is this link broken for you? goo.gl/u3lDk (the one in the room description)
A database error has occurred. Did you forget to run maintenance/update.php after upgrading...
 
yes
I gotta figure that out
I'm not a mediawiki guru
 
A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('csharpmediawiki:messages:en:lock','˴2�\0','20130111231843')
Function: SqlBagOStuff::set
Error: 1142 INSERT command denied to user 'b901c3f0c8ad28'@'168.62.48.92' for table 'objectcache' (us-cdbr-azure-east-a.cloudapp.net)
GRANT INSERT on dbo.objectcache AS DBO
 
I think i just need to verify the user permissions on the db
its a mysql db
 
11:19 PM
not hosted by azure, but by a partner
 
Did you know? Harry Styles is having a song written about him. For free.
 
jesus, I always end up filling up the leaderboard
why does the phrase "heh heh" seem so much more menacing than "hehe"
 
@Pheonixblade9 good point about the interop, forgot that bit.
 
I have no idea, heh heh.
Image not found
 
there ya go.
 
11:23 PM
hi
every1 :P
 
hey @Patryk
 
'Oly 'uck!
 
@StuartBlackler yeah, introducing interop into a program should only be done for very good reasons.
 
java > c# or c# < java ? I've got to chose one of em in my school
:D
 
has anyone used NetMsmqBindings outside of WCF before??
 
@Patryk you may have come to a biased room.
 
Also, your expression evaluates to false.
 
@StuartBlackler yeah, we use MSMQ here all the time.
 
@JohanLarsson Wall of code, I'm not in that mood right now.
 
11:25 PM
xD
 
You troll :P
"Flip a coin. Heads I win, tails you lose."
 
@KendallFrey yeah it is ugly, the results are in comments. Also the separate tests are not that huge
 
Asking "what is better, C# or Java?" in a C# room is like asking people's opinions of gay marriage in San Francisco
 
:D:D
 
ill start with the problem first this time. The system I described earlier, I might want to make into a distributed system so that it doesn't matter if a node goes offline, the others can continue working. Much like an ad-hoc network. What would be my best approach? Short answers are fine, im happy to do the research, just not sure where to research
 
11:28 PM
well, I've already chosen java
so i wanted to make sure
my decision was OK
c#!*
 
@StuartBlackler well, if you want it to be distributed, you have a few options. You could go simpler with Java/Hadoop. Or you could use a language with built-in messaging systems like Erlang/Go/Scala
 
may I ask here simple quetion about graphs ?:P I dunno where else could I ask
 
@Patryk NO!
...okay, what's the question?
 
well, let's say theres a graph with 2 nodes (1) ---weight:3----> (2)
directed graph :P
 
@Pheonixblade9 thanks. Brings back the whole interop thing again. IE: is it worth it. What is MSMQ like to work with?
 
11:32 PM
I dont know what is the state in such graph
'state'
graph's state
 
MSMQ is great. Just gotta remember that your messages are data-limited to ~2MB
@Patryk ok...
 
@Pheonixblade9 by default aye, pretty sure you can get around it, it's just fiddly
 
@RobWhite you can get around it, but it's a bad idea.
 
Been looking more at RabbitMQ for a project, might see what it's like in comparison but I'm looking forward to it more than MSMQ
The 2mb limit hasn't been a problem for the things we've done with it so far so I've been aware of the workarounds but not had to try them yet
 
Well, it's a limit for a reason. Your messages should be instructions, not data transmission.
 
11:37 PM
It might look that I'm fooling arround but honestly, I've wasted like 3 days trying to understand one algorithm I've found on the net concerning finding fastest path (Dijkstra) with the additional condition. I couldnt find nowhere what do 'state' in graph means. If any of you guys know, please let me know about it :P
 
Going to try to get some rest...potentially very busy weekend ahead for out-of-work projects...fun but busy
 
@Patryk state just means where your node pointer is.
 
@Pheonixblade9 aye fair point
 
two "shortest path" algoriths I implemented in C#
both got an A, so they're probably correct
 
Handling system that was left behind by others though who have used it for data transmission in a sense, such as queuing database entries
pain in the backside
Nonetheless, it works and there have been more important things to worry about...like the things that don't work
 
11:40 PM
@Patryk does my code help at all?
 
@Pheonixblade9, thank you
well, theres a problem with my algo
 
you can post it here if you like.
 
I mean, theres additional condition
6
Q: Will Dijkstra's algorithm work when there are more than 1 direct connections in an undirected graph

PatrykI'm wondering, if Dijkstra's algorithm will work properly when there is more than one direct connection in an undirected graph. E.g.: I want to use Dijkstra to find the fastest path but, there's an additional condition. Sum of all additional_data on the edges can't be >= x. So, if it came out...

I've even setted up 250 bounty for the answer
but I dont get any :P
 
@Patryk no, there can only be one edge in an MST, otherwise it won't work. What you could do is make a copy of the node with 0 cost between them
 
yeah :P
 
11:44 PM
do you know what I mean?
 
tbh, I dont and I've got headache now
sorry :P
 
I answered your question
 
thank you
 
0
A: Finding fastest path at additional condition

Pheonixblade9You could make a copy of the node with 0 cost between them that adds the 2nd possible path. Like so (pseudocode) Node 1____ | | |path1 | |cost=3 |path2 cost=5 | | Node 2____/ becomes this: Node 1____cost=0____Node 1a | path 1a | |path1 |path2 |...

 
but how could that help
in finding fastest path with additional condition? :P
 
11:49 PM
because then you will not have multiple paths between a single node.
 
guys answered me on that, that It doesnt matter anymore wheter there are few edges between 2 vertexs
what matters, is the additional condition
 
@Patryk hmm. You could use a genetic variant of djikstra's where it uses different starting points until it finds the best possible solution
that's not super efficient, though
 
i'm late on the star conversation...
but I kick ass in the js room. update that @KyleTrauberman
 
@rlemon I DEFEAT YOU
 
I've found the answer on community.topcoder.com/…
 
'Upper-Intermediate' acapite
however, I'm too stupid to understand that xD
 
lol
so
you have min[i][j]
your are building a list of nodes, right?
 
yeah
at the very begining of my program
i have class node
and class vertice
 
so j just keeps track of the money you'd have left at the point if you traversed to that point from the start point
 
so every node has few vertices
well I'm doing
 
11:56 PM
@Patryk There is no such thing as a vertice?
 
edge
i ment
 
"vertex"
I R PDNTC
 
Pheonxibla
my program can even work
when there is like 100 or 200 limit
but when I put there 100000 limit
 
@Patryk can you paste your program? gist.github.com
 
it freezes, because (in my opinion) it keep on tracking same routes
sure, just need to get on 2nd pc :P brb then
 
11:58 PM
you mean 100 or 200 nodes? or 100 or 200 limit
 
limit
when there is small limit
 
Eve
Hmm, I was thinking...
19
Q: How to determine if a type implements an interface with C# reflection

Yippie-Ki-YayDoes reflection in C# offer a way to determine if some given System.Type type models some interface? public interface IMyInterface {} public class MyType : IMyInterface {} // should yield 'true' typeof(MyType)./* ????? */MODELS_INTERFACE(IMyInterface);

 
paths are not long, but when there is a very big limit, my program is checking paths 1->2->3->1->2->3......1->2->3-> etc :P
 
Eve
Oh never mind.
 

« first day (818 days earlier)      last day (4124 days later) »