sh

NEWS: Chapter 3 is Finished!

Starfighter Chapter 3 is officially finished! The comic will take a brief hiatus and return on Feb 14th! For no other reason than it's Valentine's day and I am a romantic, HAHA- but for real, Thisbe and I have to prep the book for print and do a whole bunch of other things that need to happen and take time, so we'll have our hands full. I know I said I was aiming for a Valentine release for the print, but the book Chp3 will actually be coming out later-- I will be sure to make BIG ANNOUNCEMENTS when it's available!

*THE COMIC ISN'T OVER, IT WILL RESUME ON FEB 14TH!*

*THE PRINT RELEASE OF CHP 3 IS NOT SET YET, I WILL MAKE AN ANNOUNCEMENT WHEN IT'S AVAILABLE*

Chapter 4 will be the next and last chapter of Starfighter, if I can do this properly!

As always, thank you all so much for your love and support! I am really happy to share this chapter with you, it's been a lot of fun!

SEE YOU SOON! -Hamlet




sh

NEWS: The Shop is back! Chapter 3 now on sale!

THE SHOP HAS RE-OPENED!

CHAPTER 3 IS NOW AVAILABLE FOR THE FIRST TIME!

We also have new prints and Chp 2 back in stock, if you have been meaning to pick it up!

I FEEL LIKE SANTA~

I hope you all enjoy!

-Hamlet

I just wanted to add; we've got a bunch of new merchandise in production, but a lot of it isn't quite ready yet, so keep your eyes peeled over the next couple of months, because we'll be adding a bunch of new exciting items to our inventory!

*cough* body pillows *cough* *cough*

-Thisbe




sh

Albertu se daří, plánuje e-shop. Lidé víc dají na slevy, tvrdí jeho šéf

Maloobchodnímu řetězci Albert se v koronavirové krizi dařilo. Prodeje mu v některých dnech vzrostly až na trojnásobek a těžil hlavně z prvotních panických nákupů některých Čechů. Měl však i vysoké náklady. Firma teď navíc plánuje i spuštění e-shopu. Podle jejího šéfa však Češi v budoucnu budou více vyhledávat výhodné ceny.



  • Ekonomika - Domácí

sh

Corporations Will Not Save Us: The Sham of Corporate Social...



Corporations Will Not Save Us: The Sham of Corporate Social Responsibility

Last August, the Business Roundtable – an association of CEOs of America’s biggest corporations – announced with great fanfare a “fundamental commitment to all of our stakeholders” and not just their shareholders. 

They said “investing in employees, delivering value to customers, and supporting outside communities“ is now at the forefront of their business goals — not maximizing profits.

Baloney. Corporate social responsibility is a sham.

One Business Roundtable director is Mary Barra, CEO of General Motors. Just weeks after making the Roundtable commitment, and despite GM’s hefty profits and large tax breaks, Barra rejected workers’ demands that GM raise their wages and stop outsourcing their jobs. Earlier in the year GM shut its giant assembly plant in Lordstown, Ohio.

Nearly 50,000 GM workers then staged the longest auto strike in 50 years. They won a few wage gains but didn’t save any jobs. Barra was paid $22 million last year. How’s that for corporate social responsibility?

Another prominent CEO who made the phony Business Roundtable commitment was AT&T’s Randall Stephenson, who promised to use the billions in savings from the Trump tax cut to invest in the company’s broadband network and create at least 7,000 new jobs. 

Instead, even before the coronavirus pandemic, AT&T cut more than 23,000 jobs and demanded that employees train lower-wage foreign workers to replace them.

Let’s not forget Jeff Bezos, CEO of Amazon and its Whole Foods subsidiary. Just weeks after Bezos made the Business Roundtable commitment, Whole Foods announced it would be cutting medical benefits for its entire part-time workforce.

The annual saving to Amazon from this cost-cutting move is roughly what Bezos – whose net worth is $117 billion – makes in a few hours. Bezos’ wealth grows so quickly, this number has gone up since you started watching this video.

