« first day (357 days earlier)      last day (3958 days later) » 

18:04
0
Q: Can XSS or anything else get through this?

The WobbuffetI coded a php chat that stores the text in a txt file and retrieves it, and I want to know if XSS can get past it or if someone can replace xhr.open("POST","uhh.php"); with something that contains the same php code but without htmlspecialchars or something like that. What are the vulnerabilities...

Jamalized within one minute!
1
Q: Field class used by my trading card game

skiwiAs many may know, I am developing a Trading Card Game for the Coding Challenge. I have just completed the Field class and have not used it in practice yet, so all theoretical and looking for a review. Using Java 8 and all custom classes will be included in this post as well, if you wish you can...

Yeah, I guess I could've just told you to add the tag within your grace period. :-/
@Jamal It's no problem, over-editing doesn't make it become a community wiki either way anymore, also I was searching on coding..., but no tags popped up, turns out it is
Which leads me to wonder if the tag is correctly worded... Is our code at the challenge, or are our coding skills at the challenge?
We are actually considering renaming it (technically, merging it with a new one):
9
Q: Rename [code-challenge] to something more site-specific

JamalIt seems that users are still using the code-challenge tag for challenge-oriented questions that do not correspond to the site's occasional voted-upon challenges. We already have the programming-challenge tag for off-site challenge programs, but it's understandable that the two tags sound simila...

I think would be best (hi!)
18:10
hi ...
@Mat'sMug Hi!
3
Q: Field class used by my trading card game

skiwiAs many may know, I am developing a Trading Card Game for the Coding Challenge. I have just completed the Field class and have not used it in practice yet, so all theoretical and looking for a review. Using Java 8 and all custom classes will be included in this post as well, if you wish you can...

