|
Install Ubuntu on a stick, boot from it, and see which options it offers. If it's different from the VM, you know where the problem lies.
|
|
|
|
|
well that's just brilliant. I can do that (as he glances at his box full of usb sticks)
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
I mentioned in your previous thread about running from a stick. I've got several using different distros that I've played with. Balena Etcher is what I used last time (I think).
|
|
|
|
|
I wouldn't run GNU\Linux in a VM unless I really had to. It runs well in a Hyper-V VM, but honestly, I would rather run GNU\Linux native and then run Win 10/11 in a QEMU/KVM host. I would run it as the Host OS and avoid MS Windows. The only think I really need MS Windows for is Cubase and AquaKitty UDX.
AVLinux used to be a really good GNU\Linux distro until the maintainer switched over to the enlightenment engine. His old engine that I think was based on XFCE was better IMO and there were less bugs. Now I just use Debian which isn't as good as the old AVLinux that was based on Debian. I think Pipewire might already be installed and somewhat configure in the new AVLinux and that's a massive plus, but I like the old window manager.
|
|
|
|
|
Yeah, same here. I run MX Linux as my main OS and Windows 11 in a QEMU/KVM based VM. Works really well. I also do GPU passthrough so I can play my Steam/GOG games in the VM.
|
|
|
|
|
I have a text file that stores data and each data is fixed size.
I know that a name fiels is 10 caracters wide , and then the age is 3 caracters wide.
For example (dot represent the end of line for clarity)
Max 13 .
Suzanne 34 .
John Paul 66 .
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
|
thanks.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
File with fixed field records. They date back to at least FORTRAN where read (and write) statements had a “FORMAT” statement describing the “fields”. The easiest ones to write where those with fixed fields.
Mircea
|
|
|
|
|
C++ Standard Template Library makes it easy plus a few pesky details even w/o help from an AI agent.
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int lineBreakLength = 2;
int nameFieldLength = 11;
int ageFieldLength = 3;
basic_ifstream<char> _ifstream(L"text file.txt", ios_base::binary);
char name[16]; name[nameFieldLength] = 0;
char age[8]; age[ageFieldLength] = 0;
char line_break[2];
while(!_ifstream.eof())
{
_ifstream.read(name, nameFieldLength);
_ifstream.read(age, ageFieldLength);
cout << name << ' ' << age << endl;
if(!_ifstream.eof()) _ifstream.read(line_break, lineBreakLength);
}
return 0;
} "I must have had lessons." - Reverend Jim Ignatowski / Christopher Lloyd
|
|
|
|
|
Except for the part where identifiers starting with _ are reserved for the implementation
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown
|
|
|
|
|
FWIW, we've used leading underscores to mark private members as part of our coding conventions since the 1990's and never had an issue.
Software Zen: delete this;
|
|
|
|
|
Fortunately, most implementations use a double underscore for system identifiers, so you're usually OK. But if you get strange error messages that refer to an identifier starting with an underscore, you've probably managed to collide with the compilers internals.
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown
|
|
|
|
|
k5054 wrote: you've probably managed to collide with the compilers internals
I was tearing my hair out once when I couldn't get a bit of financial code to compile - I had a variable called yield. Turns out there was a yield macro in the windows header to maintain compatibility with 16 bit windows. Sheesh.
|
|
|
|
|
I read it wrong at first too. But, he was asking what to call the file not how to read it.
Jeremy Falcon
|
|
|
|
|
Oh look, I'm using an archaic fixed length COBOL-style file format!
How's that for the name?
|
|
|
|
|
How about we create a modern acronym for it.... FUBAR!
Fixed-length Unicode Byte Array Record
Jeremy Falcon
|
|
|
|
|
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
I'm sure they are direct descendant of punch cards.
(large public sector system)
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Every single one of these inherited classes exposes one or more static template methods to facilitate drawing such that you can do like draw::line(...) , draw::filled_rectangle(...) or draw::text(...)
It's not just one liner classes either. Most of these are at least a page. I had to start the inherited classes with "x" to move them down the autocomplete list in vs code so they don't get in the way.
Yesterday this was all in a single 5000 line header. This morning I finished refactoring and integrating. Woo!
#ifndef HTCW_GFX_DRAW_HPP
#define HTCW_GFX_DRAW_HPP
#include "gfx_draw_common.hpp"
#include "gfx_draw_point.hpp"
#include "gfx_draw_filled_rectangle.hpp"
#include "gfx_draw_line.hpp"
#include "gfx_draw_rectangle.hpp"
#include "gfx_draw_bitmap.hpp"
#include "gfx_draw_icon.hpp"
#include "gfx_draw_text.hpp"
#include "gfx_draw_ellipse.hpp"
#include "gfx_draw_arc.hpp"
#include "gfx_draw_rounded_rectangle.hpp"
#include "gfx_draw_filled_rounded_rectangle.hpp"
#include "gfx_draw_polygon.hpp"
#include "gfx_draw_filled_polygon.hpp"
#include "gfx_draw_sprite.hpp"
#include "gfx_draw_image.hpp"
namespace gfx {
struct draw : public helpers::xdraw_point,
public helpers::xdraw_filled_rectangle,
public helpers::xdraw_line,
public helpers::xdraw_rectangle,
public helpers::xdraw_bitmap,
public helpers::xdraw_icon,
public helpers::xdraw_text,
public helpers::xdraw_ellipse,
public helpers::xdraw_arc,
public helpers::xdraw_rounded_rectangle,
public helpers::xdraw_filled_rounded_rectangle,
public helpers::xdraw_polygon,
public helpers::xdraw_filled_polygon,
public helpers::xdraw_sprite,
public helpers::xdraw_image
{};
}
#endif
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
The feeling after you finally got around to clean that dirty room you wanted to for so long (may not apply to everyone). Pure bliss!
|
|
|
|
|
Time for #pragma once
|
|
|
|
|
I don't use pragma once for these files because this way i get breadcrumbs that let me know which files have been included already. I have yet to need that, but I wanted it in case I ended up needing it.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
You have done well HTW
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,164 3/6
🟩🟨⬜🟨🟨
🟩🟨🟩🟨🟩
🟩🟩🟩🟩🟩
|
|
|
|