« first day (1119 days earlier)      last day (2901 days later) » 
00:00 - 15:0015:00 - 00:00

12:00 AM
I think you should post that question in codereview.stackexchange.com instead — user6188402 27 secs ago
RELOAD! There are 2376 unanswered questions (93.1090% answered)
 
0
Q: Sorting timestamp using the date not time (php, mysql)

DriftedMassI'm having a bit of a problem trying to solve this one, Currently i've got a php script that scrapes data from a MySQL db, on one part of it the DB has a timestamp which has date and time in it. What i'm wanting to do is use the date in this timestamp to sort the table im displaying it in. ...

 
12:47 AM
0
Q: Queue implementation using two stacks

Mona JalalHere's my code and I want to know if there's a better method for doing so. While the question has stated two stacks I wonder if we could do only with one as well? /** * Created by mona on 5/26/16. */ import java.util.Stack; //Implement queue using two stacks public class QueueViaStacks { ...

 
you should post this at codereview.stackexchange.com — Joran Beasley 30 secs ago
 
0
Q: Codility Fish Test 50%?

user972616I am getting a 50% overall mark (75% correctness and 25% performance) on the Codility Fish problem and my solution seems to be O(N) but I am only getting 25% performance. The results can be seen here and my solution is as follows // you can also use imports, for example: import java.util.*; //...

 
1:12 AM
I think this should be posted at code review. Also, your main class should be called Main, not main - proper java convention. — Luke Melaia 56 secs ago
 
1:28 AM
0
Q: Maximum Clique Problem: Fast Heuristic

HueHangI have implemented an algorithm which computes a maximum clique via a heuristic. The pseudo-code can be found in this Paper (see Algorithm 2). Maximum Clique Problem Given an undirected, simple Graph \$G=(V,E)\$, a clique \$C \subseteq V\$ is a subset of vertices such that all vertices in \$C\$...

 
1:39 AM
0
Q: C# socket application using TPL

KFLIt is an application I wrote that allows multiple TCP clients to share a single TCP connection to a remote server (hosted project, and a demo). Traffic generated by the server is forwarded to all clients. Traffic generated from any client is forwarded to the server. I don't concern the case where...

 
1:56 AM
I'm voting to close this question as off-topic because it is asking for a review of working code. This question may be on topic on codereview.stackexchange.com. — Colonel Thirty Two 26 secs ago
 
0
Q: Reverse Polish Notation Evaluation in Java Code Improvement

Mona JalalI would like to hear feedback about my code both in term of improving efficiency if possible or using other data structures. Also go ahead and let me know about code styles/patterns. /** * Created by mona on 5/26/16. */ import java.util.Arrays; import java.util.Stack; import java.util.HashSet;...

 
 
1 hour later…
3:13 AM
monking
 
3:41 AM
0
Q: Largest Palindrome Product JS

Alfonso GironHaving some confusion over the for loop in my solution to this Project Euler problem. The code must find the largest palindromic product of two three-digit numbers. So I did an outer an inner loop both starting at 999, and >99, and just multiplied until I got a product that was equal to its rever...

 
4:10 AM
great, now the first suggestion on Google when I press "v" is "VBA Long Live The Cucumber"
8
@rubberduckvba @Microsoft There are also more #Zombies in #Excel strings than there are in #COD @thurrott https://t.co/OIJNHrENn7
 
@Quill LOL
 
4:35 AM
0
Q: Detecting if two given strings are isomorphic using Java data structures

Mona JalalSo I have written the following code and it works for various same length isomorphic strings I have tried. However I am not sure what are some time complexity improvements and coding tweaks that could be applied to the code: /** * Created by mona on 5/26/16. */ import java.util.List; import ja...

 
5:09 AM
0
Q: Using VBA Copying from one ,master sheet to other workbooks based on the file names provided in master book

abhay limbuPretty new to this hence taking it as challenge. I have a master sheet in which Column A have all the file names( complete file name with .xls extensions). I need to copy data of column b in this sheet and paste it in all the files in a particular folder in a particular tab. There can be multiple...

 
5:46 AM
0
Q: Rearrange String such that similar characters are placed at least 'K' distance apart

Kyle MorganSo I was asked this in an interview, and I had to write this code on a white board. Sadly I couldn't complete the code :( . I've realized that writing code on white board is completely different from typing it on an editor. Firstly because, I type way faster than I write and secondly I can't ke...

 
5:57 AM
0
Q: i want to get from you

