How to write some italic words in first slidify slide? - rstudio

How can I write in italic font the words between ** ** for the first slide in slidify?
---
title : Yield loss of target spot (**Corynespora casiicola**) in soybean
subtitle :
author :
job :
logo : logo1.png
biglogo : logo2.png
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
widgets : [] # {mathjax, bootstrap, quiz}
mode : selfcontained
hitheme : tomorrow # {tomorrow, tomorrow_night, solarized_dark, solarized_light}
highlighter : highlight.js # {highlight.js, prettify, highlight}

Related

Questions/Problems Powerschell WinUserLanguageList

I'm building a code to fix keyboard layout situation on windows 10. With automated solution, I decided to use PowerShell. But the problem is when ever i try to set to set the WinUserLanguageList
it Creates a new Belgium language list out of nowhere. Any idea on to why this?
Code
$languageslist = New-WinUserLanguageList -Language en-GB
$languageslist[0].InputMethodTips.Clear()
$languageslist[0].InputMethodTips.Add('0813:00000813')
$languageslist
Set-WinUserLanguageList $languageslist -force
Get-WinUserLanguageList
Output
LanguageTag : en-GB
Autonym : English (United Kingdom)
EnglishName : English
LocalizedName : English (United Kingdom)
ScriptName : Latin
InputMethodTips : {0813:00000813}
Spellchecking : True
Handwriting : False
LanguageTag : en-GB
Autonym : English (United Kingdom)
EnglishName : English
LocalizedName : English (United Kingdom)
ScriptName : Latin
InputMethodTips : {}
Spellchecking : True
Handwriting : False
LanguageTag : nl-BE
Autonym : Nederlands (Belgiƫ)
EnglishName : Dutch
LocalizedName : Dutch (Belgium)
ScriptName : Latin
InputMethodTips : {0813:00000813}
Spellchecking : True
Handwriting : False
Wanted output
LanguageTag : en-GB
Autonym : English (United Kingdom)
EnglishName : English
LocalizedName : English (United Kingdom)
ScriptName : Latin
InputMethodTips : {0813:00000813}
Spellchecking : True
Handwriting : False
LanguageTag : en-GB
Autonym : English (United Kingdom)
EnglishName : English
LocalizedName : English (United Kingdom)
ScriptName : Latin
InputMethodTips : {0813:00000813}
Spellchecking : True
Handwriting : False
The input method tips setting you're using assigns the nl-BE language:
Dutch - Belgium nl-BE: Belgian (Period) (0813:00000813)
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-input-locales-for-windows-language-packs
The input codes (keyboards) are actually a language:keyboard pair, so the 0813 says nl-BE, while 00000813 is the keyboard you want.
You can just update your inputMethodTips value to use 0809 for en-GB, with the Belgian keyboard like so:
$languageslist[0].InputMethodTips.Add('0809:00000813')

baseboard asset tag on windows smbios

