Dynamo

Dynamo is a open source implementation of a Graph Based Visual Programming Interface that’s being advanced by Autodesk.  It’s very similar to Grasshopper (which is pretty tightly integrated with Rhino).

I have followed below link to build Dynamo on Linux:

https://github.com/DynamoDS/Dynamo/wiki/Dynamo-on-Linux,-Mac

Here, I will discuss about my struggles and fruitful solution eventually 🙂

Initially, I was having mono version 3.2.8.0

Later, I installed 5.4.1.6 but I think changing the version won’t solve any problem. Still I did it using:

<

p class=”default prettyprint prettyprinted”>apt-key adv --keyserver pgp.mit.edu --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb http://download.mono-project.com/repo/debian wheezy main" > /etc/apt/sources.list.d/mono-xamarin.list

apt-get update

apt-get install mono-devel

                                       ***************************************************

Now, on running:

xbuild /p:Configuration=Release src/Dynamo.Mono.sln

I faced an error:

MSBUILD: error MSBUILD0000: Project file ‘src/Dynamo.Mono.sln’ not found.

Then, I cloned the repository with x.sln file in it.

git clone  https://github.com/DynamoDS/Dynamo

You can get similar error as below mentioned if the data in Dynamo.Mono.sln file is not appropriate:

Dynamo.Mono.sln: Invalid solution configuration and platform: “Release|Any CPU”

Solution file error MSB5010: No file format header found.

Now, again on running above command, I got another error:

ShapewaysClient.cs(1,7): error CS0246: The type or namespace name ‘Newtonsoft’ could not be found (are you missing a using directive or an assembly reference?)

ShapewaysClient.cs(2,7): error CS0246: The type or namespace name ‘RestSharp’ could not be found (are you missing a using directive or an assembly reference?)  

almost 8 erros

For solving this, I tried installing NuGet Packages:

 #sudo apt install nuget

After installing Newtonsoft.Json:
 #nuget install Newtonsoft.Json

Though it didn’t solve my problem completely, but now there were 4 errors instead of 8.

I even tried installing zip file for Newtonsoft from here:  https://github.com/JamesNK/Newtonsoft.Json/releases

But nothing helped.

Also to upgrade the version of Nuget, one can use:

nuget update -self

To check the version of nuget:

nuget

Later, I tried:

mcs /reference:Newtonsoft.Json.dll /reference:RestSharp.dll ShapewaysClient.cs

to solve the error. But this was also not the one I am looking for.

Now, the working solution is:

nuget restore

After this, I compiled using mono Program.exe

I again got some errors of dependencies, it got solved after insatlling them. Still I was getting errors: https://hastebin.com/avokifahuw.pas

I have read that it’s some package issue and after few searches I get to know that:
All versions of System.Net.Http are broken on Mono because they use private API available in .NET assemblies only. To workaround that Mono has to disable loading such assemblies and use always Mono’s ones.
So, I fixed it by deleting System.Net.Http.dll from bin folder.
Now, on compiling, I was getting the result.
mono Program.exe 
2.0.0.2821

I will update the blog soon with the solution 🙂

Stay tuned 😉

 

 

 

 

Advertisements

New things

Today I installed java and eclipse on windows. I was getting an error while installing eclipse due to some problem with jdk setup. So, I installed a fresh jdk8. Later on, I have to set the java environment till the java/bin.

For setting java path: https://www.javatpoint.com/how-to-set-path-in-java

As a result, eclipse started working and now I want to install Remote Server Explorer (RSE).

Now, install RSE from eclipse marketplace.  Follow this blog’s video : Installation

Now, build a connection with any remote server.

Besides, I encountered a new site for brushing up the basics of HTML and CSS. I really found it interesting and more informative.

http://learnlayout.com/

https://learn.shayhowe.com/

Apart from this I get to know about two different chat platforms for teams: Flock and HipChat.

https://flock.com/in/

https://www.atlassian.com/software/hipchat

 

 

Enhancing Skills

Hello everyone.

In the blog post, I will be delivering my day to day experience regarding technical stuff. In my previous post, I have discussed about Rocket Chat which got implemented today.

3.PNG

Here are few screenshots, I would like to share.

2

Besides this, I will annotate about the errors I encountered while attempting this task.

My system’s dpkg was interupted, so I have to run:

sudo dpkg --configure -a

