« first day (1143 days earlier)      last day (2890 days later) » 
00:00 - 13:0013:00 - 00:00

1:00 PM
I'm not asking to earn exactly what they earn
 
Zak
@syb0rg Unless you believe your emploer will give you more money out of a sense of justice, that's irrelevant.
I repeat. Leverage.
In your position, your leverage is that you might quit and take a higher paying job elsewhere.
If you want to negotiate for a higher salary, you either ask nicely, and accept that they will likely say no.
 
Monking
 
Zak
Or you negotiate, in which case you have to have leverage.
If you are wiling to quit, then go ahead.
Otherwise, ask nicely, and accept that the answer will likely be no.
 
@Zak I'm researching leverage now, what would you recommend I use? Wages earned at other similar internships?
 
@syb0rg My company lost more than $10,000 because I forgot to send a confirmation mail. My contact person in the other company asked me over the phone to do a job. He quit his job. I delivered the project and got back: We never asked you to do this.
 
Zak
1:03 PM
@syb0rg Your leverage is your BATNA (Best Alternative To A Negotiated Offer)
@syb0rg So, if you could (reasonably argue) that you can leave right now and get a similar job paying £50k a year AND you are willing to actually do that. Then that is your leverage. "Give me a raise or I'll go elsewhere".
 
Zak
@syb0rg If you are not willing to quit, then you have no leverage.
 
> Malachi has invited you to join The Nth Monitor.
Thanks. <disapproval face>
 
1 message moved from The Nth Monitor
 
1:08 PM
0
Q: Are there any adjustments I can make to increase the speed of this macro?

Joshua HaghighiThis macro pulls in two workbooks, one being a template with saved formulas already, and the other containing data with thousands of rows...I need to increase the speed because the process takes more than 15 minutes. Please help! Sub WbtoWb4() Dim Wb1 As Workbook Dim Wb2 As Workbook With Appli...

 
@zʏᴀʙiɴ101 you're welcome? lol
 
Bye, for now...
 
later
 
@StewieGriffin Cya
 
Good morning.
 
1:18 PM
monking @Legato
 
@Legato Morning
@Legato Did you by chance read the latest edits to my answer to that question of yours? I sort of wish there was an inbox notification that would tell you I did that so you could read the changes I made.
 
I'm sure I have, but I'll double check right now.
Yup. I did.
 
Oh hi.
I'm going to Dublin. :)
2
@Zak Isn't that a Tyrion Lannister quote?
 
monking!
 
@Mat'sMug Hey!
 
1:23 PM
Npoljoh
 
@DanPantry :o
 
please don't correct that typo @zʏᴀʙiɴ101.
 
@zʏᴀʙiɴ101 what does that mean? is that gibberish or did your cat sit on the keyboard?
 
LOL
@Malachi if you look at your keyboard it's most of the letters of "monking" switch one key to the left
Actually, I have no idea what I am on about.
Never mind.
@skiwi This week. :D
 
Next round of applications, or more permanent?
 
1:25 PM
@DanPantry actually that looks about right...
 
@200_success Yes, use extreme caution while driving cars. Isn't it pretty obvious that you don't put two wheels on the dirt at 70mph? — David Richerby 23 hours ago
 
@skiwi This would be the last interview before an offer is made
@Quill Gulp/Grunt is bikeshedding
 
22 hours ago, by zʏᴀʙiɴ101
When your alphabet starts in the wrong place.
3
 
Gulp is more configurable but Grunt is convention over configuration. I personally use shell files. Pick what works for your team and stick with it.
 
@DanPantry Nope, it's an alphabet shift one letter to the right.
 
1:28 PM
@DanPantry Cool, hope you get a cool offer
 
@zʏᴀʙiɴ101 What keyboard format?
 
Caesar Shift
not keyboard shift
 
@Malachi Oh, gotcha.
 
Zak
@DanPantry Quite possibly, but it's just a fundamental law of negotiations. If you want to negotiate, the other person has to want something from you. That thing is your leverage. If they didn't want anything from you then there would be no need for a negotiation.
 
The leverage thing is obvious I'd just say to be careful how you present it.
Even if you have value and gain what you want temporarily mis-negotiation can put you on an express exit.
 
Zak
1:35 PM
@Legato The key rule is that for a thing to be used as leverage, you have to be willing to use it.
If your leverage is your willingness to quit and go elsewhere, and you are not willing to do that, then you have no leverage.
By extension, if you try to negotiate by saying "If you don't give me a raise, I might/Will go elsewhere", then you'd better be prepared to actually do it.
Or, to put it another way. Don't try to bluff.
 
