Posts

Showing posts from 2017

Change material of a primitive object on Papervision object using BitmapFileMaterial

Change Material of a Primitive Object on Papervision3D Using BitmapFileMaterial When working with Papervision3D , applying custom materials (textures) to 3D objects is a common requirement. One such approach is using the BitmapFileMaterial class. To avoid runtime issues with asset paths, it's best to embed both the 3D model and texture images directly into your ActionScript project. Step 1: Embed Model and Texture Assets Use the [Embed] directive to load both your DAE (Collada) model and the associated texture bitmap: [Embed(source = "assets/Guitar.dae", mimeType = "application/octet-stream")] private var LoadGuitar:Class; [Embed(source = "assets/Guitar/guitarTexture.png", mimeType = "application/octet-stream")] private var LoadGuitarTexture:Class; By embedding assets this way, you eliminate file path issues and ensure that assets are bundled within the SWF, making your 3D application more portable and reliable. Next Steps O...

IBM MQ from Spring using JMS

2 Ways to Connect to IBM MQ from Spring using JMS Java Messaging Service (JMS) provides a standard way for Java applications to communicate with messaging systems like IBM MQ . In Spring applications, there are two primary approaches to connect to IBM MQ using JMS. 1. Using com.ibm.mq.jms.context.WMQInitialContextFactory This method relies on JNDI-based lookups to retrieve connection factories and destinations. It is typically used in environments where resources such as ConnectionFactory and Queue are preconfigured on the application server (e.g., WebSphere). This approach is suitable when you want to externalize configuration and rely on a container-managed environment. java.naming.factory.initial = com.ibm.mq.jms.context.WMQInitialContextFactory java.naming.provider.url = tcp://hostname:1414 2. Using com.ibm.mq.jms.MQQueueConnectionFactory This is a programmatic approach that integrates seamlessly with Spring’s configuration. You can define the MQ connection direct...

SSL certification of you web site

This will create a certification file and send to free certification authority " https://certbot.eff.org " sponsored by linux foundation. Following are for apache deployment on Ubuntu compatible. For other configurations visit https://certbot.eff.org sudo apt-get install python-letsencrypt-apache sudo letsencrypt --apache