I got a late accept, how nice was that.
2
I'm having an upvote ratio of 80% upvotes/views already.
18:11
I have a grand total of 0 lines of code written thus far
^^^^ reminds me of someone
@rolfl Oh, I dunno. The Lounge can be fun... :-)
@JerryCoffin - I have been lurking in Game Dev for a few weeks....
(long story.... don't ask).
But, it makes me value CR Chat a whole bunch
@rolfl lol. expand?
I also went there for a few days a bunch of weeks (or months?) ago, but it's just... different
18:15
@rolfl How was your Game Dev experience?
Woeking on my tact here:
Hi, and welcome to Code Review. Code-only answers are not generally a good idea on Code Review, because, well, they do not review the code, they just say, 'hey, this is the way I would do it'. If you can add some description as to why your code is an improvement, and what problems your code solves that the original code does not, then this would be a much better answer. — rolfl ♦ 1 min ago
It is, generally speaking impossible to add a method to a public interface without breaking all existing classes taht implement the interface. <- Lies! It's like Effective Java knows nothing about Java 8.
@rolfl good job; nice constructive comment :)
@SimonAndréForsberg - one thing.... this
ouch!
18:19
This user has been temporarily suspended by a moderator and cannot chat for 415 days., huh
He asked for it.
That's some long time
gives "temporary solution" a funny meaning
But, as it happens, I like it here....
and, I have learned some new skills, as a mod....
... including how to deal with more troubling situations.
Wow, he must have been acting horrible...
18:21
It was a lot of things that added up.... and when I say he asked for it, I mean he literally asked for it.
He wanted it to be as long as I could make it....
all I could do was that.... 416 days,
So... if I would ask you to ban me, you would?
^^ note the conditional ;)
I guess, yes.
@rolfl What's the shortest ban you can make?
If you asked me to delete your account, I would probably do that too.... (but disassociate your questions/answers first)
18:22
@SimonAndréForsberg don't play with fire.. it burns ;)
416... quite a seemingly random number...
@rolfl ok, ok... let's not continue on this path!!
@rolfl Can you actually get people banned from other chats then? :o
Yeah, the mod tool allows only 4 digits in the input field.... I could not be bothered trying to find a way around the javascript validation, so I used 9999 hours.
@skiwi All moderators on all SE sites are moderators for the entire chat system
I have put in a request with the site devs to increase the limit.
18:24
9999 hours makes it less random.
@SimonAndréForsberg Ah, that explains
Hopefully there's also server side validation behind the javascript validation...
@rolfl Speaking of getting in trouble... Do you think I can get in trouble by making about 100 HTTP requests to the SE system in a very short time? (using some code I'm writing)
All SE interfaces have rate-limiting systems...
And if you exceed that rate...?
You won't get in trouble (likely), but you will get throttled, perhaps blocked.
(for a bit).
18:27
OK, thanks.
Just to be safe, I think I'll add some sleeping time
The rate-limiting systems, as I have been reading things, are progressive, so, the rate gets less, and less, and less.... until you run out of things.
any news on what caused @StackExchange to temporarily turn into @CommandantFeederstein yesterday? Could the SE devs have been playing/messing with us?
interesting question....
@Mat'sMug :o So that's what was going on, I couldn't understand what the whole @CommandantFeederstein fuzz was about
@Mat'sMug As long as @CommandantFeederstein isn't an ex-famous dictator, I'm happy.
18:29
it had @StackExchange's user ID
It was certainly a moderator/site-dev thing.
I'll investigate a bit.
@Mat'sMug 326 rep yesterday, impressive...
yeah, tell that to my boss - work done: next-to-none
(thanks!)
ugh. I keep getting back this +1, find a bad answer for OCD voting, go back to an even rep score (yay OCD happy!), and then the bad answer gets deleted and I have to start all over again...
3
The trick is to accept two answers on your own questions.
2
(why do you think I ask questions ... ?
3
OCD asking? Why haven't I thought of that before!!
18:37
0
Q: Curious fractions in functional Ruby

TCSGradProblem 33 in Project Euler asks: The fraction 49/98 is a curious fraction, as an inexperienced mathematician in attempting to simplify it may incorrectly believe that 49/98 = 4/8, which is correct, is obtained by canceling the 9s. We shall consider fractions like, 30/50 = 3/5, to be...

Holy Mother of Stars!
The suspension period ends on Feb 1 '27 at 19:59.
wow.. the same kind of "temporary solution" we implement all day at work!
18:58
@SimonAndréForsberg Wasn't me
2
I wonder if I'll reach 2K profile views before May 1st...
-60
Q: Is it true that in Python you can import specific functions from a module unlike in PHP?

user2398036In PHP it is not possible to only get specific functions from an included file. I would usually create five different include files and each would have like 5-6 functions in it. This way, it would be faster. But I hear and see examples on Google where it seems like in Python you can do something...

@skiwi what user are we talking about here?
@Malachi I know, you will see soon what I'm talking about :)
@Mat'sMug that user is a dick
19:04
was
;)
gone now, 'till 2027!
@Mat'sMug I like that
Unless Osama bin Laden rises from the grave first.
91
Q: Suspension till 2027

nicael This account is temporarily suspended for rule violations. The suspension period ends on Feb 1 '27 at 19:59. Er... What?! Till 1 feb 2027?! This is user2398036. Depending on the severity of the problem behavior — and at the complete discretion of the moderator — your account will be ...

@rolfl ▲▲▲
sorry
I need 5 more rep on SuperUser to be able to nominate myself for moderator
0
Q: We'll be counting stars

Simon André ForsbergLately, I've been, I've been losing sleep Dreaming about the things that we could be But baby, I've been, I've been praying hard, Said, no more counting dollars We'll be counting stars, yeah we'll be counting stars (One Republic - Counting Stars) The 2nd Monitor is known to be a quite star-happy...

^^ That is why I said "Holy Mother of Stars" before
[tag:beautiful-soup]
That reminds me... I need to go eat breakfast (during lunchtime).
19:16
lol @ ('The Mug with many names', 2096) (Mat's Mug, retailcoder and lol.upvote is the same user)
2
@Jamal That's the name of a Python library I used, has been used in some other questions before, not sure if it should have a tag or not, perhaps should be used there...
@SimonAndréForsberg I wonder if that list should be shortened since it's taking up a lot of space. Perhaps start it at 50 or 100.
@Mat'sMug You didn't beat the monkey though!
@SimonAndréForsberg I predict this will be a hot question in the near future. Nice title!
@Jamal Agreed. Jamalized myself.
@Mat'sMug Thanks, I'm hoping for it :) We'll see...
19:19
nice one there @SimonAndréForsberg
I'm quite high up on the list :o
@Malachi - I'm curious, I have looked at your superuser profile, and the conversations you had on the election chat, etc. Do you really think you have a chance of getting elected (if you get nominated)?
4
Q: We'll be counting stars

Simon André ForsbergLately, I've been, I've been losing sleep Dreaming about the things that we could be But baby, I've been, I've been praying hard, Said, no more counting dollars We'll be counting stars, yeah we'll be counting stars (One Republic - Counting Stars) The 2nd Monitor is known to be a quite star-happy...

0
Q: How to sync jQuery functions in different website states? ( Desktop, Mobile Portrait and Mobile Landscape )

Farhoud ZolhayatI have three main jQuery functions that each of them contains another two functions which are called upon user click on a specific div tag, each of the three main functions are for a different CSS media-query state, one for the Desktop state, one for the Mobile portrait state and the last one for...

@Mat'sMug Such things should be comments IMO. Rejected. I consider it an attempt to reply to or comment on the existing post.
19:21
@SimonAndréForsberg - can you filter out 'lol' chat messages?
that was my initial thought
@rolfl that unfairly filters out anything @lol.upvote said or was told ;)
exacty ... ;-P
(does it?)
@rolfl Filter out or filter in? (Exclude them, or count them only?) Anyways, that is exactly one of the reasons I've stored the HTML data.
Either ... the autostar meme is a strong bias ...
19:22
@Mat'sMug It'd be easy to filter on messages which are more or less only "lol"
(and I think I have just one, maybe 2 chat messages like that... ...
mpffff... we'll see that!
@rolfl We'll have to see about that! Challenge accepted.
Just gotta learn to actually read a file in python... so far I've only saved them :)
Regardless, that's a cool script .... but, you realize it should be normalized byt the number of actual chat messages for the person.
19:27
Or by the amount of time the person has been participating in the chat (start date for ex)
@Jamal FYI, I removed the tag you added on my post. See my edit message here: codereview.stackexchange.com/posts/48258/revisions
@Mat'sMug I count three messages
yeah... well that doesn't surprise me, @monkey started the lol-starring thing ;)
(regret it now?)
0
Q: Calling a function from a dynamically loaded DLL (version 2)

peprPlease, have a look at the previous (bad) implementation and the review here. After reading the suggested article at HowTo: Export C++ classes from a DLL, I have decided to use a plain C function approach. However, I want to use C++ code inside the DLL later. Anyway, the exported one will be a p...

0
Q: Caliburn Micro communication between list and edit viewmodels

ericpapI'm new at Caliburn Micro and MVVM pattern. I create 3 views (with its corresponding viewmodels) AppView ClientsView EditClientView AppView is my main page with a tabcontrol inside. Child views (WPF UserControls) are loaded in new tabs. So from ClientsView i have a grid with filt...

@rolfl Well, yeah, I've been considering that. I'd like to make more features later (s are welcome!) I just realized now that I could actually see the number of chat messages someone has posted without actually reading through the entire chat history...
I have to say that Python wasn't as bad as I expected it to be, I'm quite sure I've only scratched the surface of it so far though.
The worst part about Python has been the lack of a decent IDE and JavaDoc for the classes :)
"My god, it's full of stars!" -- Commander Dave Bowman
19:39
Do we need ? It was created with this question:
7
Q: Should I return objects from private methods?

