(Subgraph community isn’t that much) help.

Linux - 2 hours 25 min ago

Want to dual boot with sub graph, so I used Rufus and tried to do graphical install until it said unable to install from a media drive, so I downloaded usb Linux installer (forgot the name) and it had the option to boot with grub so I choose it when my computer boot up it said failed and gave me a link to get a download (idk what grub does and should I use it with or without iso). And is there a way to fix my earlier problem? Thanks.

submitted by /u/ReasonableFat
[link] [comments]
Categories: Linux

How do I break a string into "words" when I don't know how many of them there will be?

Command Line - Fri, 03/16/2018 - 23:53

I'm writing a shell script (on OSX) to parse the Unicode XML character database.

I'm trying to create a table that will contain a base codepoint, followed by a string containing the replacement codepoints for casefolding.

My xmlstarlet command to get all the applicable characters is:

"$UCD_Data" is the path and filename to the XML file containing the codepoints, it's 180MBs...

CodePointAndReplacementString=$(xmlstarlet select -N u="" -t -m "//u:char[@NFKC_CF != '' and @NFKC_CF != '#']" -n -v @cp -o ';' -v @NFKC_CF "$UCD_Data")

That works fine, and a sample of what the CodePointAndReplacementString variable contains is here:

0F78;0FB3 0F80 0F79;0FB3 0F71 0F80

The semicolon separates the codepoint to replace, and the string to be substituted.

Anyway, my question is, how do I break everything after the semicolon into multiple codepoints, so that I can then use the printf utility to output the string with the correct formatting?

in C, I would measure the size of the string after the semicolon, then search for a space, and copy from offset to offset into it's own variable, but that's not really possible in shell scripting as far as I can tell.

submitted by /u/bumblebritches57
[link] [comments]

KDE Connect media control improvements

Linux - Fri, 03/16/2018 - 23:17
Categories: Linux

PyTorch Should Be Copyleft

Linux - Fri, 03/16/2018 - 22:24
Categories: Linux

[Project Share] History of songs detected by Google Pixel's Now Playing Ambient Services

Tasker: Total Automation for Android - Fri, 03/16/2018 - 22:16

I saw an app published somewhere and thought I can surely write the same thing with Tasker only - and was right :) It's quite simple and there's probably a bug in handling entries over 20 (I wanted to limit the amount of entries in the global variable) but I'll fix it once I encouter it :P

Required modules:

  • AutoNotification
  • AutoTools (could be skipped if you want to create a Scene)
  • Table layout for AutoTools WebView (you can import it in the WebView settings window)
  • Tasker (duh)

How it looks like:



Profile: Now Playing Ambient Services History (26) Event: AutoNotification Intercept [ Configuration:Event Behaviour: true Notification Type: Only Created Notifications Notification Id: 123 Notification Apps: Pixel Ambient Services Notification App: Pixel Ambient Services (exact) Package Name: (exact) ] Enter: NewSong (27) A1: Variable Split [ Name:%NowPlaying Splitter:, Delete Base:Off ] <Skip duplicates> A2: If [ %antitle !~ %NowPlaying(2) ] A3: Array Push [ Variable Array:%NowPlaying Position:1 Value:%DATE %TIME,%antitle Fill Spaces:Off ] A4: End If A5: If [ %NowPlaying(#) > 40 ] A6: Array Pop [ Variable Array:%NowPlaying Position:42 To Var: ] A7: Array Pop [ Variable Array:%NowPlaying Position:41 To Var: ] A8: End If A9: Variable Join [ Name:%NowPlaying Joiner:, Delete Parts:On ]

And a task to actually display it (you can create a shortcut on your home screen or similar). Note you will need AutoTools if you want to use it. An alternative would be a custom Tasker scene or a pop-up

Print List (28) A1: Flash [ Text:Showing last 20 entries Long:Off ] A2: AutoTools Web Screen [ Configuration:Screen Preset: Table Display Mode: Normal Source: /storage/emulated/0/AutoTools/table/page.html Toast Duration: 5000 Status Bar Color: #1c86db Background Color: #E9E9E9 Navigation Bar Color: #2196F3 Height: 400 Gravity: Center Animation: Slide In From Top Show Duration: 500 Hide Duration: 250 Text: Now Playing history Text Color: white Background Color: #2196F3 Icon: android.resource:// Titles: Date,Title - Artist Texts: %NowPlaying Column Number: 2 Text Alignment: Center Manual Text Alignment: Center Text Size: 16 Min Row Height: 18 Text Color: black Item Separator: , Timeout (Seconds):30 ] submitted by /u/dark_skeleton
[link] [comments]

Would it be possible to achieve this sort of idea without a central server?

Developing Android Apps - Fri, 03/16/2018 - 22:02

I've never worked with Android game development before, however I've built multiplayer systems before.

I basically want to make a game where 2 player can challenge each other to a duel, both players needing to accept, then the duel plays out and both players get the result, the players not actually doing anything during. Could I do something where if both players get an "ok" to start the duel it plays out. I suppose there are a lot of issues that arise like both of them getting different results if anything is left to a chance, and people being able to modify locally.

submitted by /u/OverRatedProgrammer
[link] [comments]
Categories: Android, Linux

Hey r/Android, how do you feel about alternate stores?

Android - Fri, 03/16/2018 - 21:04

I've used F-Droid for a secondary app store for around a month now, and I have to say it's pretty useful. How do you feel about unofficial app stores?

submitted by /u/doravak
[link] [comments]

Nip/Tug: Plastic surgeon accused of mid-surgery 'hardcore' smut binge

The Register - Fri, 03/16/2018 - 20:52
Come for the nose job, stay for the... denials of any wrongdoing

A Los Angeles plastic surgeon has been accused of watching porn videos on a screen while performing surgery.…

Port applications to different operating systems from the command line with tonixxx

Command Line - Fri, 03/16/2018 - 20:44

Hiya! I'm plugging a wrapper I wrote around Vagrant to organize cross-platform builds, basically you configure your buildbots and tonixxx loops over each one, compiling and testing your project for each target platform. Let me know whacha think!

submitted by /u/mcandre
[link] [comments]

Question: How to do experiments to better understand Linux system performance?

Linux - Fri, 03/16/2018 - 20:03

There are a lot of metrics (memory usage, system load, disk system usage, interrupts, entropy available, ...) that one can read off a working Linux system.

I am very intrigued by the idea of running experiments to text how a Linux system reacts to different factors. However, I do not have a lot of ideas about what I should be toying with.

I have a home server, and I monitor how running services, SSHing, and high performance computations (e.g. compiling) affects it. What else can I do?

In fact, is there a way I could access a larger system to play with? Are there disciplines that study those things?

submitted by /u/TertiaryBlob
[link] [comments]
Categories: Linux

Oracle botherer Rimini Street brags of swelling fortunes – but hands tied on reinvesting cash

The Register - Fri, 03/16/2018 - 19:44
Biz left with fewer reps after limit on sales, marketing spend

Rimini Street, the third-party support thorn in Oracle's side, has reported increased revenue and operating profit in 2017 – but complained unspecified covenants have prevented it from investing in sales staff or marketing.…

PSA: For one week from tomorrow /r/Linux will be flooded with spam, requests for help, shit posts and more

Linux - Fri, 03/16/2018 - 19:39

Seriously. Anarchy week is a bad idea. We already have enough spam.

submitted by /u/DaddysKarmaSlut
[link] [comments]
Categories: Linux