« first day (941 days earlier)      last day (3090 days later) » 

8:00 PM
comments deleted
 
gah, thanks
 
0
Q: (Coding convention) Initialize 3 different data structures in the same static block or separately?

JimWhen we have a class that has e.g.3 static final members datastructures e.g. hashmaps. What is the best convention? Declare all 3 in the same section and initialize all of them in the same (one) static block? Or declare the first followed by a static block that initializes the hashmap and then...

 
huh, interesting
7
Q: I don't think the votes on my answer are merited

Tom VI assisted somebody with a problem in a chat session that went a lot further than just the question and I don't think my answer to the original question is all that great. The OP went on and asked his friends in an unrelated (other SE site) chat room to up vote my answer, doubling the vote count...

I'm the "somebody" in question...
 
possible answer invalidation by Jamal on question by Thomas: codereview.stackexchange.com/posts/20328/revisions
 
8:06 PM
@Duga Oh quiet you. You should be smart enough by now to know that Jamal can Jamalize whatever he wants
3
 
@user5616520 I suggest to post your code here: codereview.stackexchange.com and stop posting a new question for every single problem you find, it is clear that you need to learn python and scrapy first, please also read this: stackoverflow.com/help/on-topiceLRuLL 29 secs ago
 
@syb0rg He's had edits rolled back.
 
@eLRuLL Why do you think that this is suitable for Code Review? — syb0rg 13 secs ago
 
@Hosch250 and trollbacks that were rolled back, too
 
@Hosch250 Jamal? Really? Didn't know
 
8:08 PM
Both.
 
troll+rollback=trollback. totally not a typo.
 
I remember one in particular that Duga notified us about. That one is good, though.
@Mat'sMug Meta affect - I just upvoted it.
0
A: Excel Manipulation in Single Procedure part 2

Atul VijI know i am not perfect but what i can do to optmise my code is below. Option Explicit Sub new_comment() 'Coded by Vij, Atul (Contractor)' Dim MainWB As Workbook Dim ws, wsnew, ds, SapDataWS, AutoBlImp As Worksheet Dim lastRow, iLeft As Long Dim a, b, i, Filename, updatesheet, strFile As String...

 
Irony: meta-effect generates more votes... that said I'll avoid "pimping" outside DBA.SE in the future. IMO this site needs more voting overall though. — Mat's Mug 12 secs ago
 
@Mat'sMug Flagged as too constructive.
 
lol
 
8:13 PM
They aren't supposed to know about the meta affect.
 
@Mat'sMug this was an awesome recommendation:
Sometimes we get lots of votes for a basic answer and sometimes we write a masterpiece to have it languish. Overall I think things balance out. If it will make you feel better you should find a really hard unanswered question and figure out a great answer. — Erik Nov 17 at 0:17
 
^^ indeed
 
Can someone check that answer to see if it is just @Zak's suggestions implemented?
If it is, it needs to be CW.
 
@Hosch250 blergh... one of those answers...
 
@Mat'sMug Well that's what I call honesty
 
8:20 PM
IKR
 
Let's go offer a bounty of 500 points on his answer!! lol
 
lol
 
I've only got 100.
 
101 here, beat that. :p
 
Well, 101. What is the rep limit for bounties? Is it 300?
 
Zak
8:22 PM
I think it's 500
 
I don't know. I think it's 500. But I never went above 100 I think.
 
it's 500
 
It's 75.
 
You guys are talking about 2 different things
 
8:23 PM
I know.
 
500 is the max bounty you can award
@Hosch250 Then I absolutely don't understand what you want to say. :p
 
You have to have 75 rep before you can offer a bounty.
 
@TopinFrassi Which answer? I will.
 
@EthanBierlein On DBA.
 
@EthanBierlein No, I was kidding :p
 
8:24 PM
Where?
 
Database Administrators.
 
Where on DBA.SE?
Link, in other words. ;)
 