dwjohnstonI have a private method that is called from the constructor to instantiate a bunch of objects. I can do it two ways. private Monster[,] createMonsters() { Monster[,] myMonsterArray = new Monster[8, 6]; for (int i = 0; i < 8; i++) { myMonsterArray[0, ...

@SimonAndréForsberg I now use Python for all the sort of one-off script tasks that I used to use Perl to solve.
@Jamal I'd say only if a question consists solely of a private class, which would be... weird
when in doubt, burninate
@SimonAndréForsberg ... for the record ... It appears you have too much time on your hands .... ;-)
@Edward From what I've heard about Perl, I can understand why.
19:40
@Jamal No, [private] is not likely to be a useful tag.
@Edward A massive improvement, I'd say.
kill ....
@SimonAndréForsberg Yes. Perl has something of a reputation as a "read only" language.
@rolfl Am I the only on in favor of Saving Ryan? :-)
4
@rolfl Learning something new is an indication to have too much time on my hands?
19:42
Yeah, we can kill it. If we had that, we might as well have . It would fall under or .
well, counting stars, and linking in lyrics, and, well, no, this is time well spent, I retract my earlier comment.
2
@rolfl I don't know. some of the people I talk to are kind of rude over there, I don't know that I would fit in
@Malachi If you need help being rude, perhaps I can help. :)
@Edward lol. I just need to pretend they are people I don't like, right?
19:44
@Malachi Why pretend? :)
Aaah! My C# tag score is 666!
2
You just need to develop a casual misanthropy.
I always suspect that C# was a tool of Satan.
19:46
@Mat'sMug My score ends in 69. Yay?
4
@Edward No, I believe that's PHP.
@SimonAndréForsberg I stand corrected.
@Jamal ^^^^ don't think I can say what I want to.....
@rolfl I think I would do a good job for the most part.
@rolfl Yeah, there may be kids watching in here. :-P
19:48
I am addicted to this whole stack exchange thing (actually programming and almost anything having to do with computers and trouble shoooting them)
@Jamal I guess we're just overly object oriented here. I should see a shrink.
@Malachi - that may be true, but you need to have a 'presence' in the community ....
@Edward We really do talk a lot about (p)oop in here.
@rolfl I am trying to remedy that. but I don't think there is very much repeat traffic on that site
I think it's rather nice.
19:53
napalm'd
Grazie.
I earned yearling on Meta StackOverflow...lol
meh, I wish you all the best, but I don't think you will make a good impression ramping up your activity on SU just to get nomination credentials.... they are looking for long-term commitment to continue, not for someone just starting up.
also, you'll be cgoing up against some serious contenders.... that have a huge presence already
thanks @Santa!
@rolfl yeah I figured that much. I haven't been putting much into it other than finding the occasional question and seeing what I can come up with for an answer
19:58
thanks @Santa!
2
right now I want a motorcycle more than to be a moderator on Super User
@Malachi I was just driving around in a convertible a few minutes ago. Glorious weather for it here today.
You NEED a motorcycle. :)
snowed this morning .... again.
not convertible weather .... yet
@Edward where do you live?? wait let me look at your profile
North Carolina huh, I live in South Dakota, Nice here but really windy
@Malachi ...and I don't want to die, I just want to ride on my motorcy........cle. [guaranteed worthless Internet kudos to the first person to properly ID.]
20:00
@JerryCoffin Arlo Guthrie
@Edward Not sure why, but I somehow figured you might be the one to come up with an answer on that. Kudos! :-)
I can't wait cash in my guaranteed worthless internet kudos.
@Edward it stacks onto your StackExchange Rep
OOOHhhh!
I just got a second Yearling badge on Meta StackOverflow....
20:03
@Malachi Now wait a minute. I certainly didn't promise I was going to do all the work of clicking on an up-arrow!
okay...?
@Malachi Pretty impressive to have been a member for two years of a site that's only existed for less than two weeks.
2
@JerryCoffin Maybe I could cash 'em in for a .. pickle.
2
@JerryCoffin IKR
@Edward Or maybe for a cop who was about 5 feet tall, but used to be about six foot four before a crazy, motorcycle-riding hippie dude landed on him?
20:05
I have only visited 1 day but I have the Yearling badge twice. they must be trying to sync all the badges and stuff
howdy
In case anybody cares about the nonsense Edward and I have been spouting:
@janos hello
hi @Malachi
@JerryCoffin Although to be clear, that only covers the last five minutes of nonsense. Before that, well, you're on your own.
20:13
@Edward Well, yes. I doubt there's any longer even a record of all the nonsense we've spouted at each other over the years...
@JerryCoffin One can only hope.
@Edward I believe there are still copies of the old 80xxx snippets to be found, for anybody who bothered to look a little. :-)
@JerryCoffin Just checked and .... OMG! Simtel's down!
@Edward You could propose Kudos SE. :P
A colleague recently explained a "new" idea and I remarked, "Congratulations, you've re-invented gopher."
He had to look it up.
20:28
hey dere
can anyone help me with pointers?
They are killing me atm
@DarkMirror We can't have that! What's the problem?
ok so i have 2D arrays of pointers
and i am assigning the memory address to a variable
an di don't know how to
what language? C? C++? Pascal?
Hmm. A bit of code would help us understand. Can you show a few lines?
20:32
oh sure
void addOneRandom(Block ***block)
{
Block *zeroblocks[16];
int count = 0;

for (int i = 0; i < MAX_BLOCKS; ++i)
{
for (int x = 0; x<MAX_BLOCKS; ++x)
{
if (block[i][x]->getScore() == 0)
{
zeroblocks[i] = block[i][x];
count++;
}
}
}
int index = randomBetween(0, count);
zeroblocks[0]->setRandom();
}
it's supposed to be zeroblocks[index]
anyway, the debugger says that Unable to Access memory. something must be wrong
Block ***block is a lot of pointers. Can you show an example of how this is called?
Oh yea
@DarkMirror Maybe it would be best to back up. Why do you have a 2D array of pointers? That sounds somewhat suspect all by itself.
i know i am a freshman at college and I don't even know what I am doing anymore
I am at halfway though
I don't want to restart everything
Block ***blocks;
blocks = new Block** [MAX_BLOCKS];

