Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
karms
Jan 22, 2006

by Nyc_Tattoo
Yam Slacker
cool i now know cyclical prime stuff exist


Brave GNU World posted:

[0, 1, 10, ..., 19, 2, 20, ...]

ur lang s*cks :shobon:


Shaggar posted:

or really theArray.length instead of n.

off by one strikes again

Adbot
ADBOT LOVES YOU

Shaggar
Apr 26, 2006
yeah lol

Shaggar
Apr 26, 2006
wait no, that should be fine?

Space Whale
Nov 6, 2014

Shaggar posted:

wait no, that should be fine?


KARMA! posted:

off by one strikes again

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Brave GNU World posted:

[0, 1, 10, ..., 19, 2, 20, ...]

Luigi Thirty
Apr 30, 2006

Emergency confection port.


don't post my javascript output

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Luigi Thirty posted:

javascript output

don't sign my posts

Luigi Thirty
Apr 30, 2006

Emergency confection port.

Subjunctive posted:

don't sign my posts

don't post... my... signature?

tef
May 30, 2004

-> some l-system crap ->

ShoulderDaemon posted:

it's fine. if you have p coprime n then i*p mod n for i in [0,n) will generate every value in [0,n) exactly once. this is because the finite groups <Z mod n, +> are cyclic with any integer p coprime n as a generator of that group, which should give you enough to google on if you want to see the actual proof

aaah, i could recall something about picking a generator for a integer field but yeah coprime sounds right

Soricidus
Oct 21, 2010
freedom-hating statist shill

fart simpson
Jul 2, 2005

DEATH TO AMERICA
:xickos:

fart simpson posted:

lol the automated tool i wrote in haskell to improve one of our processes at work started to catch on, except people asked "why are you writing this and not the software team? your job isn't programming" so the software team asked for the source code so they can take over maintaining it. none of them have ever heard of haskell and they're all incredibly lazy and seem to be pretty bad programmers. i wonder if they'll ever manage to add a feature or even change a line of code without breaking everything or if they'll just throw it away and write their own crappier version in java :mrgw:

update: they threw it away and wrote a crappier version in java

BONGHITZ
Jan 1, 1970

sue them

~Coxy
Dec 9, 2003

R.I.P. Inter-OS Sass - b.2000AD d.2003AD

Brave GNU World posted:

[0, 1, 10, ..., 19, 2, 20, ...]

I fixed this bug in my software on Wednesday

did you know .NET has no natural sort implementation? you have to DLL import the Windows one.

cowboy beepboop
Feb 24, 2001

~Coxy posted:

I fixed this bug in my software on Wednesday

did you know .NET has no natural sort implementation? you have to DLL import the Windows one.

nice plang

Shaggar
Apr 26, 2006

~Coxy posted:

I fixed this bug in my software on Wednesday

did you know .NET has no natural sort implementation? you have to DLL import the Windows one.
array and list both have sort methods

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

Shaggar posted:

array and list both have sort methods

oh did they add natural sorting for strings at some point? because that's what we're talking about here

Bloody
Mar 3, 2013

Does string define a comparator?

Shaggar
Apr 26, 2006
yeah it implements IComparable so it has a natural sort order. you could also sort w/ one of the predefined comparators or w/ ur own

MeruFM
Jul 27, 2010
don't trust natural string sorting...

Valeyard
Mar 30, 2012


Grimey Drawer
convert all characters to ints and perform a radix/bucket sort

BONGHITZ
Jan 1, 1970

i dont like to think about sorting

JewKiller 3000
Nov 28, 2006

by Lowtax

MeruFM posted:

don't trust natural string sorting unless LANG=C

rotor
Jun 11, 2001

classic case of pineapple derangement syndrome

BONGHITZ posted:

i dont like to think about sorting

I think this weird obsession programmers have with sorting is just another aspect of their OCD manifesting itself

~Coxy
Dec 9, 2003

R.I.P. Inter-OS Sass - b.2000AD d.2003AD

Shaggar posted:

yeah it implements IComparable so it has a natural sort order. you could also sort w/ one of the predefined comparators or w/ ur own

Natural Sort not "natural" sort

Joe Law
Jun 30, 2008

speaking of sorting someone linked this to me todya. thought it was p. cute

code:
sleepsort.sh 


#!/bin/bash
function f() {
    sleep "$1"
    echo "$1"
}
while [ -n "$1" ]
do
    f "$1" &
    shift
done
wait

PleasureKevin
Jan 2, 2011

well i tried to follow the PL thread but now i'm here

distortion park
Apr 25, 2011


PleasureKevin posted:

well i tried to follow the PL thread but now i'm here

don't worry the pay is pretty much the same

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

pointsofdata posted:

don't worry the pay is pretty much the same

lmao

gonadic io
Feb 16, 2011

>>=

pointsofdata posted:

don't worry the pay is pretty much the same

my homie dhall
Dec 9, 2010

honey, oh please, it's just a machine

pointsofdata posted:

don't worry the pay is pretty much the same

lol

more like dICK
Feb 15, 2010

This is inevitable.

pointsofdata posted:

don't worry the pay is pretty much the same

:eyepop:

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

pointsofdata posted:

don't worry the pay is pretty much the same

triple sulk
Sep 17, 2014



pointsofdata posted:

don't worry the pay is pretty much the same

FamDav
Mar 29, 2008

pointsofdata posted:

don't worry the pay is pretty much the same

drat this loving post.

PleasureKevin
Jan 2, 2011

switching from making an angular + json site back to making a wordpress plugin and them for a client was a really big context shift and i gotta remind myself not to do that

Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe

pointsofdata posted:

don't worry the pay is pretty much the same

ChiralCondensate
Nov 13, 2007

what is that man doing to his colour palette?
Grimey Drawer
Dear ROOT:

gently caress you.

xoxo,
ChiralCondensate

Plastic Snake
Mar 2, 2005
For Halloween or scaring people.

pointsofdata posted:

don't worry the pay is pretty much the same

PleasureKevin
Jan 2, 2011

ChiralCondensate posted:

Dear ROOT:

gently caress you.

xoxo,
ChiralCondensate

do i accept the certificate ...

Adbot
ADBOT LOVES YOU

Luigi Thirty
Apr 30, 2006

Emergency confection port.

Stringent posted:

grats luigi :toot:

personally I prefer to leave the hardball negotiations for when I'm currently employed, but ymmv

glassdoor for this company says "they pay peanuts and if you try to negotiate they'll rescind the offer the next day and call up the next guy but at least they offer full benefits"

apparently they also hire on the logan's run principle which may be illegal idk

  • Locked thread