wait, you're serious??
 
0
Q: What would you change to this AngularJS Controller

PabloI'm learning AngularJS. I have made this controller and is working, but I want to know, what would you change to this code to make better? I guess I should implement some models right? but I'm not sure how should I implement them Stock.controller('NewProductController', function($scope, $http, n...

 
8:25 PM
@Mat'sMug yes
 
A guy says he feels bad because he gained rep because Mat talked about his answer here and we all went to upvote his answer. Posted a meta question on DBA saying he didn't know how to deal with it. I said we should award a bounty on his question.
No, don't do that
 
14
A: Running SSIS package from SQL Agent job owned by a non-sysadmin domain user

Tom VThe problem looks more complex than it is. Since you are using SQL 2014 you are probably being bitten by the new security features introduced in 2012. The only thing that actually matters is: Server: {server name}, Package path: \SSISDB\Foo\Bar\foobar.dtsx, Environment reference Id: NULL. De...

 
Maybe I could just bookmark it, wait a week or so, and then give it a bounty.
 
Why would you award a bounty on this? I'm pretty sure Tom wouldn't feel good about this anyway
 
> "wait a week or so"
 
8:26 PM
@EthanBierlein Have you even read the answer?
 
@TopinFrassi Where?
 
Have you even understood the answer?
 
@Mat'sMug @EBrown There is the meta post
 
Don't put a bounty on it just for the sake of putting a bounty on it, or because it's fun.
 
8:27 PM
Here is my joke
Oops not
 
@TopinFrassi What Meta post?
 
7 mins ago, by TopinFrassi
Let's go offer a bounty of 500 points on his answer!! lol
@EBrown The one my reply links to
 
don't play with rep. please.
5
 
Yeee heee! I'm back to 95%+ for my writing class, putting me above A level!
 
@Mat'sMug Let me star all the things that say this is a bad idea
@Hosch250 Good job! :)
 
8:29 PM
@TopinFrassi Ah.
 
@Hosch250 Lucky
 
Wish I could say the same for my CS Theory class
 
@syb0rg Hard work, not lucky.
> In the introduction, make it explicit rather than implicit that the recommendation is enclosed with this letter.
Only comment.
 
I currently have a 53.60% in CS Theory
Which, believe it or not, is passing
 
8:31 PM
@syb0rg It looks like pretty damn difficult stuff
 
That's how high the curve is
 
Every semester I try to decide if feeling like I'm going to throw up from stress is worth getting an A, but I do it all the same.
 
I have no trouble believing that's a passing grade :p
 
@TopinFrassi Not necessarily difficult, just really poorly taught with a combination of somewhat hard content
 
@syb0rg CS Theory always sounds terribly hard. Don't feel too bad.
 
8:32 PM
Honestly, I'm just looking to pass the class at this point
 
@syb0rg Eh, that's the worst. Are the tests covering material that will be taught next week?
 
I'm clearly not gonna fail in the CS world lol
I hope
 
@Hosch250 It's much better than my plan : I try to decide if feeling like I'm going to throw up from the alcohol I drink is better than having good grades, I don't have good grades. lol
 
@Hosch250 Yes
Like on our last exam, was stuff that I just learned for the first time today
 
I had one class like that, but it was cleared up halfway through. I managed an A- by getting straight 100's the rest of the class.
@syb0rg I made my professor redo several exams like that.
 
8:33 PM
@Hosch250 I've gotten 100% on one quiz... and nothing else
I wish I could make him do that, he won't listen to me tho
 
@syb0rg From experience, IT important classes in general are either taught by geniuses or lame teachers
 
You should write to him immediately after the exam telling him the material hasn't been covered yet.
 
@TopinFrassi He's a genius, just not one suited for teaching
 
-1
Q: Protection against SQL injection

JoshI have a short PHP script that inserts user input from one field into a database. I know this is insecure as I am not using prepared statements, but whenever I try to inject the site my connection times out. I am using 1' or '1' = '1 to test. Here is the script: $db = new PDO("mysql:host=$dbhos...

0
Q: Change CakePHP 3.0 Component to Cake pattern

RicardoI have some questions on how I can improve this Component (inside folder controller) 1st: to use external libs (stored on vendor folder) I'm using require key-word and include the class using use key-word, in this case: require_once(ROOT . DS . 'vendor' . DS . 'CakePHP-ImageTool-Component' ....

 
If he doesn't address the issue, take it up with the advisor.
 
8:34 PM
Waht do you get in CS theory? @syb0rg
 
@skiwi Like content?
 
Yeah
 
@Hosch250 I'm honestly thinking about going to the department about it. Only problem about doing so is that my professor is the department head
 
That doesn't sound helpful :P
 
@skiwi We just started DFA's today
In theory of computation, a branch of theoretical computer science, a deterministic finite automaton (DFA)—also known as deterministic finite state machine—is a finite state machine that accepts/rejects finite strings of symbols and only produces a unique computation (or run) of the automaton for each input string. 'Deterministic' refers to the uniqueness of the computation. In search of simplest models to capture the finite state machines, McCulloch and Pitts were among the first researchers to introduce a concept similar to finite automaton in 1943. The figure illustrates a deterministic finite...
Which I somewhat grasp now
Kinda
 
8:36 PM
CS Theory sounds awfully generic
 
It is painfully generic
Except when it isn't, and then I get no points on that exam question for assuming it was
 
I think we had those auotmata in Automata & Process Theory
 
@syb0rg Yeah, that's usually the case with geniuses :p They're so into it they have a hard time explaining stuff to students
 
Sometimes when I click two separate links in rapid succession (middle-click open two new tabs style), they both load the same page.
 
@Hosch250 Man I'd wanna see that. What does it look like?
 
8:37 PM
@TopinFrassi Just two tabs loading the same page.
 
@TopinFrassi It opens two tabs with the same apge
 
The trouble is they should be loading separate pages.
 
@skiwi What level of class is that?
 
@syb0rg I think it's 3rd year Bachelor CS, if not then 2nd year
 
Ah, yeah I'm in the second year
 
Zak
8:38 PM
@TopinFrassi Knowing the material and being able to teach effectively are, alas, 2 entirely unrelated things.
 
But at least you have a whole class dedicated to learning them
 
I'm third year.
 
I have two weeks to get it before my final exam
 
I've taken an awful lot of classes, am pretty close to graduating now
 
Dynamic SQL + CURSOR + ALTER TABLE + UPDATE + INSERT.
What could possibly go wrong?
 
8:39 PM
@EBrown Everything?
2
 
I gotta go to class now
Cyall
 
Later @syb0rg
 
@Hosch250 Oops. I read that upside down. I though they both loaded on the same page
 
@syb0rg See you, and good luck!
 
@Zak Yeah. I've had 2 teachers in... 5 years of IT studies, that could explain and understand deeply what was happening
 
8:40 PM
possible answer invalidation by Jamal on question by Emin Israfil: codereview.stackexchange.com/posts/14809/revisions
 
@EBrown pffft.. no triggers. can't be so bad
4
 
possible answer invalidation by Jamal on question by evthim: codereview.stackexchange.com/posts/19707/revisions
 
I love triggers
 
@Mat'sMug Are circular triggers a thing in databases?
 
@skiwi perhaps, but no server lived to tell the story
6
 
8:45 PM
ALTER DATABASE MyDataBase SET RECURSIVE_TRIGGERS OFF
IF TRIGGER_NESTLEVEL() <= 1
So many options
8
Q: How do I prevent a database trigger from recursing?

Pure.KromeI've got the following trigger on a table for a SQL Server 2008 database. It's recursing, so I need to stop it. After I insert or update a record, I'm trying to simply update a single field on that table. Here's the trigger : ALTER TRIGGER [dbo].[tblMediaAfterInsertOrUpdate] ON [dbo].[tb...

 
better solution: implement business logic outside the frakkin' database...
4
 
@Mat'sMug I think @Phrancis needs to have a word with you... lol
 
lol
 
@Mat'sMug I have that fight with our new DBA on the daily...
 
I like triggers for logging audit information on transactions on a table. Everything else, ... yech
 
8:57 PM
@Phrancis You don't like processing XML in triggers?
 
Oh, right; that too; SQL triggers are great for assembling XML files and dropping them on a FTP server.
5
 
@Phrancis wait wat, you actually drop those on a server?
 
@skiwi I don't.
 
I hope that's by inserting a template into a table on which an outside cronjob monitors...?
 
@Phrancis High levels of sarcasm detected.
4
 
9:00 PM
possible answer invalidation by B1KMusic on question by B1KMusic: codereview.stackexchange.com/posts/112467/revisions
 
That's an odd selection. Like, these 5 are literally all the available languages
 
If you do that in a place with code reviews, you'll have to remove the macro and replace T with this as soon as your code gets reviewed. — gnasher729 57 secs ago
 
There is not even an "OTHER" language. I guess you're just flicked if you speak French or Arabic or, or, or...
 
0
Q: Account registration system for a quiz game

TexenoxAs part of a school project for ICT lessons, our class has been required to write a quiz program following certain criteria that has been set. The first part of this is a program that handles the registration process by asking the user for details such as player name, age, email and gender. The ...

 
@Phrancis Why Vietnamese?
 
9:08 PM
@EBrown I dunno... for the same reason as Russian I guess (i.e. no apparent reason)
 
That's beyond bizarre.
 
There are other weird groupings like that too, like RACES, RELIGIONS, GENDERS
 
@Phrancis if these columns are used for discriminating, ...it's illegal
 
AFAIK they are used for survey data and such
'BOTH'
3
 
ah, well, you know, ...
 
9:12 PM
both..
 
Gender : Both. Well, that's something
 
it happens
missing 'U' / 'UNKNOWN'
 
right
 
I really want to see the "Races" Table now.
 
RACES is actually not too bad
 
9:15 PM
SHEPPARD, COLLIE, BULLDOG, SHIATSU, ...
2
 
- Humans
- Dogs
- Cats
- Unknown
@Mat'sMug Seriously. You need to stop typing faster than me. First the meta post, now the jokes. You're doing this on purpose... :p
 
lol, fine, going back to work ;-)
 
Ahah, see. I was about to go back to work too. There's something weird about this.
 
@EBrown ^
 
ugh
 
9:18 PM
@Phrancis LOL
 
@Phrancis Well, that's... weird
 
I think Religions is only used for things like bereavement and whatnot, so I guess it shouldn't be that surprising that only pretty common ones are there
Don't think that goes into any survey data
Anyways. i better get a little bit more work done before today is over
 
0
Q: Preventing XSS attack in groovy controller of Spring MVC application

RanPaulOne of the URL in my application is vulnerable to XSS atatck, so am hadling it in the below way. I created a below util class import java.util.regex.Pattern; public class HtmlUtils { public final static String tagStart = "\\<\\w+((\\s+\\w+(\\s*\\=\\s*(?:\".*?\"|'.*?'|[^'\"\\>\\s]+))?)+\\s*...

0
Q: CakePHP change action and respect template to more clean

RicardoI have some questions on how I can improve this "action" (method) in "controller". 1st: my template has a navbar with dynamic content (if the user is logged in a special button appears, his name appears in the navbar among other custumizações) also the integration of modes is dynamic based on wh...

 
9:35 PM
(perhaps less ironic if you've got >10K on MSE though)
 
9:48 PM
Style questions are likely to depend on personal opinions and thus aren't a good fit for this site. You might have better luck on programmers.stackexchange.com or codereviews.stackexchange.com. (I'm not well-versed with those other sites, so they might also guidelines which make this an off-topic question, but you should go check out the guidelines there to be sure.) — Adrian McCarthy 7 secs ago
 
@CaptainObvious It looks like you're trying to parse HTML with regex.
 
@CaptainObvious Should be synonymized with , based on previous questions?
 
0
Q: Bell numbers calculation in C

ZorgatoneThis is my implementation of the bell() function to calculate the n-th bell number in C. Along with it I made the factorial() and binomial() functions. I have serious doubts about their efficiency, in particular whether my implementation of the factorial() function should be correctly optimized...

 
Perhaps they should just use StringEscapeUtils which has escapeHtml
There's also an escapeJavaScript, incidentally
Not sure if that would prevent XSS, but I would think that passing some &lt;html&gt; would be pretty harmless
 
10:00 PM
0
A: Two sum algorithm variant

RHokSee my .NET fiddle: https://dotnetfiddle.net/34jkmD using System; using System.Collections.Generic; using System.Diagnostics; public class Program { public static void Main() { //initialize variables for setup var numberHashSet = new HashSet<int>(); var rangeBottom = -10...

 
0
Q: Need help understanding LISP Code

user225700I'm trying to understand the following code so I can better understand Functional Style programming. (defun atom-less (a b) (cond ((null a) t) ((null b) t) ;if a is a number ((if (realp a) ;return a < b (< a b) ;else use string-lessp which compares lexicograh...

 
@Jamal Post on meta?
 
@chris You may place your code at code review. — Vlad from Moscow 21 secs ago
 
@RubberDuck lol
 
10:18 PM
I think I'm going to start learning soon.
 
So many things to program, not enough time for them all.
 
@Hosch250 Create a todo list.
 
I want to implement a Universal app Backgammon or a card game, I want to write a series on WPF for my blog, I want to implement features for both RD and VSDiagnostics, and I want to write a password cracker for zip files.
I think the password cracker is at the top of the list, then my blog and RD and VSD are all fighting for the next level.
 
I have a few articles for my blog to finish up.
 
10:24 PM
The Universal game is lowest, but I think it would provide good experience. And I need to write unit tests for my translation assistant, and allow it to edit the comments too.
 
Zak
I've decided to try my hand at freelancing
 
@Zak I have a woman here at work who gets me jobs for that.
 
Zak
I figure my day-job is basically freelancing anyway
So why not fix other people's Excel Problems too :)
 
I enjoy doing it (and the extra income).
 
Talking about freelancing, if I get better at programming, I might start a business for writing universal apps.
If I have to expand, I know where to look for employees.
 
10:33 PM
What is a universal app? (the universal part)
 
Anyone interested in some hard dance music styles -- I started writing and things just kept flowing.. reddit.com/r/UNBGBBIIVCHIDCTIICBG/comments/3v01p0/…
 
@SirPython Works on Windows Phone/Tablet/Desktop.
 
Ah, so similar to multi-platform?
 
And Windows Embedded.
Yeah.
It will work on anything Windows.
 
and Xbox, IoT and HoloLens
 
10:34 PM
@JeroenVannevel The Charleston, I believe, was popular then.
Can you imagine playing holographic Chess, or something?
 
We're talking about the 2005s, not the 1705s
 
@JeroenVannevel The link says "1920's style dancing"
 
It's about the comment though
oh hold on
That should make it more clear
The link was missing the context
 
Are you Speedzor? They mention Belgium and they've got the longest post.
And they posted 21 minutes ago.
 
Well yes
 
10:39 PM
I don't even know how to use Reddit.
 
@EBrown I don't use it, but I think it is meant for posting the trashiest stuff you can find on the web. Occasionally, you'll find an educational gem on it.
I read the Silmarillion the other day. (No, spell check, I do not mean Millionairess.)
 
Zak
Some of the people asking for freelancers have ridiculous ideas about what certain things will cost.
 
@Zak They almost always do.
 
reading Tolkien and having too many things to do don't add up in my mind...
that said
 
Especially the friends and relations.
 
10:42 PM
@AnalystCave looks cool! But wait, is that... a tool to help with parsing html with regex? o.O
 
Zak
"I want you to look through the websites for 4,000 companies and fill in all of these data points, for $35 total"
 
@Mat'sMug No, it doesn't.
@Zak Try $35,000.
 
@Zak missing a "K" after "35", right?
 
Zak
I don't think even east-asian click-farms could come within an order of magnitude
 
This question might be a better match for Code Review. — B. Clay Shannon 51 secs ago
 
10:45 PM
@Zak It all depends on how you value your time.
 
@EBrown s/time/sanity/
 
0
Q: VB.NET code to AES encrypt and decrypt

Gary RitterI wrote this for use internally at work and have never worked with encrypted data before, so can you please critique? It's written in VB.NET which I have decent experience in, just not the encryption portion of it. I have written a simple internal messaging client. Basically a home grown email p...

 
@Zak Maybe if you wrote some web analyzing/vacuuming software worth $35K you could do it for $35 by just running it.
Public Sub TESTING_in_encryption()

End Sub
Why the empty method, Captain dear?
'For Each b As Byte In aesAlg.IV
'    sb.Append(BitConverter.ToString({b}))
'Next
'For Each b As Byte In msEncrypt.ToArray
'    sb.Append(b.ToString("000"))
'Next
Why the dead code?
 
Lol I think I fixed my WLAN ....
 
@Hosch250 because no source control?
 
10:52 PM
'NOT ENCRYPTION! Just stops casual observers from reading the plain text
Any programmer knows that decryption <> obfuscation.
 
@Hosch250 #define programmer
 
You should make that a doc comment so callers of the code and see it as well as maintainers.
 
also: nope...
that's vb.net, right?
 
yup
 
then you can.. in vb it would be hard
 
10:53 PM
@Vogel612 Someone who knows that decryption <> obfuscation ;)
 
@Hosch250 write an answer
2
 
I should.
 
lol
 
that said...
@Hosch250 redundant definitions don't work that well for an axiomatic system
 
@CaptainObvious CBA to write an answer right now, but someone should mention that using a hardcoded key is a horrible idea.
 
10:54 PM
okay nvm that thing about the fixed WLAN...
 
@EBrown why was your comment removed? Public Module is essentially a public static class, IMO the comment was totally warranted.
 
Writing an answer.
 
why isn't the module name in PascalCase
 
@Mat'sMug Oh, I was actually working on an answer and was including that bit in it.
 
cool
 
10:56 PM
But I scrapped the answer. :P
 
So, @EthanBierlein, I couldn't help myself and wrote you an answer.
1
A: Does the "a well regulated militia" part of the 2nd Amendment apply only to militias?

MastTL;DR: It's controversial, but it looks like it also protects the rights for the individual. A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed. While the exact explanation is a matter of opinion, ...

 
0
Q: HackerRank: Encrption

blackenedGiven a two dimensional list, say some_list["ABCD", "EFGH", IJ], I am supposed to encrypt it by reading each column top to bottom, thus: A B C D E F G H I J becomes: AEI BFJ CG DH My initial try had “index out of range” problem so I did: def encrypt_list(some_list): enc...

 
@Mast Thanks :)
 
@Dave for now it's feeding SSRS reports too, and provides a number of views that a number of Excel worksheets connect to. And it's already live, so power users that know a bit of SQL can (and do) do some ad-hoc querying, too. This NDS is so much easier to work with than the databases it came from... — Mat's Mug 7 mins ago
hmm
 
@EthanBierlein You may want to study the 3 given cases to obtain your own opinionated answer though :)
 

« first day (941 days earlier)      last day (3090 days later) »