import – Difficultly importing GeoTiff format

I downloaded Earth data from here. It is a GeoTiff file, which is a map of solar radiation falling on earth.

enter image description here

Mathematica claims to import GeoTiff files. However, when I import,

SetDirectory[NotebookDirectory[]]
files = FileNames["*", "./diffuse/"][[1]]
diffuse = Import[files, {"GeoTIFF", "Image"}]

The output is an error:

LinkObject::linkd: Unable to communicate with closed link LinkObject['/Applications/Mathematica.app/Contents/SystemFiles/Converters/Binaries/MacOSX-x86-64/GDAL.exe',6300,8].
Import::fmterr: Cannot import data as GeoTIFF format.

I can get the file to open using other GeoTiff programs such as QCIS. So it does seem to be a Mathematica issue. Any ideas? It is an error which I have not encountered before.

google sheets – How to change cell format on ImportHTML Function

I’ve used the ImportHTML function to scrape play-by-play information from Basketball Reference.

I am using a Vlookup to create a rating system based on time, point different, and several other factors.

I realized the TIME vlookup isn’t reading correctly, but the formula is exactly how it should be (I’ve tested it, and it works fine when I type in the info manually). It only doesn’t work on the time that is coming from my ImportHTML.

I can’t get the format to match – I’ve tried every format option on both my vlookup & the data, and tried forcing it with the TEXT function (might of not done that correctly).

I’m at an absolute stand-still at this point — has anyone experienced anything similar?

Other ways to force a format change on imported data? or another way to correctly pull the values from a range of times? I’ve tried the Lookup function as well.

For Reference:

=VLOOKUP(H11,$J$2:$L$6,3,TRUE)

upper lower bounds

importfunction

search for keywords and put the values in column format using linux shell

i have set of lines in my files with some search key words and values along with that i want to pull those keywords in tabular format under each key word

name=anne rollno=1 class=10 subject=english asdfjsldjf
sdflasjf;s
name=smith rollno=120 class=3 subject=math sdjfs;l
sfjd;las aljd;s iojl
name=master rollno=28 class=7 subject=social adksj;lf
sfdas;dloeillsd
name=slave rollno=12 class=9 subject=science asdfloilsd
dalsf;ld

anne 1 english
smith 120 math
master 28 social
slave 12 science

sorry i didnt try any thing

Google Sheets script Filter copy and paste with format

I am looking for help to create a filter on a Google Sheets Script.
I want the following:
• I have a database Schedule which has table with information that I want to filter
• Once the database A is updated I want to filter Colum b row 8 and only take the cells that have information and are filled with words, numbers, etc.
• After that I want to copy the data filtered and paste on a new Sheet Data “Foreman on specific columns
• Also I want to copy and paste the format such as color, size, etc.
• I have the following code which it does the partial job but I cannot figure it out to only get the specific data needed

function Foreman(){
var ss = SpreadsheetApp.getActiveSpreadsheet();
var scheduleCCC_sheet = ss.getSheetByName(“Schedule”);
var Foreman_sheet = ss.getSheetByName(“Foreman”);
var pasteforemans = Foreman_sheet.getRange(8,2);
var originalData = scheduleCCC_sheet.getRange(9,2,scheduleCCC_sheet.getLastRow()1,11).getValues();
var filter1 =””;
Foreman_sheet.getRange(8,2,Foreman_sheet.getLastRow(),11).clearContent().clearFormat();
var data = originalData.filter(filterlogic);

Foreman_sheet.getRange(9,2,data.length,data(0).length).setValues(data);

}