//Create the rows and draw the pieces
for (int i = 0; i < MAX_BLOCKS; ++i)
{
blocks[i] = new Block*[MAX_BLOCKS]; //Create the rows

for (int x = 0; x<MAX_BLOCKS; ++x)
{
blocks[i][x] = new Block(); //Create the cols
blocks[i][x]->setSize(WIDTH / 8);
blocks[i][x]->setRandom();
blocks[i][x]->setXY(BLOCK_WIDTH + x*(BLOCK_WIDTH * 2), BLOCK_WIDTH + i*(BLOCK_WIDTH * 2));
}
}
i am passing that blocks to the addOneRandom(Block ***blocks)
and setting a value to the block that has zero as score
Is this for an assignment (requiring you to use raw pointers)?
20:37
No, this is my final project
Ah
I've never even seen triple pointers before.
well, I was using 1D array of poiters
and I decided to use 2 D coz it would make my procedure a lot easiers
Are you free to use anything in this project (standard library, for instance), or are you stuck with pointers?
@DarkMirror Looks to me like you have a need for some kind of collection of Block objects and that you want to address them as though they were a 2D matrix. Is that correct?
^kind of. But I want to store the memory address of those blocks with 0 score in a 1d array. So then, I can easily change the scores of those zero scored blocks to a random score.
20:42
@DarkMirror Are you familiar with std::vector and std::array?
Like this?
^I do, but I can't use them and it's too late
T.T
so here is what I am thinking
@DarkMirror This starts to sound a bit like a sparse matrix, with the possibility of defining a value (or function) to fill in the otherwise-empty parts.
Of course you can't (not blaming you at all)...
it's due in 2 days...
anyway,
here is what I am thinking
Block **zeroblocks[16];
zeroblocks[16] = blocks[x][y];
It's saying that A value of Block* can't be assigned to Block**
It seems to me that you may have one too many * in much of the code.
20:47
i know this is so sad
I don't know what to do anymore.. now what I have to do is randomize the address of the block[x][y]
i mean indices
For instance, if you have `blocks = new Block** [MAX_BLOCKS];` it seems very likely that what you really want is just `blocks = new Block* [MAX_BLOCKS];` In other words, you don't really need pointers to pointers to pointers.