A. G MZEE Write PHP script that can accept user entries of student's name and marks. Append the information of the 1st test, 2nd test and UE in the results.txt file of the assignment two. The user should be able to specify the name of the subject so that the system can calculate the cumulative GPA of the ...

 
6:44 AM
Monking
@CaptainObvious HAMMERTIME!
 
6:58 AM
In other news: Google won from Oracle.
2
 
0
Q: Client categorisation based on hourly payment

SeverinI am currently working on a small internal rating system for clients to be able to prioritise my work based on what client pays best. The input data is the hourly rate they are paying and based on that they should be divided into categories in are the range from A-D. The first setup looks like th...

 
7:14 AM
0
Q: Sleep () function , issue in c++

user106474i am trying to make a very simple keylogger using the GetAsyncKeystate and i am adding the sleep function to reduce cpu usage ,however when i add Sleep (1); it doesnt seem to pick up the keystrokes properly for example , if i run the exe and type "yahoo.com" the .txt file will only have recor...

 
7:37 AM
There's too much code missing to tell (we'd need a real repro with working code), but even then I'm afraid you're asking for a code review / opinions. (Which could make a fine question, but would be off-topic on SO I think.) — Jeroen 45 secs ago
 
0
Q: Printing the nth term of the Fibonacci Series (Array out of bounds error)

CraigI've written the following code for to print the nth Fibonacci term, import java.io.*; public class Main { public static void main (String[] args) throws IOException { File file = new File(args[0]); BufferedReader buffer = new BufferedReader(new FileReader(file)); String line; while ((line = bu...

 
8:00 AM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Reduce a string using grammar-like rules
 
Zak
8:22 AM
For anyone who's interested: SpaceX is launching another rocket today, starting 21:40 UTC.
Also, Monking
 
@Zak When/Where will they land it?
 
0
Q: different method to calculate blob area in OpenCv

rokI'm trying to use a different method to calculate a blob area from contourArea, I'm using countNonZero function. I want to see if there is significant approximation introduced by contourArea function, and also be able to calculate area of contour with auto-intersection. I'm using this code: cv::...

 
Zak
8:44 AM
@Mast It's going up to Geo-Stationary orbit and then they're going to try to land it in the ocean. There's a good chance the landing will fail as GS orbit requires a lot more speed/fuel. On the other hand, if they manage to land it anyway, that will be awesome.
 
0
Q: Implementation of custom config section

