AI HowTo Series #2 : Programming Emotions

Previously,we kickstarted our new article series “AI HowTo” and talked about how to register for Emotion API Preview(Project Oxford) through Azure Portal. Now, I’d suggest we should start coding and learning the ways of emotions via codes   PROGRAMMING EMOTIONS Before we start,make sure you get your “key” ready.If you havent already, read previous article to learn how it is done.   Emotion Analyzing in Images This project requires an image to be processed at startup,makes some calculations on which emotion is stronger and then according to that calculation it…

Read More

AI HowTo Series #1 : Registering for Emotion API

1-) Access your Azure account via “portal.azure.com” 2-) Search for term “Cog..” The list will show you the shortcut to Cognitive Services                       3-)  Click Add and fill the search box with term “Emotion…” . Auto-completion box will find what we’re looking for: “Emotion API (preview)”                 4-) Click and create a resource in WestUS servers (by the time I wrote this article, only WestUS is supported,im pretty sure other servers will start…

Read More

Solution of Problem “403 (Forbidden) with SP.RequestExecutor.js”

Well, Every day I learn something. Today,when I was deploying some apps to Office 365,I’ve come across a situation interesting and wanted to dig in. I was developing an app that uses a list to retrieve specific items and it was working perfect in my On-Premise environment. When I deployed the same app to Office 365 Developer Site,I have received this error in my Chrome’s Developer Tools threw error something similar to “403 (Forbidden)” linking “SP.RequestExecutor.js” file. Well that ruined me for a sec,I didnt expect it at all. Then after…

Read More

Export-SPWeb script to get backup all lists and libraries

Wrote this Powershell script according to my company’s needs,but you can fork and use it if you like Export-SPWeb Script to get backup of all lists/libraries in a site collection. But I’ll also share it here: [code language=”powershell”] Add-PSSnapin Microsoft.Sharepoint.Powershell $site = Get-SPSite $path = "C:\Backup2015\ListBackups" $serverurlpath ="" $listurlpath="" $listurlwithoutformat="" $dosyapath ="" $itemURLNEW="" foreach($web in $site.AllWebs){ $serverurlpath=$web.Url $serverlistsurlpath=$web.ServerRelativeUrl -replace "/","\" $serverurlport = ([System.Uri]$serverurlpath).Port $serverurlhost = ([System.Uri]$serverurlpath).Host.Split(‘.-‘) -join "_" if($serverurlport -eq "80") { if(!(Test-Path -Path ($path + "\" + $serverurlport))) { New-Item -Path ($path + "\" + $serverurlport) -Type Directory }…

Read More

Solution of “Application Server Role, Web Server (IIS) Role: configuration error”

For some reason SharePoint 2013’s prerequisite msi cant find which server manager to use and fails installation of Prerequisite files. So you need to go Windows/System32, find servermanager.exe ,duplicate it and then rename it to servermanagercmd.exe After this,re-run prerequisite installer,it will work. If it doesn’t,you haven’t enabled downloading setup files remotely in mmc(group policy editor) settings. To do this; 1-You need to add “GP Editor” Snapin in MMC. 2-Go to Computer Configuration->Administrative Templates-> System 2-Update “Specify settings for optional…” policy as Enabled 3-Update “Contact Windows Update…” as selected 4-Click Apply

Read More

Working with MySQL – EF5 – MVC5 Alltogether

For MySQL part; Never install the MySQL from Web Platform Installer.Get to MySQL’s website and download MySQL Installer. This installer package installs everything you need about database-end including; MySQL Connector MySQL for Visual Studio MySQL 5.5 Database For EF5 part; Install EF5 via Nuget like this; Install-Package EntityFramework -version 5.0.0 This will install EF5 which works great with MySQL Connector. For MVC5 Part; Download MVC5 package from Microsoft download page if you haven’t already. Add reference to EF5 libraries: MySQL.Data.Entity (4.5 version) –> This is for EF5 “MySQL.Data.Entity for EF6”…

Read More

NodeJS Series #6: Event-Driven Programming

Hi Wizards, Its been some time since I’ve left Hogwarts Magicians School for a small holiday.Now that Im back,im ready for some tricks. But before that,i’d like to talk about Event-Driven Programming and in its place in NodeJS What is Event-Driven Programming? Event-driven programming is the term where the flow of the code is determined by events(click,load,etc…) Its one of the basic milestone today’s popular programming languages such as C#,Java and many more I dont wanna fill up here. In Node.js and moreover in any kind of Javascript project,you’ll be using…

Read More