« first day (983 days earlier)      last day (3025 days later) » 

5:00 PM
#ContextFTW
 
@JeroenVannevel What's the '@' for?
 
So I placed the breakpoint on the line above
But that meant that the statement got hit countless of times
So I had to narrow it down to when one of the values inside of it is null
Hence: conditional breakpoint
 
@Hosch250 He's stuck in Java
/s
 
@Hosch250 it's a verbatim specifier
 
@Hosch250 verbatim identifier. The context is about an interface so I want to refer to it with that
 
5:01 PM
For an interface?
 
foreach (var @interface in interfaces)
 
wat
oh, right.
 
interface is a keyword, wouldn't be a valid name without the @
 
It's to say "no, I don't mean interface"
 
Oh, I always just use a different name.
 
5:01 PM
interbutt
 
me too. verbatim identifiers stink.
 
Like interfaceSyntax or something.
 
I am a mature, professional adult.
 
Fun fact: it's one of the scenarios in which Identifier.Value and Identifier.ValueText differ from eachother
 
@DanPantry No you are not.
 
5:02 PM
@Hosch250 What gave it away? /s
 
but sometimes, especially with meta-programming, the best identifier is a keyword
 
You have clazz for classes, sucks there isn't an "easy way out" for interface.
 
interfaze ?
 
any php devs here looking to relocate to my home city? lol
 
clazz is ugly java
2
 
5:03 PM
@JeroenVannevel and ugly JavaScript!
 
whoever uses clazz and interfass identifiers deserves whatever comes to hit them
 
"Visual Studio is restarting"
*cancel*
*Visual Studio loading screen*
 
@JeroenVannevel happens with SSMS too
 
possible answer invalidation by Melanchroes on question by Melanchroes: codereview.stackexchange.com/posts/116512/revisions
 
5:10 PM
@Duga damn he's fast
 
@Mat'sMug At least it's documented ;)
 
Help, there's a bug in my program which causes it to delete all planets
This can't be good
 
Java generics are so ugly
It's surreal
 
@skiwi rename to DeathStar - problem solved
 
@Mat'sMug Deathstars can only blow up moons :(
 
5:12 PM
@Mat'sMug And for next versions of your app, rename it to DeathStar1, DeathStar2 and DeathStar3
 
that's not what the pamphlet said
 
@JeroenVannevel Maybe you can use class by using some Unicode characters?
 
Because that's what Star Wars does apparently
@skiwi no, unicode transformation is done before identifier resolving
 
@skiwi why? C# has verbatim identifiers specifically for this
 
Try this in C#:
var a = 42;
var \u0061 = 69;
> CS0128 A local variable named 'a' is already defined in this scope
 
5:14 PM
@JeroenVannevel Wow, is that ugly.
 
That's not a question nor a statement
But yes, it is ugly
 
Yes, that is a statement. It is a less common form than "that is ugly", and interpretation kind of depends on how it is said, but it is valid English.
 
oh okay, with some intonation I can imagine how you would say it
We have a similar Dutch expression "Is me dat lelijk"
lol
> [18:16:08] Amy: Yeah, but I look 12
> [18:16:46] Jeroen: I'm sure it's not as bad as it looks
I didn't think that response through
 
Gee, you think?
 
LOL.
 
5:18 PM
"lelijk" sounds difficult to pronounce
 
translate: Is me dat lelijk
(from Dutch) Is me that ugly
hahahaha
 
lmao
 
Language: Gungan
 
5:32 PM
is mathjax enabled on SO?
 
I don't think so
too many false positives
 
Zak
> "I am more flexible about best practices than Zak. If you had to learn from someone, I recommend learning from him."
Not sure how to feel about that...
 
"flexible about best practices" sounds like another way to say "I don't really care about best practices"
3
 
Zak
> I prefix my macros with M1, M2, etc. to order them in GUI macros tool.
I really hope they mean modules there, because prefixing every sub/function would be a terrible naming scheme
 
where's that?
 
5:42 PM
@Zak You mean you don't like: M1.C5.M13.V6 as a variable name within a method in a class in a module?
 
Zak
1
A: Deleting rows from a spreadsheet where Column C is blank