user6216224i recently wrote my first custom config section. I have a collection of index files, each has a path and a savetime: internal class searchConfigSection : ConfigurationSection { static ConfigurationProperty s_indexCollection; static ConfigurationPropertyCollection s_propertyCollection; ...

 
Zak
When is unknown. Launch window opens at 21:40 UTC but they could launch later.
 
@roryap do i need go to code review too if my code is using wrong method to deal with task? — Nazar 7 secs ago
 
@Zak Yea, that would be awesome.
 
9:03 AM
It sounds like it would be on-topic for Code Review. Make sure you include your code in the question itself. Your Stack Overflow question can be removed afterwards. — Mast 20 secs ago
 
Welcome @Mark
 
9:14 AM
0
Q: Optimization of matlab code

user3185171I am relatively new in MATLAB and my major problem is optimization. My code seems to run very slow and I can't think of any way to make it faster. All my arrays have been preallocated. S is a large number of element (say 1500 element, for example). i know my code runs slow because of the "for k=1...

 
9:27 AM
Monking
 
@Quill Because the commitstrip was about IOT
@Quill Meh, if he's learning, it's fine :P though fetch and standard javascript would be nicer there
that said fetch isn't widespread and classList doesn't work in <IE10
I've said it before; while i hate jQuery, it is not because jQuery is bad, it's because people who use jQuery often have no idea what it is (and is not) doing for them and use it such that it leads to memory leaks
4
But if jQuery helps people get into learning JavaScript better, whatever
 
Zak
@DanPantry This is what I think when people hate on VBA. The language has *limitations*, sure, but most of the things people hate it for are due to who's using it, not because it's an inherently bad language.
 
9:57 AM
Monking
 
guys
"Ashling Lenane"
 
@DanPantry jQeury leaks that bad?
 
What's first/lastname?
 
@JeroenVannevel "First Last"
 
@Mast Every node you create will be referenced by jQuery unless you explicitly remove it through jQuery.
If you're doing lots of DOM manipulation that adds up very quickly
 
9:59 AM
@JeroenVannevel Lenane is an Irish lastname.
 
@JeroenVannevel First = Ashling. Last (aka Surname, Family name) = Lenane
 
@DanPantry No GC?
 
okay cheers
just checkin
 
@Mast Objects can't be GCed if they have a reference to them
jQuery keeps a reference to the Node in its cache unless you .remove() it through jQuery
 
@DanPantry actually there are ways to GC objects that still have references.
 
10:01 AM
This could be solved in newer versions of JS with WeakMap/WeakSet though
 
Escape-analysis in a Graph
 
@Vogel612 I meant in terms of V8's engine
V8, at least, uses mark-and-sweep
 
Python doesn't give a crap and simply doesn't run out of memory.
I tried.
You need to do something really stupid to make it go nuts.
 
0
Q: Shortcode Parser in Javascript

RichieAHBI've written a naive shortcode parser in JS that parses shortcodes akin to those found in Wordpress. The intention is for this to be used in realtime on the client in order to preview edits on the fly. Excusing the strictness of the regular expressions I'd be interested to find about my impleme...

 
No way you do that by accident.
 
10:05 AM
@Mast then again python just gets slower as you accumulate more and more and more memory
 
Yea.
It should beat VBA though.
Probably jQuery as well, although I'm not sure about that.
 
it may beat jQuery, but unfortunately there are only trouser snakes, not browser snakes, at the moment
/badpun
 
@Mast I done it one, thought I broke my machine. It was like my graphics drivers broke for a couple of seconds.
 
@Mast I wouldn't be so sure about that
 
We could make it a contest.
 
10:08 AM
VBA can be hellishly fast if you do it right
aka: you don't access the damn Worksheet
 
aka: you don't use VBA for what it's made for?
 
Zak
@skiwi Accessing Worksheets/Books sparingly is good practice no matter what you're doing.
 
Don't you need to do it at some point though if you want to do anything meaningful?
 
not necessarily
 
Why oh why do I have 43 tabs open on my smartphone?
4
 
10:13 AM
wouldn't it work under the same conditions as JS?
aka, fast, as long as you keep DOM (Worksheet) manip to a minimum
 
^^ yea it's basically exactly that
 
because any language sucks when it comes to GUI
 
actually that's not a GUI thing
DOM is slow as heck because it's not normalizeable and it's IO and it's XML-ish
which means a lot of the tricks to speed up IO and traversal can't be applied
Worksheets are slow for the same reasons and because they use IUnknown and COM madness
 
Shows what I know
When I said GUI, I probably should meant operations that rely on accessing something external, if that makes sense
Like, I can't rely on an external program returning in any amount of time compared to how fast it wuld be if I did the operations of that program in memory
 
GUI doesn't necessarrily do that.
 
10:16 AM
:( Rust doesn't have great support in IntelliJ yet, so it's choosing between Visual Studio and Eclipse
 
No, but Worksheets and the DOM does ^^
@skiwi SublimeText!
Or Vim
 
@skiwi write a plugin yourself :D
 
@Vogel612 It's a work in progress
 
Write it in Rust, : ^)
 
Totally unrelated, but possibly interesting for us, too because our closure rate is similarly high:
58
Q: Usability issues for first-time Stack Exchange users - a micro-study

ArtOfCodeI come from lands afar, also known as Hardware Recommendations Stack Exchange. Over there, we have a serious problem with first-time Stack Exchange users coming along and asking off-topic questions - to the extent that 50% of incoming questions are closed. We've had a few attempts at solving this...

 
10:19 AM
@DanPantry I'm not that into IoT ;-;
 
after all 30% of incoming questions are closed and I really don't like that they are
 
What I think is cool in Rust is that you when you create a project using the package manager Crate then it automatically initializes a Git repository for your project
 
eurhgh
and what if git is replaced by a superior VCS?
 
There's probably a command-line option to not initialize the Git repository I'm guessing, for now I like it though
 
Code Review Stack Exchange might be a better place to ask this question. — Selcuk just now
 
10:27 AM
@skiwi You're doing it wrong.
 
@Mast I'm just stress-testing browsers
3
 
^^
 
Zak
So I'm trying out Dark-Theme for my code. I've decided I like it.
 
@Vogel612 impossible /s
 
possible answer invalidation by deathgeo888 on question by deathgeo888: codereview.stackexchange.com/posts/129195/revisions
 
11:02 AM
I hate HR already
"Here are 50 pages worth of documents. Read through them and sign them and sent it back by us via email before Monday"
 
0
Q: Pomodoro Timer via Go

Martin ShilMy goal is to implement a simple pomodoro timer using golang: channels, goroutines. I'm newbie in go world and have some misunderstanding about name convention. I read a lot of Docker's code on github and there I saw that people sometimes use very short names. These names are not clear for me (a ...

 
"Okay. I just moved here to the UK so I don't have a printer or know anyone with a scanner. Can I just bring them to the office?"
> We will require you to sign scan and return the documents to us via email.
let me just conjure up this scanner
 
Consider posting this on the Code Review forumRon Rosenfeld 19 secs ago
 
They don't have AZERTY keyboards/laptops
this is a nightmare
My productivity gained by years and years of AZERTY usage on all my devices down the drain
 
Can't you write it electronically, and add it to the document?
 
11:10 AM
possible answer invalidation by cristch on question by cristch: codereview.stackexchange.com/posts/129381/revisions
 
@JeroenVannevel Sign and e-mail them? lol
 
@JoeWallis not sure. Can you do that with PDFs?
 
@JeroenVannevel Yes, and it looks like it can be quite simple howtogeek.com/164668/…
 
@Duga Rolled back.
 
meh, considering they explicity said "sign, scan and email it back to us" I'll just do it the physical way. The recruiter said he'll fix things with HR
 
11:14 AM
@JeroenVannevel I used to scan my signature and add it to the page as image.
@JeroenVannevel What are you, French?
 
Well, partially, in a way, yes
 
@JeroenVannevel yep. we use qwerty
 
It's an awesome keyboard. You have (, ) and " as first-class buttons for example
who needs 1->0 there when you've got a numpad
 
we have 1-0 AND a numpad
O:
 
7
A: Simplest way to write "FizzBuzz" in Rust

PasserI think that match is better, you just do not know how to cook it ;) fn main() { for i in 1..102 { match (i%3, i%5) { (0, 0) => println!("FizzBuzz"), (0, _) => println!("Fizz"), (_, 0) => println!("Buzz"), (_, _) => println!("{}", i) ...

Damn this looks cool
 
11:19 AM
@JeroenVannevel I had this with my agent as well, I was like "wtf"
 
I only am curious if it has performance impacts
 
why can I not just electronically sign stuff right now
 
@JeroenVannevel Cause then your hands stay on the home row
 
It just makes sense. And obviously you have the French-specific characters readily accessible
 
I can take out a loan online without having to do that, but for a rental purpose? wtf
 
11:20 AM
possible answer invalidation by cristch on question by cristch: codereview.stackexchange.com/posts/129381/revisions
 
@JoeWallis Consider it exercise for your wrists
they move a bit rather than staying stuck in the same place
 
@skiwi Hah, yes, that's awesome.
 
@JeroenVannevel I use Dvorak to reduce as much exercise as possible, ;P
 
Really Eclipse?
> You must cancel the operation before you can close the wizard.
The cancel button is greyed out :|
 
My team at Apple is looking for #postgres expert in Shanghai. Your work will have a huge impact at . Please RT! https://jobs.apple.com/us/search#location&ss=48219674&t=1&so=&lo=0*CHN&pN=0&openJobId=48219674
 
11:30 AM
possible answer invalidation by cristch on question by cristch: codereview.stackexchange.com/posts/129381/revisions
 
@skiwi You'll need to hit Ok first.
 
@Mast Even then Cancel was still greyed out
 
@Duga Rolled back.
@skiwi Alt+F4, uninstall.
If that doesn't work, nuke from high orbit.
 
@skiwi it's the red button
ya newb
Someone get some IT 101 in here
 
@JeroenVannevel Oh... right, that's why I hate Eclipse
Meanwhile it magically progressed with the isntall though
 
11:35 AM
0
Q: Utility class holding useful constants - Is it a bad practice?

Javier Ventajas HernándezI'm taking a Google Firebase course on Udacity and on one of the videos, the teacher creates a Constants class which acts as a namespace for holding constant strings and integers that are useful throughout the app. The class doesn't include anything else, it just holds constants. My question is...

 
@CaptainObvious A question asking about someone else's code and doesn't have any code. ): I have no clue what to close for...
 
@JoeWallis I think it's fine to go with the reason that it cannot be pseudocode, etc. etc. as this looks like it should be on Programmers, though it would probably also be off-topic there
 
@skiwi Thank you, :)
 
I don't get how people keep doing this... So in my house we have two doors next to each other, one is an (obviously closed) door for the toilet, the other is a door with glass to go outside... People still manage to open the wrong door to go outside
 
0
Q: Deleting duplicate elements from a single-linked list in C++11

nachocabThe code below is a simple coding exercise I got from a book that asks to remove the duplicates from a single-linked list (using a simple struct; this is part 2, see part 1 here). My question: is there a better way to delete a Node than by creating a temporary variable temp and deleting that. I a...

 
11:46 AM
@Mast If you need any excuses when you are supposed to code then Rust is a great language to use as you can use
 
@skiwi If I need that excuse, I'll just crap some VHDL together. Takes forever to simulate.
I don't see any code and the question isn't about code you wrote or maintain. That makes it off-topic for a lot of reasons. Please take a look at the help center. — Mast 19 secs ago
On an unrelated note, it's Friday.
Tonight there will be beer and destroyed universes.
 
0
Q: Unity3d class that inherits from button and add OnHold Event

Uri PopovI made my own class that inherits from button and has a OnHold event. It seems to work ok but I'm wondering if I can improve it or if you can spot any glaring mistakes that I made. Here is the code : using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; using UnityEngine.Event...

0
Q: Python html Page reporter -- Slow Writing to File

M03My program, page_reporter, attempts to port scan a network and identify servers hosting web pages. From here it will create an HTML report using iframes to give you a snapshot of what the page looks like. This is meant to be an internal penetration testing tool to identify information disclosure ...

0
Q: Auto-upload tool (VBA, Excel)

L. Baderi created an automatic upload tool, working great (most of the time). As i want to improve the code i have several questions: 1)Is it possible to make the iexplorer progress some kind of smoother? I don't like it that people can see the "sendkeys" actions. Is there a possibilty running the progre...

 
Monking
 
With Eclipse it feels like I'm going 10 years back in time after coming from IntelliJ
 
12:23 PM
Banana
"Make a hangman game they said, it will be fun they said"
3
 
Hangman is 5% logic and 195% layout of ASCII characters
4
it's the definition of not-fun
 
@JeroenVannevel I tried to make the ASCII into a generator in python
 
If you're not hardcoding the ASCII then you're doing it wrong
 
@JeroenVannevel But then how can you change the size of the gallow, and allow for a bigger / smaller stick figure?
 
Why do you want to spawn a demonchild?
 
12:33 PM
@N3buchadnezzar 1) Use a fixed-width font.
 