@Zak Not really my point. I'm contending that even presenting it in terms of "If you don't X, I will Y" is an ultimatum that dooms you from the start.
 
Zak
@Legato Well, not if you are prepared to actually do Y.
 
No, you're not getting it. What I'm saying is that it's too much of I I I I
 
the point is, if you threaten to do Y, they'll let you go anyway
unless you've secured your job with mission-critical shit code that only you understand, but even that isn't guaranteed.
 
Everyone knows you have no allegiance to a company, but all that does is establish demonstrable disloyalty. It's the entirely wrong approach.
 
Zak
1:39 PM
@Legato Well, also depends on phrasing.
 
@Mat'sMug I'm the only one that understands the stuff I'm doing... for now anyways
 
Zak
I wouldn't advocate ultimatums
 
You need to, instead, talk about what you've achieved in the time you've been there. What value you've brought to them.
This goes a bit further than phrasing it's a completely different strategy.
 
Zak
And I'm not saying you actually negotiate by laying out your position.
But you absolutely need to know your own position before you start a negotiation.
You need to have decided what you are and aren't willing to do.
And, by extension, what you are and aren't going to bring up in a negotiation.
 
If there's anything I've learned from frequenting The workplace is that you don't even want / accept a counter-offer in the first place.
 
Zak
1:41 PM
@Legato Well, that's the company's side of it.
 
Please use that network to evaluate people who've been in a similar situation.
 
Zak
Can we give this guy some votes so he can actually leave comments.
 
would be more of a vote-incentive if they could be bothered to edit their title
 
Zak
@Mat'sMug I know, but he did at least post working code with (something of a) description, which is more than a lot of new users manage.
 
@KiW Your update is really a separate question and it is better suited for codereview.stackexchange.comSuever just now
 
Zak
1:48 PM
@Mat'sMug Did you clean up the user accounts?
 
requested.
 
0
Q: Ordering data.frames elegantly by factor

