« first day (1972 days earlier)      last day (2870 days later) » 

Anonymous
3:02 PM
@TimmyD Same, hence my VTD
 
OK ... can other folks give me a hand? If you save 𩸽 as a new blank text file in UTF-8, what's the size of the file? I'm showing 7 bytes.
Which would explain why PowerShell (.NET) is pulling 3,3 for its size.
 
Anonymous
@TimmyD I get 4
 
Ugh, Windows.
 
Anonymous
I'm also on Windows
 
3:03 PM
I stand by my "Ugh, Windows." statement.
 
Anonymous
 
Anonymous
Witchcraft (@ both of those)
 
@Rainbolt the new person is trying to get rep by editing
 
3:05 PM
@TimmyD I get 7 bytes as well. Maybe it's a Win10 thing?
 
but how was that accepted
 
Anonymous
I'm on Win10...
 
@TimmyD 5 bytes
 
You can't get rep by editing your own post though
 
I'm on Windows 8
Well, 8.1
 
Anonymous
3:06 PM
@TimmyD You poor unfortunate soul
 
Anonymous
If you're on Win8.1, wonky byte counting is the least of your concerns
 
Yeah. The full-disk encryption used here at work isn't compatible with Windows 10
 
@Rainbolt hm
i get the second edit, but not the gibberish one
 
Anonymous
Win10 has full-disk encryption built-in...
 
I think Adam just accidentally rolled back to the wrong revision and quickly corrected it
 
3:07 PM
I don't use full-disk encryption that I know of...
 
@Mego I know that. And you know that. And everyone else here in the IT department knows that. But the internal auditors don't and insist on using this third-party solution.
 
Anonymous
Oh, auditors
 
Anonymous
Say no more
 
Anonymous
I understand that pain
 
Anonymous
On a different topic: my cat has lost her mind. Again. News at 10.
 
3:09 PM
@Rainbolt >_> damnit i didn't see his edits
I hate caching.
 
@TimmyD But... Why?
 
I think we used SecureDoc at the university I worked at. It was a mandate from the mother campus.
 
@Katenkyo /shrug.
 
And our solution was brilliant: actually go to each computer in every room and install SecureDoc manually. For thousands of machines.
 
@Upgoat wtf is wrong with the leaderboard script
 
3:10 PM
@TimmyD .....okay, I am bewildered. If I try to copy-paste this into Python's IDLE, it closes abruptly.
 
@EᴀsᴛᴇʀʟʏIʀᴋ That's a lotta bytes.
@El'endiaStarman Awesome.
 
By the way, I opened the text file in Python and it is indeed 7 bytes.
 
@EᴀsᴛᴇʀʟʏIʀᴋ Is the link to Dyalog messing up the scoring?
 
3:11 PM
maybe
 
#[Dyalog APL](goo.gl/9KrKoM), 11 [bytes](meta.codegolf.stackexchange.com/a/9411/43319)

which renders as

<h1><a href="http://goo.gl/9KrKoM" rel="nofollow">Dyalog APL</a>, 11 <a href="http://meta.codegolf.stackexchange.com/a/9411/43319">bytes</a></h1>
 
it shouldn't though
it doesn't read markdown, it reads html
@Rainbolt oh i bet it is
 
Anonymous
>>> len('𩸽')
1
>>> len('𩸽'.encode())
4
 
Why doesn't Pyth have encode?
 
@Mego What version of Python are you using?
 
Anonymous
3:13 PM
>>> len(open('test.txt').read())
1
>>> len(open('test.txt').read().encode())
4
 
Anonymous
@El'endiaStarman 3.4
 
@Mego Hmm. I'm using 3.5.0. I wonder if that's related at all.
 
@Rainbolt On a smaller size, I once had to format and reinstall 50+ computer, but using a ghost/ an image with a cool template reasy was forbidden... I know your pain
 
Anonymous
>>> print(sys.version)
3.4.3 (default, May  5 2015, 17:04:32)
[GCC 4.9.2]
 
# Python2:
>>> len('𩸽')
4

# Python 3
>>> len('𩸽')
1
 
