« first day (1265 days earlier)      last day (2745 days later) » 
00:00 - 19:0019:00 - 00:00

Kaz
7:04 PM
UK Postcode is simply "?A#?[]#AA" Where A is any letter, # is any number, ? is any letter or any number, and [] is an optional space, depending on how restrictive you're feeling.
 
CA postcode is even simpler: A#A #A# or A#A#A#
 
@Kaz regexing that would be fun hell.
 
At a job I worked at a few years ago (remember SNAP, anyone? ;), which handled accounts across USA and Canada (and also had a drop-down selector), Canadian postal codes caused all sort of issues
 
It'd be simple, but it'd look long and dirty.
 
Kaz
@arda There is an official government-supplied regex for it.
Yes, it is horrible.
 
7:09 PM
UK: Supplies regex for postal codes
TR: Blocks github
 
@Phrancis pretty sure to blame whoever idiot wrote that SNAP crap instead
 
Kaz
> (GIR 0AA)|((([A-Z-[QVX]][0-9][0-9]?)|(([A-Z-[QVX]][A-Z-[IJZ]][0-9][0-9]?)|(([A-Z-[QVX‌​]][0-9][A-HJKPSTUW])|([A-Z-[QVX]][A-Z-[IJZ]][0-9][ABEHMNPRVWXY])))) [0-9][A-Z-[CIKMOV]]{2})
Official government regex right there
 
oh my
 
Kaz
Reminds me of lisp.
 
hi @ScottCraner!
in VBA Lounge on Stack Overflow Chat, 9 mins ago, by Mat's Mug
one day, we'll convert you :)
the SO->CR conversion process often starts in this very chatroom :)
4
 
7:12 PM
@Kaz That could use a splash of verbose regex mode
 
Kaz
I like that there's a specific check for GIR 0AA, makes me wonder what's there.
 
Is "GIR 0AA" a special case where it gets its own grouping all by itself?
 
> GIR 0AA - special case Postcode for Girobank at Bootle
 
Kaz
Ah, it's because there's no number in the outer block.
 
That's like canada having H0H 0H0 as a postal code (for santa ofc)
3
 
7:14 PM
yep. that's Santa's.
all Canadian kids know that.
and he does write back
 
That's way too much code with a too unspecific question. Also for code quality questions Code Review is a better site — UnholySheep 1 min ago
 
Kaz
@arda That's the most Canadian thing I've ever read.
3
 
@Mat'sMug ........that's scary
 
it's Canada Post marketing at its finest
 
lol I remember that
 
Kaz
7:17 PM
Ours is XM4 5HQ, much less fun.
 
well it does spell "XMAS HQ"
 
@Mat'sMug what is the entire address?
might have my kids write to him this year
 
my nephew doesn't believe but he doesn't say anything, so it would be kind of funny to have him write to Santa and get a letter back and be like I thought he wasn't real...lol
 
> The postal service responds each year to tens of thousands of children's letters from around the world addressed to Santa Claus, North Pole, H0H 0H0, Canada.
 
7:29 PM
@Mat'sMug now you know why your postal rates are so high
 
lol
$0.00 - same I pay everytime I go to the hospital
2
 
Only left to figure out is why the postal rates in The Netherlands are so high then :D
I wonder if people are just mailing drugs at times lol
 
0
Q: VBA lookup to complete matrix

VBA PeteI have written the following the code to complete a matrix based on data provided in a second worksheet, but the code is really slow (note that s1=12,000, s2=40 and s3 = 200,000). Any suggestions on how to make this code faster? Sub UpdateMatrix() Dim wsOverview As Worksheet, wsData As Workshee...

 
@CaptainObvious lovely indentation
 
7:50 PM
@skiwi Inefficiency from PostNL, or whatever they're called nowadays.
And yes, people are mailing drugs.
In CD cases covered with coffee beans, preferably.
 
@Mast preferably? are you saying that is how you like them sent?
 
what was that?
 
Tumbleweed candidate; zero score, no answers, no comments, and low views: libconfini (shared library)
 
@t3chb0t might get a gold star...
1
A: Too Many Staff Meetings

t3chb0tI had given it a second thought and I came up with another solution. For the sake of simplicity I replaced the DateTime with int. Particularly I did the following: each meeting has two points that can be identified as start or end point each point has a parent (its meeting) These o--o are ex...

 
8:02 PM
Would that be best for Code Review? — gsamaras 27 secs ago
@bamar I believe the error is in my piping which is why I want my code reviewed — Tall_Programer 26 secs ago
 
;-) a pretty popular question
 
8:18 PM
0
Q: Binary search on string in alphabetical order

