Ketan's Home

February 29, 2016

2,100 Mechanical Mechanisms

Filed under: Uncategorized — Tags: , — ketan @ 11:31 PM

[Nguyen Duc Thang]’s epic 2100 Animated Mechanical Mechanisms is one of the best YouTube channels we’ve ever seen. A retired mechanical engineer, [Nguyen Duc Thang] has taken on an immense challenge: building up 3D models of nearly every imaginable mechanism in Autodesk Inventor, and animating them for your amusement and enlightenment. And, no, we haven’t watched them all for you, but we’re confident that you’ll be able to waste at least a couple of hours without our help.

If you’re actually looking for something specific, with this many mechanisms demonstrated, YouTube is not the perfect lookup table. Thankfully, [Nguyen Duc …read more

from Hackaday http://ift.tt/1KYtSI0

February 24, 2016

Creating Custom Springboot Starter for twitter4j

Filed under: Uncategorized — Tags: — ketan @ 7:21 AM

SpringBoot provides a lot of starter modules to get up and running quickly. SpringBoot’s auto-configure mechanism takes care of configuring SpringBeans on our behalf based on various criteria.

In addition to the SpringBoot starters that comes out-of-the-box provided by Core Spring Team, we can also create our own starter modules.

In this post, we will look into how to create a custom SpringBoot starter. To demonstrate it we are going to create twitter4j-spring-boot-starter which will auto-configure Twitter4J beans.

To accomplish this, we are going to create:

  1.  twitter4j-spring-boot-autoconfigure module which contains Twitter4J AutoConfiguration bean definitions 
  2. twitter4j-spring-boot-starter module which pulls in twitter4j-spring-boot-autoconfigure and twitter4j-core dependencies 
  3. Sample application which uses twitter4j-spring-boot-starter 

Create Parent Module spring-boot-starter-twitter4j

First we are going to create a parent pom type module to define dependency versions and sub-modules.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://ift.tt/13J5Aq9;
 xmlns:xsi="http://ift.tt/Atvu06;
 xsi:schemaLocation="http://ift.tt/IH78KX
 http://ift.tt/1l2I2tJ;>
 <modelVersion>4.0.0</modelVersion>

 <groupId>com.sivalabs</groupId>
 <artifactId>spring-boot-starter-twitter4j</artifactId>
 <packaging>pom</packaging>
 <version>1.0-SNAPSHOT</version>
 <name>spring-boot-starter-twitter4j</name>

 <properties>
 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 <twitter4j.version>4.0.3</twitter4j.version>
 <spring-boot.version>1.3.2.RELEASE</spring-boot.version>
 </properties>

 <modules>
 <module>twitter4j-spring-boot-autoconfigure</module>
 <module>twitter4j-spring-boot-starter</module>
 <module>twitter4j-spring-boot-sample</module>
 </modules>

 <dependencyManagement>
 <dependencies>
 <dependency>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-dependencies</artifactId>
 <version>${spring-boot.version}</version>
 <type>pom</type>
 <scope>import</scope>
 </dependency>

 <dependency>
 <groupId>org.twitter4j</groupId>
 <artifactId>twitter4j-core</artifactId>
 <version>${twitter4j.version}</version>
 </dependency>
 </dependencies>
 </dependencyManagement>

</project>

In this pom.xml we are defining the SpringBoot and Twitter4j versions in section so that we don’t need to specify versions all over the places.

Create twitter4j-spring-boot-autoconfigure Module 

Create a child module with name twitter4j-spring-boot-autoconfigure in our parent maven module spring-boot-starter-twitter4j.

Add the maven dependencies such as spring-boot, spring-boot-autoconfigure, twitter4j-core and junit as follows:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://ift.tt/13J5Aq9;
         xmlns:xsi="http://ift.tt/Atvu06;
         xsi:schemaLocation="http://ift.tt/IH78KX
 http://ift.tt/1l2I2tJ;>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.sivalabs</groupId>
    <artifactId>twitter4j-spring-boot-autoconfigure</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>

    <parent>
        <groupId>com.sivalabs</groupId>
        <artifactId>spring-boot-starter-twitter4j</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.twitter4j</groupId>
            <artifactId>twitter4j-core</artifactId>
            <optional>true</optional>
        </dependency>
    </dependencies>
</project>

Note that we have specified twitter4j-core as an optional dependency because twitter4j-core should be added to the project only when twitter4j-spring-boot-starter is added to the project.

Create Twitter4jProperties to Hold the Twitter4J Config Parameters 

Create Twitter4jProperties.java to hold the Twitter4J OAuth config parameters.

from DZone Java Zone http://ift.tt/1TEWUPn

Kicking The Tires Before You Buy: 3d Printers

Filed under: Uncategorized — Tags: , — ketan @ 6:21 AM

So you’re looking to buy your first 3D printer, and your index finger is quivering over that 300 US Dollar printer on Amazon.com. Stop! You’re about to have a bad time. 3D printing has come a long way, but most 3D printers are designed through witchcraft, legends, and tall tales rather than any rigorous engineering process. I would say most 3D printer designs are either just plain bad, or designed by a team of Chinese engineers applying all their ingenuity to cost cutting. There are a few that are well designed, and there is a comparatively higher price tag attached. …read more

from Hackaday http://ift.tt/21kWoqW

February 23, 2016

Quickie WiFi Scanner

Filed under: Uncategorized — Tags: , — ketan @ 10:36 PM

File this project under “Getting Stuff Done” rather than “Shiniest Things”. [filid] works with a local free-WiFi access group, and wanted to map out the signal strength (RSSI) and coverage of their installations. This is a trivial task for an ESP8266, and it was even easier for [filid] because he had already written some WiFi scanner code for the same hardware.

Basically, the device is a Neopixel ring connected to an ESP8266. If it detects a router that’s part of the Freifunk München network, it displays the RSSI on the ring in an attractive circular “bargraph”. When it doesn’t detect …read more

from Hackaday http://ift.tt/1oG6TYb

February 21, 2016

Thino Charger

Filed under: Uncategorized — Tags: , — ketan @ 10:22 AM

from Uncrate http://ift.tt/20zGEyj

February 19, 2016

Creating Custom SpringBoot Starter for Twitter4j

Filed under: Uncategorized — Tags: , — ketan @ 12:13 AM

SpringBoot provides lot of starter modules to get up and running quickly. SpringBoot’s auto-configure mechanism takes care of configuring SpringBeans on our behalf based on various criteria. In addition to the springboot starters that comes out-of-the-box provided by Core Spring Team, we can also create our own starter modules. In this post we will look …

from Java Code Geeks http://ift.tt/1LuKRMO

February 18, 2016

Super Sizing the Printrbot Metal Simple

Filed under: Uncategorized — Tags: , — ketan @ 8:07 AM

The Printrbot Simple Metal is a good 3D printer, with a few qualifications. More accurately, the Printrbot Simple Metal is a good first 3D printer. It’s robust, takes a beating, can produce high-quality prints, and is a great introduction to 3D printing for just $600. There are limitations to the Printbot Simple Metal, the most important is the relatively small 150mm cubed build volume.

[ken.do] wanted to print large parts, specifically scale aircraft wings and panels. While the Printrbot can’t handle these things normally, the design of the printer does lend itself to increasing the size of the build volume …read more

from Hackaday http://ift.tt/1KPjAti

February 16, 2016

Controlling RGB LEDs With The Pi Zero

Filed under: Uncategorized — Tags: — ketan @ 7:50 AM

The Pi Zero is a great piece of hardware, even if you’re not designing another USB hub for it. [Marcel] wanted to control a few RGB LED strips from his phone, and while there are a lot of fancy ways you can do this, all it really takes is a Pi Zero and a few parts that are probably already banging around your parts drawers.

This isn’t a project to control individually addressable RGB LEDs such as NeoPixels, WS2812s, or APA102 LEDs. This is just a project to control RGB LEDs with five four connectors: red, green, blue, power, and …read more

from Hackaday http://ift.tt/1PWduYp

February 10, 2016

Porting to .NET Core

Filed under: Uncategorized — Tags: , — ketan @ 11:20 PM

.NET Core is getting closer and closer to an RTM release. Only two months ago, we announced the RC release of .NET Core and ASP.NET Core. As part of our validation, we’re working with internal as well as external customers to port their code to .NET Core. We received many requests from you asking us… Read more

from .NET Blog http://ift.tt/1ot0ajU

February 9, 2016

Kid Builds BB-8 Robot Out of Beach Ball, Roll-On Deodorant, and Speaker Magnets

Filed under: Uncategorized — Tags: , — ketan @ 8:27 PM

bb8Angelo_4A 17 year old builds a very impressive Star Wars BB-8 out of household and hardware store items

Read more on MAKE

The post Kid Builds BB-8 Robot Out of Beach Ball, Roll-On Deodorant, and Speaker Magnets appeared first on Make: DIY Projects, How-Tos, Electronics, Crafts and Ideas for Makers.

from Make: DIY Projects, How-Tos, Electronics, Crafts and Ideas for Makers http://ift.tt/1K5DFvk

Older Posts »

Create a free website or blog at WordPress.com.