« first day (1039 days earlier)      last day (2982 days later) » 

1:00 PM
@PinCrash SQL Server is going to be available for Linux
 
@Malachi I'm really liking the strides MS are taking to make things cross platform
 
@Gemtastic Right. The difficulty will be that Swift was released into an ecosystem of developers who have used Foundation with everything for Objective-C forever.
 
@DanPantry me too. but I hate it at the same time
pretty soon everyone is going to be coding on Macs yuck
 
I was dealt that as an assignment for my examination project; Learning Ruby on Rails including building an Engine without reading any books or following any tutorials. Just from building a web app. I tried it, rather not do it again :P
 
And if you're learning Swift in Xcode, your files will frequently include import Foundation, import UIKit, or import Cocoa at the top (the latter two bring in Foundation)
@Malachi why and why? Why do you think that and why yuck??
 
1:02 PM
because.....Macintosh
 
That's what the first tutorial I was reading was using. I don't like using imports like that before I have the basics down
Mac > Windows
 
lol JK, I guess if you want to spend more for a computer that does what computers do...
 
◄◄◄ not an Apple person
 
I think Macs are overpriced, but not by as much as people seem to think they are...
Maybe an extra £100 for the brand maximum
 
1:03 PM
pure *nix system > Mac > windows
 
Everything else is pretty decent for its price.
 
And unfortunately, I believe I've seen at least one case on Stack Overflow where the identical Swift code behaved differently with and without the import
 
they are wonderful machines I am sure, but I won't use them....
 
why not?
 
@Malachi which is fine :P Most of the front end developer world / full stack JavaScript world uses Macs already.
 
1:04 PM
Why won't you use them?
 
I have a Linux machine somewhere....
 
I won't buy a mac for myself, but I really don't mind using them.
 
Windows just sucks for stuff that isn't in Visual Studio / Eclipse, imo
 
Let's throw price out the window, because we all are professional developers or aspiring to be. I didn't pay for my MacBook pro.
 
@nhgrif I'd haev to front the cost for my own macbook unfortunately, but I get what you are saying
 
1:04 PM
Eclipse sucks on Windows. better on Linux, much better
 
Macs are nifty little machines.
 
Are we talking about the OS or the hardware?
 
Eclipse sucks.
 
My point is that Windows sucks for something that isn't C#/MS-owned languages.
OS I think, @nhgrif. Though the price comes under hardware.
 
Right, I'm trying to clarify what we think sucks about them.
 
1:05 PM
or VB or F# or the whole .NET Framework? ^^^
 
> MS-owned languages.
 
@DanPantry I had that typed before you edited...lol
 
We're all aware that we can run Windows on a MacBook, correct?
 
@nhgrif Yep
 
but why?
 
1:06 PM
why whaT?
 
In case you want to use Windows stuff on Mac :p
Like.. testing how your website looks in IE
3
 
pay less money for the same hardware of a windows machine and run windows on it...
 
Isn't the point of using a mac to not deal with windows?
 
But have all the benefits of unix-based machines?
 
Money isn't a conversation here. Whatever company you work with is buying the machine.
And they don't care about price. They want the one machine that will allow you to be most effective.
 
1:08 PM
For me, Mac is worth it because it takes the best parts of unix, looks gorgeous, has decent hardware, is fast, responsive, has great screens, has a large foothold in the existing web dev community (flowtype js by Facebook literally only works on Macs/Unix), has better file watching... and it supports League of Legends, which is obviously the most important point /s
 
I have been using Windows since 3.1 so I don't think I am going to switch now, it's fancy and all, and I am sure they are nice. but not for me. I have everything I need with with Windows (currently)
 
Hows the development of C# products on the mac? Never been into the windows sphere.
 
You can use VSCode for that sort of thing, @DJanssens.
 
@DJanssens No different. Worst case scenario, boot into Windows.
 
Or mono.
 
1:09 PM
if I need something Unix, I will dive deeper into Linux, which I can still code C# with Mono
 
@DJanssens How's the development of iOS products on non-Macs? How's the development of Swift in Windows?
 
or just use a Unix Distro
 
Again, what are we talking about? OS or hardware?
Which?
Because you say things like "if I need something *nix", and then your primary argument against Mac is the price of the hardware...
You can run any operating system you want or need on a Mac. The same can not be said about any other machine.
 