`
x and y
Assuming you know the dimensions of this collection, you could use block[x*rows+y] and simplify your life and the code.
In other words, revert to a linear collection.
oh ok
I know the size
it's 16 max
for 1 D
Is your collection of Blocks in some kind of named object?
20:52
oh wait
Block **zeroblocks = new Block*[16];
that is making it work
nvm
it says Access violation writing location 0x00430045.
lol
2
@DarkMirror OK, but do you realize that only gives you 16 new Block pointers, pointing to nothing?`
@DarkMirror If you know the size ahead of time, I'd start with an array of the right size, and avoid (most use of) pointers altogether.
9
A: dynamical two dimension array according to input

Jerry CoffinA vector<vector<int> > (note the space in the > >) can work well, but it's not necessarily the most efficient way to do things. Another that can work quite nicely is a wrapper around a single vector, that keeps track of the "shape" of the matrix being represented, and provides a function or overl...

awesome
so i have to keep track of both x an dy?
Note that here I'm pointing mostly at the first matrix class. The matrix3 uses pretty tricky code just to maintain the normal matrix[x][y][z] indexing syntax.
0
Q: Is my first MVC architecture set up to standards?

Kid DiamondI just started learning about the MVC architecture. And I started to create my own MVC framework to how I like it the most. Here I've got the index.php, indexcontroller.php and view.php. I'm not too sure if what I am doing is right, or with best practices. So I would like to know if there is any...