GE’s CEO Larry Culp is also a member of the Business Roundtable. Two months after he made the commitment to all his stakeholders, General Electric froze the pensions of 20,000 workers in order to cut costs. So much for investing in employees.  

Dennis Muilenburg, the former CEO of Boeing, also committed to the phony Business Roundtable pledge. Shortly after making the commitment to “deliver value to customers,” Muilenburg was fired for failing to act to address the safety problems that caused the 737 Max crashes that killed 346 people.  After the crashes, he didn’t issue a meaningful apology or even express remorse to the victims’ families and downplayed the severity of the fallout to investors, regulators, airlines, and the public. He was rewarded with a $62 million farewell gift from Boeing on his way out.

Oh, and the chairman of the Business Roundtable is Jamie Dimon, CEO of Wall Street’s largest bank, JPMorgan Chase. Dimon lobbied Congress personally and intensively for the biggest corporate tax cut in history, and got the Business Roundtable to join him. JPMorgan raked in $3.7 billion from the tax cut. Dimon alone made $31 million in 2018.

That tax cut increased the federal debt by almost $2 trillion. This was before Congress spent almost $3 trillion fighting the pandemic – and delivering a hefty portion as bailouts to the biggest corporations, many of whom signed the Business Roundtable pledge. 

As usual, almost nothing has trickled down to America’s working class and poor. 

The truth is, American corporations are sacrificing workers and communities as never before in order to further boost runaway profits and unprecedented CEO pay. And not even a tragic pandemic is changing that. 

Americans know this. A record 76 percent of U.S. adults believe major corporations have too much power. 

The only way to make corporations socially responsible is through laws requiring them to be – for example, giving workers a bigger voice in corporate decision making, requiring that corporations pay severance to communities they abandon, raising corporate taxes, busting up monopolies, and preventing dangerous products (including faulty airplanes) from ever reaching the light of day.  

If the CEOs of the Business Roundtable and other corporations were truly socially responsible, they’d support such laws, not make phony promises they clearly have no intention of keeping. Don’t hold your breath.  

The only way to get such laws enacted is by reducing corporate power and getting big money out of our politics.

The first step is to see corporate social responsibility for the sham it is. The next step is to emerge from this pandemic and economic crisis more resolved than ever to rein in corporate power, and make the economy work for all. 




sh

Ken and Robin Talk About Stuff: He Said, Foreshadowingly

In the latest episode of their always activated podcast, Ken and Robin talk sandbox encounters, our top 2019 movies, and the tomb of Christian Rosenkreutz.



  • Ken and Robin Talk About Stuff

sh

Ken and Robin Talk About Stuff: Shill for the Macedonians

In the latest episode of their multi-layered podcast, Ken and Robin talk narrative voices in RPG play, Whitey Bulger & MK-ULTRA, curse tablets, and Oswald Wirth & Stanislas de Guaita.



  • Ken and Robin Talk About Stuff

sh

U.S. Financial System “Monitor” Failed to Flash Warning as Fed Pumped $6 Trillion Emergency Liquidity into Wall Street

U.S. Financial System “Monitor” Failed to Flash Warning as Fed Pumped $6 Trillion Emergency Liquidity into Wall Street

