web.config Redirect http to https

<system.webServer>
	<rewrite>
	  <rules>
		<rule name="Redirect to HTTPS" stopProcessing="true">
			<match url="(.*)" />
			<conditions>
				<add input="{HTTPS}" pattern="^OFF$" />
			</conditions>
			<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
		</rule>  
	  </rules>
	</rewrite>
</system.webServer>

Leave a comment

Filed under Technical Links

Natural language toolkit

http://www.nltk.org/

http://scikit-learn.org/stable/

http://stackoverflow.com/questions/37085706/features-extraction-from-tweets

You should look into the following libraries:

NLTK
SKLearn
Depending on what you need to get done, a mix between these two can get you a long way.

Also for an introduction into Natural Language Processing, I would recommend this book (free to read online).

http://www.nltk.org/book/

Leave a comment

Filed under Technical Links

Sql Server linked server

EXEC sp_addlinkedserver 'myserver', '', 'SQLNCLI', 'xx.xx.xx.xx,8080'

EXEC sp_addlinkedsrvlogin 'myserver', 'FALSE', NULL, 'user', 'pwd'

Leave a comment

Filed under Technical Links

crontab solutions

make sure to enable write for the .sh file

chmod +x test.php

copy in /usr/local/sbin

crontab -l

crontab -e

Leave a comment

Filed under Technical Links

css snippets

http://littlesnippets.net/

https://codemyui.com

Leave a comment

Filed under Technical Links

Custom post types

The Complete Guide To Custom Post Types

Leave a comment

Filed under Technical Links

wordpress app

Developing a WordPress Theme from Scratch

Leave a comment

Filed under Technical Links