20:59
hmm thanks for the help guys
I am soooooo noob at this
Thanks for the SO vote Santa! :-)
@DarkMirror We're all noobs once!
No one has ever starred one of my "lol" messages!
The number of lol messages starred is as follows: (number of stars does not count, only number of messages where stars > 0)
('rolfl', 3)
('Vogel612', 3)
('BenVlodgi', 3)
('davidkennedy85', 3)
('retailcoder', 6)
('lol.upvote', 6)
('syb0rg', 6)
('Corbin', 7)
('nhgrif', 8)
('Malachi', 21)
("Mat's Mug", 30)
('Jamal', 50)
2
0
Q: Sequential Animation function not working properly

Farhoud ZolhayatThis question is a complementary for this one After testing the solution by Joseph the Dreamer I found out that the function operates properly for this markup: <div class="AboutSectionWrapper"> <div class="Selector" id="AboutWrapper"></div> <div class="Selector" id="DesignerWrapper"></div>

@StackExchange Please ban "not working" from titles
2
21:07
Apparently my lols are extra special.
@SimonAndréForsberg Or more like putting it in the close queue instantly.
@SimonAndréForsberg Pretty sure I also starred lol messages
and well, there's still not working properly... @Jamal
@skiwi the follow on question will be about still not working properly
@SimonAndréForsberg LOL
@SimonAndréForsberg does this count if I lol a specific message as in a reply?
@Malachi I count messages with > 10 chars and containing "lol". From what I've seen so far, there's been no 'lol in reply' messages.
But then again, I just realized I am checking case sensetive...
@SimonAndréForsberg isn't there a way that if that phrase shows up in the title it gives the user a message telling them that the phrase is not allowed and why?? @Jamal
21:17
@Jamal Sorry I messed up there, I meant not working optimally
@Malachi Yes, and the community team has already added some filters to out titles. This particular one wasn't done, but it may not be necessary. At least it makes it easier to cast close votes.
@SimonAndréForsberg I know! Use a regex!!
@Mat'sMug Now I have two problems.
A simple message.lower() to the rescue
@Jamal I think that the goal is having less questions that need to be closed, rather than make it easier to close questions.
And to do that, everyone would need to start reading the Help Center before joining this site, but that may never happen.
21:22
@Jamal I am saying that if there is something that tells them when they try to input " something isn't working " or something to that effect, that it is not on topic for this site and points them at the help page it would bring the quality of content up on the site, by not having questions that need to be closed. it would stop arguments about people's questions where they are getting closed. etc
21:44
2
Q: Breaking of a sentence

bazang(Method signature is given with parameters) Try to visualize me writing this code at an interview, and please be brutal while judging it. Problem: Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return...

1
Q: Optimizing simple xHTML parser

DeepsyI'm writing a simple xHTML parser which parses a data without nested tags. Example input code will look like: <h2>Header</h2> <p> atsatat </p> <h2>asdsaad</2><p>s32532235</p> I've wrote the following code: #include <node.h> #include <vector> #include <string> #include <sstream> #include <io...

21:58
I've answered the second question here already.
@Edward You also answered to the last two questions I answered.
But since your answers are good, I'm forced to upvote them.
@Morwenn I usually upvote your answers for the same reason. I think we likely look at the same types of questions.
C/C++...
Yep. I try to avoid C# and PHP.
I don't try to avoid them, but I would be unable to review them.
22:01
I also comment on some Python, Perl and assembly language questions.
If there's ever a Forth question, I'm ready. :)
I sometimes answer/comment Python questions too.
And there seem to be enough Java folks around that I just let those go by.
I have some knowledge in Java, but as you say, there already enough "experts" here :p
Is this question on-topic?
0
Q: How to sync jQuery functions in different website states? ( Desktop, Mobile Portrait and Mobile Landscape )