Procastination:p
 
2) Try your ASCII creations before writing them in software.
 
Just received my Belgian tax forms
 
@Mast I think I will go for a matrice instead easier on the logic :p
 
I moved 10 days ago
leeches
 
12:35 PM
3) Be awesome and release you don't need no goddamn ASCII challenges to be awesome, because you already are awesome
 
0
Q: How to make the logic of this Python code more concise?

JyqftCode #!/usr/bin/python import os import sys import ntpath import subprocess srcPaths = sys.argv[1] actionType = sys.argv[2] srcPaths = srcPaths.split("\t") srcPathsCount = len(srcPaths) lockCount = unlockCount = 0 def fileIsLocked(srcPath): cmd1 = subprocess.Popen(["ls", "-ldO", srcPat...

0
Q: Method for String Building in java

Shubham ChaudharyI have written a custom method to use StringBuilder in java. My Requirement is to create a method which accepts any number of arguments of any type and return String by concatenating the arguments. eg. msgBuilder("Hello ",0," how"," are"," you ",2.5) return "Hello 0 how are you 2.5" Here is my ...

 
───────▄██████████████████▄───────
────▄███████████████████████▄─────
───███████████████████████████────
──█████████████████████████████───
─████████████▀─────────▀████████──
██████████▀───────────────▀██████─
███████▀────────────────────█████▌
██████───▄▀▀▀▀▄──────▄▀▀▀▀▄──█████
█████▀──────────────────▄▄▄───████
████────▄█████▄───────▄█▀▀▀█▄──██▀
████──▄█▀────▀██─────█▀────────█▀─
─▀██───────────▀────────▄███▄──██─
──██───▄▄██▀█▄──▀▄▄▄▀─▄██▄▀────███
▄███────▀▀▀▀▀──────────────▄▄──██▐
█▄▀█──▀▀▀▄▄▄▀▀───────▀▀▄▄▄▀────█▌▐
 
