๐Ÿš€ OharaLumina

All Posts

Thumbnail for Posts

How to check the extension of a filename in a bash script

๐Ÿ“‚ Categories: Bash
๐Ÿท๏ธ Tags: Scripting File

I am writing a nightly build script in bash Everything is fine and dandy except for one little snag binbash for file in PATHTOSOMEWHERE do if d file then do

Thumbnail for Posts

How to convert a table to a data frame

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: R Dataframe

I have a table in R that has str of this table 13 14 0166 0319 0457 0261 0248 attr dimnamesList of 2 x chr 13 Metro gt1 million Metro lt1 million NonMetro

Thumbnail for Posts

How to debug template binding errors for KnockoutJS

๐Ÿ“‚ Categories: Javascript
๐Ÿท๏ธ Tags: Debugging Knockout.Js

I keep having trouble with debugging problems in KnockoutJS templates Say I want to bind to a property called items but in the template I make a typo and bind

Thumbnail for Posts

How to determine if a number is odd in JavaScript

๐Ÿ“‚ Categories: Javascript
๐Ÿท๏ธ Tags: Javascript

Can anyone point me to some code to determine if a number in JavaScript is even or

Thumbnail for Posts

How to disable a ts rule for a specific line

๐Ÿ“‚ Categories: Javascript
๐Ÿท๏ธ Tags: Jquery Typescript Summernote

Summernote is a jQuery plugin and I dont need type definitions for it I just want to modify the object but TS keeps throwing errors The line bellow still gives

Thumbnail for Posts

How to get a list of installed android applications and pick one to run

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Android Android-Intent

I asked a similar question to this earlier this week but Im still not understanding how to get a list of all installed applications and then pick one to run

Thumbnail for Posts

How to get the html tag HTML with JavaScript jQuery

๐Ÿ“‚ Categories: Javascript
๐Ÿท๏ธ Tags: Jquery

Using htmlhtml I can get the HTML within the lthtmlgt tag ltheadgt ltbodygt etc But how can I get the actual HTML of the lthtmlgt tag with attributes

Thumbnail for Posts

How to prevent Visual Studio Code from always reopening the previous files or folders

๐Ÿ“‚ Categories: Programming
๐Ÿท๏ธ Tags: Visual-Studio-Code

Visual Studio Code always seems to remember my session and reopen the files andor projects that were open the last time I used it It obviously behaves

Thumbnail for Posts

How to return an empty ActiveRecord relation

๐Ÿ“‚ Categories: Programming

If I have a scope with a lambda and it takes an argument depending on the value of the argument I might know that there will not be any matches but I still