« first day (393 days earlier)      last day (3614 days later) » 
00:00 - 19:0019:00 - 00:00

7:19 PM
0
Q: std::vector composition with self populating super-powers

StreppelI have written a deliberately pretty simple class that wraps a std::vector to basically make it capable of self-populate itself with random generated numbers, simply to be able to test the result of some sorting algorithms that I'm working on. This is only a hobby project, it is not production...

 
@skiwi A set of interview question hosted at a reliable place? Just look at bazang's question and all the JDQ's!
And I believe there has been reviewers who have actually interview people IRL.
 
@Jamal how do you render {theta} in MathJax?
 
@Mat'sMug I suppose you can find some relevant posts on Math SE and see how it's done.
 
true
\$\theta\$ - found the answer without leaving Code Review ;)
and you get a pretty funky message in the search results look when you're searching for "\$"
 
@SimonAndréForsberg I'll check that out later
 
7:31 PM
@Mat'sMug Code Review: The new Google
5
 
0
Q: Connected component analysis

Dzung NguyenI finished a program to do connected component analysis using union - find algorithm. Is it true that the complexity of the code is N logN where N is the total number of pixels( 512x512 by example, not 512). Is there anyway to improve the performance? import cv2 import numpy as np import random ...

 
@Jamal got this so far: \$similarity = cos(\theta) = \frac{A \times B}{\lVert A \lVert \lVert B \lVert} = \frac{\overset{n}{\underset{i=1}{\LARGE\Sigma}}A_i \times B_i}{}\$
this is my first MathJax formula, like, ever!
2
#hitthegroundrunning
Ha! got it!
\$similarity = cos(\theta) = \frac{A \times B}{\lVert A \lVert \lVert B \lVert} = \frac{\overset{n}{\underset{i=1}{\LARGE\Sigma}}A_i \times B_i}{\sqrt{ \overset{n}{\underset{i=1}{\LARGE\Sigma}}(A_i)^2} \times \sqrt{\underset{i=1}{\LARGE\Sigma}}(B_i)^2}\$
 
std::vector composition with self populating super-powers, I really like that title.
 
@Mat'sMug :O
 
0
Q: Slow data-processing and inefficient memory usage in .NET containers

CheslavI am writing a text classifier and in order to do so I need TF/IDF values per every word of my signle text. Then I need to use the cosine similarity: \$similarity = cos(\theta) = \frac{A \times B}{\lVert A \lVert \lVert B \lVert} = \frac{\overset{n}{\underset{i=1}{\LARGE\Sigma}}A_i \times B_i}{...

oh shit, it's wrong
 
7:45 PM
@skiwi I think I can smell a hot question.
 
@Jamal I can smell it as well.
 
(fixed it)
wow.. I can write MathJax!! :D
now if anyone knows how to make the font bigger, go right ahead!
one thing though, the A • B isn't right
 
@Mat'sMug Well, since dfrac makes frac bigger, try adding a d.
 
"the main method seems very very unoptimized"... which main method?Vogel612 23 secs ago
 
That question that you offer a bounty on and end up fixing yourself :/
 
7:51 PM
ah, it's \cdot I was looking for
@Jamal thanks, that worked - doesn't it look amazing now?!
:)
 
Yup. :-) I needs to learn me some MathJax someday.
 
I would delete this question, and re-ask it over on Code Review with all of the relevant code included in the question, not a link to it. If you fail to do that, I guarantee the question will be closed over there. — syb0rg 2 mins ago
Stumbled upon that post on my visit to SO.
 
perhaps we would catch more of those if we included the SO questions feed in this chatroom... should we try that?
2
 
you wanna snatch 'em all?
 
lol the more we're present on SO and recommend moving the proper stuff over here, the more people will understand what CR is all about
 
7:57 PM
@Mat'sMug We can raise that on Meta first. We may be opening ourselves to an influx of crap on chat as well.
 
right
 
sounds like a good plan ;)
 
but I get a feeling that most SO questions would contain working code and asking for a performance tune-up
 