3:14 PM
Oh, it's picking out the post number in the url as the score lol.
43319
The url immediately preceeding the word "bytes"
 
Anonymous
@El'endiaStarman Same thing happens to me in 3.5 IDLE
 
Yeah.
@Upgoat ...
 
Anonymous
I think my IDLE might not be built for Unicode
 
@Mego Looks like it's a known bug and has more to do with the underlying tkinter.
 
Anonymous
Blargh
 
Anonymous
3:22 PM
Ffs tkinter get your stuff working
 
Anonymous
My kitty is giving me the sad kitty eyes because I'm working and not playing with her
 
I can't print it either using either of the byte strings here.
Can't even read in the text file I created earlier and print its contents.
Anything I try returns this error: UnicodeEncodeError: 'UCS-2' codec can't encode characters in position 1-1: Non-BMP character not supported in Tk.
 
Anonymous
I wonder if Win8 is doing some weird double-encoding thing
 
@Mego Can you run my UTF-8 code on your Windows 10 box and see if you get 3,3 or 4 for the 𩸽 character?
 
@Mego Well, I'm on Win10, and so are you, but we get different results, whereas TimmyD is on Win8.1 and gets the same result as I do.
Seems to be a version-independent issue.
 
3:29 PM
Oh. Hrm.
 
Anonymous
@TimmyD How do I powershell?
 
For this one, just save it as a .ps1 file somewhere. PowerShell should be available from Start
.\bytes-per-character.ps1 '𩸽'
 
Anonymous
Wait a second, I think I just figured it out
 
Anonymous
Do chcp in cmd
 
@TimmyD I can't paste that character into my command line... :(
 
3:33 PM
C:\Tools\Scripts>chcp
Active code page: 437
 
@Mego Active code page: 437
 
Anonymous
Yarr
 
@Mego 866
 
Anonymous
Do chcp 65001 and then try it again
 
Did I mention that my Russian localized machine has a special CP?
 
3:35 PM
Dang, I thought you were on to something. Still 3,3
 
0
Q: Fast way of suming up polynoms

Alex HoppusYou probably will think that this question is more about algorithms, but actually i'am searching for right formula. What i want to do is to compute $(A^n + A^{n-1} + .. + A + 1))$ mod $(10^9 + 7)$ fast. Fast is $log(n)$. $1 <= n <= 10^{18}$ $1 <= A <= 10^9$ What i have tried: Geometric...

This is a computer-science related question
on Math.SE
 
@Mego When I try to copy-paste it, I just get two boxes with question marks in them (regardless of code page). That said, I put it into a text file from the command line and got the original character. What the heck is going on?! o.O
 
so is anyone interested?
 
Anonymous
@El'endiaStarman PowerShell may have a bug with inputting non-BMP characters as well
 
@Mego But TimmyD doesn't seem to have a problem with it?
 
Anonymous
3:39 PM
Does PowerShell have a Unicode literal syntax?
 
@El'endiaStarman That could be because the font selected in your console doesn't support that character
 
Anonymous
Like Python's \uXXXX?
 
@TimmyD Oh, lemme check.
 
@Mego Yeah. [char]0x0000
 
Does Consolas support Unicode?
 
Anonymous
3:40 PM
I'm using Lucinda Console
 
@El'endiaStarman Only a limited subset of.
Most of the limited subset only includes letters.
 
Anonymous
I know it supports Unicode, because I have a Cygwin terminal open, also using that font
 
or [regex]::Unescape()
 
@El'endiaStarman no, but i think inconsolata does
 
@Mego Switched to that and now it's two boxes without question marks. =_=
 
3:41 PM
hahaha
 
@Mego What's the Unicode literal for the character in question?
 
Anonymous
@TimmyD That doesn't work for wide chars like \u29e3d
 
Oh, interesting.
 
@EᴀsᴛᴇʀʟʏIʀᴋ I dunno how I'd get that; it's not (currently) available in the font choices.
 
Anonymous
Does PS have a unichr function or similar?
 
3:44 PM
@Mego For wide characters, you need [char]::ConvertFromUtf32(0x29e3d)
 
Anonymous
And that gives me the two blocks
 
Anonymous
Conclusion: Microsoft doesn't know how to Unicode
 
