Tiago Bortoletto Vaz: MuseScore 2.0 is great, try it!
MuseScore 2.0
MuseScore 2.0
So, I also got myself a new toy. My current ThinkPad is a bit
ancient, but still sturdy. It's an X201s from 2010 (brought
refurbished), and it's still working pretty fine, but eh, I
couldn't resist.
The X230 was nice, but didn't have a large resolution screen
(1366 768). The X240 brought a full HD (1920 1080) IPS screen,
but lost the hardware trackpoint buttons. Finally, the X250 brings
back the buttons, still have a nice screen (not qHD or some other
trendy resolutions, but still FHD and IPS). And on top of that, it
comes with Broadwell, so that means I get smap.
It runs mostly fine out of the box on Debian sid, but for full
support some tuning is needed. I've setup a page
with more information on the laptop, and some images can be found
over there.
A new minor release of littler is available now.
It adds or extends a number of things:
installDrat.r;install.r, install2.r and check.r scripts now use getOption("repos") to set the default repos; this works well with drat and multiple repos set via, e.g. ~/.littler.r or /etc/littler.r;check.r run, this can be particularly useful for one-command checks as done by some of the Rocker containers;REPRODUCIBLE_BUILD is defined, no date and time stamp is added to the binary;-L --libpath to expand the library path used for packages;install2.r script;--usage output display;This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
$ ubuntu-drivers devices
$ ubuntu-drivers list
$ ubuntu-drivers autoinstall
Editorial Note: The following post was kindly contributed by Steven Pav.
It just works.
.Rprofile file:
drat::add("shabbychef")
After this, you instantly have access to new releases in the github/shabbychef drat store via the package tools you already know and tolerate. You can use
install.package('sadists')
to install the sadists package from the drat store, for example. Similarly, if you issue
update.packages(ask=FALSE)
all the drat stores you have added will be checked for package updates, along with their dependencies which may well come from other repositories including CRAN.
R CMD INSTALL package_name_0.3.1.9001.tar.gz. This is not something I wanted to ask of my colleagues. With drat, they can instead add the following stanza to .Rprofile: drat:::addRepo('localRepo','file:///mnt/NAS/r/local/drat'), and then rely on update.packages to do the rest.addRepo commands in some way. This would allow curators to publish their suggested lists of repos.gh-pages branch of a github repo. I wish there were some way to keep the index.html file in that directory reflect the packages present in the sources. Maybe this could be achieved with some canonical RMarkdown code that most people use.This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
My Lenovo x220, which I've owned for almost four years now (I remember fetching
it from the supplier shortly before driving off to Banja Luka), was getting
somewhat worn out. The keyboard and the screen had both been replaced at some
point already, and the wwan interface had given up as well. The case was all
cracked, and the NIC connector wasn't doing very well anymore either; there
have been a few cases of me trying to configure the wireless network at a
customer, but this being harder than it needs to be because the NIC will only
work if I put in the network cable just so, and someone dropped a piece of
paper onto the cable.
In other words, it was time for a new one. At first I wanted to buy a Lenovo
x250, but then I noticed that the Fujitsu came with an i7 4712MQ, which I liked
(as today it is still quite exceptional for an ultrabook to have a quadcore
processor). Fujitsu also claims up to 9 hours of battery life, but it's not
clear to me whether this is supposed to be the case with the default battery
only. They also have a battery for the modular bay, which I bought as well (to
replace the optical drive whic I sometimes use, but only rarely), and on top
of that it came with a free port replicator.
Not all is well, however. In the x220, getting the WWAN interface to work
involved some creative use of chat against /dev/ttyACM0 wherein I issue a
few AT commands to put the WWAN interface into a particular mode, and from then
on the WWAN interface is just a regular Ethernet interface on which I can do
DHCP. The new laptop has a "Sierra Wireless, Inc." WWAN interface (USB id
1199:9041) which annoyingly doesn't seem to expose the ttyACM (or similar)
devices, and I'm not sure what to use instead. Just trying to do DHCP doesn't
work -- yes, I tried.
Unfortunately, the keyboard isn't very good; it's of the bubble gum type, and I
keep getting annoyed at it not picking up my keystrokes all the time. When I'm
at home or at my main customer, I have a Das Keyboard Ultimate S (3rd
(customer) and 4th (home) generation), so it's only a problem when I'm not at
home, but it's still extremely annoying. There is a "backlight" function in
that keyboard, but that's not something I think I'll ever use (hint: "das
keyboard ultimate s").
The display can't do more than 1366x768, which is completely and utterly
wrong for a computer -- but it's the same thing as my x220, so it's not
really a regression.
The "brightness" ACPI keys don't seem to work. I may have to fiddle with some
ACPI settings at some point, I suppose, but it's not a major problem.
When I plugged it in, I noticed that fdpowermon ignored the second battery. I
had originally written fdpowermon with support for such a second battery, but
as my x220 had only one, I never tested it. Apparently there was a bug, but
that's been fixed now -- at least in unstable.
On the good side of the equation, it has three USB3 ports in the laptop, and
four in the port replicator, with no USB2; this is a major leap forwards from
the one USB3 and six USB2 in the x220. A positive surprise was the CCID
smartcard reader that I somehow missed while reading the specs, but which --
given my current major customer, is very welcome,
indeed.
Update: After having used it a few days, there were a few minor
annoyances:
pcm.!default
type hw
card 1
ctl.!default
type hw
card 1
awful.key( , "XF86MonBrightnessDown", function() awful.util.spawn("xbacklight -dec 5") end),
awful.key( , "XF86MonBrightnessUp", function() awful.util.spawn("xbacklight -inc 5") end),
awful.key( modkey , "XF86MonBrightnessDown", function() awful.util.spawn("xbacklight -set 1") end),
awful.key( modkey , "XF86MonBrightnessUp", function() awful.util.spawn("xbacklight -set 100") end),
The lines with "modkey" allow me to go to "brightness max" or
"brightness min" in one go, rather than have to hit fn+f6 or fn+f7
repeatedly, which is a useful extra.mmcli should have a way to enable things. The bad news
is that mmcli -m 0 -e just comes back with "error: couldn't enable
the modem: 'timed out'" (partially translated into Dutch). I haven't
had the time to look into this much yet, but it seems to be another
one of those dbus complications. To be continued, I'm sure.
Last night I put up a telnet server and web interface to play a demo of
scroll and send me playtester feedback, and I've gotten that almost solid
today. Try it!
Today was a scramble to add more features to Scroll and fix bugs.
The game still needs some balancing, and generally seems a little too hard,
so added a couple more spells, and a powerup feature to make it easier.
Added a way to learn new spells. Added a display of spell inventory on 'i'.
For that, I had to write a quick windowing system (20 lines of code).
Added a system for ill effects from eating particular letters.
Interestingly, since such a letter is immediately digested, it doesn't
prevent the worm from moving forwards. So, the ill effects
can be worth it in some situations. Up to the player to decide.
I'm spending a lot of time now looking at letter frequency historgrams to
decide which letter to use for a new feature. Since I've several times
accidentially used the same letter for two different things (most
amusingly, I assigned 'k' to a spell, forgetting it was movement), I
refactored all the code to have a single charSet which defines every
letter and what it's used for, be that movement, control, spell casting,
or ill effects. I'd like to use that to further randomize which letters
are used for spell components, out of a set that have around the same
frequency. However, I doubt that I'll have time to do that.
In the final push tonight/tomorrow, I hope to add an additional kind of
level or two, make the curses viewport scroll when necessary instead of
crashing, and hopefully work on game balance/playtester feedback.
I've written ~2800 lines of code so far this week!
TransportStream that simply requires io::Read and io::Write to be implemented and (for now) provides a single convenience method based on the underlying io::Read implementation. For a clear-text TCP connection, the only thing that was required to implement it was one line of code: impl TransportStream for TcpStream
HTTP/2 Connection Layer The connection layer provides an API for reading and writing to a raw HTTP/2 connection. This means reading and writing HTTP/2 frames, not arbitrary bytes. Each HTTP/2 frame has to follow the same basic structure(a 9-byte header followed by a sequence of byte representing the payload of the frame). This is represented by the RawFramestruct. Each HTTP/2 frame type can have its own specific format for the content of the payload and assign meaning to the flags found in the header. Therefore, each frame needs to have its own implementation that can parse a RawFrame or return an error if the raw frame does not represent a valid frame of that type. Some common methods that each frame type implementation needs to support are given by the Frametrait that must be implemented by the implementations. Finally, the HttpConnectionstruct handles reading the byte stream from the underlying TransportStream instance, correctly delineating frames and parsing them into the appropriate frame type implementation (by delegating to the correct Frame implementation based on the frame type found in the header). Obviously, varying the implementation of the transport layer is a matter of choosing the appropriate TransportStream implementation. This includes using mock implementations for testing the HttpConnection itself. HTTP/2 Client Connection The ClientConnectionbuilds upon the HttpConnection by using it to expose functionality that is specific to the client side of an HTTP/2 connection. This includes sending requests and reading responses. The struct takes care of creating frames that need to be sent for a given request (including HPACK header encoding) and shipping them off to the server (using the underlying HttpConnection instance). As for handling a response, the ClientConnection expects to get an instance of a struct implementing the Sessiontrait when constructed. This trait essentially defines a number of callbacks: methods that will be called on this instance when the corresponding event occurs in the ClientConnection. Therefore, the ClientConnection understands the semantics of the particular frames that it reads (e.g. performs the decoding of the HEADERS frames' payloads, passing the raw data received in a DATA frame to the session, etc.). However, it does not know anything about streams; it only passes the stream ID up to the session layer, without thinking about whether the stream is open, valid, etc. HTTP/2 Session As mentioned in the previous section, each ClientConnection requires an instance of a struct implementing the Sessiontrait to be passed to it at construction time. The Session trait defines a number of callbacks that are invoked in the appropriate moments during the processing of frames read on a client connection. For example, new_headers (takes a list of heaers and a stream on which they were received) or new_data_chunk (a buffer and a stream on which the data arrived). The session is in charge of handling these events as they arise. It is up to it to decide what (if anything) should be done with the data that it receives. There is a default implementation of the Session trait (unimaginatively named DefaultSession), which provides an implementation that tracks which streams are currently open and delegates the processing of new events on particular streams to instances of a Streamtrait. This allows for client implementations to simply vary the implementation of a Stream that they provide to the DefaultSession in order to change how a particular part of a response is handled, but let the DefaultSession take care of tracking which streams are open and valid. Different implementations of a Session still can exist, if the particular client needs more fine-grained customization over how these events are handled, but for most purposes the default session, along with Stream customization should probably be enough. HTTP/2 Stream Again, as mentioned previously, the DefaultSessionimplementation of the Session trait relies on a Streamtrait providing the handling for events arising on individual streams. This level should be the one that gets customized most often in alternate implementations. A default stream implementation DefaultStreamhandles the messages by building up a response in-memory. Different implementations could instead send progress notifications on an associated channel, for instance. HTTP/2 Client The final layeris that of a client that exposes methods that would usually be expected for a client HTTP library: sending requests, obtaining responses. This layer is not the primary focus, though, and it only exposes two simple implementations that showcase how the lower level APIs can be used to build a client. The second purpose it fulfills is as a "sanity check" that the APIs actually do allow the goals to be met. Therefore, one of the clients allows for requests to be sent from concurrently running threads and the responses to those requests to be obtained asynchronously (in the form of a Future<Response>). However, the responses are basic and very raw: they are stored fully in memory (not available until they've been read until the end) and both the body, as well as the headers, exposed as raw byte sequences. As an example how this clientcan be used (as well as the simpler single-threaded version), check out the Examplessection in the GitHub repository's README file. Future Work Refactoring APIs As the project was started as a Rust learning exercise, the initial APIs are slightly awkward and fairly inefficient to work with. For example, the solicit::hpackmodule requires headers to be represented as a tuple of Vec<u8>, which means that whenever we need to encode a header list, even though their values might be (statically known) byte sequence literals, such as (b":method", b"GET"), we need to make a bunch of to_vec calls on the &[u8]s before passing them to the encoder, leading not only to a really ugly and tedious way of obtaining the encoded representation of the headers, but also to a lot of unnecessary allocations. Another API that will see some refactoring and improvement is the TransportStream, as well as the HttpConnection in order to make it possible to have separate threads perform reads and writes on the connection. Currently, the socket is owned by the HttpConnection instance and all writes and reads require a &mut reference, making this impossible. This change would tackle this by embracing Rust's new try_clone method on the TcpStream into the TransportStream and refactoring the HttpConnection to allow splitting it into a write and read handle. HTTP/2 Features As already mentioned, only a small subset of the full HTTP/2 spec is currently implemented, so, obviously, implementing the rest of it falls under the most important future work. Some near- to mid-term priorities that will be tackled are: TransportStream implementation that wraps a TCP socket into a TLS wrapper. This will probably rely on OpenSSL bindings.
/bin/bash -c "wget http://www.scala-lang.org/files/archive/scala-2.10.3.deb ; dpkg -x ./scala-2.10.3.deb /"Note that it doesn't even install the package properly, but extracts it to your root directory. The download does not check any signature, not even SSL certificates. (Source: Bigtop puppet manifests)
XDG_DESKTOP_DIR="$HOME/ "
XDG_DOWNLOAD_DIR="$HOME/ "
XDG_TEMPLATES_DIR="$HOME/ "
XDG_PUBLICSHARE_DIR="$HOME/ "
XDG_DOCUMENTS_DIR="$HOME/ "
XDG_MUSIC_DIR="$HOME/ "
XDG_PICTURES_DIR="$HOME/ "
XDG_VIDEOS_DIR="$HOME/ "

ApologyAs a twisted turn of fate, I need to start my platform with an apology. Last year, I withdrew my nomination, because my life turned upside down, and the effects of that are still felt today, and will continue to have a considerable footprint for the rest of my life. But this is not what I want to apologise for! I want to apologise because my nomination, my platform, and my plans are rather uncommon - or so I believe. Unlike past Project Leaders, if elected, I will not have as much time to travel, as some of them. Nor will I have the resources to do all the things one may expect from a Project Leader. But - as you'll read later - I consider this both the biggest weakness and the greatest strength of my platform.Furthermore, I will not be available from the second half of the voting period until after the new Project Leader's term starts: I'll be getting married, and will enjoy a nice honeymoon, and as such, my email will remain unread from the 9th of April until we're back on the 21st of April.On the mouse behind the keyboardMy name is Gergely Nagy, or algernon, for those of you who may know me by my online presence. I used to be a lot of things: a flaming youth, an application manager, package maintainer, upstream, ftp-assistant, a student, a mentor, a hacker. In the end, however, I am but a simple, albeit sometimes crazy person. I imagine, a lot of people reading this will not know me, and that is actually not only fine, but in my case, desirable.The Role of the Project LeaderThe role of the Project Leader, what people perceive about the role, and what is actually done by one single person changed dramatically over time. In some ways for the better, some ways for the worse. It should be sufficiently clear by now that if we combine all the things past Project Leaders have done, and what people expect the Project Leader to do, then not even all the time in the world would be enough to accomplish everything. On the other hand, we should not cut the responsibilities back to constitution-granted ones only.There has been some discussion about this very topic on debian-project@, back in February, with excellent observations by both past Project Leaders and the current one. I encourage my dear readers to stop reading this platform now, and read at least Lucas's mail. I'll be right here when you get back.Back? Good.You may notice that unlike in previous years, I do not have a Grand Vision, not in the same sense at least. No matter what I envision, however noble that vision may be, it is not the Project Leader's job to save the world, so to say. While I still believe that we have serious problems with motivation, inspiration and innovation within the project, the Project Leader is the wrong person to try and solve these issues with.Apart from the constitutionally required responsibilities, the primary purpose of the Project Leader in my opinion, is to be an enabler: the Project Leader is not a front runner to lead the herd to victory, but a gentle shepherd to make them happy.HappyThere are many ways to make people happy. One such way is to enable them to pursue their passion - and not just enable them, but encourage and fuel that passion, too! -, to remove barriers, to empower them, or in a lot of cases, to include them in the first place. My vision is a project that is greater than just an amazing distribution. More than a role model for technical excellence. I want to do away with territorial pissings (with which I don't mean to imply that this would be the general atmosphere within the project - far from it!), and would rather see a warm, welcoming culture within the project - the kind of "I'm home!" feeling I had at the DebConfs I had the privilege to attend -, on public and private media alike.That is the vision I have, but I can't do it. At best, I can hope to enable people much better at the these things to do what needs to be done. I wish to take the burden of administration, bureaucracy off their shoulders, so they can focus on what they do best. I feel that this is the most important part of being a Project Leader: to enable the project to grow. And this is why I feel that most of you not knowing my name is an advantage here: When you look at a beautiful flower, you admire the flower itself, rarely the gardener.In the endI wish to be the Project Leader no one remembers. I'd rather see people remember all the great things the Project - as a whole - accomplished, for there are many. My purpose is to let You pursue your passion, which in turn enables even more people to pursue their happiness, and allows the greater Free Software community to bask in the warm glow of accomplished dreams.
I want my 7drl game Scroll to have lots of interesting spells.
So, as I'm designing its spell system, I've been looking at the types, and
considering the whole universe of possible spells that fit within the
constraints of the types.
My first throught was that a spell would be a function from World -> World.
That allows any kind of spell that manipulates the game map. Like, for
instance a "whiteout" that projects a stream of whitespace from the
player's mouth.
Since Scroll has a state monad, I quickly generalized that; making spell
actions a state monad M (), which lets spells reuse other monadic actions,
and affect the whole game state, including the player. Now I could write
a spell like "teleport", or "grow".
But it quickly became apparent this was too limiting: While spells could change
the World map, the player, and even change the list of supported spells, they
had no way to prompting for input.
I tried a few types of the Event -> M () variety, but they were all too
limiting. Finally, I settled on this type for spell actions:
M NextStep -> M NextStep.
And then I spent 3 hours exploring the universe of spells that type allows!
To understand them, it helps to see what a NextStep is:
type Step = Event -> M NextStep
data NextStep = NextStep View (Maybe Step)
NextStep is a continuation, spells take the original continuation,
and can not only modify the game state, but can return an altered
continuation. Such as one that prompts for input before performing the
spell, and then calls the original continuation to get on with the game.
That let me write "new", a most interesting spell, that lets the player
add a new way to cast an existing spell. Spells are cast using ingredients,
and so this prompts for a new ingredient to cast a spell. (I hope that
"new farming" will be one mode of play to possibly win Scroll.)
And, it lets me write spells that fail in game-ending ways. (Ie, "genocide @").
A spell can cause the game to end by returning a continuation that
has Nothing as its next step.
Even better, I could write spells that return a continuation that contains a
forked background task, using the 66 line contiuation based threading system I
built in day 3. This allows writing lots
of fun spells that have an effect that lasts for a while. Things like letting
the player quickly digest letters they eat, or slow down the speed of
events.
And then I thought of "dream". This spell stores the input continuation and
game state, and returns a modified continuation that lets the game continue
until it ends, and then restores from the point it saved. So, the player dreams
they're playing, and wakes back up where they cast the spell. A wild spell,
which can have different variants, like precognitive dreams where the same
random numbers are used as will be used upon awaking, or dreams where
knowledge carries back over to the real world in different ways.
(Supports Inception too..)
Look how easy it was to implement dreaming,
in this game that didn't have any notion of "save" or "restore"!
runDream :: M NextStep -> M NextStep -> (S -> S) -> M NextStep
runDream sleepcont wakecont wakeupstate = go =<< sleepcont
where
go (NextStep v ms) = return $ NextStep v $ Just $
maybe wake (go <=<) ms
wake _evt = do
modify wakeupstate
wakecont
My LTS February
In February I didn't get much LTS work done, as other projects grabbed my attention. I started working on #761859 but that took a lot more time than initially thought, as the database design has been bended several times to make it fit for some new usecases. For example, "end-of-life" information is saved in the urgency field, making this one of several reasons why a bug can have different urgencies in different releases (despite that a CVE always only has one urgency). There are more oddities in the code base which was written with the (now long gone) assumption to be a tracker for security issues in testing. Constantly adding more requirements and use cases didn't really help to make it more maintainable. I'm glad that at least since yesterday https://security-tracker.debian.org/tracker/data/json provides valid JSON, though probably still a bit of finetuning is needed before I'll consider the output stable and close the bug.
In related news I've filed #780201: "new codename needed for oldstable (due to squeeze-lts) when stable becomes oldstable" today as else the security tracker will cease to work for squeeze LTS once we release jessie. And that would spoil that day a bit...
Between december 9th 2014 and march 9th 2015 I ve been working as an intern for Debian on Improving AppArmor support in Debian.
Progress
Before the internship started, I had no clue about AppArmor at all. Reading the Wikipedia page and the AppArmor wiki did barely enlighten me. At least, until I got my hands dirty and installed and activated it. I was able to do this only because there was already some basic documentation on the Debian wiki on how to get AppArmor running on a Debian system.
When the internship started I felt a little bit lost. I started to read the documentation and to play around with some AppArmor profiles. But the error messages I saw and the profiles I opened for reading overwhelmed me. What did all these lines mean?
Then one mentor briefed me about the current status of AppArmor in Debian. I took many notes and tried to bring some order into the information I was being given. These notes became the first page of the documentation and my first blog post.
Dear Planet Debian,
the Debian Zsh Packaging Team (consisting of Michael Prokop, Frank
Terbeck, Richard Hartmann and myself) wonders if there s still a reason
to build and ship a zsh-static package in Debian.
There are multiple reasons:
the problem is that user/group lookups are disabled in the -static build because glibc s NSS ABI is unstable and static binaries still need to load NSS modules dynamically.One solution here would be to compile against dietlibc, but for that we d need an ncurses library built against dietlibc (#471208), too.
Do you need Debian s zsh-static package? If so, please send an e-mail to us Debian Zsh Maintainers <pkg-zsh-devel@lists.alioth.debian.org> and state that you use zsh-static, and, if you want, please also state why or how you re using it. Thanks in advance! Mika, Frank, RichiH and Axel
Dear Planet Debian,
the Debian Zsh Packaging Team (consisting of Michael Prokop, Frank
Terbeck, Richard Hartmann and myself) wonders if there s still a reason
to build and ship a zsh-static package in Debian.
There are multiple reasons:
the problem is that user/group lookups are disabled in the -static build because glibc s NSS ABI is unstable and static binaries still need to load NSS modules dynamically.One solution here would be to compile against dietlibc, but for that we d need an ncurses library built against dietlibc (#471208), too.
Do you need Debian s zsh-static package? If so, please send an e-mail to us Debian Zsh Maintainers <pkg-zsh-devel@lists.alioth.debian.org> and state that you use zsh-static, and, if you want, please also state why or how you re using it. Thanks in advance! Mika, Frank, RichiH and Axel
Much as I want to get my @ displayed and moving around screen,
last night and today have focused on level generation instead.
Scroll has kinda strange level generation method, compared to how
I suppose most roguelikes do it. There are only 3 calls to rand
in all of Scroll. Just a 3 random parameters, but that's enough to
ensure a different level each time.
-- Random level generation function.
level :: Bool -> StdGen -> [String]
level randomize r = concat
[ final (length tutorial + extra) $ concat $ rand mariner1body
, concat $ rand mariner1end
, concatMap rand kubla
]
where
-- here be spoilers
import GPL
Somehow, I have never before, in all my time programming, written a line
like that one.
@
yet; that will need to wait for tonight or tomorrow!
I thinking archiving is important, archive.org is
great, and I'm proud of what little contribution I've made to
date.
Someone recently pointed out that an upload I had made is now inaccessible.
In it's place is a short message: this item is unavailable due to issues with its content.What issues are not made clear. I've never been contacted by
archive.org about this, not even to be
admonished, should they have felt that to be necessary. I've tried contacting
them to find out what the issues are but have heard nothing back.
It's worth remembering: Just because it's available now, even on archive.org,
doesn't mean it will be Tomorrow!
Next.