puzzlepiece87Taking Things Further: One thing that surprised me about both Zak and Jean-Pierre's answers is that neither maximized their range deletion reasoning. Both deleted using (potentially) several stepwise ranges. Here's how I do one deletion no matter what pattern of blanks occurs: Option Explicit ...

 
> Sub M1DeleteRowsWhereColCBlank()
it's procedures
 
Workaround to the breakpoint issue:
if (interfaceMethods.Any(x => x == null))
{
	Debugger.Break();
}
It'll do
 
Zak
@Mat'sMug Madness
 
Dim lngLastRow As Long 'This variable is a Long
TFL
 
5:50 PM
Type prefixes are utterly useless. It's called Hungarian Notation done wrong. Hungarian Notation done right uses a prefix that tells us what the variable is used for, not what type it is. The type of a variable is utterly useless when Ctrl+i gives you a tooltip that tells you the type. Compare strName to colName: both are strings, both are column names. Which is the more useful prefix? — Mat's Mug ♦ 8 secs ago
I shouldn't have posted this
but yeah that M1...M42 prefix is madness
removed
@Zak a rule? nah, we have enough rules as is ;-)
 
INTERFACE_PACKAGE_INTERFACE_PARTNER_APPLICATION_VENDORS --dat table name
 
instead of prefixing macros, he should put his non-macro public members in a dedicated std module with Option Private Module. this way all subs that are exposed as macros, are macros.
 
Zak
You can always invite him into chat
 
done
 
0
Q: SSL_handshake in C++ using openssl

