minitech

Canada

Age: 17

I read and write things on Twitter and have an empty website! If you don’t use code formatting for emphasis, we can probably be friends.

6h
awarded Great Answer
14h
revised The learn-c-the-hard-way tag just seems no good to me
It’s not code
14h
comment Haunted by KillerService.exe while attempting to get C# server & client programs to communicate (from same machine)
Are you sure addr is correct? Also, it’s probably cleaner to use the IPEndPoint constructor.
15h
answered Match last occuring enclosing outer brackets
15h
comment Match last occuring enclosing outer brackets
This only matches “(in this case) to match this last occurring bracket closure”.
15h
comment Match last occuring enclosing outer brackets
Unfortunately, .NET style does not work in [tag:javascript].
15h
comment Match last occuring enclosing outer brackets
How did you determine that regular expressions were more efficient? Did you try a different approach? Maybe it might be better to post that here and ask for help improving its efficiency.
15h
comment Match last occuring enclosing outer brackets
You can’t match arbitrarily deeply nested parentheses with regular expressions; sorry. Building a parser isn’t hard, though. To make sure: you’re trying to find the last parenthesized section in a string?
1d
comment Why does console.log outside "for" loop print out an "extra" number?
What do you expect it to print out? Anyway, the loop runs while x < 5, so when x becomes 5, it exits, but x is still 5 after that. If you’re wondering why x is still in scope at all, that’s because var-declared variables have function scope in JavaScript, rather than block scope.
1d
comment call of overloaded 'swap(char&, char&)' is ambiguous
@Cheersandhth.-Alf: n in reverse_array seems to indicate the index of the last element to swap (n--) rather than the size of the swapping area.
1d
comment How to JOIN two tables correctly?
Do you only want to select recipes for one user? Don’t use a join; it’s just SELECT * FROM recettes WHERE id_user = :user, then ->execute([':user' => $user_id]).
1d
answered call of overloaded 'swap(char&, char&)' is ambiguous
1d
comment call of overloaded 'swap(char&, char&)' is ambiguous
Compiles fine for me. Is your entire program?
1d
comment How to JOIN two tables correctly?
And what doesn’t work about that? Is there an error? Please include it if so, or the contents of your tables, the results you expect, and what you’re actually getting if not.
2d
awarded Enlightened
2d
awarded Nice Answer
2d
comment Matching a^n b^n c^n (for example “aaabbbccc”) using regular expressions in C#
@JeffMercado: The point is to determine what’s written in the question, I suppose: “How powerful is the modern regex in the hierarchy?”
2d
answered Matching a^n b^n c^n (for example “aaabbbccc”) using regular expressions in C#
Apr
23
comment Is it better to use try/catch or throw in java?
If you can’t handle the error usefully, don’t catch it in the first place.
Apr
23
reviewed Approve suggested edit on How to align cell content to top in responsive view
1 2 3 4 5