Skip to content

Instantly share code, notes, and snippets.

View feliwir's full-sized avatar
👨‍💻
Coding along

Stephan Vedder feliwir

👨‍💻
Coding along
  • mbits imaging GmbH
  • Germany
View GitHub Profile
@feliwir
feliwir / log.txt
Created March 4, 2019 21:15
Redox Log
Compiling coreutils v0.1.0 (/home/stephan/Development/redox/cookbook/recipes/coreutils/build)
error[E0308]: mismatched types
--> src/bin/stat.rs:69:56
|
69 | let (all_users, all_groups) = match (AllUsers::new(false), AllGroups::new()) {
| ^^^^^ expected struct `redox_users::Config`, found bool
|
= note: expected type `redox_users::Config`
found type `bool`
@feliwir
feliwir / log.txt
Created March 4, 2019 21:15
Redox Log
Compiling coreutils v0.1.0 (/home/stephan/Development/redox/cookbook/recipes/coreutils/build)
error[E0308]: mismatched types
--> src/bin/stat.rs:69:56
|
69 | let (all_users, all_groups) = match (AllUsers::new(false), AllGroups::new()) {
| ^^^^^ expected struct `redox_users::Config`, found bool
|
= note: expected type `redox_users::Config`
found type `bool`
stephan@stephan-Aspire-5750G:~/Development/Repositories/redox$ make all
rm -f build/libkernel.a
rm -rf build/initfs
mkdir -p build/initfs
export PATH="/home/stephan/Development/Repositories/redox/prefix/x86_64-unknown-redox/gcc-install/bin:$PATH" && \
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook -c initfs.toml build/initfs/
Finished dev [unoptimized + debuginfo] target(s) in 0.21s
Running `installer/target/debug/redox_installer --cookbook=cookbook -c initfs.toml build/initfs/`
Install Config {
general: GeneralConfig {
CHILD
WINDOW
WINDOWTYPE = SCROLLLISTBOX;
SCREENRECT = UPPERLEFT: 236 153,
BOTTOMRIGHT: 575 305,
CREATIONRESOLUTION: 800 600;
NAME = "LanMapSelectMenu.wnd:ListboxMap";
STATUS = ENABLED;
STYLE = SCROLLLISTBOX+MOUSETRACK;
SYSTEMCALLBACK = "[None]";
@feliwir
feliwir / Sprite.frag
Last active January 2, 2019 22:05
Veldrid Resource Layouts
#version 450
layout(set = 0, binding = 1) uniform SpriteConstants
{
vec3 _Padding;
bool IgnoreAlpha;
} _SpriteConstants;
layout(set = 0, binding = 2) uniform texture2D Texture;
layout(set = 0, binding = 3) uniform sampler Sampler;
Determining if the include file fstream.h exists failed with the following output:
Change Dir: /tmp/tmp.nFc1YUQBgK/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_24b74/fast"
/usr/bin/make -f CMakeFiles/cmTC_24b74.dir/build.make CMakeFiles/cmTC_24b74.dir/build
make[1]: Entering directory '/tmp/tmp.nFc1YUQBgK/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_24b74.dir/CheckIncludeFile.cxx.o
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -std=c++0x -fno-canonical-system-headers -Wno-builtin-macro-redefined -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_BSD_COMPAT -D_OSF_SOURCE -D_POSIX_C_SOURCE=199506L -O3 -DNDEBUG -o CMakeFiles/cmTC_24b74.dir/CheckIncludeFile.cxx.o -c /tmp/tmp.nFc1YUQBgK/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
/tmp/tmp.nFc1YUQBgK/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx:1:10: fatal
<Directives>
<Application>
<Assembly Name="Commandline" Dynamic="Required All" >
</Application>
</Directives>
using System.Diagnostics;
using System.Runtime.InteropServices;
using NativeLibraryLoader;
namespace SharpAudio.ALBinding
{
public static unsafe partial class AlNative
{
private static readonly NativeLibrary m_alLibrary = LoadOpenAL();
private static NativeLibrary LoadOpenAL()
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<ItemsControl Name="trList" DataContext="{Binding Data}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding Key}" />
</Grid>
</DataTemplate>
using System.Numerics;
using ShaderGen;
[assembly: ShaderSet("Sprite", "OpenSage.Graphics.Shaders.Sprite.VS", "OpenSage.Graphics.Shaders.Sprite.PS")]
namespace OpenSage.Graphics.Shaders
{
public class Sprite
{
public struct VertexInput