@N3buchadnezzar You're bored, aren't you?
 
Since this is working code and you want to optimize, I'd suggest posting over at codereview.stackexchange.comlurker just now
 
12:59 PM
@Duga Upvote this, for some reason this question was received positively by SO despite not belonging there
Also flagged for migration
 
Also, this probably belongs on CodeReviewBarry 35 secs ago
No, I asked a specific question about the code, not a code review. — user1095108 22 secs ago
 
I give up
 
@user1095108 You can ask specific questions about the code on Code Review — syb0rg 33 secs ago
 
@N3buchadnezzar what language are you writing in?
 
Python :p
 
1:11 PM
just read that line...lol
for something like hangman I would have to agree with @JeroenVannevel
Hardcode that ASCII
 
@Malachi But that is soo ugly, ugh.
 
As if there are scenarios where you wouldn't agree with me
 
7
Q: Up, up and away in a Retro Rocket

MalachiI have seen the Writings on the wall... Retro Rocket ASCII Art Nested for-loop art Print the Retro Rocket Maybe a golfed C# answer from me But I took this relatively serious and created a VerticalRocket class that I would like reviewed, kind of like a little "am I getting better at writing c...

it would not be too hard, you simply have two lists/arrays/whatever one with the hangman and one without and then print out the hanged man to whatever integer and then the unhanged man the rest of the way
 