By Pam Martens and Russ Martens: May 8, 2020 ~  The Office of Financial Research (OFR) was created under the Dodd-Frank financial reform legislation of 2010 to keep the Financial Stability Oversight Council (F-SOC) informed on emerging threats that have the potential to implode the financial system — as occurred in 2008 in the worst financial crash since the Great Depression. The Trump administration has gutted both its funding and staff. One of the early warning systems of an impending financial crisis that OFR was supposed to have created is the heat map above. Green means low risk; yellow tones mean moderate risk; while red tones flash a warning of a serious problem. On September 17, 2019, liquidity was so strained on Wall Street that the Federal Reserve had to step in and began providing hundreds of billions of dollars per week in repo loans. By January 27, 2020 (before … Continue reading

-




sh

U.S. Unemployment Reaches 14.7 Percent – Chart from Great Depression Shows Risks Ahead

U.S. Unemployment Reaches 14.7 Percent – Chart from Great Depression Shows Risks Ahead

By Pam Martens and Russ Martens: May 8, 2020 ~   The data is out this morning and it’s not pretty. Nonfarm payrolls collapsed by 20.5 million jobs in April and the unemployment rate rose to 14.7 percent. The United States is now seeing the worst unemployment rates since the Great Depression. We prepared the above chart from data available at the Federal Reserve Economic Data (FRED) archives at the Federal Reserve Bank of St. Louis. Following the stock market crash of October 29, 1929, it was not until August 1931 that the unemployment rate reached 15.01 percent. We’re now at 14.7 percent unemployment from a rate of 3.5 percent just two months ago in February. Consider using the chart above to figure out just how much cash on hand you need to maintain.

-




sh

Уроки Photoshop: 5 новых уроков с видео

Рассылка сайта < Уроки Фотошоп > > Новые уроки Апельсиновый текст. Видео. Раздел : текст-эффекты, простые Создаем зимний пейзаж В этом уроке я расскажу вам, как создать зимний пейзаж, используя различные методы фотоманипуляции. Вы научитесь объединять различные стоковые фото используя корректирующие слои, маски и кисти. Вы так же узнаете как делать снег, солнечные свет, световые эффекты, сохранять детали и многое другое. Раздел : коллажирование, сложные Создаем изометрическую иконку ландшафта В этом уроке ...




sh

Уроки Photoshop: 33 новых урока

Рассылка сайта < Уроки Фотошоп > > Новые уроки Из фото в гравюру. Видео. Раздел : спецэффекты, простые Создаем текстовый эффект в виде зеркального шара В этом уроке я расскажу вам, как создать бесшовную текстуру, которую в дальнейшем вы будите применять для 3D текста в качестве основной текстуры, вместе с применением несколькими корректирующих слоёв и финальных штрихов кистью вы сделаете текстовый эффект в виде зеркального шара. Раздел : текст-эффекты, средние Эффект дезинтеграции. Видео. Создадим абстракт...




sh

Уроки Photoshop: 19 новых

Рассылка сайта < Уроки Фотошоп > > Новые уроки Убираем людей с фотографии улицы. Видео. Съемку на улицах нередко затрудняют случайно попадающие в кадр прохожие и в этом видео мы расскажем, как очень просто избавиться от движущихся через изображение людей. Раздел : фотообработка, простые Создаём плавучий остров. Видео. Раздел : коллажирование, средние Создаём монеты с портретом. Видео. Раздел : спецэффекты, простые Создаем коллаж цветочного портрета Как создать коллаж цветочного портрета с цветами, листьями...




sh

Уроки Photoshop: 10 новых

Рассылка сайта < Уроки Фотошоп > > Новые уроки Создаем текстовый эффект в виде кофейного пятна В этом уроке я расскажу вас, как создать текстовый эффект в виде кофейного пятна используя некоторые текстуры, кисти и стили слоя. Раздел : текст-эффекты, средние Создаем коллаж <Искаженное лицо в Космосе> В этом уроке мы создадим коллаж искаженного лица парня в пространстве и времени. Мы будем использовать много различных фильтров и не которые текстуры. В ходе выполнения урока, как новички, так и продвинутые пол...




sh

Уроки Photoshop

Рассылка сайта < Уроки Фотошоп > > Новые уроки Блестящий, золотой текст Мы будем делать блестящий, золотой текстовый эффект используя, стили слоя, режимы смешивания и добавим немного искр с помощью готовых изображений. текст-эффекты Сюрреалистичная эмоциональная сцена Создадим фон, используя изображения неба и травы. Добавим модель, деревья, клетку и птиц и объединим это все в единую композицию, используя корректирующие слои, маски слоя, режимы смешивания и фильтры. коллажирование Абстрактное лицо из льда ...




sh

Уроки Photoshop: Фотоарт и свежие Уроки

Открыт набор в онлайн Школу Фотоарта Cornacchia ! Курс представляет собой подробные текстовые уроки со скриншотами и примерами. А также дополнен озвученными видеоуроками, демонстрирующими авторскую технику преподавателя. Для тех, кто не имеет достаточного количества времени на учёбу, введена система заданий, позволяющая закреплять полученные знания без существенных временных затрат. Постоянный контакт с преподавателем в любое удобное для вас время в течение дня - уникальное условие, которое не обеспечит да...




sh

Уроки Photoshop: лето-осень 2017

Вы узнаете, как из <домашних> фото можно создать настоящее полноценное произведение . {username, открыт набор в онлайн Школу Фотоарта Cornacchia ! Впервые будут проводиться также индивидуальные занятия для тех, кому удобнее заниматься вне группы. Постоянный контакт с преподавателем в любое удобное для вас время в течение дня - уникальное условие, которое гарантирует Школа Фотоарта. Отзыв ученика newAnika: < Объясняется все подробно, я не раз мучила преподавателя разными вопросами, то кисть не настраивалась...




sh

Уроки Photoshop: Индивидуальные занятия

Открыт набор в онлайн Школу Фотоарта Cornacchia ! Впервые будут проводиться также индивидуальные занятия для тех, кому удобнее заниматься вне группы. Постоянный контакт с преподавателем в любое удобное для вас время в течение дня - уникальное условие, которое гарантирует Школа Фотоарта. Вы всегда оперативно получите развёрнутый ответ на любой вопрос по материалу, все необходимые разъяснения и разбор домашнего задания. Вы сами решаете, какая нагрузка вам подходит, и выбираете нужное вам количество часов обу...




sh

Уроки Photoshop

{username, открыт набор в онлайн Школу Фотоарта Cornacchia ! Постоянный контакт с преподавателем в любое удобное для вас время в течение дня - уникальное условие, которое гарантирует Школа Фотоарта. Вы всегда оперативно получите развёрнутый ответ на любой вопрос по материалу, все необходимые разъяснения и разбор домашнего задания. С учетом отзывов курсантов прошлых наборов, программа оптимизирована для более комфортного ритма учёбы. Поддержание творческого тонуса учеников - одна из главных задач курса. При...




sh

Уроки Photoshop: Школа Фортарта 2020

Открыт набор в онлайн Школу Фотоарта Cornacchia Со 2 марта по 15 апреля 2020 г. Программа разделена на два уровня: Начальный и Средний. Самое ценное для вас на этом курсе - постоянная связь с преподавателем в течение дня. Вы всегда оперативно получите развёрнутый ответ на любой вопрос по материалу, все необходимые разъяснения и разбор домашнего задания. Вы сами решаете, какая нагрузка вам подходит, и выбираете нужное вам количество часов обучения. Для тех, кто не имеет достаточного количества времени на уч...




sh

Chrononauts: Futureshock #1

Posted by: history79



Read more... )



comments



  • creator: mark millar
  • creator: eric canete
  • publisher: image comics

sh

Unleash #1

Posted by: history79



HEAVY Trigger Warning for Rape

Read more... )



comments



  • trigger warning: rape
  • creator: el torres

sh

Chrononauts: Futureshock #2

Posted by: history79



Read more... )