I don't see there's anything fundamentally wrong with companies providing Macbooks to users to write T-SQL code in instead of giving them Windows laptops and making the development of anything non-Windows a living hell/impossible, almost.
 
@nhgrif Steve Jobs?
 
1:11 PM
Especially with solutions like Docker which by design can only work on non-Windows (unix-based) systems.
 
lol JK JK
@nhgrif how so?
 
@Malachi Mac enables you to run a virtual machine of pretty much any Os, including Windows.
 
@Malachi You cannot run OS X on any machine other than Macs.
 
and ^
 
You can run any OS on a Mac.
 
1:12 PM
@nhgrif that is why I don't like Mac.
 
So, you didn't make a technical decision about the machines or the operating system.
 
Hmm. Calm religious discussion backed up with facts. How bizarre.
 
on any other machine, you can install any OS you want, except OS X.
 
It was more like... "The Sims is the worst game ever because I hate EA's DRM policies."
 
@nhgrif but it is about the OS and the hardware
 
1:13 PM
While EA's DRM has nothing to do with The Sims as a game.
 
@Malachi This is true, but in the scenario that your laptop is being provided for you by your company you won't be tinkering with the OS anyway (I hope)
 
@DanPantry You will if you're a software developer.
What other OS in the world is developed hand in hand with the hardware? Only OS X and iOS.
 
what if I want to do stuff at home?
 
@nhgrif I mean you wouldn't be tinkering with the OS of the laptop it is running on - instead you woudl be using virtual machines.
 
@DanPantry There's nothing wrong with installing partitions.
 
1:15 PM
they say that, but every OS communicates with the Hardware. but Hardware can be changed out on other machines.
 
@Malachi Which is perfectly fine, use whatever machine you want at home, but this whole discussion was prefaced with @nhgrif saying that money is no object because the laptop is provided to you by your company.
 
And I could add... work for a company that lets you take your machine home and do with it whatever you want.
 
let's say I need something more powerful for some piece of hardware, like a new NIC. do I have to wait for it to become available from Apple?
 
Well, first of all, there's not something more powerful that's not available in a Mac.
 
@DanPantry use modern.ie virtual machines for that
 
1:16 PM
So if you have the most powerful Apple hardware, then yes, you do have to wait for more powerful hardware to become available from Apple...
Second of all, you can get upgrades for your Mac.
 
@nhgrif from Apple
 
@Malachi Yes. but also others.
 
You can upgrade it yourself. You'd just void the warranty and it isn't recommended.
 
Getting upgrades from others tends to void your warranty, and as such, you tend to not to do it because the warranty and AppleCare is epic quality level.
 
But that's the same with pretty much every machine, and not something unique to Apple.
 
1:18 PM
But... you also tend not to need upgrades with Apple because while their machines are expensive, they come loaded with good hardware...
The $2000 MacBook Pro is not the same hardware as the $500 Dell laptop...
And OSX is nicer to your hardware than Windows anyway...
 
are you able to customize your MacBook Pro like you would a computer from System76 or Dell?
 
@Malachi yes.
 
@Malachi In what ways? Specifically? I'm not familiar with ordering machines from them.
 
@nhgrif what do you mean? does it say please and thank you? jk
 
Literally at the top of the Macbook page:
> Buy MacBook Pro
Select a recommended model or customise your own.
You, of course, do have limited options, but they are almost always upgrades from the stock version.
 
1:20 PM
I mean honestly, this conversation isn't really going to go anywhere unless you just give a Mac a shot for like 6 months.
 
Example, 13 inch Macbook is ~£1.4k. Want 512GB more flash storage? That's another £400.
 
Because you're not arguing from actual experience with the machine.
 
@nhgrif therein lies the core of the discussion, I don't own, nor have I bought, an Apple Product (I have used one) and you are partial to apple because you use them on the regular
 
@Malachi I do not own a macbook pro.
I do have an iPhone, though.
 
@Malachi I have been using computers for 20 years now. I have been using Apple machines for, hmm, 5 years TOPS. But probably less than that.
 
1:21 PM
But that's on contract and similar in price to other Android phones with similar specifications.
So while @nhgrif may (may) be biased, I am just being practical :P
 
I also regularly use Windows, Chrome OS, and Linux.
No one is unbiased.
 