We could also put that into a separate chatroom. Our two feeds here are enough, I think.
 
7 questions on SO in the last hour: stackoverflow.com/questions/tagged/…
or make it a ticker instead of having @CaptainObvious post them as chat messages
 
8:02 PM
0
Q: Possible optimizations for calculating squared euclidean distance

herrherrI need to do a few hundred million euclidean distance calculations every day in a Python project. Here is what I started out with: #!/usr/bin/python import numpy as np def euclidean_dist_square(x, y): diff = np.array(x) - np.array(y) return np.dot(diff, diff) This is quite fast and I...

 
@Mat'sMug I think you're better at MathJax now than I am, and I think that will increase the quality of your answers. That's not good... (for me)
 
@SimonAndréForsberg just knowing the names of some greek letters doesn't make me a better programmer than you are! ;)
2
 
If there's one thing that calc III has taught me, it's new Greek letters. :-)
3
 
@Mat'sMug But knowing MathJax often gives your posts extra attention!
 
My problem isn't MathJax, it's Math!
2
@Jamal I failed Calc I miserably
 
8:09 PM
Calc I was a walk in the park for me. Calc III was... wut. It was nice to get exposed to triple integrals.
 
I think I'd turn to stone if I were exposed to triple integrals
(AFK)
 
547
Q: MathJax basic tutorial and quick reference

MJD To see how any of the formulas were made in any question or answer, including this one, use the "edit" link to view the complete source. To quickly see the source of a single expression, right-click on it and choose "Show Math As > TeX Commands". (Note that in some browsers, such as Firefox, th...

3
It's a slow page, too.
 
8:23 PM
0
Q: A simple substitution cipher problem in Python 2

CypherThe code below shifts each letter of the plaintext message \$2\$ positions in the alphabet. Actually I am supposed to get the key from the user. Instead I just use a fixed key: \$2\$. The problem is this code doesn't loop back to beginning of the alphabet after the letters \$y\$ and \$z\$ or \$...

 
ugh. another first post review queue that I missed:
Welcome to Code Review! Nice answer, feel free to meet the site regulars in The 2nd Monitor anytime! — Mat's Mug 18 secs ago
it was in the first post review queue right?
 
Hm. There have strangely been many questions today missing a language tag.
 
i like it having tag:jquery and no tag:javascript :)
means i can ignore it
i guess the google-app-engine one should have it too
 
5
A: Greatest common divisor with one parameter and condition

Bill Dubuque$d\mid \color{#c00}{10x\!+\!6},\color{#0a0}{3x\!+\!1}\,\Rightarrow\,d\mid \overbrace{3(\color{#c00}{10x\!+\!6})-10(\color{#0a0}{3x\!+\!1})}^{\large {\rm eliminate}\ x}=8,\ $ so $\ d\mid 8,\,\ d>5\,\Rightarrow\,d = 8\ \ $ QED

Different colors!
 
8:41 PM
wow this is pretty interesting: sijinjoseph.com/programmer-competency-matrix
 
8:57 PM
^^^ "Thinks that Excel is a database"
3
 
Self-evaluation: I'm \$n^2\$ in Computer Science, \$n\$ in Software Engineering, \$n\$ and sometimes \$log(n)\$ in Programming, \$n^2\$ Experience, Knowledge ranges from \$2^n\$ to \$n\$.
 
@Mat'sMug That one came yesterday by aswell...
Oh, it's pinned, that explains :P
 
@kleinfreund I lol'd so loud
 
@Mat'sMug I forgot to write the results down, so I suppose I'm O(n), as I need to loop through everything again
 
just making rough averages, nothing scientific
 
9:03 PM
I'll make sure to redo it tomorrow and store it for future reference ;-)
 
@skiwi missed it yesterday ;)
 
Speaking of language tags, something's not right about , none of those questions are about what the tag wiki says. Pascal Script is a component / library that can be used in Delphi/Free-Pascal projects, it is not a big language in itself. They should probably be either , or
 