But, I was facing another problem:

dpkg: error: parsing file ‘/var/lib/dpkg/updates/0045’ near line 0: newline in fieldname `#padding’

Solution:

cd /var/lib/dpkg/updates && sudo rm -rf 0045

1

Afterwards, I got to know about a new thing that is Google App Engine. One can follow this to run a basic Java Application: Guestbook

Apart from this, one of the best page for understanding GAE’s datastore: https://github.com/objectify/objectify/wiki/Concepts

I will be discussing about the key areas where I got stuck:

You need to have Maven version 3.5, I was having 3.1.1 which got me in trouble. Later, I was with 3.3.x which made things set straight.

Install Maven 3.3.9

But still, 3.5 is advisable.

Also, one of the other dependency is JDK.

<

p class=”lang-java prettyprint prettyprinted”>sudo add-apt-repository ppa:webupd8team/java -y

sudo apt-get update

sudo apt-get install oracle-java8-installer

Now you don’t need to bother about Dependencies, let Maven do it’s job.

What is Maven?  Maven addresses two aspects of building software: first, it describes how software is built, and second, it describes its dependencies. It is a build automation tool used primarily for Java projects.

In Yiddish, the word maven means “accumulator of knowledge” 🙂

Though, Maven creates it own new VM. Hence, for accessing it on remote browser. You need to do some changes in pom.xml file. Just add:

<address>0.0.0.0</address>
<port>8080</port>

A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects.

f

Now, you can see your work on http://Ip_Address:8080

gg

I also get acquainted about Java Servlets and JSP. Give a look: http://met.guc.edu.eg/OnlineTutorials/JSP%20-%20Servlets/A%20servlet%20example.aspx

 

 

 

 

 

Daily Dose!

Hey folks!

Today I encountered with a strange problem. Few days back I was installing Ubuntu 16.04.01 VM. Today when I operated it, I noticed that it was reading something else against my keywords.

Example: Though I was typing ?, but it was displaying .

I was really bumfuzzled and then I realised it’s happening because of an exception in keyboard configuration. To solve my issue I gave command:

dpkg-reconfigure keyboard-configuration

ooh la la :p  It worked.

The other thing I came across with is IP conflict. I cloned a VM and not I was getting same IP address for two parallel VM’s.

For getting rid of this, I shut down a VM and went to:

Settings -> Network -> Advanced -> MAC Address Refresh

Matter solved 🙂

I also get to know about a way to publish a static webpage on github. You can follow this procedure: https://pages.github.com/

Apart from this, for downloading a whole website using wget, go for:

wget –random-wait -r -p robots=off -U mozilla www.example.com

Also, I wanted to change content in no. of files. What I need id to replace .html with .php. So I used:

sed -i 's/.html/.php/g' *.html

You may go through my old blog related to sed: https://deepti96.wordpress.com/2016/04/05/sed-command/

I also installed Rocket Chat on Ubuntu today.

One can follow :

apt-get install mongodb

systemctl enable mongodb
systemctl start mongodb

Apart from this, I get back to ERPNext for GST Forms and for migrating the changes donw on a single server to other, What I followed: Backup and Restore

I have to rename a database as the name was creating a conflict.

Documentation: Dropbox

To unzip a .sql.gz file:

gzip -d a.sql.gz

 

Unprecedented things!

Today I installed LXDE in my ubuntu. For accomplishing this task:

sudo apt-get install lxde

Further, it will create session files under:  /usr/share/xsessions 

LXDE.desktop         openbox.desktop

It’s a light weight desktop version and I found it really cool. But somehow I have to uninstall it later on (official reason).

sudo apt-get –purge autoremove lxde

c1.PNG

Apart from this, I was trying to install phpmyadmin and not only this program. Usually whenever I try to install stuff I encountered an error related to unmet dependencies and uninstallable candidate.
So, for banishing this:
sudo rm -rf  /var/lib/apt/lists/*
sudo apt-get update
Then, sudo apt-get install phpmyadmin
Further, add this in /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache2.conf
Now, restart apache2.
Beside this, I get to know about an open source Accounting Software today i.e ERP Next
e1.PNG
ERPNext  can setup email alerts on anything, Invoices, Orders, Leads, Opportunities, so you never miss a thing.
e2.PNG
Beside this, some previous work regarding project and website.