lambie.org

...working on a problem for a client which involves connecting to a Microsoft SQL Server 2005 database from Linux using Ruby. Here’s what I did to get it working...

While deploying an Ruby update to an old application these days, we encountered the following misleading error: *** [err :: some-host.makandra.de] You...

...old to match the format created by pg_dump. The version of the PostgreSQL server doesn't matter here. For example, the official Ubuntu 20.04 sources include only PostgreSQL...

...workaround below. Background Creating and restoring a database dump has four components: the source server, pg_dump, the target server, and pg_restore. pg_dump will create a dump, and...

I've got often this error on just one server: Err http://de.archive.ubuntu.com precise/universe amd64 Packages 404 Not Found [IP: 141.30.13.20 80] But there was no problem with the network...

...connection or the de.archive.ubuntu.com server. After I deleted the local lists cache with rm -r /var/lib/apt/lists it works again...

bugs.launchpad.net

...and could be very dangerous (e.g. if you're logged in to a production server in a terminal that is on another workspace). To prevent the broadcast from affecting other...

...windows, go to Preferences and disable DBus server...

...response includes caching headers like Expires or Cache-Control, their validity depends on the server's Date header if present. Otherwise, the browser uses its local time. This can lead...

...its own local system time. This subtle behavior ensures that cookies remain consistent with server time, even if the client’s clock is incorrect. However, this can lead to unexpected...

...install a modern libvips version using our PPA. If you're hosting on makandra servers these packages have already been installed on your application servers. RubyGem In your Ruby code...

...send a default ETag by hashing the response body. While this still requires the server to re-render the view for unchanged content, you don't need to send unchanged...

...Network infrastructure may mutate your ETag I recommend to deploy your app to a server and see if you get the same ETag for two responses to the same URL...

...using Capistrano, a new folder is created within the releases directory on the remote server containing the application code. By default Capistrano 3 keeps the last 5 releases in case...

makandra dev

...your repository. If not, try to connect to localhost:1234. You can stop the server with git instaweb --stop

Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done in a migration because it takes a long time.

...you may have been successful with this on your development machine or the staging server, keep in mind that production machines often hold a lot more records. Using all may...

...used to redirects always resulting in a GET request. # Browser sends PATCH /foo HTTP/1.1 # Server responds HTTP/1.1 302 Found Location: /bar # Browser follows redirect PATCH /bar # Server responds

...is neither GET or POST. Some workarounds for this issue below. Fix on the server: Redirect with a modern status code If your redirecting action redirects with a HTTP status...

...überprüfen, ob ein Zertifikat wirklich von einer CA signiert ist. Du verstehst, wie ein Server Inhalte verschlüsseln kann, die dann ein Client entschlüsseln kann. Du weißt wie ein Client einen...

...gemeinsamen Schlüssel sicher zu einem Server übertragen kann Du weißt, für was das Feld "Common Name" in einem SSL/TLS Zertifikat da ist. Du weißt, für was das Feld "Subject Alternative...

github.com

...version (e.g. smaller, cropped) on page load. This will create significant load on your servers and effectively forces you to have HTTP caching or a CDN...

This works in IE10+. Make sure that the field name ends in [] so your server-side code will parse the incoming files into an array. Obviously this naming convention...

TLS/SSL certificates are often used for HTTPS traffic. Occasionally a service may also use their TLS certificate to support public-key encrypting data (e.g. when it is part of the...

If Sunspot does not work and fails with a backtrace similar to this: /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:227:in `adapt_response' /project/shared/bundle/ruby/1.8/gems/rsolr-1.0.6/lib/rsolr/client.rb:164...

makandra dev
unpoly.com

The guides come with new tools: bin/dev starts a build watcher, a test server and the documentation site with one command. bin/test runs the specs in a real browser...

...your change, so you don't need to run the whole suite. A scratch server shows your change on a few real pages, for things a spec cannot show, like...

...pnpm is fast, disk-efficient and feature-rich Deployment Kamal (containers on your own servers) Capistrano to servers run by our operations team We run our own hosting with dedicated...

...RSpec in Rails — balanced comparison 📄 GoodJob README: comparison with other queues 📄 Rendering on the web — server-rendered vs. client-rendered, with the vocabulary Discuss with your mentor Pick three rows...

Important Work on this lesson in advisor mode. Learning goals You can explain how server-side validation of single fields works while the user is still filling out the...

...an explanation for anything here, tailored to what you already know. Just ask. 📄 Validating forms — server-side validation of single fields while the user types 📄 Switching form state — showing and...

Most of MovieDB is server-rendered and enhanced with Unpoly, and that's our default. Sometimes one region of a page needs more interactivity than that model gives you comfortably...

...Then we build an island: a React component mounted into a server-rendered page. This card teaches the React basics you need for that — components, state, effects, talking to Rails...

...and we want user names to be unique) The requests are accepted on the server by two worker processes who will now process them in parallel Both requests scan the...

...and we want user names to be unique) The requests are accepted on the server by two worker processes who will now process them in parallel Both requests scan the...

When you are using Apache for development, it still accepts connections from everyone in the same network as you.

...You'll need it to access shared folders or your host's web server when testing pages in IE. Fun fact: You could also use vbox.srv -- that's the corresponding...