AaronThe code for a binary search on an ordered string by alphabetical orders seems to work. I am wondering if there is a better way to write this. function binary_search(arr, letter){ var first = 0; var middle = Math.floor(arr.length/2); var last = arr.length -1; while(true){ ...

 
I'm voting to close this question as off-topic because It has been moved to CodeReview. — Scott Craner 32 secs ago
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: HackerRank ACM ICPC Team
 
8:38 PM
0
Q: GET event handler

HappydevdaysI'm working on my first NodeJS / Express application with the async module. It's been an uphill battle for me learning node (and even JavaScript) as I go along so I'm sure there's a lot of room for improvement. I've written a GET event handler for my REST API and I'd like to know: Where and ho...

0
Q: VBA lookup to complete matrix - Repost

VBA PeteI have written the following the code below to complete a Matrix based on data provided in a second worksheet, but the code is really slow (note that s1= 12,000 and s3 = 200,000). Any suggestions on how to make this code faster? Sub UpdateMatrix() Dim wsOverview As Worksheet, wsData As Workshee...

0
Q: XY Coordinate Plane Game

zshakeso below is the code for a game I'm working for my computer science class, its a simple XY coordinate game, with the x and y values increasing/decreasing depending on the direction that the user inputs. It works pretty well, until I get to the kids playroom and the kids bathroom (1,1) and (2,1). ...

0
Q: Extension methods to save and load form size, position, and state

druciferreI wrote these extension methods to provide a generic/re-usable method for saving a form's size, position, and window state. What I would primarily like to know is if there is a better way to handle storing the WindowState property. I would also like to know if there are any bugs I might have over...

 
Take a look at this. — Eli Sadoff 8 secs ago
 
0
Q: Hackerrank "Bricks Game"

user1751434Problem URL This is the solution I came up with the minimax problem stated above. I did a top-down recursive approach with memoization, and I think this should be \$O(n)\$, since we are filling out a memoization table with \$n\$ elements, with constant number of operations per each recursive cal...

 
9:02 PM
@YRn This question should be asked on CodeReview. On CodeReview, you asked questions how to improve your working code. On StackOverflow, you ask questions why you're code isn't working. — J. Kamans 17 secs ago
 
0
Q: Text box pop up when mouse is hovering

MarryBerryHey I am very new to Html, just started so I was wondering how to make a text box appear when my mouse is hovering on an image. Here is my current html: `<p id="circleimg"> <a href="about.html"> <img id="circle1" src="img/aboutme.png" alt="About Me" style="border:0;"> </a> <...

 
Is my PC supposed to make cracking noises?
It sounds like there's thousands of frogs croaking at the same time.
 
@skiwi a frog for every tab
2
 
@Mat'sMug 467 frogs it is then
Still doesn't explain the other ones though
 
0
Q: BF interpreter written in C#

107MPSo I have recently written a Brainfuck interpreter in C#. I tested it with the examples given on EsoLang website. It does not handle errors right now. Questions Even that it can run only one program at once, should I maybe put the variables into the class (create new class) or just leave them...

 
9:16 PM
@CaptainObvious Why
 
#BecauseWeCan
 
thanks, I created continuation of the question. — xralf 37 secs ago
 
0
Q: Minimizing open-close scenario

xralfI have the following code in Python which opens and closes a file in every iteration (using with keyword). In 95 % of iterations the file will be the same, so there's no need to open and close it again. Is it possible to optimize it if this optimization has sense? ... fileName = createFileName(d...

 
thanks, I created continuation of the question. — xralf 39 secs ago
 
9:50 PM
Questions seeking to improve working code generally belong on Code Review, provided you adhere to their content guidelines. — jmoerdyk 27 secs ago
Yyyyyyyyyup, that's some code. Did you want a code review? Does this code work? Is it throwing an error in certain circumstances or all the time? Literally any bit of context would help this question, though it may take quite some doing to make it answerable. — Adam Smith 32 secs ago
 
10:23 PM
0
Q: Simple Integer data compression program in Java

WakerI was interested in finding out if I could create an algorithm for holding data that had efficient lookup, removal, and addition functions. The algorithm is not in place, but the idea is that you could place a large quantity of different data-sets in order to compensate for the memory inefficienc...

 
Jacob, for working code, go to codereview.stackexchange.com. I've never been there myself, but I've heard great things. — Peter Ward just now
 
0
Q: Calculate how long it will take to read file

nigahimport java.io.*; import java.util.Scanner; import java.io.FileNotFoundException; public class readByLine { public readByLine() throws FileNotFoundException { Scanner linReader = new Scanner(new File("dataFile.txt")); long start_time = System.currentTimeMillis(); ...

 
11:04 PM
0
Q: Simple text based game, new to Java. Need to implement battle system but I'm not sure how. Also, any beginner tips like for formatting is appreciated

Ebsa Eshete//Work in progress; import java.util.Random; import java.util.Scanner; //Player class static void Player{ public class RPG { // Declared variables public static void main(String[] args) { Random rand = new Random(); Scanner input = new Scanner(System.in); int HP; int STR; int DEF; int INT;...

 
11:15 PM
-1
Q: Cannot Generate JavaDoc - is not a valid Win32 application

ashI am trying to Generate Javadoc on a code I have in Eclipse. I am new to this and I am not sure what to put into the Java Command or the standard doclet destination?

 
00:00 - 19:0019:00 - 00:00

« first day (1265 days earlier)      last day (2745 days later) »