This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # redirect all traffic from old domain to new domain, in same hosting | |
| # new domain is add-on domain | |
| # wordpress is installed in folder (not in root) | |
| # placed on top part of the .htaccess in yourblogfolder/ (the wordpress installation folder) | |
| # in this example, domains would be: old.com > new.com | |
| # *or place it in the root .htaccess | |
| RewriteCond %{HTTP_HOST} ^old\.com$ [OR] | |
| RewriteCond %{HTTP_HOST} ^www\.old\.com$ | |
| RewriteRule ^(.*)$ "http\:\/\/new\.com\/yourblogfolder\/$1" [R=301,L,QSA] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Pixel2World : MonoBehaviour | |
| { | |
| public Transform worldObject; | |
| void Update() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using UnityEngine; | |
| using Accord.Imaging.Filters; | |
| // More info: http://unitycoder.com/blog/2016/11/04/using-accord-net-with-unity/ | |
| public class AccordFrameworkTest : MonoBehaviour | |
| { | |
| public Renderer sourceRenderer; // our source texture is assigned on this gameobject | |
| public Renderer targetRenderer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // install | |
| sudo yum install epel-release | |
| // then can *Note: this installs latest version v0.10... | |
| sudo yum install nodejs | |
| // instead you can install specific version | |
| curl -sL https://rpm.nodesource.com/setup_4.x | bash - | |
| yum install -y nodejs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // updates? | |
| yum install centos-release-SCL | |
| yum groupinstall -y development | |
| yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel | |
| // didnt work.. | |
| yum install python27 | |
| // try manually *Note run as ROOT (su) | |
| cd ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // unpacking for preview list | |
| "C:\Software\Unity55\Editor\Data\Tools\7z.exe" "x" "C:/Users/benchman/Downloads/huge.unitypackage" "-oTemp/TarGZ" "-r" "-y" | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // StringBuilder.Clear() doesn't support .Net 3.5... | |
| // "Capasity = 0" doesn't work.... | |
| sb = new StringBuilder(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -unsafe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Good info on how to learn to make a game (for total beginner) | |
| (around 1.20-) | |
| https://www.youtube.com/watch?v=NXsWViTB238 | |
| How to get started (on learning) | |
| day#1: Create a sphere, make a build | |
| day#2: Make sphere to move | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Problem: | |
| Loading data with unitywebrequest from custom server, with HTTPS (with not paid/proper certificates) | |
| Error in logcat: | |
| javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. | |
| More info: | |
| use device browser to check, probably gives error also if go to the same url | |
| https://forum.unity3d.com/threads/how-do-you-use-www-with-https-in-android-im-getting-an-sslhandshakeexception.214950/#post-2787232 |