0
Q: Long A$$ Switch Statement to Handle 50+ Options That Call Different Methods

michaelbmorrisI have a switch statement used to handle options that a user selected (stored in an array). The array is iterated through, and for each element (enum object) in the array, an appropriate action is performed. However, the enum has over 50 items, so the switch statement is very long. The items are...

 
1:19 PM
@CaptainObvious that title
 
Lame A$$ title if you ask me
 
Getting a little generic
 
@JeroenVannevel You are Just so Smart!!!!
@N3buchadnezzar so where is the code?
@skiwi because you can
 
@Malachi I gave up, did not bother :p
 
maybe I will try to write one in Ruby today...
 
1:25 PM
Facebook User is the default name when someone blocks you
adding that screenshot to my social engineering archives
 
Question might be better suited for codereview.stackexchange.com, but +1 for " 0 down vote favorite I tinkered with some dependency injection frameworks for Typescript but didn't like the magic & complexity they add. Thus I decided to give DIY DI a try." I don't like DI frameworks either :) — jrahhali 31 secs ago
Please consider moving this question to codereview.stackexchange.comreto 7 secs ago
 
0
Q: How optimize these queries

MercerIt's possible to optimize these queries: UPDATE PEOPLE SET ID_STATE = CASE WHEN ID_STATE = 2 THEN 9 WHEN ID_STATE = 3 THEN 9 WHEN ID_STATE = 7 THEN 8 WHEN ID_STATE = 8 THEN 9 ...

1
Q: Code returns sorted list. But here are a lot of repetitive code.

Anya  Kushykdef sort[A, B: Ordering](data: List[A], desc: Boolean)(measure: A => B): List[A] = { val baseOrdering = Ordering.by(measure) val ordering = if (desc) baseOrdering.reverse else baseOrdering data.sorted(ordering) } private def sortOne(stats: List[One], by: String, desc: Boolean): ...

0
Q: Handle decimal in mongodb

random user 42Hi I'm trying to find a way to handle decimals in mongodb. Is there any good way and/or should I handle it with a class like this: using System; public class MongoDecimal { public long Value { get; set; } public long SubValue { get; set; } public long SubValueToValue { get; set; } ...

 
@Quill if someone blocks you, aren't they out of the friendlist?
 
the messages are still retained in the /messages IIRC
 
this isn't /messages
this is the "online friends" that pops out on the right
 
1:40 PM
@N3buchadnezzar Just use string.format. '{:^30}'.format('centered') is something you'd much rather do. I'd use something like: '{1:^{0}}{2}'.format(5, '/|\\', '|').
 
idk entirely how facebook works, but that's either a deleted or blocked user
 
meh, doubt it. I'm guessing it's just something that loaded poorly or something
 
@CaptainObvious @Donald.McLean
Hello @michaelbmorris
 