comments



  • creator: mark millar
  • creator: eric canete
  • publisher: image comics

sh

Unleash #2

Posted by: history79



HEAVY Trigger Warning for Rape

Read more... )



comments



  • trigger warning: rape
  • creator: el torres

sh

Chrononauts: Futureshock #3

Posted by: history79



Read more... )



comments



  • publisher: image comics
  • creator: eric canete
  • creator: mark millar

sh

Unleash #3

Posted by: history79

NSFW

HEAVY Trigger Warning for Rape

Read more... )



comments



  • trigger warning: rape
  • nsfw
  • creator: el torres

sh

Hugo: Best Editor, Short Form - starting point

The finalists are:

I'm a subscriber to Uncanny Magazine, edited by the Thomases, and a Patreon supporter of Clarkesworld, edited by Neil Clarke. I keep up with neither magazine as much as I'd like, but I generally enjoy both of them. Uncanny Magazine in particular has a very high hit rate for me when I do make time to read it.

(I also had the pleasure of meeting Neil Clarke in his kaffeeklatsch at Dublin Worldcon last year, which I really enjoyed & learned a lot from.)

I have one of Jonathan Strahan's anthologies from last year, Mission:Critical on my to-read pile, and I've also been eyeing the Made to Order: Robots and Revolution anthology published this year.

