@AlexA. I hope I did not unintentionally convey any dissatisfaction with your absence. You have real-life concerns due to being a graduate student, and those should absolutely take priority over PPCG. Our mod team is excellent, and more than capable of stepping up and keeping things running smoothly, even if one of them isn't able to be active all the time. You're a great mod, and a great guy, and I look forward to you being able to spend more time on PPCG in the future. :)
ni'o la .tokios. goi ko'a zi'e no'u la'o py 東京 py cu trutca la pongu'e .i ko'a du pa lo 47 gugypau pe la pongu'e gi'e se xabju 12ki'oki'o prenu .i ko'a se zvati le ponjo truci'e .e le ponjo sorgugje'a balzda .e le ponjo sorgugje'a lanzu...
example of how pathetic it is
the wikipedia onebox has all the page's info but the image caption
Input:
A list/array of integers for which each item is in the range of 1-36.
Output:
The sum of the integers (as base 10), where each next integer is in the base of the previous value (starting with a regular base 10).
Example:
Let's say we have an input like this: [4, 12, 34, 20, 14, 6, 25, 13...
Is there a consensus that allows me to take a reversed input for dc? I ask because dc stores the input on a LIFO stack, so when printing the input numbers is starts with the last one.
@seshoumara Unless the challenge states a strict order for the input, it's usually assumed that the input can be taken in any order. Reversed order of input(s) is usually fine.
@DestructibleWatermelon dc -e "?f" <<< "1 2 3" will print 3 2 1, so I need to reverse the input to have it print 1 2 3
it's just how a stack works
I could make it work with a normal input, but that would require at least 30 bytes of flipping the stack and in my opinion it adds nothing to the solution I'm trying to give.
in ideone compiler l'output of above c program [coping the first function the more hight in the screen] is "Hello, WabcdefCode Ayylexicographically" without "\n"... — RosLuP43 mins ago
QUESTION: how to use vga text mode on a reasonable pc ? for example :where are the bytes related to control to topmost-leftmost character ? where i can find precise information on vga & graphics ?
@GLASSIC Usually by directly writing to 0xB8000 (the memory location where the VGA text buffer resides). You have to be in text mode (or using an application that emulates a tty).
We're going to add an easy export to TIO feature to allow support for essentially all the languages, and your code is going to help
I do appreciate it.
Anonymous
@RohanJhunjhunwala Trying to do any sort of HTTP request in core Java (without Apache) is infinitely more painful than just relying on the Apacha dependency.
@Mego ok, I'll try to download the apache jar and add it to my build. It'll be an interesting experience, as I never have really added dependencies
Anonymous
In fact, it's so painful that, aside from using Apache's library, the best method is to exec a script in another language (like Python) that does HTTP requests in a much saner way.
@DestructibleWatermelon Idea for divisors-based lang: allow the user to use multiple numbers, with their representative programs concatenated into one big program.
984
divisors.rb:104:in `step': failed to allocate memory (NoMemoryError)
from divisors.rb:136:in `block in run'
from divisors.rb:135:in `each'
from divisors.rb:135:in `run'
from divisors.rb:98:in `step'
from divisors.rb:136:in `block in run'
from divisors.rb:135:in `each'
from divisors.rb:135:in `run'
from divisors.rb:98:in `step'
from divisors.rb:136:in `block in run'
from divisors.rb:135:in `each'
from divisors.rb:135:in `run'
ALPACA, 414 + 2 = 416 bytes
neighbourhoodV(^ v < >);states" ";statep"#"toA when4inV p,toB when3inV p andvs,toC when3inV p and^s,toD when3inV p and>s,toE when3inV p and<s,toF when2inV p and>s andvs,toG when2inV p andvs and<s,toH when2inV p and<s and^s,toI when2inV p and^s and>s,toJ when^p orvp,t...
@Mego thank you for your answer. i'm doing the same but i don't know why it just doesn't work. i've read the format of text to put there from wikipedia . could you tell me why this doesn't output anything ? also the guy here is trying to write it to segment b700 . maybe to put all un"seeable" junk like black fg in black bg . but i haven't calculated yet.
@Mego i did it . i don't know why it worked . also b8000 itself is not a part of text buffer . it's just the byte before that if i'm not misunderstanding .
well, at least technically it produces the correct output in tryitonline because stderr is not outputted, and the bug only affects outputting nothing ¯\_(˚~˚)_/¯
As per Jeff's suggestion in this comment:
You can use this question as a formatting sandbox. You can
edit this question itself (Community Wiki questions such as this one require 100 reputation to edit)
post answers to this question (Since this question is protected, this requires earning 10...
It's nothing about the name being confusing - every site in the network gets completely off topic questions. It's something to do with being accessible to the public
Starting to rebuild the castle for modern times. Looks decent on FF so far.
full block: | |
<kbd> </kbd>
half block: | |
<kbd> </kbd>
extra block: | |
<kbd> &...
A number is balanced if the sum of the digits on each half of the number is equal, so: 1 4 2 3 is balanced because 1+4 = 2+3, so is: 4 2 6 1 5 because 4+2=1+5.
Take a positive integer as input, and output a truthy value if it's balanced and a falsy value if it's unbalanced.
Test cases (true)
...
Up up and awayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
Bzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Down down and belooooooooooooooooooooooooooooooo...
@trichoplax Reminds me of the time that I was reading a deep technical article somewhere on TechNet about (I think) connecting an Exchange server to users in a different AD forest ... and in the comments and feedback section at the bottom was someone asking how to update their sound card drivers because this game that their son wanted to play kept crashing.
Input
An integer or an acceptable alternative
Output
A truthy or falsey value based on whether the number is balanced or not.
A number is balanced if:
It has an even number of bits
When the binary representation of the number is split down the middle, the result is symmetrical.
Example
I...
After having given much thought to it during the last 2 years I decided that yes, I will release the stack overflow source code.
Here it is:
static void a() { a(); }
int main()
{
a();
}