18 mins ago, by Malachi
◄◄◄ not an Apple person
◄◄◄ doesn't like Apple
 
I am recommending that you use one for a reasonable amount of time before decided that it sucks.
I think Windows sucks.
 
now we come to price.
 
That's not based on having never used a Windows machine for a real amount of time. That's based on having used Windows machines for 20 years.
But, if you want to develop for .NET, you use Windows. It's what you do.
If you want to develop for iOS, you use OS X. It's what you do.
If you want to save 15% or more on car insurance, you call Geico. It's what you do.
 
1:24 PM
If you want to develop cross platform you use whatever :D
 
@Malachi I admit the prices of apple machines are high, but not unusually so.
 
I am still using a laptop I bought for school over 5 years ago. because I can't afford a new one. I have a desktop that I bought (on credit) for around $1000 if I remember correctly
@nhgrif have you tried windows 10?
I haven't used Apple for at least 10 years
 
FWIW
 
@Malachi Not yet. My wife has. It looks better than Windows 8, certainly.
 
I've just tried building a laptop with equivalent specs to the macbook pro for £1.4k.
They don't support Flash memory, but there's SSDs, and with equivalent specs, the Macbook is about £100 more expensive than the windows alternative.
 
1:27 PM
Does the Windows alternative have the same monitor?
 
@nhgrif it is better than 8, and I think it is better than Windows 7 as well
 
That's usually the biggest difference.
 
No, @nhgrif, it's not retina display.
Also, the clock speed on the windows RAM is lower than the clock speed on the Mac RAM.
So the prices are really roughly equivalent.
 
If I were still in college or still looking for my first professional development job, I'd get a quite cheap machine and run Linux/Windows on it.
 
You're paying a ~10% premium for the brand (which is what you would do if you bought Alienware).
 
1:29 PM
they took the best parts of 7 & 8 and put them all together, IMO
 
Unless I were really an aspiring iOS developer and had no interest in anything else.
But with that said, now that I am a professional developer, and professional developers are well paid, even if I weren't an iOS developer, machines I buy for myself would be Apple machines unless I really wanted to do .NET development and nothing else.
 
@Malachi I do quite like Windows 10.. but it still has the same issues for developers that were in previous versions: there's still the stupid 255 total path limit (which you hit quickly with package managers), it's annoying as hell to edit the PATH variable, and a lot of stuff simply doesnt' compile in windows without mingw or similar
 
@Malachi That's pretty cool!
 
Alternatively, if I wanted a machine purely for playing games, it probably wouldn't be an Apple machine... but lately for that I've just stuck to consoles.
 
The improvements in Windows 10, for me (aside from virtual desktops, which are a welcome addition!) are mainly for the average consumer than the developer. Which is perfectly fine - but that's not what I want or need as a developer.
Reality is the Windows market is aimed much more towards .NET/OOP enterprises than things that come from a UNIX philosophy - like Node, Ruby, Golang, OCAML, et al
 
1:32 PM
I haven't tried the VM stuff since I tried it in Windows 8 and it failed because I didn't research the functionality of it with my hardware
 
Oh and the console still sucks in Windows 10.. though I guess you can finally resize it after a decade now..
 
you could always resize it
wait, what console are you talking about?
 
Through an obscure option panel
The command prompt
 
the cmd prompt?
lol
 
if I want to resize the command prompt in windows 7, I have to right click the title bar -> properties -> layout and then guess the number of pixels I want
I can make it as tall as the screen but I can't resize the width
And there's no tmux or similar, you need ConEmu.
and it doesnt' support ANSI colours
And then... then you have the evil environment variable known as PATH..
 
1:35 PM
Windows 7 allows you to set the size and then pick the option that says "current...oh wait that only works in Mingw
 
Yeah.. I can resize the Unix console made for windows.. :p I cannot resize the default console
 
I couldn't make it wider
 
@DanPantry Set your screen resolutin to 640x480.
 
lol
 
@rolfl This seems like a bad idea.
x)
I should probably do some work. AFK :)
 
1:38 PM
"Does Not Work" is not a sufficient description of your problem. — nhgrif 21 secs ago
omg please close that question if you have close votes..
his examples are terrible...
For instance if i call this in the same string to replace another character, it's not working. `self.someString = content.stringByReplacingOccurrencesOfString("morning", withString: "evening")' — Live Sync 45 secs ago
 