Hi
Apparently my "Long A$$ Title" wasn't well received. :P @Quill
 
1:56 PM
I thought it was funny
just not necessarily appropriate ;)
 
Appropriate, no. I was just feeling snarky after typing out over 50 switch cases. Hoped someone would get a laugh out of it.
 
haha, well you got me at least
 
@michaelbmorris Have an updoot
 
0
Q: Count check before Linq Single() call

SerGShould I check Count before Linq Single() call if I excpecte only one elemet? if (objects.Count != 1) { throw new InvalidOperationException( "%Collection% should contain one %element%, but now it's: " + objects.Count); } return objects.Single(); ...

 
freaking hell
my account for the London public transport is more secured than nuclear launch codes
Secret question, password, security passcode and a second secret question
 
2:05 PM
Hello! This post has now been asked on Code Review, where it properly belongs. If you could point future questions like this over there in the future, that would be much appreciated. Thanks! — syb0rg 14 secs ago
 
Hello! This post has now been asked on Code Review, where it properly belongs. If you could point future questions like this over there in the future, that would be much appreciated. Thanks! — syb0rg 51 secs ago
 
Any way I could reword that comment on the answer (in a professional manner) to tell him to not answer these type of off-topic questions on SO?
 
" If you could point future questions like this over there, and refrain from answering them, in the future"?
 
Hello @Mat'sMug @N3buchadnezzar
 
Is there a clever way to compute (a + b)!/(a! * b!) ?
 
2:07 PM
@JoeWallis Cool, thanks
 
@JoeWallis Great suggestion =)
 
"stop answering questions that don't belong here"
gloves semi-off
make them feel bad and question their commitment to online life
 
monking!
 
cqsdqsddqddqqdq
don't make a home phone a required field and mobile phone optional
 
@JeroenVannevel Don't want to start an internet war now, SO has enough of those
 
2:09 PM
o/
 
Hello @DanPantry
 
@syb0rg No problem, :) @N3buchadnezzar You on about the str.format?
 
What do you get when you throw a grenade into a French bathroom? Linoleum blownapart
@JeroenVannevel lol
 
http://www.commitstrip.com/en/2016/05/27/if-this-strip-was-a-side-project/
CommitStrip
If this strip was a side project
CommitStrip
1464357804
 
@DanPantry ouch
@CommitStrip "strip park" huh
that's early today
 
2:11 PM
@JoeWallis Yeah, just saw it.
 
Could use some upvotes on this comment to show people support it's idea:
Hello! This post has now been asked on Code Review, where it properly belongs. If you could point future questions like this over there (and refrain from answering them on SO in the future) that would be much appreciated. Thanks! — syb0rg 8 mins ago
 
@N3buchadnezzar str.format is OP :) (I love it)
 
@JoeWallis Do you think @Mat'sMug loves it as well? I mean it is "for mat" ;)
 
dat pun
 
@syb0rg Have an updoot.
 
2:17 PM
@N3buchadnezzar Why the heck would you want to do that?
 
@Mast Project euler
 
Don't cross-post. The other question has an answer. I suggest removing this question. — Mast 8 secs ago
@syb0rg Now the question is on both places. That's fragmentation.
Fragmentation is bad.
 
@Mast I flagged it for the moderators to handle before the cross-post
 
@N3buchadnezzar Oh, right, they ask funny stuff there.
 
SO's problem now
 
@syb0rg Migrate & merge?
@Mat'sMug Opinion?
 
@Mast That's what I suggested, flag is pending
I suspect more flags would help speed up the process
 
I don't see a flag.. it's on SO?
link?
 
0
Q: How to optomize this code?