Farhoud ZolhayatI have three main jQuery functions that each of them contains another two functions which are called upon user click on a specific div tag, each of the three main functions are for a different CSS media-query state, one for the Desktop state, one for the Mobile portrait state and the last one for...

@SimonAndréForsberg I think it's marginal. It's kind of long for SO, and it's working code that just happens to be missing a feature.
That said, I think I'd answer "no" and that it should be migrated to SO.
@Morwenn: I liked your parallel Sieve of Eratosthenes question. It was good fun to think about.
22:08
@Edward I thought of posting a 3rd version, but it's not ready :p
@Morwenn Did you find anything that you could use in the paper I mentioned?
@Edward To tell the truth, I did not read it completely. I was trying to program in C++ some functions from the functional module from the D programming language standard library.
*(ptr+1) is the same thing as ptr[1], right?
There were some heavy & ugly templates there to make the functions work with lambda function.
@Jamal I think so.
It's been a while since I've done pointer arithmetic.
22:12
Same here. I always manage to avoid pointers.
@Morwenn D is a language I keep thinking I should investigate but haven't gotten to it yet. I'd be afraid that I'd muddle the semantics between that and C++ and C.
@Jamal Yes, they're the same.
@Edward I think that D has some interesting ideas but that it somehow tried to put too many things in the language at once. I'm not sure of what I think of it.
Assuming we're talking about C or C++ in the pointer question.
@Edward In the xHTML parser question? The OP says he's new to C++, and he does (obviously) use some of its features. There's just a mix of C stuff, such as char*.
22:17
@Jamal Yes, I looked at it briefly and decided that I'd be better off attending to my gin and tonic instead.
It seemed like a rather artificial problem -- xHTML without nested tags? Where does one actually encounter such stuff in the real world?
He does also want some suggestions on the algorithm.
@Jamal I might look at it again. At first glance it's not bad C++.
At least he didn't write using namespace std;
2
He did still use using, but not using one for std is a great start. Other than that, there were just a few kinks.
I don't know NodeJS, but I presume that's the source of <node.h> and namespace v8
@Morwenn is that you?
22:26
@Malachi It is :)
@Morwenn you don't look as creepy in that picture as you do in your profile picture avatar.
@Malachi I still don't see what's creepy about my avatar :(
@Morwenn You're going to take that from a green toothy monster?
@Edward Is there even a node.h? Since it's .h, it's either from C or it's one of the OP's own headers.
@Morwenn when it is itty bitty in chat it is hard to see, when you blow it up a little on the profile page it doesn't look so bad
22:28
@Jamal No, it could still be C++ but from some other library.
@Edward I never tried to understand what Malachi's avatar actually represented.
@Edward I was hesitant about it, so I didn't say anything about it.
@Morwenn It's from a game called Plants Vs. Zombies.
@Morwenn I assumed his avatar was realistic self portrait. Just like mine.
4
Is yours a transistor?
NPN
the best kind
22:30
@Jamal I couldn't recognize :/
And Jerry should probably change his to a coffin. :P
xD
J'ai ri.
@Jamal Thanks for the suggestion, but I think I'll pass. Seems like it would be pretty morbid.
I guess that rules out a dead wasp in a coffin. lol
I realized that one of the only things I review is the "modern C++ style" of the questions. I seem to be hopeless when the question deals with an algorithm...
22:41
^ this
@Morwenn I like both algorithm and style questions if the question is clear and the code correct.
So is the false image of the tag system, seeing as I have the bronze tag badge...
@Edward emacs is better! Oh wait, wrong meaningless comparison. MOSFETS are better! :-)
@JerryCoffin For the xHTML question, I was like "too many pointers, I don't want to review that".
@JerryCoffin That's the spirit! (but I'm still an unrepentant vi guy)
2
22:45
hey guys I made it to Nomination Rep
Not bad.
@Edward "Repent, for this is the editor The Lord hath made!" Unfortunately, the stone tablet was broken right below that, so I never did find the one true answer.
3
I probably won't get elected, but it will be fun to stir the pot
@JerryCoffin I found this broken tablet once.... the top part was missing, but it said "Moolenaar FTW!!!" ... never understood why, till now.

« first day (357 days earlier)      last day (3958 days later) »