Wow, I got a Nice Answer badge on Meta.Programmers :o
 
this question is killing me
someone upvoted it
2 upvotes what the hell
 
People who had the same question?
 
0
Q: optimize memory usage of haskell program

HuStmpHrrrfollowing is one of my program that utilized memoization and array that is supposed to boost up performance and memory usage. the performance seems satisfying but the memory usage is ridiculous and i can figure out what's wrong: {-# LANGUAGE BangPatterns #-} import Data.Functor import Data.Array...

0
Q: Modify and import as numpy.ndarray a txt file in python

SeFTo import the data contained into the file my_file.txt that have the form: Label[0] = 0.980252 Label[1] = -nan Label[2] = -nan Label[3] = -nan Label[4] = 0.664706 Label[5] = -nan Label[6] = -nan Label[7] = -nan Label[8] = -nan Label[9] = -nan Label[10] = -nan Label[11] = 0.800183 Label[12] = -n...

0
Q: Optimize speed of directory copy program

Sidewinder94This is my first post here so please tell me if I'm not doing something right. To the subject then : A little while ago, I had to write a little C# application to recover my HDD data (full context on this question) To answer my problem I developed a console application which job was to recursi...

 
What is the question though?
 
1:53 PM
Not sure, my broken English is very poor. I can only write it, not read it.
Also woah! Swift has implied variables?
 
The problem with the question is he only says it doesn't work but it is impossible to discern what he means.
What do you mean "implied variables"?
 
getters and setters
shoot a value to it and it will just grab it
 
Computed and stored properties
As well as property observers in the form of willSet and didSet
 
nods
It's just that I haven't seen it before; "Nah, it's ok you don't have to declare it if it's just one, I'll get it"
The language.. understands
 
0
Q: How to get around Python's round() limitation

GabrielI'm trying to come up with a general way to correctly round floats with Python, given the known limitation of round(): Note: The behavior of round() for floats can be surprising: for example, round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: it’s a result of the fact...

 
2:08 PM
It feels intelligent
 
Looks like I missed Malachi getting schooled a holy war
 
it's always a holy war when you try to use your taste opinions as facts :P
 
@Gemtastic ++
 
Apparently a colleague saw one of my contributions while trying to find something on SO
 
"I don't like apple products" perfectly good reason to not have one. "Apple is shit because I don't like it" not so much ;P
 
2:16 PM
Time zones are fun, doubly so when the servers are not set to GMT
 
heh
 
You should ask this on the codereview stackexchange site. It is too broad for StackOverflow. — Stephen C 58 secs ago
 
This could be a good fit for Code Review if the code works, but OP is looking for improvements. Please note however to be well received there it should have a title and description that says something about what the code does, as "making code better / best practices" is implicit for all questions on Code Review. — Phrancis 39 secs ago
 
@PinCrash for what it's worth, I think it's relatively common (albeit probably not best practice) for servers to be set to EST or whatever local time zone.
 
2:25 PM
@nhgrif Sure... problem is though it is not consistent throughout the DBs and application... most user-triggered actions I think are logged using TZ-adjusted time, while background processes tend to use server time... which can make auditing/logging tables pretty tricky to look through
(bad design, I know; not my idea)
 
monking!
 
hey!
 
Monking :)
 
Commented-out code... .___.
 
It may be worth posting the code that you have on the Code Review site for suggestions on optimization. — Suever 38 secs ago
 
2:31 PM
2 commented out stored proc calls... a commented out join... Oh and a couple of GOTOs...
That GOTO this...
    BEGIN CATCH
        --stuff here...
	    GOTO ERROR
    END CATCH
    --more stuff...

    -- error jump point
    ERROR:
        RETURN
 
Hmm, there is definitely a bug, however it looks so obscure that it even bypassed the logging systems... is there a word for that?
 
three. "whiskey", "tango", "foxtrot".
 
3:17 PM
I'm voting to close this question as off-topic because it belongs on Code Review — Erick G. Hagstrom 27 secs ago
 
> An interface shouldn't be designed to change. What happens when (note: not if) you need a new entity type? You need to change the interface and modify all implementations (of which, I suspect there's only one, right?). It's literally screaming:

*"My cohesion! My cohesion is suffering! My cooooheeeesiooooon!!!"*
it's quiet. too quiet.
 