Ellen Datlow edits a lot of horror, which I'm cautious of, and I happen not to have read any of the Tor.com short fiction she acquired last year, but that could be remedied (in a well-lit room during the day, etc). She also lists a couple of anthologies, and while I'm not touching a Best Horror of the Year anthology, I might risk the ghost stories anthology.

C.C. Finlay and Sheila Williams edit respectively F&SF Magazine and Asimov's Science Fiction, neither of which I subscribe to or read regularly, but because I'm already not keeping up with the things I do subscribe to, not for any stronger or more considered reason.



comments




sh

Fannish stuff

New Murderbot novel today! It made me laugh on the first page and squeak aloud in delight in a number of places. I read it over the afternoon in and around doing a worse job than usual of supporting schooling.

In less happy news, Delfont Mackintosh theatres confirmed today that Hamilton performances in London are now cancelled through to the end of June, so this year I will not be continuing my self-indulgent tradition[1] of seeing it for my birthday. At some point I'll get contacted and offered a refund or an exchange for a future performance and obviously I'm going to go for the latter. Oh, I hope actors and theatre staff come through this okay.

[1] As I learned at DWCons, anything done more than once is a tradition ...



comments




sh

Diary-ish

Oops, yes, this blog has been almost entirely scheduled posts in Irish or about the Hugo finalists for the last month. So what's going on with me?

Household
Read more... )

Exercise and masks
Read more... )

Essential shopping
Read more... )

Less essential shopping
Read more... )

Remote events
Read more... )

So that's me for the last month. How about you?



comments



  • events of note

sh

Summer Horrification — Day Five — Englishman River and Rathtrevor

Continued from Day Four. (From the beginning.) On Friday we packed all of our stuff back up and headed out.  We were barely out of the resort when: This tire is flat. Apparently all that gravel out to Horne Lake Caves the day before also included a small screw.  We limped around the corner to … Continue reading Summer Horrification — Day Five — Englishman River and Rathtrevor




sh

Oops, February is short