I am trying to retrieve the asset tag which is set through libvirt xml on a KVM based windows VM using wmic. I have tried all possibilities but could not find a way to get the baseboard asset tag. I have researched and figured a utility online called dmidecode for windows.
Here is the snippet from libvirt xml
<sysinfo type='smbios'>
<baseBoard>
<entry name='asset'>45af54c9-e9d9-9dc1-b999-956c76548999</entry>
</baseBoard>
</sysinfo>
Is there a way I can retrieve the asset tag of baseboard using wmic tool or any other tool (other than dmidecode)
This is what I got so far with but the tag is defaulted to Base Board
PS C:\Users\Administrator> Get-CimInstance -ClassName Win32_BaseBoard -Property *
Status : OK
Name : Base Board
PoweredOn : True
Caption : Base Board
Description : Base Board
InstallDate :
CreationClassName : Win32_BaseBoard
Manufacturer :
Model :
OtherIdentifyingInfo :
PartNumber :
SerialNumber :
SKU :
Tag : Base Board
Version : pc-i440fx-4.2
Depth :
Height :
HotSwappable : False
Removable : False
Replaceable : False
Weight :
Width :
HostingBoard : True
RequirementsDescription :
RequiresDaughterBoard : False
SlotLayout :
SpecialRequirements :
ConfigOptions :
Product : Standard PC (i440FX + PIIX, 1996)
PSComputerName :
CimClass : root/cimv2:Win32_BaseBoard
CimInstanceProperties : {Caption, Description, InstallDate, Name...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties```

How to import angle values from a catalog into GalSim

I'm trying to import galaxy values (Sersic index, half light radius, etc) from an external ascii file in to GalSim. I'm having trouble reading in the position angle value 'beta', and would like to know if this is possible using the YAML format.
When I try I get the error message:
galsim.errors.GalSimConfigValueError: Invalid value_type specified for parameter beta with type=Catalog. Value <class 'coord.angle.Angle'> not in (<class 'float'>, <class 'int'>, <class 'bool'>, <class 'str'>)
I realise that I'm getting this error message because I'm unable to append the string 'deg' after the input to specify that the units of this input are in degrees.
I've tried adding 'deg' directly in to the input catalogue (inside "" speech marks), with no success. I've also tried adding 'deg' after the catalogue read statement directly in the code, also to no success.
A minimum working example is below. This relies on a file named 'input.dat' in the same directory with a single number inside (45, for example). Then, save the code below as 'test.yaml' and run on the command line as $ galsim test.yaml:
gal :
type : Sersic
n : 1
half_light_radius : 1
flux : 1
ellip :
type : QBeta
q : 0.5
beta : { type : Catalog , col : 0 }
input :
catalog :
file_name : input.dat
I expect to be able to read in beta position angle arguments from an input ascii catalogue and have them replicated in the output galaxy profiles. The above MWE should produce a small postage stamp image of a moderately elliptical galaxy at a position angle of 45 degrees (or whatever number is placed inside 'input.dat'.
Thank you in advance for any help or advice on this front.
Try this:
gal :
type : Sersic
n : 1
half_light_radius : 1
flux : 1
ellip :
type : QBeta
q : 0.5
beta :
type: Radians
theta: { type : Catalog , col : 0 }
input :
catalog :
file_name : input.dat
There is also a Degrees type that works the same way if your catalog columns list the angle in degrees.

How to extract the values for a string?

I have this type of data :
--Line1 : val1=10; val2=20; val3=30
--Line2 : val1=11; val2=21; val3=31
--Line3 : val1=12; val2=22; val3=32
--Line4 : val1=13; val2=23; val3=33
--Line5 : val1=14; val2=24; val3=34
--Line6 : val1=15; val2=25; val3=35
--Line7 : val1=16; val2=26; val3=30
Now, i am trying to write a script to get any particular value (say val1 for Line4) on the basis of string "Line1", Line2, etc.
Any hint? Working in linux.

how can we simulate keyboard keys using vbs?

I'm aware of the probably most common form:
set wShell = createObject("wscript.shell")
wShell.sendKeys ":){ENTER}"
this uncommon and limited way:
Set ShellApp = CreateObject("Shell.Application")
ShellApp.WindowSwitcher
we can hackishly use sleep if we want a sequence of keys which depends on other events:
WScript.sleep 987
wShell.sendKeys "foo{!}~"
WScript.sleep 789
wShell.sendKeys "^a^c"
and we can't really keep a key pressed but we can repeat it many times:
wShell.sendKeys "{LEFT 42}"
now... am I missing something?
yeah, I'm probably missing something.
meanwhile I figured this useful tabled reference might still be useful if shamelessly adapted here:
Most ASCII characters can be represented simply by the character itself.
E.g, the key sequence FRED can be represented by "FRED".
Special keys such as the control keys, function keys etc are encoded with {braces}
................................................................................................................
: Key/Character : SendKey : Description :
:.......................:.......................................:..............................................:
: ~ : {~} : Send a tilde (~) :
: ! : {!} : Send an exclamation point (!) :
: ^ : {^} : Send a caret (^) :
: + : {+} : Send a plus sign (+) :
: Backspace : {BACKSPACE} or {BKSP} or {BS} : Send a Backspace keystroke :
: Break : {BREAK} : Send a Break keystroke :
: Caps Lock : {CAPSLOCK} : Press the Caps Lock Key (toggle on or off) :
: Clear : {CLEAR} : Clear the field :
: Delete : {DELETE} or {DEL} : Send a Delete keystroke :
: Insert : {INSERT} or {INS} : Send an Insert keystroke :
: Cursor control arrows : {LEFT} / {RIGHT} / {UP} / {DOWN} : Send a Left/Right/Up/Down Arrow :
: End : {END} : Send an End keystroke :
: Enter : {ENTER} or ~ : Send an Enter keystroke :
: Escape : {ESCAPE} : Send an Esc keystroke :
: F1 through F16 : {F1} through {F16} : Send a Function keystroke :
: Help : {HELP} : Send a Help keystroke :
: Home : {HOME} : Send a Home keystroke :
: Page Down : {PGDN} : Send a Page Down keystroke :
: Page Up : {PGUP} : Send a Page Up keystroke :
: Numlock : {NUMLOCK} : Send a Num Lock keystroke :
: Scroll lock : {SCROLLLOCK} : Press the Scroll lock Key (toggle on or off) :
: Print Screen : {PRTSC} : Send a Print Screen keystroke :
:.......................:.......................................:..............................................:
To specify keys with any combination of SHIFT, CTRL and ALT keys, precede them as following:
For SHIFT prefix with +
For CTRL prefix with ^
For ALT prefix with %

Resources