742 karma · joined Jun 22, 2009 (17y ago) · 425 submissions
2.
HMD Global launches first smartphone, the Nokia 6 in China(hmdglobal.com ↗)
3 points · by kiiski · 9y ago · discuss
comment 9y ago · link · parent
The gender ratio was around 60/40 men/women. I don't think anyone even mentioned the term "IQ". It was mostly like a student group outing with people drinking, talking, playing board games, going to sauna (this was in Finland), swimming, flying around in a inflatable boat someone had converted to an ultralight floatplane and such.
comment 9y ago · link · parent
;; There probably are better solutions already
;; available somewhere.
(defun org-insert-screenshot (filename)
(interactive "sFilename: ")
(let ((filename (concat filename ".png")))
;; import is from ImageMagick, change to whatever you like to use
(call-process "import" nil nil nil filename)
(insert (format "[[file:%s]]" filename))
(org-display-inline-images)))comment 10y ago · link · parent
comment 10y ago · link · parent
Here's a map for the carrier in question: https://elisa.fi/kuuluvuus/
comment 10y ago · link · parent
He's just standing there either for ceremonial reasons or for training (possibly both). In any case, his only task is to stand there and call the police if there's trouble.
comment 10y ago · link · parent
comment 10y ago · link · parent
Emacs is typically started once, and then you open files in the same instance. With vanilla emacs you can use `emacs --daemon` to start it as a server, and then use `emacsclient` to open files. That way it should open pretty much instantly. I'm not sure what Spacemacs calls those.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
For example, the `+=`-operator found in many languages is implemented as a macro in CL (INCF). It needs to read the value of a place, increment it and then set the new value to the same place.
Doing that with a variable is easy. Using non-lisp syntax
x += 5
expands to x = x + 5
Doing that with object slots is easy too, if you don't mind accessing the slot directly. However, if you want to have getter and setter methods (which may not even correspond directly to a slot in the object) the expansion would look different. o.setFoo(o.getFoo() + 5)
or if the getter and setter can have the same name o.foo(o.foo() + 5)
Since the expansion is different, the macro would have to figure out whether it's dealing with a variable or an accessor method and behave differently. With generalized references you can use the accessor method as if it was a variable o.foo() // calls the getter
o.foo() = 5 // calls the setter
Now you easily can expand o.foo() += 5
to o.foo() = o.foo() + 5
just the same as you would with a variable. Behind the scenes you still have separate getter and setter methods, but the macro doesn't need to worry about that.comment 10y ago · link · parent
28.
E.T. phone home: China eyes hunt for alien life with giant telescope(reuters.com ↗)
1 points · by kiiski · 10y ago · discuss
comment 10y ago · link · parent
Finland was a part of Sweden from ~1200 to 1809. Finland also still has a large Swedish minority and has Swedish as an official language. The biggest religion is Lutheran due to Swedes forcing it on people when they conquered the land. Estonia is more Orthodox.
More importantly, Finland has been co-operating with the other Nordic nations politically and economically for the ~century that it has been independent. Remember that the Nordic nations aren't just a cultural region, but they also share political, social and legal systems, have a passport union (although that overlaps with the EU nowadays) and, while they have not been able to develop any official military alliance due to Russian and American pressure, they co-operate a lot.
All in all, Estonia has some things in common with Finland, but it doesn't have much claim to being a "Nordic nation". They might be in the future, but not today.