PS C:\Tools\Scripts\golfing> [Text.Encoding]::UTF8.GetByteCount([char]::ConvertFromUtf32(0x29e3d))
4
Woo
 
@Mego To be fair, Unicode seems to be pretty hard for everyone. Like time zones.
 
Anonymous
@El'endiaStarman Yeah, but at least other devs try to support it. Microsoft seems to be adamantly opposed to sane Unicode support in PS.
 
3:47 PM
@El'endiaStarman open source, try google
 
Anonymous
There are 2 important rules for sane Unicode support in a programming language:
 
Anonymous
1. Devs should not have to think about how many bytes are needed to represent the character unless they are specifically dealing with encoding and decoding.
 
Anonymous
2. There should be no distinction within the language between ASCII characters/strings, single-byte-encoding characters/strings, and Unicode characters/strings. One way to do that is just to make everything Unicode.
 
@EᴀsᴛᴇʀʟʏIʀᴋ The problem is more that there's no obvious way to add fonts to the choices I have in the command line properties dialog. I could probably figure it out with Google, but at this point, I don't care quite enough to do so. :P
 
Anonymous
Python 2's Unicode support was bad because it broke rule #2 - there was a strong distinction between a string (str) and a Unicode string (unicode), and everything was a str by default.
 
3:51 PM
I'm working on an OEIS based programming language and I need to come up with a name for it.
Any suggestions?
 
Anonymous
OEISL
 
Anonymous
Pronounced "ossil"
 
@Upgoat what is make?
 
@El'endiaStarman lol
@CᴏɴᴏʀO'Bʀɪᴇɴ .-. windows is horror
make = build stuff
 
3:52 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ The tool to automate building software programs.
By GNU.
 
@zʏᴀʙiɴ101 thanks
how do I get it on windows .-.
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ A GNU tool that supposedly makes building cross-platform programs easier
 
Anonymous
In reality it makes it much, much harder
 
Anonymous
Use Cygwin or MinGW
 
3:53 PM
yeah
ok
Conor O'Brien@ConorPC MINGW64 /
$ make
bash: make: command not found
 
@Mego Cygwin is great
 
(kill me now)
 
I use it all the time
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Try mingw32-make.
Or mingw64-make, for that matter.
 
