TypeScript project with references

Found this when searching for “typescript references has not been built from source file”. My mistake was that I was running tsc -p tsconfig.json when I should’ve been using the –build flag: tsc –build tsconfig.json. If you run with -p TypeScript will not build the referenced projects. Only if you run with –build.

Package name does not correspond to the file path – IntelliJ

I had this same issue, and fixed it by modifying my project’s .iml file: From: <content url=”file://$MODULE_DIR$”> <sourceFolder url=”file://$MODULE_DIR$/src/wrong/entry/here” isTestSource=”false” /> <sourceFolder url=”file://$MODULE_DIR$/test” isTestSource=”true” /> <excludeFolder url=”file://$MODULE_DIR$/target” /> </content> To: <content url=”file://$MODULE_DIR$”> <sourceFolder url=”file://$MODULE_DIR$/src” isTestSource=”false” /> <sourceFolder url=”file://$MODULE_DIR$/test” isTestSource=”true” /> <excludeFolder url=”file://$MODULE_DIR$/target” /> </content> Somehow a package folder became specified as the root source directory … Read more

How do I set up a basic Ruby project?

To get a good start, you can use the bundle gem command and rspec –init. ~/code $ bundle gem my_lib create my_lib/Gemfile create my_lib/Rakefile create my_lib/LICENSE.txt create my_lib/README.md create my_lib/.gitignore create my_lib/my_lib.gemspec create my_lib/lib/my_lib.rb create my_lib/lib/my_lib/version.rb Initializating git repo in /Users/john/code/my_lib ~/code $ cd my_lib/ ~/code/my_lib $ git commit -m “Empty project” ~/code/my_lib $ rspec … Read more

Ideal Ruby project structure

I think that is pretty much spot on. By default, Rubygems will add the lib directory to the loadpath, but you can push any directory you want onto that using the $: variable. i.e. $:.push File.expand_path(File.dirname(__FILE__) + ‘/../surfcompstuff’) That means when you have say, surfer.rb in that dir, you can require “surfer” anywhere and the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)