After spending more than 5 hours, i found this easy solution:
-To verify that the system has a CUDA-capable GPU, run the following command:
lspci | grep -i NVIDIA
You will see output similar to the following example (showing an NVIDIA Tesla K80/M60 card):
-Disabling the nouveau driver:
sudo...
/* creates a database for Alfresco, on SQLServer 2008- 2014 */
use master;
GO
CREATE DATABASE alfresco;
GO
/* creates a new LOGIN and associated User
use alfresco;
GO
CREATE LOGIN alfresco WITH PASSWORD = 'alfresco';
GO
use alfresco;
go
CREATE USER alfresco FOR LOGIN alfresco;
GO
...
Step 1 – Install LAMP
To start with Laravel, we first need to set up a running LAMP server. If you have already running LAMP stack skip this step else use followings commands to set up lamp on Ubuntu system.
Install PHP 5.6
$ sudo apt-get install python-software-properties
$ sudo add-apt-reposit...
How to center an element, column, or content inside a column works differently in Bootstrap 4.
Horizontal Center
text-center is still used for display:inline elements
mx-auto replaces center-block to center display:block elements
offset-* or mx-auto can be used to center grid columns
mx-aut...
These PDF documents, starting from 1964, are those parts of the OS/360 "System Reference Library" (SRL) with enduring relevance and are also the earliest System/360 publications available on the web. Given IBM's stubborn insistance on full upward compatibility, all facilities described he...
So what we will try to do is to compile a following function
int sum(int a, int b) {
return a + b + 2;
}
on the fly. And here's the entire .cpp example:
#include <iostream>
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/I...
Changing the order (or position) was possible in Bootstrap 3 using the push pull classes. In Bootstrap 4, the push pull classes still work, and additionally flexbox order can be used.
In Bootstrap 4, the push pull classes are now push-{viewport}-{units} and pull-{viewport}-{units} and the xs- infix...
You must have 3.2 to be able to upgrade to 3.4. This example assumes you are using apt.
sudo service mongod stop
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xeni...
import com.ibm.icu.text.MessageFormat
import java.util.Locale
import scala.collection.JavaConverters._
// Outputs "A common message for all options. Selected: (other)"
val formatted = new MessageFormat(
"{messageCount, plural, one {{aMessage} (one)} other {{aMessage} (othe...
Users may face the following issue:
log4j:WARN No appenders could be found for logger (dao.hsqlmanager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
One reason this can occur is if the log4j.prop...
Install msys2 (http://www.msys2.org/)
Install the required prerequisites for Vala
pacman -S mingw64/mingw-w64-x86_64-gcc
pacman -S mingw64/mingw-w64-x86_64-pkg-config
pacman -S mingw64/mingw-w64-x86_64-vala
and all the additional packages your code requires, i.e.
pacman -S mingw64/mi...
This will take about 30 minutes. We will be setting Ruby on Rails Development Environment on Ubuntu 16.10 Yakkety Yak.
You'll want to download the latest Desktop version here: http://releases.ubuntu.com/17.04/
Open up your terminal using Ctrl + Alt + T.
Installing Ruby
The First step is to ins...
Run the following bash script as sudo
#!/bin/bash
# get deps
apt -y install build-essential libncurses5-dev libxml2-dev libsqlite3-dev libssl-dev libsrtp0-dev uuid-dev libjansson-dev
# download
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-current.tar.gz...
Let us create a simple Hello World console application and log something to the console using log4net. Once we have this running, we can scale it out to use it in real development scenarios in the following examples. Let's start small and build it up from there.
First, we need to create a simple Co...
Angular 4 is now available! Actually Angular uses semver since Angular 2, which requires the major number being increased when breaking changes were introduced. The Angular team postponed features that cause breaking changes, which will be released with Angular 4. Angular 3 was skipped to be able to...
Sometimes you want to return a 404 (Not Found) response, because the requested resource does not exist. Symfony allows you to do so by throwing a NotFoundHttpException.
The Symfony base Controller exposes a createNotFoundException method which creates the exception for you:
public function indexAc...