Anonymous
I use Cygwin frequently, but ~90% of my usage nowadays is ssh server (for my Linux server in the other room that doesn't have a monitor, mouse, or keyboard hooked up)
 
3:55 PM
@Mego Yeah, there's something really broken somewhere in the conversion here. I suspect it's the implicit cast-to-char that's anticipating a non-wide literal
 
Anonymous
@TimmyD The "something really broken" is just after the copyright symbol
 
hah
 
Anonymous
The best part of all of this was having to look up what command to use to actually be able to run PS scripts on my machine
 
@Mego the word copyright?
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ Shh you saw nothing
 
3:57 PM
gotcha
 
Well, now, this is interesting.
 
Anonymous
@TimmyD What's your .NET version?
 
PS C:\Tools\Scripts\golfing> .\bytes-per-character.ps1 '𩸽'
4
Exception calling "ConvertToUtf32" with "2" argument(s): "Found a low surrogate char without a preceding high surrogate at index: 1. The input may not be in
this encoding, or may not contain valid Unicode (UTF-16) characters.
Parameter name: s"
At C:\Tools\Scripts\golfing\bytes-per-character.ps1:3 char:31
+   param($a)0..($a.length-1)|%{[Text.Encoding]::UTF8.GetBytes([char]::ConvertFrom ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/afk meeting
 
That's quite an error
 
Anonymous
I have .NET 4.6 fwiw
 
4:04 PM
@Katenkyo Germany. It'll be 37 °C tomorrow, today it's "just" 35...
 
Beat portal same day as I bought it. Now I'm binge-playing...
 
Anonymous
@BaldBantha This was a triumph
 
Actually listing to Still Alive on loop in the other tab.... :D
 
Anonymous
So here we are again... It's always such a pleasure
 
4:13 PM
0
Q: Forecast Palindromic Dates

atlasologistPalindromic dates are dates that appear as palindromes: the string of digits can be read the same way backwards as forwards. For the North American date format (MM/DD/YYYY), the next few palindromic dates are: 02/02/2020 12/02/2021 03/02/2030 The Challenge Create a function that returns all ...

 
@BaldBantha Portal 2 is thrice as long as Portal 1. :D
 
Good, I was a little disapointed in the length of the game
has anyone here heard of mari0? it's super mario with portals. It's great!
 
Anyone know why I can't use auto-tag-editing when the edit's on the queue?
For this question btw
15
Q: Find the Cheese

LiamUpdate: I have clarified the output specification and updated the controller slightly. Now that there are some entries, I will try to get some official scores out tomorrow (no promises though), after I have "finalized" the scoring mazes. I will likely release the battery in a week or so. You'...

 
@BaldBantha Oooh, fun.
 
@Rainbolt I actually have a super-old deck revolving around this
I own 4 of them
There's a non-Unglued version that's slightly worse: gatherer.wizards.com/Pages/Card/…
 
That sounds fun
 
I paired it with Patrol Hound and Renounce
Looks like I'm not the only one either, just googled it :P I suppose it's kind of an obvious combo
 
Ohh, are you speaking of MtG?
 
4:52 PM
Yup
 
I want to make MtG cards based on PPCG users, but I have no good reception for this idea so far.
 
I recently found a Demonic Tutor in my dad's collection of cards
 
We know what a Demonic Tutor is :P
 
@zʏᴀʙiɴ101 I made a card about someone but is has since been removed. MTGCardsmith only keeps them for so long
 
Are they restricted in Vintage still?
Yeah, looks like it. Too bad.
 
4:55 PM
@quartata We do?
 
yes?
 
@Dennis Well, it's a classic MTG card
 
That raises more questions than it answers.
 
@Rainbolt You should try this card creator. It doesn't keep created cards, so you also have to upload to a permanent image hosting.
 
Anonymous
4:57 PM
@BaldBantha This is a pretty fun video to watch - 4 idiots playing mari0 (language warning): youtube.com/watch?v=O0qYF7p3z8I
 
I'm happy with the card creator I normally use.
 
@Rainbolt :(
 
5:12 PM
You only told me what the one you suggested doesn't do. What'd you expect?
I'm a lazy guy with a working card creator
 
So, who does like an idea of a set of MtG cards based on PPCG users?
 
WHY IS IT SO DAMN HOT
 
@zʏᴀʙiɴ101 I do
 
@orlp What is the temperature?
@Rainbolt :D
 
@zʏᴀʙiɴ101 too damn high
 
5:20 PM
some of my classes were canceled because the CO2 levels were too high - like 3000 ppm
 
@orlp So high, that you can't find a nearby thermometer?
 
or ppb
 
@zʏᴀʙiɴ101 27C
 
@orlp that's not that bad
 
@Maltysen it is lol
 
Anonymous
5:22 PM
27 C is 80.6 F
 
@Mego yeah, its like 78 here
 
Anonymous
That was the low last night
 
Anonymous
It's 37C/98F here now
 
you have to understand that here in the netherlands we're used to 15-18C
 
I should make a room for the design of MtG cards based on PPCG users.
 
Anonymous
5:23 PM
15 C is mid-autumn here
 
also you muricans needs to stop it with your silly F lol
 
Anonymous
We have temperatures spanning 0-100F within the same year
 
Should I make the room with the parent site here, or Role-playing Games (assuming I registered on this site, which I'm not)?
 
@Mego 100C? damn that's hot
 
@orlp its so much better than C for weather
 
5:24 PM
exactly the boiling point of water
 
@orlp 100 F, not 100 C.
 
Anonymous
Which is -18C to 38 C
 
@Maltysen except it's not
 
@orlp oh ;_;
 
Anonymous
Celsius makes more sense for science. Farenheit makes more sense for weather wrt humans
 
5:24 PM
you know it's freezing when the temperature is < 0
 
Anonymous
0-100F is approximately the survivability range for humans
 
you know it's chilly 0-10
comfortable 10-20
'beach' weather 20-30
pls kill me 30-40
40-50 ded
 
@orlp would you use this: github.com/isaacg1/pyth/pull/200?
 
^ - pretty much
 
Anonymous
Below 0F, frostbite and hypothermia become serious concerns. Above 100F, heat stroke and dehydration are serious concerns.
 
5:27 PM
@Maltysen nope, have my own calculator
@Mego same with above 30/below -15
 
Right now, I'll ask @Rainbolt with questions regarding the cards, in here.
 
Anonymous
-15 to 30 isn't as intuitive of a range as 0 to 100
 
@Mego and it's not an important range
freezing/boiling of water is much more important in day-to-day life
 
Until I get the room, where I'll reduce the load on him.
 
on top of that, the whole premise of fahrenheit is flawed
 
Anonymous
5:28 PM
As a human, the temperatures that I can survive in are pretty damn important
 
average body temperature is not 100F
 
Anonymous
In 1724, 100F was a pretty good estimate
 
@orlp irrelevant, the guy was like 2 degrees off, its fine for daily use
 
and now it's 2016
 
Anonymous
Spoiler alert: above 100F or below 0F is bad news for humans, regardless of the century
 
5:30 PM
besides
I argue that 0F has no importance for humans
if you're appropriately clothed -25 is no problem
 
C or F?
 
if you're inappropriately clothed -5 is already a problem
C
how much energy does it take to heat one gram of water by one degree Celsius at a pressure of one atmosphere?
 
Anonymous
The Fahrenheit scale also has one of the benefits of degrees: the difference between water's freezing point (32) and boiling point (212) is 180, which has lots of nice factors
 
@Mego which is still worse than exactly 0-100
 
Anonymous
> Celsius makes more sense for science.
 
5:34 PM
@orlp its like 4.8 or something, right?
or 4.18
 
@Maltysen no, it's exactly 1 calorie
 
well yeah, that's the definition of a calorie
 
Anonymous
I'm not arguing with you that Celsius is more convenient for scientific purposes. The metric system is fantastic in that regard. However, that does not make it superior to all other systems in every conceivable way.
 
@orlp He meant in joules
 
To be fair, between all units Americans use, Fahrenheit is not the stupidest. Still pretty dumb though
 
5:35 PM
how many feet in a mile?
 
Anonymous
Imperial length units are the worst
 
Anonymous
5280
 
5280
haha ninja'd
 
inches in a mile?
 
Anonymous
63360
 
5:36 PM
@orlp no feet
 
@orlp Wait, do you actually use calories? Joules is the SI unit
 
@quartata calorie is used a lot in chemistry
but if you want a similar question for joules...
 
All the chemistry I did used joules
 
at least that's one point that metric and imperial agree on
W=J/s
 
how much energy is transferred when a force of one newton acts on an object for one metre?
 
5:38 PM
@orlp who tf actually uses newtons irl?
 
@quartata I used it when I did some Chemical thermodynamics
 
Huh.
 
@Maltysen everyone?
 
Anonymous
@orlp 0.238 calories
 
@Maltysen ??? lol
 
5:39 PM
@orlp you would normally use mass right, with kg?
 
Anonymous
 
1
Q: When can APL characters be counted as 1 byte each?

AdámPrompted by this. The question of APL's encoding often comes up, and many times a helpful soul links to Wikipedia's article on the APL EBCDIC codepage. However, each implementation of APL has its own encoding rules. What are they?

 
@Maltysen depends if I want to use force or weight
 
@orlp but do people actually go around saying like, this box weighs 5 N? the only reason we use force in imperial is cuz everyone uses pounds
 
@Maltysen no because that'd be silly
nothing weighs 5 N
 
Anonymous
5:40 PM
In science and engineering, the weight of an object is usually taken to be the force on the object due to gravity. Weight is a vector whose magnitude (a scalar quantity), often denoted by an italic letter W, is the product of the mass m of the object and the magnitude of the local gravitational acceleration g; thus: W = mg. The unit of measurement for weight is that of force, which in the International System of Units (SI) is the newton. For example, an object with a mass of one kilogram has a weight of about 9.8 newtons on the surface of the Earth, and about one-sixth as much on the Moon. In this...
 
Before I upvote, is codegolf.stackexchange.com/a/83705/32686 proper java?
 
however, you can say "this rocket generates blabla newtons of thrust"
 
@muddyfish Yes, it's fine
 
Anonymous
Weight is the scalar magnitude of the force due to gravity, which is measured in Newtons or pounds (depending on the system)
 
:30567478 1 kg = 9.81N
 
Anonymous
5:41 PM
So "this object weighs 5 Newtons (on Earth)" is a perfectly reasonable statement (the "on Earth" part is implicit)
 
no one ever uses weight in that way in dutch
maybe that's why I'm confused
in dutch weight/mass mean the same thing
if you mean gravitational force you're explicit
 
^^ except in physics speech
 
nope
 
wat
 
Anonymous
It's the same as "this object experiences a force of 5 Newtons towards the center of the planet due to gravity" or "this object has a mass of 0.51 kg"
 
5:43 PM
then it's either F_g or 'gravitational force'
 
Anonymous
Weight and mass are very much not the same thing
 
in english
in dutch the words mean the same
and we have other words for gravitational force
 
Anonymous
Mass is an implicit property, weight is the result of a gravitational field
 
in english
 
Anonymous
Then perhaps the issue is the Dutch language :P
 
5:44 PM
that's the definitions in english
there is no issue
 
Mass is the result of the Higgs field :p
 
Anonymous
@orlp Those are the scientific definitions. English is the lingua franca of science. There is an issue with inaccurate translation if, in Dutch, weight and mass are equivalent.
 
@Mego Weight and mass were names way, way before English was the lingua franca
 
@Mego There is no issue.
There are no scientific publications in Dutch.
No one measures weight in Newton's in Dutch, because that word is only ever used in day-to-day language to talk about what really is mass.
example: "How much do you weigh? 80 kilograms."
 
Anonymous
Meanwhile in English: "How much do you weigh? 180 pounds."
 
5:51 PM
^ how much is that in stones? lul
 
@Mego The pound or pound-mass (abbreviations: lb, lbm, lbm, ℔[1]) is a unit of mass used in the imperial, United States customary and other systems of measurement.
also mass?
 
@Fatalize English as lingua franca? I thought French was lingua franca.
:d
 
@zʏᴀʙiɴ101 was
not anymore
 
Anonymous
It's a bit confusing because there are two different units in the US system called "pound" - mass and force.
 
@orlp It's still an official language of UN, UE and FIFA damnit! :p
 
5:52 PM
Then lingua franca should become lingua engla. :P
 
@Fatalize that's... french?
@zʏᴀʙiɴ101 franca != france
 
@orlp what?
 
The Franks (Latin: Franci or gens Francorum) are historically first known as a group of Germanic tribes that inhabited the land between the Lower and Middle Rhine in the 3rd century AD, and second as the people of Gaul who merged with the Gallo-Roman populations during succeeding centuries, passing on their name to modern-day France and becoming part of the heritage of the modern French people. Some Franks raided Roman territory, while other Frankish tribes joined the Roman troops of Gaul. In later times, Franks became the military rulers of the northern part of Roman Gaul. With the coronation...
The Mediterranean Lingua Franca or Sabir was a pidgin language used as a lingua franca in the Mediterranean Basin from the 11th to the 19th century. == History == Lingua franca means "language of the Franks" in Late Latin, and originally referred specifically to the language that was used around the eastern Mediterranean Sea as the main language of commerce. However, the terms "Franks" and "Frankish" were actually applied to all Western Europeans during the late Byzantine Period. Later, lingua franca came to mean any contact language. Its other name in the Mediterranean area was Sabir, deriving...
 
Anonymous
There's a bit of handwaving that goes on in common speech, making 1 force-pound the same thing as 1 mass-pound on Earth (thus making gravitational acceleration be 1 handwavium-unit per second squared)
 
Anonymous
Someone in a Portuguese SO flagged "clown" (in Portuguese)
 
Anonymous
5:57 PM
I don't understand people sometimes
 
@Mego clowns
 
Anonymous
@orlp flags as offensive :P
 
@Mego What was the word?
 

« first day (1972 days earlier)      last day (2870 days later) »