3:32 PM
-1
Q: I have developed a program to draw Octagonal Grid. How do i write pseudo code for the same

faizal vasayaOCTAGON.java import java.awt.*; public class OCTAGON extends Polygon { private static final long serialVersionUID = 1L; public static final int SIDES = 8 ; private Point[] points = new Point[SIDES]; private Point center = new Point(0, 0); private int radius; private int rotation = 158; publ...

0
Q: c# How to fetch data from database and display it on textbox AUTOMATICALLY

TashiaSo the code below works but I use a button, and I have to press the button everytime to fetch information. Does anyone have any advice on what should I do to automatically fetch information from database using datagridview and display it on textbox? I want to put the code on form load, so everyt...

0
Q: Finding Kth Permutation Sequence

arunprakashpjI have written a program to display the kth permutation sequence of a string made up of letters 'O' and 'Z' . I tried optimizing it but my code have not passed test cases due to timeout issues.Looking for someone who can guide me in optimizing the code i posted below. public static void main(Str...

0
Q: SortedList implementation in Java

ZeusI've implemented a SortedList which takes in streams of floats and returns a median at any point. public class SortedList { float[] list; int pos; int capacity; public SortedList(){ this.pos = 0; this.capacity = 2; list = new float[capacity]; } ...

 
I just had an "I told you so moment" and it feels great
3
 
lol
 
3:48 PM
I found the the event that caused the never-logged transaction, which is good; but, it's not good that it's bypassing the logger... just wasted like 90 minutes to finally figure out it came from BizTalk server after an external system sent a shipping confirmation file back to us
 
4:07 PM
@PinCrash lol, it's not bypassing the logger - check your emails ...oh wait
 
ROFL
 
What is and isn't "elegant" is opinion. If you have working code and are looking for suggestions on improving it, Code Review, also part of the same setup as stackoverflow, is the place to ask, not here, which is a place for borken ocde. — Bill Woodger 24 secs ago
 
The logging is handled by a trigger on the table, AFTER INSERT, UPDATE, DELETE and AFAIK, the only way to bypass it is if the DML is made from the SQL archive service... which is not supposed to be performing any business logic at all...
 
cough "supposed" cough
 
4:24 PM
^^
I might hop on DBA to ask a question there, I'm curious to see if it's possible to search/browse SQL jobs based on what login profile they use
 
Maybe you can post this question to Code Review... but with code in the body, not at link! — fusion3k 23 secs ago
 
4:49 PM
0
Q: generic coding to solve whats desired

Brandon Bernardpublic class Node { public E element; public Node<E> next; public Node(E element) { this.element = element; } //return the node at index, or null if length of the linkedlist is shorter than index Node<E> getByIndex(int index) { } //search for a specific element "el" in the linkedlist Node<

 
@CaptainObvious wat
 
that's not generic, that's not written...
 
0
Q: How to drive equation output from select input boxes via JavaScript and HTML

JasonAizkalnsI would like to create a simple interface to allow a user to make a few choices via select boxes and drive a resulting equation. Here's a screenshot: This is a gross simplification and I am looking for guidance/suggestions throughout my existing code. Some areas of concern: Should I be loopi...

 
hey @SimonForsberg!
 
5:04 PM
Hey @Mat'sMug
What's up in Mugland?
 
oh not much, parser coordination issues
 
Just another day in Rubberduckland?
 
yeah
well I don't know if you've seen that, but anyway I got the resolver to work pretty much instantly now
3
I'm pretty proud of that :)
 
Haven't seen that, but I admit - I am not much of a Rubberduck user.
 
0
Q: How to load this javascript without interval

YarkqubI have create a round clock but its load more how to solve this? my code: <script src="https://code.jquery.com/jquery-1.10.2.js"></script> <script> setInterval(drawClock, 1000); function drawClock() { $('#clockDiv').load(document.URL + ' #clockDiv'); } </script>

 
5:17 PM
@SimonForsberg I had user code with about 2K declarations bringing the resolver to its knees, took like 20 minutes to complete. So I made some changes, and now I'm resolving that code in less than a minute, with over 50K declarations loaded :)
(I'm reflecting on the referenced COM type libraries to get all these declarations)
 
Nice improvement!
 
yeah
now I'm trying to get the parser and parser state under control... and struggling.
but once that's done, I'm merging my changes and we're ready to turn on the key hooks
 
-1
Q: Search file for text

Neverdie17This gives me the output of how many times the word is in the file. How can I output on what line of the file the word is? import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.io.BufferedReader; import java.io.FileReader; import java.io.*; public class...

-1
Q: Python: How to get rid of the memory error?

Ruler Of The WorldI have the following code: SortedDict = (list(OrderedDict((sub[0], sub) for sub in sorted(zip(moneydict, winningsdict, bettingdict1, bettingdict2, bettingdict3, bettingdict4, bettingdict5, bettingdict6, bettingdict7, bettingdict8))).values())) with moneydict, winningsdict, bettingdict1, betti...

 
5:41 PM
Community ads are up!
6
 
@fusion3k It has been cross-posted and closed as off-topic on Code Review. Please read A guide to Code Review for Stack Overflow users before making referrals like this. — 200_success 5 secs ago
 
1
Q: Nondeduplicating mutual membership testing

tacPython sets are magical things. Immutable, deduplicating data stores with handy operator overloads for &, ^ and |. Specifically among the others, sets overload the & operator to do mutual membership tests like so: >>> set("aasd") & set("aabc") {'a'} This is endlessly handy, but the huge downs...

 
6:00 PM
possible answer invalidation by 200_success on question by 4ell: codereview.stackexchange.com/posts/122220/revisions
 
@Duga Reworded a question to make it concrete.
 
http://www.commitstrip.com/en/2016/03/08/its-never-too-early/
CommitStrip
It’s never too early
CommitStrip
1457460198
6
 
@CommitStrip no bottle until the blocks compile
 
@DanLyons LOL. CHILD CRUELTY!
 
@CommitStrip LOL
There's something about If ErrorProvider1.GetError(TextBox1) = "Looks Valid" Then that just looks conceptually wrong. — Mat's Mug 15 secs ago
 
6:14 PM
I'm so mad right now. god damn it
 
@DanPantry 'sup
3 hours ago, by Dan Pantry
I just had an "I told you so moment" and it feels great
 
My passport application was rejected because the change of name deed changing my surname to its current name after my mum's divorce was made when I was a child and my father had parental responsibility.. my mum divorced my dad
 
wut
 
yep
so now, even though I have a record of the court transferring parental responsibility, I have to make a statutory declaration saying yes, my surname is pantry and has been since I was four.
 
wow
 
6:18 PM
may the bureaucrats be strung up by their red tape :|
 
That's crazy
 
it also has to be countersigned by two people
and my passport form, despite me having filled it out, has to be filled out again.. and countersigned by the same person who countersigned it originally.
why can't we just have IDs given to us when we are born?
 
Is there no such thing as a SSN over in Britain?
 
we have a national insurance number, which is sort of like an SSN
except it can't be used for ID and is only used for tax purposes.
so it can be used to identify how much you pay the government this year, just not you.
 
so better than a SSN :P
 
6:26 PM
@CommitStrip Educational activity for babies: Towers of Hanoi.
 
6:49 PM
If you have working code you should probably better ask at SE Code Review. — πάντα ῥεῖ 36 secs ago
There is a close -> It belongs on another SE site option. However, I don't see codereview in there... If I was you, I might just delete the post here and post it there. — mgilson 58 secs ago
 
0
Q: Opinion on performance increase of a robot

Olimjon----Background: A prototype of a firefighting robot is done recently based on arduino microcontroller. It has 2 servos, 1 laser LED and 2WD motors. Desktop application is done in C# for control. --Desktop app logic: For controlling 2 servos, I am using x-y mouse position on the screen and bind...

 
7:15 PM
 
0
Q: Prime multiplication table in a good way

Håkan NylénI am new to ruby (1 year as hobby project on weekends) and made a code challenge and it was not as good as they wanted. I want to know how i could make it better and how to make the structure better. In summary, how would a mid or senior ruby developer do this challenge? require 'rubygems' requi...

 
@Sulthan this question is total misfit for CR.SE - see "6-yes requirement" at their help center. Please abstain of recommending sites you're not familiar with — gnat 44 secs ago
Note: this question has been cross-posted on Code Review. (That's OK, but please declare cross-posts as a courtesy to other users.) — 200_success 30 secs ago
 
Shot you an e-mail, @SimonForsberg ;)
 
If your code is working actually you can ask for a review at SE Code Review. — πάντα ῥεῖ 50 secs ago
 
7:35 PM
0
Q: Improving noob-written Java code

Bernard MeurerI've just begun programming Java and I'm working on the following code that deals with socket-based communications and some android dialogues: public class LoginActivity extends Activity { PrintWriter out; private Button btnLogin; private Button btnDemo; private EditText edtLogin...

0
Q: Multi-layer queue - can anyone check my code?

docpi must write code for my classes which simulates multi-layers production line. But i dont even know how to check if it's good. Can anyone take a look at my code, please? First machine works in random frequency putting integer into first queue. Then, second machine puts out this number at freq2, a...

 
possible answer invalidation by tac on question by tac: codereview.stackexchange.com/posts/122266/revisions
 
0
Q: Optimizing a sigfig counter

inuashadecided to make something to count the significant figures in a number to see how easily it could be done, but I think there may have been a better way of going about it or that a portion of this code could be done better or is simply not needed. Any advice even just for conventional purposes is ...

 
7:54 PM
Ahhhhhhhh!!! "Lightbulb!" Thanks very much for your time... I'm still gonna re-read that chapter as I now don't understand what its point was at all. — Killercam 37 secs ago
that "ah-HA!" moment
 
8:05 PM
0
Q: implementation of remove method in simple linked list

user99697I want to implement a remove method in my simple linked list : it removes a node in my list ... The implementation according to my teacher is like this : public void remove(E x) { if (contains(x)) { ListNode<E> pre = null; ListNode<E> act = first; while (!act.element.equals(x)) { pre = act; ac...

 
@CaptainObvious dat indentation
if(act.element.equals(x)) {
    act.next=null;
    act.pre=act.next.next;
} else {
    throw new NoSuchElementException();
    }
    }
 
#Borked
 
8:30 PM
That post is a down-vote fest
 
0
Q: Write random data to file

HousemanI'm concerned with the memory usage of this application. When I start it and look at it's memory usage while it's waiting for input, it's memory usage is around 13,212 K. When the application runs and finishes, it stays at around ~30,000K Am I missing some cleanup? var _ = require('lodash'); v...

 
Also, this looks like code review, so maybe you should post it there? — Rex Kerr 46 secs ago
 
0
Q: Generic Factory in Java

NatiI saw some questions about this issue, but couldn't apply any of these on my scenario. Here's the thing, let's get straight down to code: The Request: public final class MyHttpRequest<T extends MyHttpRequestParams> { public final String method; public final T params[]; } Request para...

0
Q: REST API Design

Joseph NieldsI have a collection of resources called Orders. Orders contain a Product resource. As an example, we could have something like so: { "id": 1, "time": "2016-03-08T20:36:59.917Z", "product": { "id": 123, "name": "Widget" } } Is it correct to make an endpoint of ...

 
9:00 PM
Naruto answer; accepted non-selfie answer with 0 score: Currency converter using angular.js
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Skip list in Python
 
0
Q: Sliiiide Jquery Plugin Not Working?

Breionna Dillon<!doctype html> <html> <head> <meta charset="utf-8"> <title>Breionna Dillon - Graphic | Web Designer</title> <!-- STYLESHEETS--> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/nav-icon.css" rel="stylesheet"> <link href="css/slidemenu.css" rel="stylesheet"> <link href="css...

0
Q: Implementing permuted index in c++

MateuszI ahave implemented a program that produces a permuted index. Acctualy it is this excercise : http://stackoverflow.com/questions/4015016/what-is-a-permuted-index Could anyone tell me if I do something wring and could be done better? An input is for example: The quick brown fox and result: ...

 
9:20 PM
try Code Review. This is OT here. — Sourav Ghosh just now
 
Any math head programmers game?
0
Q: Given upper and lower peak and offset from Y axis, how to calculate amplitude of sinusoidal wave

RubberDuckI'm a programmer tasked with making a hydraulic piston move in a sinusoidal fashion. My users will input an upper and lower bound, then my program is required to move the piston in a smooth, sinusoidal curve. This is what I have so far. $M = (h + l) / 2$ Where $h$ is the upper limit, and $l$ i...

Maybe @200_success?
 
0
Q: MATLAB geometric mean

Stan-LeeI have written below a MATLAB function that takes a vector of positive numbers as its input, and outputs their geometric mean without using the geometric mean function in MATLAB. function mean = Practice(x) mean = (prod(x))^(1/length(x)); end

 
9:38 PM
Oh god..... I don't have one. — RubberDuck 1 min ago
 
@RubberDuck Isn't that a wonderful realization?
3
 
Sorry @200_success. I must be burnt out.
I wouldn't normally have pinged you, but I know you hang around Mathematics too.
 
It was worth it for the laugh.
 
@WaldezJunior this patch improves the documentation: codereview.qt-project.org/#/c/151746 - in general, feel free to suggest improvements at bugreports.qt.io. — Mitch 45 secs ago
 
LOL.
At least now I'm laughing.
 
9:41 PM
-1
Q: Why this code gives RUNTIME_ERROR (exit code: -1073741676)?

Rajeev SinghThe task is to transform the initial number x to the minimum possible positive number by inverting some (possibly, zero) digits. The decimal representation of the final number shouldn't start with a zero. Inverting digit t means replacing it with digit 9 - t. This is my code,it runs fine on ...

0
Q: Javascript switch default break or not

Filip HaglundI'm having touble deciding if I should leave the default: break; in the switch statement or not. It does kinda show intent, i.e. that most keys are not handled, but it's also effectively useless code. I feel like it's clear enough anyway, but maybe being explicit is better? Here's the code: fun...

 
@RubberDuck wait wait, what ...ugh.. I missed it
 
He thought he had a math question, but it was actually a brainfart.
5
 
lol.. happens :)
 
Yeah, I've not had to care about sinusoidal waves in over a decade...
 
so, your sinusoidal calculation was missing a sin function?
 
9:59 PM
Uh, no. My predecessor's calculation wasn't taking the offset from the Y axis into account. It also didn't work with negative values (tension).
 
0
Q: Building a thread class and working with sigjmp_buf

Alex GoftI'm trying to implement a Thread class. One of my goals is that a thread will have the ability to store its "environment" for further siglongjmp()/ sigsetkmp() uses. Here is a sketch of what i came up with: thread.h class Thread { public: /** Constructors and other functions **/ // ...

 
10:31 PM
0
Q: Is the use of Factory Method appropriate here?

JakeI'm wondering if there's another way I can approach this. I want to create objects of the same type with slightly differing property values. Here's the code I'm currently using now (RenameDatabaseUserCmdlet.cs): namespace Company.Powershell.Module.Cmdlets { using System.Management.Automatio...

 
10:49 PM
Spent the last 2 hours updating queries and documentation from messy/unclear to something acceptable... TTQW finally
 
11:00 PM
possible answer invalidation by Raystafarian on question by proxy156: codereview.stackexchange.com/posts/122198/revisions
 
0
Q: Setting up a development environment

cade galt 0I'm looking for feedback on improving the structure of this code. Also, I could not find the command line executable for Chrome. General feedback is also requested. # # # # Divider - configures bash, git, grunt, sublime and chrome # # # user1=foo config_bash() { rm ~/.bash_profile ln...

 
@Duga 1) It's fine. 2) Jamal edited that...
Never mind. I'm an idiot today. It is fine though.
 
11:15 PM
Hey, community ads are up!
 
Github is the only place I can create issues and still feel like I've had a productive day
6
 
0
Q: Using counter or constant for parameter position

ElderMaelSuppose that I have the following Java code: int i = 0; PreparedStatement statement = con.prepareStatement("SELECT * FROM table " + "WHERE field1 = ?, field2 = ?, field3 = ?..."); statement.set***(++i, fieldValue); And there are like 14 fields like that. Then we have another prepared sta...

 
possible answer invalidation by Jake on question by Jake: codereview.stackexchange.com/posts/122308/revisions
possible answer invalidation by 200_success on question by hofmeister: codereview.stackexchange.com/posts/14203/revisions
 
11:36 PM
1
Q: Text Based: Player vs Player Tic-Tac-Toe

AustinBJust looking for a review on my code, its currently only player vs player, but I'll be working on the AI soon enough. Functions edit_name, tutorial, and AI have been left out as I haven't started work on them. class tic_tac_toe: board = [" "," "," ", " "," "," ", " ...

 
@CaptainObvious example code
 

« first day (1039 days earlier)      last day (2982 days later) »