Wow, the end of February really snuck up on me! I wrote this on the morning of March 1 and backdated it. :(

Aside from some uninteresting work travel and a bit more progress on Pac Tom, the main notable thing from February was work on my SIGBOVIK papers. It is now possible to submit, so you can too! Thank you for your suggestions for my chess paper (see previous post); it's not too late for more ideas there. I also have one non-chess paper, which turned out to be pretty fun. For that I spent a solid chunk of the weekend manually routing this bad boy:


Design rules check pass!


It may end up to be too hard to solder, but isn't it aesthetically pleasing?




sh

Washer Collage

Hi! I've been stuck inside for weeks, probably just like you. I go out running every day, dodging people, but otherwise it's lockdown-mode. Our washing machine promptly broke, so I had to replace that thing. It became a project, because (aside from the difficult but mostly uninteresting process of getting it onto the second floor) one of the things that contributed to the last one's failure was its not-very-stable footing, and I wanted to do this one well. The thing resides inside a nice (but probably unnecessary) tile basin, which poses a few problems: It would make it impossible to get to the bottom doors on the machine, and it makes it impossible to adjust the feet in situ for leveling purposes, and the basin is not at all flat. The weirdly-shaped surface meant that my CAD prospectus was not very useful, which is annoying because I like to measure like 200 times in CAD and then cut once.


Figure 1. Click to zoom


The other problem is that I didn't have the right wood for this, and although Home Depot claimed to be able to do a same-day shipment, they gave me the runaround for over a week (I still don't have it). It's understandable, but our piles of laundry were getting a bit dire, so I just had to make do with what I had. In figure 1(a) I sawed through these 6x6 timbers with a 3.5" saw, which took like an hour. Then I used the also-too-small table saw to mill that into the smaller size I actually wanted (figure 1(b)). Then, I painstakingly test fit the logs in the basin, and sawed/planed/chiseled/sanded them until they were sitting stably on that curved surface without wobble. This was a real pain. The best advice I have for doing this was to get the tile sopping wet, then place the wood there for a moment, and then see where the high spots are based on where the wood is wet. (It would work better with some dye or something, but I didn't want to ruin the tile, ugh.) At that point we have some logs that were nice and sturdy, but not necessarily level gravity-wise. My solution here was router-out cups for each of the washer's feet, which I could set the depth of so that the washer would be level without any adjustment. (This also has the nice advantage that the washer can't jump around more than a few millimeters!) This was accomplished by using a laser level for an accurate level, and then putting some objects of fixed height (here the feet from the old washer, which will be disassembled for its more exciting pieces) into each cup, and iteratively routing the depth until they all touch the laser line exactly (Figure 1(c)). All that work paid off, though, because when we finally dropped the washer into place, it was as level as a spirit level can possibly indicate (Figure 1(d)). No pictures of the install here because this is like in my bathroom and that seems weirdly intimate to put on the internet for some reason.

SIGBOVIK is tomorrow, but this year there is no in-person event due to the shelter-in-place order! The proceedings is shaping up nicely though, and there is some "podcast" expected. I have a few silly papers in there, but I'll save those for tomorrow. No talks from me this year; the whole situation in the world has been sort of draining my creative energy, but hopefully I will start feeling good again soon.




sh

Shamrock Around The Clock




sh

Today’s comic was selfish





sh

Timofei Shatrov: Previewing images in and out of SLIME REPL

As any Common Lisp coder knows, a REPL is an incredibly useful tool. It can be used not just for development, but for running all sorts of tasks. Personally, I don't bother making my Lisp tools into executable scripts and just run them directly from SLIME. As such, any operation that requires leaving the REPL is quite inconvenient. For me, one such operation was viewing image files, for example in conjunction with my match-client:match tool. So lately I've been researching various methods to incorporate this functionality into the normal REPL workflow. Below, I present 3 methods that can be used to achieve this.

Open in external program

This one's easy. When you want to view a file, launch an external process with your favorite image viewer. On Windows a shell command consisting of the image filename would launch the associated application, on Linux it's necessary to provide the name of the image viewer.

(defvar *image-app* nil) ;; set it to '("eog") or something

(defun view-file-native (file)
  (let ((ns (uiop:native-namestring file)))
    (uiop:launch-program (if *image-app*
                             (append *image-app* (list ns))
                             (uiop:escape-shell-token ns)))))

Note that uiop:launch-program is used instead of uiop:run-program. The difference is that launch- is non-blocking - you can continue to work in your REPL while the image is displayed, whereas run- will not return until you close the image viewer.

Also note that when the first argument to run/launch-program is a string, it is not escaped, so I have to do it manually. And if the first argument is a list, it must be a program and a list of its arguments, so merely using (list ns) wouldn’t work on Windows.

Inline image in REPL

The disadvantage of the previous method is that the external program might steal focus, appear on top of your REPL and disrupt your workflow. And it's well known that Emacs can do everything, including viewing images, so why not use that?

In fact, SLIME has a plugin specifically for displaying images in REPL, slime-media. However it’s difficult to find any information on how to use it. Eventually I figured out that SWANK (SLIME’s CL backend) needs to send an event :write-image with appropriate arguments and slime-media's handler will display it right in the REPL. The easiest way is to just send the file path. The second argument is the resulting image's string value. If you copy-paste (sorry, "kill-yank") it in the repl, it would act just like if you typed this string.

