Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
This is a guide on how to email securely.
There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.
| package com.example.util.shadow; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.GradientDrawable; | |
| import android.view.View; | |
| import static android.graphics.drawable.GradientDrawable.Orientation.LEFT_RIGHT; | |
| import static android.graphics.drawable.GradientDrawable.Orientation.TOP_BOTTOM; |
Availability and quality of developer tools are an important factor in the success of a programming language. C/C++ has remained dominant in the systems space in part because of the huge number of tools tailored to these lanaguages. Succesful modern languages have had excellent tool support (Java in particular, Scala, Javascript, etc.). Finally, LLVM has been successful in part because it is much easier to extend than GCC. So far, Rust has done pretty well with developer tools, we have a compiler which produces good quality code in reasonable time, good support for debug symbols which lets us leverage C++/lanaguge agnostic tools such as debuggers, profilers, etc., there are also syntax highlighting, cross-reference, code completion, and documentation tools.
In this document I want to layout what Rust tools exist and where to find them, highlight opportunities for tool developement in the short and long term, and start a discussion about where to focus our time an
I had trouble getting Steam's version of Fallout 3 to work on my MacBook Pro in Windows. The main menu would start, but the game would crash after I clicked "play", just before the intro movie.
Turns out the issue was related to my MacBook's Intel graphics chipset, an Intel Iris Graphics 5100. To get FO3 to work, I was able to use the Intel HD Graphics Bypass package to trick FO3 into thinking it's running on an Nvidia chipset.
If you're running an Intel graphics chipset, and can't get FO3 to run, this fix may work for you too:
d3d9x.dll --> C:\Program Files (x86)\Steam\steamapps\common\Fallout 3\C:\users\$USERNAME\Documents\my games\Fallout3\FALLOUT.iniFALLOUT.INI --> C:\users\$USERNAME\Documents\my games\Fallout3\| # table: xrt500, type: NEC | |
| 0x444 KEY_OK | |
| 0x445 KEY_UP | |
| 0x446 KEY_DOWN | |
| 0x447 KEY_LEFT | |
| 0x448 KEY_RIGHT | |
| 0x449 KEY_EXIT | |
| 0x44a KEY_BACK | |
| 0x41c KEY_MENU |
| import jeb.api.IScript; | |
| import jeb.api.JebInstance; | |
| import jeb.api.ast.*; | |
| import jeb.api.ast.Class; | |
| import jeb.api.dex.Dex; | |
| import jeb.api.dex.DexCodeItem; | |
| import jeb.api.dex.DexFieldData; | |
| import jeb.api.dex.DexMethod; | |
| import jeb.api.ui.JavaView; | |
| import jeb.api.ui.View; |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <gmp.h> | |
| char * polynomial="-74101463560860539810482394216134472786413399/404009590666424903383979388988167534591844018460526499864038804741201731572423877094984692537474105135297393596654648304117684895744000000000000000000000*x^99 + 1786563401621773217421750502452955853226339781/1943688752347061390850759947022111850270039951356484879070977067483444756705819339975871373032521468004867185688372878439054154137600000000000000000000*x^98 - 27321291157050372775340569532625689973429185264741/12024094960310264981666053243695462339042976739896622019763059664916718201560234437350734896948634081407660523709959770955883479040000000000000000000000*x^97 + 4936870031754926645682423836151042176171669450909/1336493173680525187613977630110369004256312194947800263402124063124652591386915768177479078216982141485276408003996973457735680000000000000000000000*x^96 - 24473118674386691114350902920738421254018653211816783/55093218603941649400531744530105211175454647 |
| #!/usr/bin/env python2 | |
| # | |
| # Copyright 2013 Google, Inc. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
| # This file parses this file: | |
| # https://github.com/Piker-Alpha/macosxbootloader/blob/El-Capitan/src/boot/NetBootImages.h | |
| # and this one: | |
| # https://github.com/Piker-Alpha/macosxbootloader/blob/El-Capitan/src/boot/AppleLogoData.h | |
| from ctypes import CDLL, create_string_buffer, c_size_t, c_void_p | |
| import re | |
| CPK = CDLL('/System/Library/PrivateFrameworks/PackageKit.framework/Versions/Current/PackageKit') | |
| lzvn_decode = CPK.lzvn_decode |