LlopisI have a mock_Data: structure(list(Sample = structure(c(29L, 31L, 21L, 25L, 15L, 17L, 13L, 27L, 23L), .Label = c("109d0", "109d2", "116d0", "116d2", "125d0", "125d2", "136d0", "136d2", "138d0", "138d2", "141d0", "141d2", "144d0", "144d2", "18d0", "18d2", "28d0", "28d2", "30d0", "30d2", "39d0...

 
I could use some advice about testing, say I've got two methods and one is just calling the other method (using Rust there are good reasons for this), is there a way I can avoid writing the same tests for both of them? Maybe branch coverage is the key
 
2:13 PM
Monking!
 
An alternative implementation can be found here: Simple and safe implementationCplusPuzzle just now
 
@Phrancis Hello!
 
0
Q: Private Swift Function as Objective-C Selector

JALI want to use a private function on a Swift class as a Selector, say for an NSNotification. Obviously passing in a Swift void function or closure will not work, so I use the #selector syntax to build a Selector from the Swift function. class MyClass { private func privateFunc() { } fun...

 
Whew, I can finally talk.
8
 
@Majiick Hello!
 
2:25 PM
@Majiick your world will never be the same :)
 
What he^ said
 
Zak
I'm trying to design a DB system for my company.
Today, I've learnt that designing a robust DB scheme is not easy.
 
We could also have told you that ^^
I guess that wouldn't have benefited to the learning experience though ;)
 
Zak
It's only meant to replace a single damned spreadsheet, but I'm sitting here trying to list out all the fields/records/tables/operations it's going to need, and I'm at 10 pages of A4 and I'm barely a third of the way through.
Mind you, this is more of a reflection of how that spreadsheet completely violates separation of concerns.
 
@Zak in Excel? IKR!
 
2:38 PM
What kind of monster spreadsheet is that?
And what is the database going to offer you?
 
Zak
@skiwi It's not even monstrous. It just tracks Everything.
Every line is a piece of submitted business.
Like, say, a client wants to put £10k in an investment account.
But that has 40 columns.
A bunch of meta information (client, date, adviser, who's recording it) then the actual piece of business (amount, terms, dates, descriptions, trading notes), then various follow up (invoicing dates, when we received the money, when we got paid) and finally compliance (file checks, second round of file checks).
That's one sheet.
 
@whoever came up with the Team Frustration Server meaning for "TFS", I stole it
 
Zak
There's 6 others for different kinds of business
I actually designed this spreadsheet, so all the data is in nicely normalised columns.
There's just lots of it.
And it gets added to at various points over time.
 
0
Q: PHP how to build html in class

user1303840I am used to procedural PHP. However, I have a piece of code that needs to be repeated a lot. I was thinking of trying my hand at creating a class. All is going well and it is working, but I think it can be done better. Especially the function where I am creating the HTML. At the moment, I h...

0
Q: SQL Server R Services - Could not find stored procedure 'master..xp_ScaleR_init_job'

MinuI'm trying to run a data science experiment as explained in this tutorial. The tutorial has 5 lessons, and each lesson has a few sub-sections in it. For this tutorial, I am using a SQL Server 2016 RC3 Virtual Machine on Azure, with R Services enabled. RRE for Windows 8.0.0 as a data science c...

 
Zak
And since the entire company runs on it, I can't really replace it a bit at a time.
 
2:43 PM
How can a company run on a spreadsheet?
 
@skiwi oh boy, you'd be surprised
 
Zak
@skiwi You've never worked in finance have you?
 
THE WORLD runs on a spreadsheet
3
 
Zak
@Mat'sMug Pretty much. If you could pick one software application to crash overnight for maximum worldwide impact, Excel would probably be in the top 3.
 
we're all just cells in a gigantic spreadsheet spaghetti. @Zak is The One that will take that crap onto SQL Server.
 
2:45 PM
@Zak (Luckily?) not
@Mat'sMug Are we all just more rows on a very big spreadsheet?
 
Zak
@skiwi Excel is incredibly powerful and can be used (and programmed) by people who have no idea how to program.
 
@Zak s/can be/is/
 
Isn't it an issue if people that cannot program somehow manage to program?
 
Zak
Hence, it is ubiquitous (and essentially free) and the tool of choice for running a business when you're small and can't aford to hire a developer.
@skiwi Well, yes, this is how monster spreadsheets get created.
 
To be fair, a family member of mine is also using a spreadsheet to manage a side-project, I've looked at it a lot but still cannot justify to write a program for it in my free time
 
Zak
2:47 PM
I've seen some spreadsheets that are used to evaluate entire billion-dollar corporations.
 
@skiwi this is why Rubberduck needs to stabilize, so non-programmers can learn to refactor crap code and Stack Overflow can stop having "compile error: procedure too long" VBA questions
 
Zak
And there's probably definitely billions of dollars that gets invested based entirely on models built in Excel.
 
@Mat'sMug Nothing can stop bad SO posts
3
:(
On a sidenote... I know how to define good databases, but I'm lazy and don't want to deal with views too much, what are my options for a tool that creates an application for me?
 
Zak
@skiwi Outsourcing :p
@syb0rg Just an anecdote. When I asked to have my salary re-evaluated. The conversation went thus: (paraphrasing) "I feel, based on my work and my output, that I produce value commensurate with a salary that is higher than my current one." "You have a point. We'll give you an extra £1.5k a year". "I feel that's *still* significantly less than I'm worth". "Tough".
 
0
Q: Structure of a Rails service

Ryan.layI'm writing a Rails service in which a series of operations are performed on a record. It looks something like this: class Service self.build new end def call(record) record_after_operation_1 = operation_1(record) record_after_operation_2 = operation_2(record_after_o...

 
2:54 PM
@CaptainObvious Looks like hypothetical code to me
 
Zak
That's how you do it without negotiating. You ask, you get what you get.
 
@Zak Good point
 
Zak
Negotiating would involve implying (one way or the other) that either I get a raise, or I might/Will quit and go elsewhere.
Which is why I said earlier that, in order to negotiate, you have to have leverage that you are willing to use. And in the case of your employment, the only leverage you really have is your willingness to quit and go elsewhere. Without leverage, it isn't a negotiation, it's a request, and you get what you get.
 
Unit testing is fun
 
gosh this is hopeless
If an executive can't look at numbers and understand that they're rounded and that the total that's calculated does add up to 100% even though they're adding up to 101% on the printout, ....nothing can help. Doing what you suggest amounts to making the formula calculate WRONG NUMBERS just so some exec can have the satisfaction of adding up numbers to 100% in their head. If they don't understand rounding and decimals, they shouldn't be looking at reports all day. — Mat's Mug 10 secs ago
 
3:04 PM
Isn't ensuring you have 100% branch coverage in principle pointless if you don't think about your unit tests?
 
Zak
3:15 PM
Either they can have the numbers rounded, or they can have the numbers add up exactly. They cannot have both. — Zak 12 secs ago
 
Npoljoh
 
Anyone see a way to reduce down this method a bit more?
 
0
Q: TicTacToe Implementation With Classes

StormsEdgeThis is my first program using a class that I personally designed. Please pay special attention to the design of the class and I would love pointers and advice on how to better improve logical design of classes (what should be grouped with them, better ways of creating classes to interact with e...

 
What is your specific question? Are you getting an error message or are you really just looking for feedback on your code? If you are just looking for feedback, you probably need to move this to the code review area. — JeffC 1 min ago
 
Zak
3:24 PM
Code Review "Area". Don't think I've seen that one before.
 
@syb0rg You look like you're doing if(xxx& MI_QFLAG_TIMESTAMP_INVALID) on a few different time stamps and then printing error or the timestamp, you could extract a method that took the flag value + time value as parameters
I'd also consider adding mi_type to this line puts("Error - Check Me Out!"); so that if it ever happens you know why :)
 
If this code is working then you should be posting it in codereview.stackexchange.com instead. This forum is for non working code. — Scott Craner 52 secs ago
 
@forsvarir Done
 
@JeffC , I'm looking for someone who can assist me with getting this piece of code workingt?. My question is (How can I get the two specified buttons to click once the correct product is identified on the same page)?. If you think this needs to be moved to the code review area, then please advice me where I can find this in here?. — AzMar 53 secs ago
 
0
Q: Create JSON file from WordPress ACF options

amarelleI am using a WordPress multisite network and want to pull information from options pages in Advanced Custom Fields to create a json file. I currently have this code running whenever an options field is updated on a subsite. The json file lives on the main site. The code works and runs successful...

 
3:37 PM
I'm still not clear on whether your code is working. If it's not working, please post the error you are getting or the issue. If the code is working and you are looking for feedback, please post your question here: codereview.stackexchange.com. — JeffC 26 secs ago
 
Anyone around have experience working on/making a client program which uses a database connection? (any language, doesn't matter)
 
@forsvarir Do you see any way to refactor down those cases in any way?
 
Zak
@Phrancis Me in 2 weeks' time will ^^
Unfortunately, present me cannot help you
 
@Phrancis What do you mean by "database connection"?
 
@syb0rg opening a connection to a database server with credentials
Like PHP's PDO et al.
 
3:42 PM
@Phrancis Ah, not me then
 
working on PE
 
Well I found a way to reduce that switch statement
But it involves some dangerous stuff with void*
 
@Phrancis What's your problem?
 
@Phrancis you basically only need a driver and an API to use it.
 
3:58 PM
@GarethRees I'm in design phase and trying to think of the best/most common way to store/use connection credentials/string while the application is in use. I'm thinking of getting the credentials at startup, but not sure sure if I should just keep them in an object, a singleton, or whatever else there is
 
possible answer invalidation by Jah on question by Jah: codereview.stackexchange.com/posts/132479/revisions
 
Zak
Wooo!
 
congrats!
time for a gold badge now, huh?
@Mat'sMug I agree 100.01% with you. Math is Math. If the execs can't understand rounding then the need to go back to school. I was just trying to give the poor schmuck something that they could use. I have bosses like this and it drives me crazy. I have told a few they need to make up their minds, which way they want it. — Scott Craner 1 min ago
lol
 
Zak
*wonders:* What awesome privilege do I have now! *looks:* "Approve tag wiki edits" :(
 
@Phrancis It depends on what the program does. If it is an interactive program operating on behalf of one user at a time, store the credentials in a global variable or a singleton or whatever your language has.
If it operates on behalf of multiple users, then you'll have some kind of object to represent a user, and you can attach the credentials there.
 
4:10 PM
@Phrancis use Windows Authentication if you can. that way you don't have to store credentials anywhere. Otherwise that would be a user-scoped configuration setting of type "connection string" (assuming a .net solution)
 
Zak
On the plus side, the next one will be "Access to moderator tools" which should be pretty cool.
 
0
Q: evaluation e^x with series expansion

fluterCaculate e^x with series expansion, is there any way to make it shorter and cleaner? #lang racket ; evaluate e^x with series expansion, use first 10 terms. (define (exp x) (letrec ([f1 (lambda (n cx cn) ;(writeln (list n cx cn)) (if (>= n 10) ...

0
Q: Inserting data into a file

LegatoSo, given a file with the following format: [header] line of data line of data line of data line of data [header 2] line of data line of data line of data ... I add a line of data to a specific header so the result would be: ... [target header] line of data...

 
@GarethRees It's that, a program interacting on behalf of one user
 
possible answer invalidation by Bogdan Mart on question by NthTester: codereview.stackexchange.com/posts/132490/revisions
 
@Duga all good
 
4:22 PM
0
Q: Is this efficient/correct or would it make more sense to move the actual content creation to a new class?

basicCurrently I am writing an SDK for developers to use with an existing API. I am trying to create a single Account object that permits them to pull the account information after initialization (read-only). Currently the way I have it working is to create a new Account object after calling to retrie...

0
Q: Simple Repository Pattern without ORM and Unit Tests

Alexander DI'm trying to implement the repository pattern in the following manner (code simplified for readability): Interface: public interface ISurveyRepository { Survey Add(Survey survey); bool Delete(int id); } Implementation: public class SurveyRepository : ISurveyRepository { private...

 
@CaptainObvious code simplified for readability ==> question closed to avoid wasting reviewers' time
 
1
Q: Transferring data from one sheet to another

findwindowI have dollar amounts sorted by month that I want to transfer from sheet entry to sheet actuals. I only want to do it for a specified month prompted from user. Each dollar amount has a corresponding cost center/ID and description in separate columns. I want to copy the amounts and description fro...

 
@Mat'sMug Yeah I don't think JDBC driver can uses Windows authentication, looks like it uses a connection string type of thing, according to MSDN msdn.microsoft.com/en-us/library/ms378672(v=sql.110).aspx
My main question was mostly how to handle the credentials, which you guys answered to my satisfaction :)
 
"if you can"
 
Right, lol
 
Zak
4:37 PM
LOL: MsgBox ("If macro dies, it's likely a missing cost center.") 'warning for user
 
hey it's our converted Stack Overflower :)
 
1
Q: Determine if a function is bijective

Adam HodgsonConcise Problem Specification Given an integer \$n\$ and a function \$f : X \to X \$ where \$X = \{1,2,3,..,n\}\$ Determine whether the given function is a bijective function or not. Constraints \$1\le n \ge 20 \$ Input format There are lines in the input. The first line contains a single ...

 
Zak
Option explicit is annoying when I just want to use counters for loop XD So I don't need to declare/set worksheets if I use codename?! Edit: so I can just do with on the codename as well? — findwindow 5 mins ago
I'm going to have to yell at him about Option Explicit it seems.
 
@CaptainObvious Closed.
Or....
@200_success help :) I see you're active
On second thought, it might actually do what it is meant to do. But it doesn't completely match the requirements.
 
Zak
4:54 PM
"I am the only user". Sure, but what is future you going to think of present you when they're trying to figure out why your code is failing and it's because you put j where you meant to put k and didn't catch it because Option Explicit was turned off. — Zak 1 min ago
 
@Zak Rule of thumb: Future you will never call present you smart, more likely he calls you an idiot instead.
5
 
0
Q: Add and merge 2D array items so no nested duplicates on the outer array

Tiago Marinhothis.collisions is a 2D array containing a list of collisions that, when bodies collide, they should be added to it. Here's an example: [[A, C], [B, D]] Means that A and C are colliding, as well as B and D. But eventually A will enter in contact with B, so both arrays should merge into a singl...

 
@SimonForsberg Let's leave it open.
 
Yep. Future me has strangled past me so many times I wonder how I'm still alive. — Mat's Mug ♦ 1 min ago
 
@200_success Yeah, I see where the flaw in it is now and that is something that should be reviewed.
 
Zak
4:58 PM
You know, I think I actually have more than half of my stars left, and it's the end of the day already ^^
 
OP seems to be confused about what n is. To be fair, it's weird that the problem specification says to ignore the first line.
@skiwi Cognitive decline is a real thing, though. Maybe you haven't experienced it yet.
 
@200_success Where does the OP seem to be confused? I agree that the problem specification is bad, I am wondering if that was the original specification or if it was rewritten.
But the specification also says that f is a function X --> X, which the current implementation doesn't check for.
the current implementation doesn't validate that the output of the function is between 1 and n
 
On further consideration, it makes more sense that the first line should contain n, just like how it's implemented in the code.
 
Absolutely, the first line is likely n
 
Zak
5:15 PM
Now that @Mat'sMug got his answer up. This guy deserves some upvotes codereview.stackexchange.com/q/132543/81541
 
I am looking for the paintings of the history of programming languages, does anyone know what I am talking about, or where to find it?
 
0
Q: Function to grab all windows and nested windows on a page

isaac9AI wrote the following function which takes in a window and returns all nested windows on a webpage (I can get all the windows by calling the function with window.top). Is there a more elegant/efficient way to grab a reference to all the windows and child windows on the page? The function works, b...

 
@Malachi somebody punched a bunch of holes in the canvas
 
> 1964 - John Kemeny and Thomas Kurtz create BASIC, an unstructured programming language for non-computer scientists.

1965 - Kemeny and Kurtz go to 1964.
 
lol
 
5:28 PM
> 1995 - At a neighborhood Italian restaurant Rasmus Lerdorf realizes that his plate of spaghetti is an excellent model for understanding the World Wide Web and that web applications should mimic their medium. On the back of his napkin he designs Programmable Hyperlinked Pasta (PHP). PHP documentation remains on that napkin to this day.
 
heh, I saw that this morning
 
obligatory copy paste
 
0
Q: Function for most frequent level of string or factor categorical variable in R

Hack-RI have a function that finds the most frequent level of string and factor variables. This is used in a data.table aggregation on Big Data, for non-numeric columns. Right now the overall aggregation runs extremely slow. I'm trying to make improvements in other aspects as well (reducing observatio...

 
@Phrancis for some reason I don't think that is the one. there was one with classical paintings or something
 
5:32 PM
Got me there, this is the only one I know that has pictures
 
sorry last one
> 1996 - James Gosling invents Java. Java is a relatively verbose, garbage collected, class based, statically typed, single dispatch, object oriented language with single implementation inheritance and multiple interface inheritance. Sun loudly heralds Java's novelty.

2001 - Anders Hejlsberg invents C#. C# is a relatively verbose, garbage collected, class based, statically typed, single dispatch, object oriented language with single implementation inheritance and multiple interface inheritance. Microsoft loudly heralds C#'s novelty.
sorry, I lied, I can't believe that I didn't see this the first time around
> 1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
@Phrancis here is some of them but not all --> boingboing.net/2016/04/15/classic-programmer-paintings.html
 
@SimonForsberg Would you mind if I used Duga's avatar in a book cover?
 
Backups are like aliens. Many believe they exist, but there hasn't been concrete evidence to substantiate that claim.
2
 
5:47 PM
Don't worry, facebook and google have got you covered. Though only they have access to it when yours is gone (you should have read the terms and conditions)
 
@zʏᴀʙiɴ101 What book cover?
Are you writing a book?
 
Yes.
About Duga. :3
 
6:04 PM
Someone designed a rollercoaster where you need to wear VR glasses :o
 
is it just a chair?
 
Downloading Code Review's data dump, seeing if I can build a neural net from some data in it
 
@DanLyons No no, an actual rollercoaster ride where you get to see a VR movie
 
sounds like a fantastic way to make people sick :o
moreso than a normal rollercoaster
 
6:18 PM
I'm voting to close this question as off-topic because it now belongs on codereview (As you are trying to improve working code). — Peter Brittain 28 secs ago
 
They added two vectors of sickness in the hopes that they would cancel each other out :D
Too bad if it adds up though
 
Please move this question to the CodeReview section — Kevin Wallis 36 secs ago
@KevinWallis Code Review only accepts working code, and since this code doesn't work as intended it is off topic over there. — syb0rg 20 secs ago
 
This looks ready for re-opening:
-3
Q: Structure of a Rails service

Ryan.layI'm writing a Rails service in which a series of operations are performed on a record: class RecordBaseAmountService self.build new end def call(record, subrecord) record = calculate_base_amount(record, subrecord) record = adjust_base_amount(record, subrecord) ...

Used to be pseudo-code, not anymore.
 
6:33 PM
0
Q: Anagram in Scala

CodeYogiCode class Anagram(anagram: String) { def matches(candidates: Seq[String]) = { candidates.filter(isPermutation) } def isPermutation(candidate: String) = { (candidate.toLowerCase != anagram.toLowerCase) && (candidate.toLowerCase.sortWith(_>_) == anagram.toLowerC...

0
Q: Loop through a unique combinations driven by choices choose 6 (I am trying to optimize it)

Ari FI am trying to optimize my code and make it as fast as it can be, I have researched as much as I can and am now asking the community for any tips because there are definitely people more experienced than me :). As of now it is pretty slow for what I am trying to do. The innermost loop will basi...

 
6:50 PM
Dang this is a lot of data to parse
 
What data is it?
 
Code Reviews
Specifically, all the post data
Unfortunately, they don't specify all the features I would like to build a neural net
So I'm going to have to use the data dump alongside the SE API and see if I can get everything I want
 
7:08 PM
@syb0rg Which features do you want?
 
I need (at least): the title; the body content of the post; if the post was closed; and if it was closed, the reason it was closed
The close reason is seeming like it's going to be a finicky one to get
 
Probably it is encoded as an ID in the close reasons database.
But the government of Russia blocks the IA, so I can't ever know.
 
@syb0rg I had the hardest time getting an accurate close reason even with SEDE, more precise than "off-topic", "UWYA", and such
It's as if it's missing the branches/reasons from the off-topic node altogether
Is that the same problem you are running into with the data dump?
 
@Phrancis This is the closest thing I can find to getting the close reason: meta.stackexchange.com/a/256158/245764
 
what about the "CloseAsOffTopicReasonTypes"?
 
7:18 PM
@Phrancis The data dump has the "closeddate" XML field, that's it
@Vogel612 Where?
 
sede
check the database schema
 
@syb0rg But how to find out why it was closed?
 
@zʏᴀʙiɴ101 I'd have to follow the question link, use the SE API to retrieve the entire close reason, then parse that
 
@syb0rg Are those fields actually in the dump you got?
 
@Phrancis No, that's SE API I believe
 
7:20 PM
@syb0rg ah ok
 
SEDE is pretty weird
 
  <row Id="17" PostTypeId="2" ParentId="9" CreationDate="2011-01-19T21:29:04.710" Score="5" Body="&lt;p&gt;For the n steps bit, consider using recursion - but tread carefully.&lt;/p&gt;&#xA;" OwnerUserId="28" LastActivityDate="2011-01-19T21:29:04.710" CommentCount="0" />
That's what a row of the data dump looks like
 
@ardaozkal It's not too bad with a bit of tinkering, as long as you keep in mind it's not "the data" but rather "a sanitized, simplified copy of the data"
@syb0rg Wow that's pretty limited
Doesn't even have tags or anything like that?
 
@Vogel612 But that would take forever to try and retrieve all the CR questions & their info, then build the neural net from that.
 
you may need to get the CloseReason by going through ReviewTasks
 
7:23 PM
any good C# guides, books, samples etc for markov chaining properly?
 
@Phrancis Well, that one is a comment
 
ReviewTaskType: 2 is Close review
 
You can tell by the PostTypeID
 
@ardaozkal -._(._.)_.-
 
might do a steam profile creator :P
 
7:23 PM
@ardaozkal what's markov chaining? andrei markov, the hockey player?
 
made a steam crawler few days ago, downloaded 1m user data (example of data: steamcommunity.com/id/ardaozkal?xml=1 )
 
runs
 
@ardaozkal Broken link
 
@syb0rg not really
xml contents
 
Oh, now it works
I was getting an error before
 
7:25 PM
 
@syb0rg steam servers suck
 
Ever notice that link? ^^
 
Time to get handy with SEDE
 
You can also create XML-formatted output using SQL
(if you prefer XML to CSV)
 
@Phrancis Looks like you wrote a script similar to what I want already: data.stackexchange.com/codereview/query/489187/…
But "off-topic" isn't really the close reason :(
 
7:32 PM
Well, it is, at least the way it is made in SEDE
There should be a sub-reason somewhere, or reason detail, or whatever, but I was not able to find it, so far
There's also this query, but it gives no details on the off-topic reason either, that I can tell
select top 1000 RTType.*, RT.*
from ReviewTasks as RT
join ReviewTaskTypes as RTType
  on RT.ReviewTaskTypeId = RTType.Id
where RTType.Name = 'Close Votes'
It's note in the Votes table either :(
I have a feeling this information, albeit useful, may have gotten sanitized out of SEDE and the data dump and may only be available through the API
 
@Phrancis Yipee :/
 
7:50 PM
0
Q: Generic binary tree in C#

RUser4512This is a simple implementation of a generic binary tree that holds elements of type T. I was wondering if there was something that could be done better (especially in the EnumerateNodes methods). using System.Collections.Generic; namespace DataStructures.Node { /// <summary> /// Implem...

 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Finding all delivery orders with multiple purchase orders
 
0
Q: Refactoring, on-line evaluation of mean and variance

RUser4512In various projects, I have to evaluate the mean and/or the variance of relatively large samples. I wrote the following, to help me evaluate these quantities with a constant footprint. Basically, it adds elements one per one and updates the variables. namespace DataStructures { /// <summary>...

 
8:23 PM
0
Q: More efficient method to check for duplicate database entries?

CharlieI am saving company information in a database, and if repeat information is found, I want to update the overlapping rows. Some of the supported fields are emails, phone numbers, organization names, and latitude/longitude positions. One of the obvious issues I've had to deal with, however, is know...

 
8:44 PM
Also, I am in awe that you're so generous to provide world class programming lessons to me/random strangers! CR is a whole different level than SO^^ — findwindow 1 min ago
soon he'll get used to it
 
1
Q: Tiny Image Editor

Josue EspinosaI made a small(ish) image editor for a client that is supposed to be able to do the following: initially scale image to preset size to avoid tiny/huge images initially center image in canvas resize uploaded image (while always maintaining original aspect ratio) prevent image from going outside ...

 
TTQW
 
later!
 
You should post this to the Code Review site for tips on efficiencies you could make in your code — duncan 51 secs ago
 
9:10 PM
Do While j <= Gmax - 5
    Do While k <= Gmax - 4
        Do While l <= Gmax - 3
            Do While m <= Gmax - 2
                Do While n <= Gmax - 1
                    Do While p <= Gmax
oh. my.
 
Now try generalizing that :)
(Don't lose your head in the process)
 
Dim cure As New FlameThrower
cure.BurnTheHellOutOf code 'here, fixed
2
 
And I was thinking that using a ' when programming was ridiculous
pub struct BitSlice<'a, S: BitStorage + 'a> {
    pointer: *const S,
    capacity: usize,
    phantom: PhantomData<&'a S>
}
Now I'm using it myself
 
seriously though.. I need to take a look at that code when I get home, I'm sure there's an actual cure for it
@skiwi not to denote comments though
 
I love all the good features of Rust, but I'm sure it looks like black magic to others
@Mat'sMug Nope indeed, to denote lifetimes in Rust
 
9:14 PM
swoosh
TTQW
 
Stack Overflow is for not-working code, You want to ask this on Code Review. — Rad Lexus 18 secs ago
possible answer invalidation by Brian on question by Brian: codereview.stackexchange.com/posts/112544/revisions
@RadLexus: While this question is essentially asking for a code review and thus is more suited for the Code Review site, Stack Overflow's scope is not restricted to broken code. Not even a little. The fact that Code Review is exclusively for broken code does not affect the focus of Stack Overflow. — user2357112 56 secs ago
I'm voting to close this question as off-topic because it belongs on CodeReview, not StackOverflow. — Prune 59 secs ago
@RadLexus Ah, my fault. I guess my brain turned off I posted on Stack Overflow out of habit. I'll delete this and repost to Code Review. — Tyler 1 min ago
 
9:40 PM
@Duga rolled back.. better safe than sorry
@Duga RBA
 
10:05 PM
If this is working code that you think could be improved, see Code Review. If not, cut it down to a single clear problem with a Minimal, Complete, and Verifiable example. — jonrsharpe 18 secs ago
 
10:25 PM
possible answer invalidation by Jamal on question by Lol4t0: codereview.stackexchange.com/posts/4886/revisions
 
0
Q: Trying to optimize Python code that makes heavy use of arithmetic operations on numpy arrays

TylerI'm currently working on getting some faster runtimes for some Python code. I've already made a few pretty big strides and sped it up quite a bit, but it still takes a bit longer than I'd like and I'm looking to see if I'm missing anything obvious. Essentially, here's what the code looks like no...

 
10:40 PM
0
Q: Reactive Properties for easy property binding

JuanThis is my attempt to write an easy to bind property, since WinForm binding mechanism is so much pain. The idea is to be basically the same as an IObservable, but with a value which has a getter (and a setter in a derived interface). The core interface only has a getter: public interface IProper...

 
10:51 PM
@Duga Yeah, but it wasn't exactly working code.
 
1
Q: My project hotel reservation in python with oop and multithreading

PeterI have to create a project in Python 3 for a university exam. The project involves the use of object-oriented programming and the use of multithreading. My project is based on the simulation of booking a hotel room. I then created a class "Stay" with its instance variables and its methods. For mu...

 
possible answer invalidation by Jamal, Caridorc on question by Peter: codereview.stackexchange.com/posts/132579/revisions
 
11:09 PM
-1
Q: Can you guys check this?

user109445Can you check out a website my friend and I made and see if the HTML works properly? www.rumadbro.weebly.com

 
11:20 PM
1
Q: Unicode Chess PvP with Move Validation

CaridorcMain Purpose This script allows two players to play chess on a virtual chessboard printed on the screen by making use of the Unicode chess characters. Visual appearence The chessboard looks like this: 8 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜ 7 ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟ 6 5 4 ...

 
11:51 PM
0
Q: Authentication in JSF

BrokenProgrammerI've decided to implement my own custom authentication and authorisation in JSF. I am using Java's BCrypt to check the users' passwords. The view side of things I can handle; I'm just implementing PrimeFaces validation tags later on. I use ManagedBean to validate the backend of things (if userna...

0
Q: Multiple user input in Java

Chris C.I am new to Java and am trying to write a program that takes a number of inputs from a user and later prints those stored input values. I am having errors with console.next() and with the scanner function. Thanks Here's the code: import java.util.Scanner ; public class MainProgram { public st...

 
00:00 - 13:0013:00 - 00:00

« first day (1143 days earlier)      last day (2890 days later) »