(swank::send-to-emacs '(:write-image "/path/to/test.png" "test"))

You can even send raw image data using this method. I don't have anything on hand to generate raw image data so here's some code that reads from a file, converts it to a base64 string and sends it over SWANK.

(with-open-file (in "/path/to/test.png" :direction :input  :element-type '(unsigned-byte 8))
                (let* ((arr (make-array (file-length in) :element-type '(unsigned-byte 8)))
                       (b64 (progn (read-sequence arr in) (cl-base64:usb8-array-to-base64-string arr))))
                  (swank::send-to-emacs `(:write-image ((:data ,b64 :type swank-io-package::png)) "12345"))))

Note that the first argument to :write-image must be a list with a single element, which is itself a plist containing :data and :type keys. :data must be a base64-encoded raw image data. :type must be a symbol in swank-io-package. It’s not exactly convenient, so if you’re going to use this functionality a helper function/macro might be necessary.

Image in a SLIME popup buffer

Inline images are not always convenient. They can’t be resized, and will take up as much space as is necessary to display them. Meanwhile EMACS itself has a built-in image viewer (image-mode) which can fit images to width or height of a buffer. And SLIME has a concept of a “popup buffer” which is for example used by macroexpander (C-c C-m) to display the result of a macro expansion in a separate window.

Interestingly, slime-media.el defines an event :popup-buffer but it seems impossible to trigger it from SWANK. It is however a useful code reference for how to create the popup buffer in ELisp. This time we won’t bother with “events” and just straight up execute some ELisp code using swank::eval-in-emacs. However by default, this feature is disabled on Emacs-side, so you’ll have to set Emacs variable slime-enable-evaluate-in-emacs to t in order for this method to work.

Also Emacs must be compiled with ImageMagick for the resizing functionality to work.

Anyway, the code to view file in the popup buffer looks like this:

(defun view-file-slime (file &key (bufname "*image-viewer*"))
  (let ((ns (namestring file)))
    (swank::eval-in-emacs
     `(progn
        (slime-with-popup-buffer (,bufname :connection t :package t)
          (insert-image (create-image ,ns))
          (image-mode)
          (setf buffer-file-name ,ns)
          (not-modified)
          (image-toggle-display-image))
        ;; try to resize the image after the buffer is displayed
        (with-current-buffer ,bufname (image-toggle-display-image))))))
    ))

Arriving to this solution has required reading image-mode’s source code to understand what exactly makes image-mode behave just like if the image file was opened in Emacs via C-x C-f. First off, image-mode can be a major and a minor mode - and the minor mode is not nearly as useful. slime-with-popup-buffer has a :mode keyword argument but it would cause image-mode to be set before the image is inserted, and it will be a minor mode in this case! Therefore (image-mode) must be called after insert-image.

Next, the buffer must satisfy several conditions in order to get image data from the filename and not from the buffer itself. Technically it shouldn’t be necessary, but I couldn’t get auto resizing to work when data-p is true. So I set buffer-file-name to image’s filename and set not-modified flag on.

Next, image-toggle-display-image is called to possibly resize the image according to image-mode settings. It's called outside of slime-with-popup-buffer for the following reason: the buffer might not yet be visible and have any specific dimensions assigned to it, and therefore resizing will do nothing.

Here’s an example of how calling this function looks in Emacs.

The position of the popup buffer depends on whether the original Emacs window is wide enough or not. I think it looks better when it’s divided vertically. Use M-x image-transform-fit-to-height or M-x image-transform-fit-to-width to set up the auto-resizing method (it gets remembered for future images). Unfortunately there’s no way to fit both height and width, at least with vanilla Emacs. I prefer fit-to-width because in case the image is too tall, it is possible to scroll the image vertically with M-PgDn and M-PgUp from the other buffer. Unlike other image-mode buffers, this buffer supports a shortcut q to close itself, as well as various SLIME shortcuts, for example C-c C-z to return to the REPL.

That's it for now, hope you enjoyed this overview and if you happen to know a better way to display images in Emacs, I would be interested to hear about it.




sh

“shoulda taken a before picture…”

I had a small dip in productivity this week. I think I mentioned that at the end of last summer I had shingles. It was a super mild case, but I wound up with something called “post-herpetic neuralgia” which is basically nerve pain. It’s super well-controlled with gabapentin, which also has some positive effects on […]




sh

Bushnell Wingman GPS Speaker



  • Audio & Speakers






sh

Billie Eilish

musicisart magazine Billie Eilish

There’s something about Billie Eilish that is truly magical. Dressed in vibrant colors, decorated in playfulness, styled with a sense of artistry that is unmatched, Billie Eilish is taking over the world by storm. Billie’s background is setup with a close relationship with her mother, father, and her brother Finneas. Inside a tiny two bedroom […]

The post Billie Eilish appeared first on musicisart magazine.




sh

Can you imagine the clipshow?

Can you imagine the clipshow?



View Comic!









sh

new art crush: jane newland

  I recently “discovered” UK illustrator Jane Newland while browsing images online. Safe to say that 80% of the time, when something different/exceptional/beautiful stops me in my tracks, the artist turns out to be British. ????         Jane lives and works in Norwich (the most complete Medieval city in the UK), which … Continue reading new art crush: jane newland




sh

Rubbish in the sea and in the streets

Pieta Creek i March
One can wonder why a country like Malta, depending totally on its tourists, does not care more for the impression it gives its visitors.

Pieta Creek in February
The creeks, for instance, in S:t Julians, Sliema, Msida and Pieta are very often full of floating rubbish that could be taken out of the water easily; the rubbish gathers very often in the end of the creek and could be taken out of the water with landing nets. When going with Captain Morgan’s underwater safari you can see where the garbage ends up, something I several times have heard tourists complain about.
Pieta Creek in February
The system for collecting garbage, put out on the pavements, about every other day is very old fashioned and unhygienic. Very often people seem not to be aware of when to put out garbage in accordance with the timetable every household has received from the government; that is why one often can see plastic bags full of garbage standing on the pavement for almost 24 hours. There are high fines if you put out garbage on unauthorized time, but I have never heard of anybody that has been forced to pay such fines. Very few countries in EU have a system like this. The normal way to handle garbage is to use closed bins. Surprisingly, I have never seen rats eating from the garbage.
It seems like people think it is ok to throw papers, plastic bottles and a lot of leftover from quick lunches and many more things everywhere. Sometimes people even hide them under the few bushes although there are trash cans almost everywhere. The government has done what it can do to stop this but it is up to all of us to ensure we get cleaner streets, because, as it is now, it is disgusting.




sh

Would fundamental rights in Malta be better off under British sovereignty?

Once more, one does not know if to cry or laugh; no, of course one should not laugh at the tragedy that Malta is causing many of the people in this country. In the former communist states, people were kept in prison without a trial. In Malta the state does exactly the same, see article in todays The Times. As stated before, the judicial system in Malta has collapsed and a thought has come to The Observer’s mind: In this sense may be Malta should be better off under British sovereignty. It is obvious to a foreigner that the government of Malta cannot live up to the most fundamental requirements for democracy, namely the one that a democracy do not keep people in prison without fair trials.




sh

What should we protect, living people or dead?


Once more, one can read the most fantastic true stories in The Times. AlphaIn today's edition of The Times one is told that a group of M`garr residents are complaining about a proposed extension to a fireworks factory because of the damage an explosion would do. Fair enough, of course one should worry about what damage an explosion would do. But what is it the group worries about? The living people in the neighborhood? No, this is Christian Malta; the worries are not concerning the living people but the dead. This despite the fact that several people are statistically expected to die this year because of fireworks explosions. The Observer is well aware of the fact that many Maltese regard the eternal life as the real life, but is this group not going too far? A named couple says that an explosion could disturb the graves of loved ones. The Observer is well aware that continuing this article would probably be considered blasphemy. Presumably this is a criminal offense in Maltese law so The Observer rests his case.