(afk)
 
TTGTB
 
Night @skiwi
 
9:05 PM
4-day weekend is over
 
7-day weekend will begin? :)
 
No... 5 days with stuff to do, though only wednesday fulltime work
 
Whoah.
 
Monkey surprised?
 
Do me a favor, and find a JavaFX (8) reviewer ;-)
 
9:07 PM
Yup, 800 something messages.,
2
 
800 something? Can't be right.
 
Hmmm ... codereview.stackechange.com works from my work laptop..... but not meta.
(work laptop is not same as other one.
 
@skiwi I'm considering becoming one. The only bad part is that I'm not sure what I should deploy with JavaFX, I'm quite addicted to GWT :)
In a git repo I have two three commits with the message "First commit" and one commit with the message "Initial commit"...
 
Hi all
Do any of you guys have Microsoft Access? I got two short lines of SQL code I'd like to test to help with a CR however I don't have access to MS Access at the moment :(
SELECT ('2013-07-23 7:00 AM') * 24, (('2013-07-23 7:00 AM') * 24) *60
Or if anyone knows, it looks like a conversion from DATETIME to FLOAT/REAL but I have no way of testing it
 
9:31 PM
I don't have access to MS Access right now..
wow @Jamal!
21
A: Is my solution to return kth row of the Pascal's triangle suitable for a job interview?

JamalFor one thing, the inconsistency with whitespace use and curly brace placing may demonstrate a lack of attention to detail. Before you attack the actual problem, make sure your code is written cleanly. This: for(int i=0;i<=rowIndex;i++) should use some whitespace: for (int i = 0; i <= row...

 
It's inconvenient that the Office suite for Mac comes with everything BUT MS Access. I think Micro$oft is very protective of their SQL.
 
@Phrancis the home edition presumes you don't need a desktop database..
 
@Mat'sMug Must've been the popularity of the question. :-) I don't usually get that many upvotes on a simple answer like this. Maybe someday I'll get [badge:good-answer] as well.
 
well that one ain't too far from it!
 
I think my wife's PC may have Access
 
9:36 PM
I thought I had it on my laptop... home edition
 
TTGTB, nighty night
 
about to run out of ammo, suggestions?
@SimonAndréForsberg 'night!
 
Bye @simo
Bah
 
10:01 PM
In Access if one has multiple Iif() functions in the same SELECT statement, does it have to do a full table scan for each Iif() ?
 
10
Q: Linked list of bunny objects

MarcanThe exercise is the bunny linked list exercise; the last beginner exercise from here. I'm looking for feedback on absolutely everything that could make me a better programmer: Syntax Optimization Form Functions or variables naming Bugs Performance Code structure Keep in mind that I haven't ...

Anyone interested in doing a linked list of unicorn objects? :P
 
Great. I got on Math.SE.
 
10:34 PM
Trip to the One Vote Short query =
 
11:09 PM
Anyone have time to look over my answer? It's MS Access SQL related. Thanks!
http://codereview.stackexchange.com/questions/28993/time-spent-by-product-in-process-represented-by-clockin-and-clock-out/52229#52229
 
0
Q: Second try at a python game

LuukVSo I posted this some time ago. Here is the new version that I made based on all the comments that were made. Another look and TIPs would be much appreciated. Especially on: -Getting rid of the global statements -I read about the use of the return statement which is bad practice in some situati...

 
@Phrancis Shouldn't that question be tagged with or some language tag?
 
Possibly, the OP chose to post only as
Feel free to add it since it is indeed SQL related
 
11:52 PM
@Phrancis - FYI:
SELECT ('2013-07-23 7:00 AM') as nomod ,
            (('2013-07-23 7:00 AM') + 1) as plus1 ,
            ('2013-07-23 7:00 AM') * 24 as times24,
            (('2013-07-23 7:00 AM') * 24) *60;
 
00:00 - 19:0019:00 - 00:00

« first day (393 days earlier)      last day (3614 days later) »