Anya  KushykI have this code: def sortFirst(data: List[FirstClass], desc: Boolean, by: String): List[FirstClass] = desc match { case true => by match { case "good" => data.sortWith(_.good > _.good) case "bad" => data.sortWith(_.bad > _.bad) ...

 
@Mat'sMug It's on both.
 
2:21 PM
PR response handled by me, now the behind the scenes work just has to take place
 
Except there's no point in flagging it CR side.
 
@Mast Well yeah, flag the SO one
2
Q: Code returns sorted list. But here are a lot of repetitive code

Anya  Kushyk def sort[A, B: Ordering](data: List[A], desc: Boolean)(measure: A => B): List[A] = { val baseOrdering = Ordering.by(measure) val ordering = if (desc) baseOrdering.reverse else baseOrdering data.sorted(ordering) } private def sortOne(stats: List[One], by: String,...

CR one ^
 
@syb0rg Already did.
I'm not a fan of migrations, but this is a clear case.
 
Is code "optomization" a special technique? Where can I learn it?
4
 
@Mast Neither am I, but the answerer used the FGITW technique and now it can't be self-migrated
 
2:23 PM
OP can't delete it on SO, answerer got +80 out of it, and it's a fine CR post. I'd say ♪ let it go
except yeah, it would be much better with a description of the code
 
one could always try to m&m... migrate & merge
 
What @syb0rg meant was "dude, it would be nice if you would come over to Code Review and contribute more fleshed up answers in a more "relaxed" context, and rise to the top of the scala reviewer community! — Mat's Mug just now
6
 
We have a butt load of upvote to give you here too
 
@syb0rg IMO someone needs to tell her that SortOne, SortTwo and SortThree could use better names
@michaelbmorris lol!
 
@Mat'sMug Just trying to help :)
 
2:28 PM
Duga's slow apparently
 
@michaelbmorris Point him to this chat room in that comment too, this is the place where he'll really get a sense of the community
 
on the scala vexperience quality, CR rocks. it's awesome that we've managed to keep it that way! =)
</puns>
 
@Mast On the CR question she just removed the cross-post link now lol
 
@syb0rg I done did do it.
 
2:31 PM
Hm, other than the weed stuff it gets the point across
 
Changed my phone number on my bank account to my new UK number
Next moment I receive a text saying my phone number changed
on the new number
I've encountered so many strange UX scenarios and I've only been up for a few hours
 
@syb0rg I was keeping with the "chill" theme.
 
rolled back
Cross-posting is fine, mistakes happen, keep the link to the SO post in there, it can be helpful to reviewers. Welcome to CR! This is a fine question indeed, but I agree with @Marc-Andre, a little bit of description of what it does and why, would make it a great one. Cheers! — Mat's Mug ♦ 39 secs ago
read: edit your post if you want my upvote
 
@CommitStrip hmm, there's a commenter there that sounds familiar
 
@jrahhali Thanks! Did not know about codereview.stackexchange.com. Will try it there but keep the question active here as well, just in case... — Marc Dix 25 secs ago
@jrahhali please take a minute to read a guide to CR for SO users; Code Review requires the code to be reviewed, embedded in the post, not as a link to a github repository. — Mat's Mug 55 secs ago
 
2:43 PM
@Duga prepare hammers.
 
"Can I have your middle name?"
"Yes, it's 'sil'"
"Is that with the O of October?"
".. wat?"
 
@JeroenVannevel No, it's with the O in stopid
 
The worst part of being exotic like me is that they never get your name right
Had to call the TFL to have my secret code changed because they guy entered it wrong. It's 6 letters, how hard can it be
 
@JeroenVannevel Tell me about it, I got a th construct in my name that everybody spells wrong.
 
2:45 PM
> The clay is silent
 
@Mat'sMug But that's no big deal. I can include the code. Thanks for the hint! — Marc Dix 2 mins ago
puts hammer back where it was
 
@Mat'sMug *begrudgingly puts the hammer back*
 
@Mat'sMug Dang, I was just sharpening my pitchfork
 
--E
 
-----E
 
2:47 PM
compensating for something?
 
Mine's bigger
3
 
:^)
 
====E
 
mods get double lined pitchforks
 
@Mat'sMug Oh, look at you and your fancy reinforced handle
2
 
⎯⎯∈
 
@Duga in a few years' time, SO answers will just be links to CR nah
 
Take that.
 
----F
Dang it, broke my pitchfork
 
That looked way different while I was typing it...
 
2:51 PM
was that an X-Wing?
 
Was supposed to have been a long a$$ pitchfork to go with my long a$$ switch statement.
 
I can't stand dollars.
 
@N3buchadnezzar Yes you can do from operator import mul; reduce(mul, range(b + 1, a + b + 1)) / reduce(mul, range(1, a)) assuming a <= b
 
@Mast $$$$$$$$$$$$$$$
 
That's my queue to leave.
 
2:59 PM
@JoeWallis =)
@JoeWallis I need to put PE on hold for a while. I miss easy implementations, and basic programming ideas.. Just focus on my exams for a while I guess.
 
00:00 - 15:0015:00 - 00:00

« first day (1119 days earlier)      last day (2901 days later) »