var filterlogic = function(item){
if(item(1) == “”){
return false;
}else {
return true;
}

c# – How to properly format classes for JSON deserialization with JSON.net for Unity?

I am creating an inventory system and decided to keep a master list of all the items. The goal is to use JSON.net to parse the item list and populate the database of items. The JSON item list looks like:

{
    "Items":{
        "Ingredients":{

        },
        "Consumables": {
            "0" : {
                "ID" : "TP_Small",
                "Icon" : "Sprites/porridge.png",
                "Name" : "Small Tan Pill's Porridge",
                "Consumable" : true,
                "Cooldown": 0,
                "Duration": 3,
                "Effect Description" : "Restores 100 health.",
                "Description" : "A hearty drinkable meal from everyone's favorite hypercellulose gelatin timelord!!!",
                "SFX": "{eb4e9ad8-c6ac-414f-8d5e-c3d012ca6ae6}",
                "Bonuses" : {
                    "HP": 100,
                    "Stamina": 100,
                    "Tolerance": 20,
                    "Attack": 4
                    }

                }
        },
        "Concoctions":{

        },
        "Equipment": {

        },
        "Abilities" : {

        }   
    }
}

And this is the structure of the classes we are using to match the JSON:

(System.Serializable)
    public class Items
    {
        public List<ItemCategory> type { get; set; }
    }

    (System.Serializable)
    public class ItemCategory
    {
        public List<ItemBase> id { get; set; }
    }

    (System.Serializable)
    public class ItemBase
    {
        string ID { get; set; }
        string Icon { get; set; }
        string Name { get; set; }
        bool Consumable { get; set; }
        int Cooldown { get; set; }
        int Duration { get; set; }
        string EffectDescription { get; set; }
        string Description { get; set; }
        string SFX { get; set; }
        StatBonus Bonuses { get; set; }
    }

    (System.Serializable)
    public class StatBonus
    {
        int HP { get; set; }
        int Stamina { get; set; }
        int Tolerance { get; set; }
        int Attack { get; set; }
    }

However, when I use the debugger, it seems everything but the root class is null and the root class’s value is the “InventoryItems+items”, with InventoryItems being the name of the file.

How can I access an item by it’s number in the list? So items -> Consumables -> 0 and that element’s fields

The deserialization code:

TextAsset json = Resources.Load<TextAsset>("itemList");

        itemList = new Items();

        itemList = JsonConvert.DeserializeObject<Items>(json.text);

        Debug.Log(itemList);
        foreach(ItemCategory cat in itemList.type)
        {
            foreach(ItemBase b in cat.id)
            {
                Debug.Log(b.ToString());
            }
        }

passwords – “john –format=md5” caused “Unknown ciphertext format name requested” error

Linux unshadow file

wolf@linux:~$ cat md5hash.txt 
root:$1$FTpMLT88$VdzDQTTcksukSKMLRSVlc.:0:0:root:/root:/bin/bash
john:$1$wk7kHI5I$2kNTw6ncQQCecJ.5b8xTL1:500:500::/home/john:/bin/bash
harold:$1$7d.sVxgm$3MYWsHDv0F/LP.mjL9lp/1:501:501::/home/harold:/bin/bash
wolf@linux:~$ 

md5hash only

wolf@linux:~$ cat md5hash_only.txt 
$1$FTpMLT88$VdzDQTTcksukSKMLRSVlc.
$1$wk7kHI5I$2kNTw6ncQQCecJ.5b8xTL1
$1$7d.sVxgm$3MYWsHDv0F/LP.mjL9lp/1
wolf@linux:~$ 

Since I know that these are md5 format, I used --format=md5 option in john.

Unfortunately, I’m getting Unknown ciphertext format name requested error.

wolf@linux:~$ john --format=md5 md5hash.txt 
Unknown ciphertext format name requested
wolf@linux:~$ 

wolf@linux:~$ john --format=md5 md5hash_only.txt 
Unknown ciphertext format name requested
wolf@linux:~$ 

I’ve verified that the format is similar with pentestmonkey cheat-sheet

Any idea what’s wrong here?

8 – Programmatically set the format for each value of a multi-value text field

I am trying to programmatically set the format of a multi value text field to ‘full_html’.

I have tried:

$Links = array (1, 2, 3, 4, 5);

$node->field_article_links() = $Links;
$node->field_article_links->format = 'full_html';
$node->save();

and

$Links = array (1, 2, 3, 4, 5);

foreach ($Links as $Link) {
$node->set('field_article_links', $Link);
$node->field_article_links->format = 'full_html';
}
$node->save();

But the results are always the same, only the format of the first value of the field is set to ‘full_html’ and the others remain unchanged.

node edit

What am i doing wrong ?

active directory – Domain creation: Invalid name format

We are attempting to create a tree domain in our network. When creating the domain we are getting the error listed below. We’ve double checked the naming to make sure it does not include any special characters. If we change the “.edu” to anything else, such as “.local” it progresses without the error, but we really need to use the original domain name. I’ve also listed the powershell script used to run the domain promotion below the error message:

Install-ADDSDomain : Verification of prerequisites for Domain Controller promotion failed. The domain >DNS name “pennco.edu” has an invalid format.
DNS names can contain letters, numbers, and hyphens, but not spaces. Periods are used to separate domain >labels, which can be no longer than 63 bytes. The top-level domain name must contain
at least one non-numeric character.
Characters that are not allowed include: ! ” # $ & ( ) * + , ‘ / : ; < = > ? @ ( ) ^ { | } ~
Example: domain-1.microsoft.com.
At line:2 char:1
+ Install-ADDSDomain

+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) (Install-ADDSDomain), TestFailedException
+ FullyQualifiedErrorId : >Test.VerifyDcPromoCore.DCPromo.General.48,Microsoft.DirectoryServices.Deployment.PowerShell.Commands.Ins>tallADDSDomainCommand

Import-Module ADDSDeployment
Install-ADDSDomain `
-NoGlobalCatalog:$false `
-CreateDnsDelegation:$false `
-Credential (Get-Credential) `
-DatabasePath "C:WindowsNTDS" `
-DomainMode "Win2012R2" `
-DomainType "TreeDomain" `
-InstallDns:$true `
-LogPath "C:WindowsNTDS" `
-NewDomainName "pennco.edu" `
-NewDomainNetbiosName "PENNCO" `
-ParentDomainName "PenncoDomain.edu" `
-NoRebootOnCompletion:$false `
-SiteName "Penncodomian" `
-SysvolPath "C:WindowsSYSVOL" `
-Force:$true