SUMAN PATROI am a naïve c++ developer. I would like to get my queries cleared regarding ssl handshake coding using openssl library. 1. How to send client hello message from client to server. Is already done by openssl or needs to be done at the user end? 2. If such a customization is possible at the user e...

 
6:05 PM
codereview is the place to ask this question — Roshan Jossey 47 secs ago
Bad: no goal stated, uncommented code in an unspecified language, inconsistent waste of vertical space. (Please don't hit CR with this question in this shape - it will make a good match with a bit of effort.) — greybeard 18 secs ago
 
378
A: Leaving intentional bugs in code for testers to find

James McLeodThis sounds absolutely nutty. It is expending a great deal of effort for very questionable benefit, and the practice seems based on some faulty premises: That QA won't work hard unless they know they are being tested every day (which cannot be good for morale) That there are not enough unintent...

wat.
Good to know that I can create extra bugs without putting any intentional effort into it
 
1
Q: From Maybe (Int, Int) to (Float, Float)

Iggy MI have a function that returns size of an image IO (Maybe (Int, Int)) It would be nice to convert it to float tuple beautifully. I am sure there must be a better way than what I currently have: data Vec2D = Vec2D Float Float getImageSize :: FilePath -> IO (Maybe (Int, Int)) getImageSize path =...

 
wat...
39
Q: How do you raise an intelligent and happy daughter in a sexist world?

AnnaFirstly, apologies for my English. It is my third language. I don't have enough space to explain my reasoning. I just don't want my daughter to be influenced by the media or the general opinions of "society". My daughter is a baby in my womb. I've decided no TV ever, no movies, no pop music...

 
Monking
 
6:22 PM
user image
2
This doesn't slow my IDE down at all
 
0
Q: Put audio in RAM and play it - bash 4.3.42

TheCommoner282I am working here on a MacBook with El Capitan on it. OS X has an integrated text to speech program, that you can use via the command say. The problem I have with this command is that my MacBook is kind of old and runs out of RAM quickly. So, I can use this command, but the first two sentences w...

 
@CaptainObvious Has been deleted... Already...
 
0
Q: Is there any further optimization to download big PDF file?

Debmalya BiswasI am trying to optimize my code when downloading around 50 pdf files from a website. All of the pdf are big in size (average 25mb). Is there any way to optimize further to download the pdf faster? for (String pdfUrl : pdfUrls) { URLConnection request; request = new URL(pdfUrl).openConnec...

 
http://www.commitstrip.com/en/2016/01/12/he-who-dares-wins/
CommitStrip
He who dares, wins
CommitStrip
1452623676
 
@CommitStrip I don't always test my code, but when I do, I do it in production
 
@DanLyons Wow indeed
 
> #31 - perhaps file a new issue and delete this comment? You seem to have just disclosed a vulnerability...
lol
> if your using an "anti-virus" product; then your doing it wrong...😜
 
6:54 PM
Your also spelling it wrong
 
Yore is a cool story.
 
One hour later... Still have no clue why this bug is occurring
 
I'll take the bait. Which bug?
 
The one I said an hour ago
I don't like this:
> This issue cannot be reproduced.
 
2 hours ago, by skiwi
Help, there's a bug in my program which causes it to delete all planets
 
7:05 PM
possible answer invalidation by kayleeFrye_onDeck on question by kayleeFrye_onDeck: codereview.stackexchange.com/posts/116517/revisions
 
All I know is that stuff got deleted, and exceptions got thrown, but I don't think the exceptions are logged
So this is why exception logging was on my TODO-list
 
@skiwi Then you do have something to do at least: Implementing logging of exceptions! (And making sure exceptions have some unique identifier to precisely locate where the exceptions was thrown.
 
They log to the Tomcat server that's currently running, but I cannot go back in history to see where the exception started
 
You should be logging them to a file.
I log all exceptions from the website at work to SQL, so I can go back in time to any moment.
 
I'm first trying to understand why a WAR generated via Grails on Tomcat doesn't log them to a file by default
 
7:12 PM
Should the edit on this answer be rejected? I'm on the fence, leaning towards "yes."
 
Do you have any clue as to where in the source the bug is happening? I.e. where is the last output from?
 
Who runs that account?
 
@kuhlenhuth
program manager on C#/VB team at Microsoft. kentucky gal, cardinals fan, art-lover, athlete, smiles for miles.
265 tweets, 634 followers, following 138 users
 
Nifty.
 
7:15 PM
> For Unix, the definition of __forceinline was missing the inline
lol
 
So some sources are telling me to write the stdout and stderror of a Tomcat process directly to a file... isn't that counter intuitive? Tomcat does handle access logs, etc. but it cannot handle webapp logs?
 
@JeroenVannevel Cardinals fan!?!? Such outrage.
That's right in my neighborhood though
 
Well, 2 more rep to 5400.
 
7:30 PM
Reminds me of a game I was playing not long ago.
 
Here's an algorithm someone posted on code review for finding the largest palindrome. Might help you get started. — juharr 38 secs ago
 
@Phrancis I like the Packers and Seahawks because the Viking trolls I'm surrounded with hate them.
 
7:48 PM
Does upvoting an question/answer on a question bump it in Active questions?
 
monking!
 
@EBrown What's the game?
The page won't load for some reason.
@TanMath Monking
 
@electrometro I'm not sure.
It doesn't push it to the top, but enough activity might keep it up there.
 
@EthanBierlein DeadCore is the game
 
@electrometro i do not think so...only comments and editing of posts will...
 
7:50 PM
Makes sense.
Thanks @TanMath and @Hosch250
 
hey, @200_success
 
@EthanBierlein DeadCore.
 
@Quill thanks for the invisible testcase code! lol
 
IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
> GOTO
 
That's a new one.
 
8:01 PM
@EBrown Added to wishlist. Will probably buy later.
 
@EthanBierlein It's a pretty good game. The story sucks but the platforming is awesome.
 
I was looking at some of the screenshots & videos. It looks pretty cool.
 
It is. I enjoyed the platforming aspect of it a lot.
And it get's really challenging at times.
 
@TanMath Hi, TanMath.
 
@200_success how redundant...
 
8:07 PM
@TanMath Sorry about the redundancy, TanMath.
 
@200_success it's fine, @200_success...
 
:o
 
Well, we know that @JeroenVannevel is a bad, bad person now.
 
goto for life
 
0
Q: Delete an entry from a file using vectors

Dimitrios SriaI have a function that reads from a text file. Adds content to a vector and then prints the contacts and prompts the user to choose which contact he would like to remove. The problem is that it removes more than the asked contact. here is the code: #include <iostream> #include <fstream> #include <...

1
Q: Inspector Rubberduck and the abstract inspections

Mat's MugThe Rubberduck code inspections have just seen yet another structural change, hopefully for the better. The IInspectionModel interface was originally named IInspection; it only exposes the bare-bones inspection properties, those needed by the CodeInspectionSetting class: public interface IInspe...

 
> You've earned the "Taxonomist" badge for the 'rubberduck' tag
3
 
8:28 PM
Is that the first badge?
 
I think so
 
9:00 PM
Naruto answer; accepted non-selfie answer with 0 score: Raspberry Pi Safe Clean Up - the decorator way
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Cmake module that improves upon CheckLibrariesExists
 
@RoboSanta Nice answers @holroy
 
0
Q: Dynamic editor width when answering

AlexeiAfter answering a few questions on Code Review and Stack Overflow, I noticed that the editor allows you to resize vertically, but not horizontally. The width seems to allow 80 characters. My questions is: Why not allow high-resolution monitors users to use some extra horizontal space (i.e. on ...

 
thanks
 
@StackExchange Pretty sure that is
 
Wondering how to debug a logger
2
Normally you would use log statements, but... you're inside a logger
And one that isn't logging
 
9:10 PM
Then make it log! :)
 
Unit testing?
What language are we talking about?
For debugging you've at least got the following options:
* Logging
* Stdout
* Global variable
* Databases
* Files...
 
@EBrown log-ception!
 
It's in Grails/Groovy/Java/JVM/WAR
 
@Mat'sMug I have a logger that logs the logger that logs the logger that logs the application.
 
It's using the Logback logging plugin, and it works pretty muchv ia configuration, so good luck tracing down the bug :|
 
9:14 PM
(Of course, the application logs the first logger.)
So really it's a logger-loop.
 
@EBrown You're in for it then...
 
@EBrown very logging
 
So. Much. Text. Could you narrow it down a bit, by like 90%? This looks like Code Review posting... — Konrad Viltersten 15 secs ago
 
@Duga lol, "a bit" / 90%
 
0
Q: Cosntructing a simple shell from scratch

Marine1I'm actually doing my whole shell in C from scratch from a Linux computer. The thing is that I think we all do our best from creating the simplest things that can be explained easily. And I'm not sure my shell has these qualities. All command I tried worked but command 1 | command 2 | command 3 ...

 
9:21 PM
Hey @Mat'sMug @EBrown look what I found in a customer's patients database...
System.ArgumentNullException: Value cannot be null.
Parameter name: val
   at Microsoft.XLANGs.Core.XMessage.SetPropertyValue(Type propType, Object val)
   at HCHB.BizTalk.General.Orch.Create485.segment2(StopConditions stopOn)
   at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
 
some new form of logging I suppose
 
That's one way to put it...
 
I think your question would get a good answer at: codereview.stackexchange.comNima Ara 26 secs ago
 
Ooh how nice, I can actually print statements when setting up the logger
 
@NimaAra if it weren't hypothetical code, sure. Code Review wants to see real working code, not example-ish boiled-down stub code. — Mat's Mug 42 secs ago
 
9:30 PM
Is it an accomplishment to not be Jamalized? :D
2
 
lol
2
it's certainly a good sign
 
Yes, logging is working!
(It even logs stuff)
lol, I just see that one of my failed attempts logged in C:\apache-tomcat-8.0.9\bin\null\logs\OGNext
 
Yay logging! :D
 
0
Q: Stored procedure to compare stored procedure result sets

AlexeiOriginally posted as an answer to a SOF question, this is about a generic procedure that allows back-end developers (e.g. SQL developers) to compare the results sets obtained by running two procedures (SQL Server 2012+). This scenario is typically met when a stored procedure must be optimized, t...

 
@skiwi You have a directory called "null"?
 
9:38 PM
@Phrancis Yes, hence failed attempt
 
I also have several directories called null :P
~/dev/null/ is a place for junk projects or scratch scripts
 
/dev/null is where all complaints go
7
 
not ~/dev/null though, thats a special place
 
9:57 PM
This sounds more like code reviewMatt Burland 8 secs ago
 
10:12 PM
0
Q: Trying to understand some differences between AT&T and Intel syntax

Electric CoffeeFor my own convenience I'm making a comparison table between AT&T and Intel assembly syntax, but I'm not sure if I got all the details right. It would be wonderful if you would point out anything I misunderstood and/or got wrong. I wrote this in org-mode so I could get automatically resizable pl...

 
@CaptainObvious weird
 
it's like putting up a table that shows C# syntax in one column, and VB.NET syntax in the other, and asking "did I get this right?"
 
0
Q: To-do app, as one monster function and as several smaller functions

RupI am learning to code by making a todo app in pure javascript. My first attempt can be seen here. It's all cosmetic, meaning it stores no information, generates no objects or arrays, though it was sure fun to learn how to manipulate DOM elements in pure javascript and building my first "program"...

 
"Monster function" he says. 14 lines it is. lol
 
I don't want to brag, but
And to highlight why there is no easy way: it's entirely possible you can't actually get one. The only way you can get a System.Type is to have reflection loaded the assembly in question, but you might not actually have a loadable assembly in the first place. Fundamentally Reflection is a runtime API, and runtime and compile time are different things. You're best off always using Roslyn APIs, as Jeroen's fantastic answer describes. — Jason Malinowski 2 mins ago
> as Jeroen's fantastic answer describes
> as Jeroen's fantastic answer describes
 
10:49 PM
0
Q: Tree Generator (small)

MagirldoogerBasically what the project was, was say they enter 2, j then it prints j jj and if there is no second it should be * so if its just 2 its * ** so a review would be nice :) #include <iostream> #include <string> #include <vector> using std::string; using std::cin; using std::cout; using std::end...

 
@Mat'sMug Guess what my next question is going to be about. ;)
 
I just asked a question on Programmers.SE
<sub><sub><sub><sub><sub><sub><sub><sub>...I hope it's in-scope?</sub></sub></sub></sub></sub></sub></sub></sub>
@Phrancis check this out: stackoverflow.com/q/34754995/1188513
> I have some VBA macros for Access that execute SQL SELECT and UPDATE statements and can take almost an hour to run.
makes me wonder if the problem is Access, the SELECT/UPDATE statements, or the guy that's asking how to make that run in the background.
0
Q: What would be a good approach to generate a tree of folders?

Mat's MugSay I have an array of strings, like this: var folders = new[] { "Foo", "Bar", "Foo\Bar" "Foo\Bar\Baz" }; And that I have an object that represents a folder - something like this: class Folder { private readonly string _name; private readonly IEnumerable<Folder> _folde...

@Anyone ^^ feel free to take a stab
TTQW
 
0
Q: Dynamically change background image in the CSS during WordPress loop (media queries)

JoshRichaI currently have a carousel on my page inside a Wordpress loop. So as it loops through it changes the background image according to which post I am currently on in the loop. However, I want to use media queries to load smaller images if for instance I the screen size is smaller. This is what I c...

 
possible answer invalidation by C Ivemy on question by C Ivemy: codereview.stackexchange.com/posts/116486/revisions
 
@Mat'sMug @Zak "Provider=Microsoft.ACE.OLEDB.12.0; Data Source={filename}; Extended Properties=Excel 12.0 Xml"
Excel + C# = funness
 
11:02 PM
wah
 
You can use SQL in C# to target Excel files.
 
it's like the song from Moist:
 
@Mat'sMug I would do a reverse relationship of folders. So each folder has a parent instead of each folder has subfolders.
 
> Pleasure pleasure by the pain, pleasure pleasure by the twisting of the metal in the vein
 
NO MICROSOFT EDGE I WILL NOT BE SWAYED BY YOUR DARK SORCERY
(Aka: I will not make you my default browser.)
 
11:13 PM
@Mat'sMug lol crazy talk. Locks, for one, are probably not very "smart" in Access (just like everything else about Access)... I'd bet it probably only does table-level locks
 
11:24 PM
@Mat'sMug I'm kind of baffled here. You have a gold badge in answering C# questions, and you don't have any ideas on how to transform the list into a folder structure? Are you begin falsely modest here?
 
Oh man I messed up big.
 
@EBrown What happened?
 
11:44 PM
@EBrown You forgot you were commando when you zippered your jeans?
 
LOL
 
See, there are two types of people, those that tell you what you want to know, then there are those that...
 
in Cardshifter TCG, 9 secs ago, by Duga
200_success vs. rolfl: 6842 diff. Year: +6. Quarter: +6. Month: +6. Week: -73. Day: -33.
 
It's been a short year... so far.
 
Yeah, sure enough
 

« first day (983 days earlier)      last day (3025 days later) »