jsproat

u/jsproat


r/linuxquestions•

ext4 on VirtualBox problems

tl/dr: my ext4 partition is obviously trashed, it says I have 2 TB in a 1 TB virtual disk, and fsck doesn't check everything I want to check.

I have a VirtualBox host on my old Windows 7 box, under which I'm running a Mint guest OS. This guest's /dev/sdb is in a VDI file on a NAS that the host accesses over SMB. The partition /dev/sdb1 is formatted with ext4. The VDI file is only 1 TB in size, however the guest thinks /dev/sdb is 2 TB.

On the host we see a 1 TB VDI file:

PS> ls '\\the_nas\share\expansion.vdi' | ft -auto Name, Length

Name                 Length
----                 ------
expansion.vdi 1000614133760

On the guest we se

03

r/factorio•

Last week's FF #224 really got me thinking about the belts vs bots issue.

I've only been playing since v.15, so there's a lot of history with this game that I've missed...but it really seems to me that belts are way overpowered due one reason: belts consume no power. Belts just run indefinitely without using electricity or producing pollution. All this, from a device you can build by hand at the start of the game with a small handful of copper and iron plates...so why do we need to research power again? Unless there's some in-game explanation for this perpetual motion machine, then they become more of a fantasy than bots.

I'm not complaining about belts, they do make the game more

021

r/factorio•

My base just got overrun by biters and I never noticed until I was dead.

I tend to play games with the volume dialed to zero, and Factorio is no exception. Also, I have deaf folks in the family, and while there is some level of hearing, they don't always play with sound turned on.

Is there any way to get notification for sounds and whatnot? Any closed-captioning or subtitles or whatever. I'd love to see an on-screen message when unusual sounds happen. If this isn't already in the game, is it possible to achieve with a mod?

2013

r/linuxquestions•

One of the things I miss about old-fashioned syslogs is the ability to use multitail.

Right now, I'm trying to figure out how to multitail with the logs from both postfix and nagios, but I'm unable to figure it out. Example:

~$ multitail -i <(journalctl -f -u postfix) -i <(journalctl -f -u nagios)
 --*- multitail 6.2.1 (C) 2003-2014 by [email protected] -*--

The following problem occured:
-----------------------------
Problem obtaining complete (real) path of file /dev/fd/63.
If this is a bug, please report the following information:
The last system call returned: 2 which means "No such file or directory"
multitail: utils.c:185: stop_process: As
111

r/debian•

I want to run a script at the end of my preseed.conf file. I'm reading https://www.debian.org/releases/stable/amd64/apbs05.html.en and, slowly, digging through http://hands.com/d-i/ . I can't quite wrap my head around the timing of some of these commands.

This one runs immediately before the partitioner starts:

preseed/early_command

This one just before the install finishes, but before /target is unmounted:

preseed/late_command

But when does this one run? And is /target assumed to be available?

preseed/include_command

...How about this one?

preseed/run

My goal is to fetch a custom script file from the preseed directory, and run it in a chroot within /target

41

r/CasualMath•

I got a new credit card, and I'm trying to muddle through the math for accumulating interest.

My high school Algebra II class way back in 1990 said that when you have interest which is compounded yearly, and you want to use the APR to figure out the monthly interest rate, you take the twelfth root of the APR. That is, raise the APR to the 1/12 power.

However, I see websites like http://smallbusiness.chron.com/convert-annual-interest-rate-monthly-rate-1822.html which say you simply divide the APR by 12 to get the monthly rate. (This seems a little simplistic. Compounded interest doesn't work this way.)

The difference is significant. Given an APR of 25%, the first method gives a monthly

11

r/PowerShell•

We sometimes see weird name resolution issues on a remote subnet, e.g. where a computer can't be accessed because it seems to have the wrong IP address. 9 times out of 10, this is because the local NetBIOS Master Browser has gone nuts and needs to be taken down. The NetBIOS Master Browser is automatically selected by the computers on the subnet, and it's not always obvious which computer has the role.

This PowerShell one-liner will query the local subnet and report which computers are advertising themselves as a Master Browser.

net view | ? { $_ -match '^\\\\(\S+)' } | % { $matches[1] } | ? { nbtstat -a $_ | sls '__MSBROWSE__' }

And here it is broken apart and explained:

net.ex
62

r/sysadmin•

We use an internal Certificate Authority (Windows Server 2012 R2 Active Directory Certificate Services) to issue certificates for local corporate network use, which actually replaced an older CA we were using, so I guess that means two CAs to keep track of. They've issued certificates for web servers, RDP servers, Exchange servers, 2FA accounts, Cisco ACS, code signing, the works. These certificates are issued for two to five years, and because our internal CAs are older than 2 years each, this means we have certificates expiring all the damn time. I'd like to replace most of these certificates before expiring.

I've looked into several products which claim to monitor expiring certificate

919

r/AndroidQuestions•

Whenever I use Google Keep voice recording, it seems to cut off way too early. If I pause to take a breath, it stops. I can't seem to get more than 4 or 5 words in, which frankly makes it useless for voice memos. Is it something I'm doing wrong, or is this just how it works?

30


r/PowerShell•

I'm having trouble getting ValueFromPipelineByPropertyName to work. I want to pass my function an array of string (usernames), and also have it accept hashtables within that array, which define username and email address. I'm looking at how Select-Object's -Property parameter accepts an array which can hold both strings and script blocks.

My script:

[CmdletBinding()]
param (
    [Parameter(Mandatory = $false, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
    [Alias('AccountName', 'SamAccountName')]
    [string[]] $UserName
)

process {
    write-verbose 'Create-UserCertificate: process {} top'
    foreach ($user in $UserName) { w
56

r/tmobile•

I have a Nexus 4 and a 2013 Nexus 7, both running stock Android 4.4 (KitKat), both on the same T-Mobile Simple Choice unlimited plan.

Why can't I send SMS from my tablet, or make calls from it? Why is it considered a "data-only" device? Is there anything special I need to do in order to activate SMS on my tablet?

I'm aware of apps like Myghty that will route text messages from my phone to my tablet. I'm also aware of SMS-like chat apps like WhatsApp. That's not what I want. I'd like to be able to SMS directly from my tablet.

08