A guide for DGX Spark developers experiencing Vulkan vkCreateDevice failures with the GB10 (Blackwell) GPU.
You have a new spark, but Vulkan applications fail with errors like:
vkCreateDevice failed with VK_ERROR_INITIALIZATION_FAILED
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Python 2 | |
| import os | |
| from sqlite3 import dbapi2 as db | |
| db_folder = "/" | |
| db_name = "test" |
Using Bookshelf.js with postgis and knex-postgis is a huge pain in the ass.
class Event extends Bookshelf.Model {
get tableName() { return 'event'; }
| <?xml version="1.0" encoding="utf-8"?><!-- | |
| ~ Copyright (C) 2015 The Android Open Source Project | |
| ~ | |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); | |
| ~ you may not use this file except in compliance with the License. | |
| ~ You may obtain a copy of the License at | |
| ~ | |
| ~ http://www.apache.org/licenses/LICENSE-2.0 | |
| ~ | |
| ~ Unless required by applicable law or agreed to in writing, software |
| Step 1 - Create .crt file | |
| cat domainname.crt domainname.ca-bundle > domainname-ssl-bundle.crt | |
| Step 2- | |
| Add lines for ssl_certificate in nginx configuration | |
| server { | |
| listen 80 default_server; |
| import android.content.Context; | |
| import android.preference.SwitchPreference; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.Switch; | |
| /** | |
| * Custom preference for handling a switch with a clickable preference area as well |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener { | |
| public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName(); | |
| private int previousTotal = 0; // The total number of items in the dataset after the last load | |
| private boolean loading = true; // True if we are still waiting for the last set of data to load. | |
| private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more. | |
| int firstVisibleItem, visibleItemCount, totalItemCount; |
| /* | |
| * A function that converts a PostGIS query into a GeoJSON object. | |
| * Copyright (C) 2012 Samuel Giles <sam@sam-giles.co.uk> | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, |