Javascript changes not reflecting on dmgr
I have an application deployed on WAS 9.0.0.6 in clustered mode and access the application via dmgr domain name. Recently, I made some changes to a JS file in the application. Accessing the application via individual IP of the cluster, the changes are reflected. However, if the same application is accessed via the dmgr domain name on the same machine and same browser, the changes are not there and only the previous file is present. I have tried accessing the application via dmgr IP, but it not accessible. However, I suppose that should not be the way to go to fix this. Request for any inputs, as this is very new to me. Couldn't find much on SFO and other sources as well.
See also questions close to this topic
-
How to display result of map in two different columns
I have a task, but i couldnt get the solution for it in reactjs. I would like to show the result in two columns like:
item 1 | item 4 item 2 | item 5 | item 6
When i loop through the array the columns are getting divided into equal order, but as you see in the diagram i need to split them in 2:3 ratio. I am giving the sandbox link here on what i have tried so far.
// Example class component class Thingy extends React.Component { render() { const secondaryNav = [ { title: "Games", name: ["Roadrash", "Prince of Persia", "Counter Strike"] }, { title: "Resources", name: ["Images", "Videos", "E-books"] }, { title: "Shop", name: ["Shop now"] }, { title: "Account", name: ["Log In", "Register"] }, { title: "Support", name: ["Email", "Call Us", "Get a callback"] } ]; return ( <div className="App"> <div className="container"> <div className="row"> {secondaryNav.map((item, i) => { return ( <div className="col-lg-6 col-md-6"> <h3>{ item.title }</h3> <ul> {item.name.map((items, i) => { return <li>{items}</li> })} </ul> </div>) })} </div> </div> </div> ) } } // Render it ReactDOM.render( <Thingy title="I'm the thingy" />, document.getElementById("react") );
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script> <div id="react"></div> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
-
Axis tick options in d3 charts v4
1.In X-axis not starts from 0, now starts from 1. It should starts from 0.
2.In Y-axis 45 label not showing.
3.In X-axis need to show only like 1,3,5,7,9
Working sample code attached link, kindly check with this.
<https://codepen.io/ganesh88maddy/pen/ZEBqPyL>
Currently using d3 chart version - 4.13.0
-
Problem animation boat floating on ocean, in THREE JS
I have a project to do in THREE JS in WEBGL and I'm blocking. I would like to make a boat that floats on water. Here my boat should follow the waves created by my ocean function as follows:
const gsize = 1000; const res = 1024; const gres = res / 2; const origx = - gsize/2; const origz = - gsize/2; this.ms_Ocean = new Ocean( this._threejs, this._camera, this._scene, { USE_HALF_FLOAT: false, INITIAL_SIZE: 256.0, INITIAL_WIND: [ 10.0, 10.0 ], INITIAL_CHOPPINESS: 1.5, CLEAR_COLOR: [ 1.0, 1.0, 1.0, 0.0 ], GEOMETRY_ORIGIN: [ origx, origz ], SUN_DIRECTION: [ - 1.0, 1.0, 1.0 ], OCEAN_COLOR: new THREE.Vector3( 0.004, 0.016, 0.047 ), SKY_COLOR: new THREE.Vector3( 3.2, 9.6, 12.8 ), EXPOSURE: 0.35, GEOMETRY_RESOLUTION: gres, GEOMETRY_SIZE: gsize, RESOLUTION: res } ); this.ms_Ocean.materialOcean.uniforms[ "u_projectionMatrix" ] = { value: this._camera.projectionMatrix }; this.ms_Ocean.materialOcean.uniforms[ "u_viewMatrix" ] = { value: this._camera.matrixWorldInverse }; this.ms_Ocean.materialOcean.uniforms[ "u_cameraPosition" ] = { value: this._camera.position }; this._scene.add( this.ms_Ocean.oceanMesh );
My question is: How do I follow the movement of the waves? Just like if I had a plan maybe. The boat must have a floating effect on the water.
I have done a lot of research but I can't really find anything that suits me. If anyone has any idea how I can do this. Thank you !
-
ibm websphere liberty local configuration for microservices
Recently we have migrated our monolithic project to microservices. All m/s are deployed on testing/stage server on different port e.g. 15123, 15111, 15222. But on my local machine I have only one instance of server which is running on port no 10442.
so for running the m/s locally on my system, I have to replace urls port 15123, 15111, 15222 to 10442, then build then deploy, but while committing the changes, I am again reverting the port no.
Is there any way that all port numbers can be re direct to one port number?
My current configuration.
-
Unable to execute 'gcc' : No such file or directory when installing apache superset on IBM i 7.3
I am trying to install apache superset from scratch and following recommendation to use virtual environment (venv) and then ran command python3 -m pip install apache-superset. Getting the following error:
Complete output from command /home/XXX/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-z7
by2m2a/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code , file, 'exec'))" install --record /tmp/pip-record-fqli9xso/install-record.txt --single-version-externally-managed --prefix / tmp/pip-build-env-u0f6md7n --compile --install-headers /home/SHAWNW/venv/include/site/python3.6/cffi:
unable to execute 'gcc': No such file or directory
unable to execute 'gcc': No such file or directoryNo working compiler found, or bogus compiler options passed to the compiler from Python's standard "distutils" module. See the error messages above. Likely, the problem is not related to CFFI but generic to the setup.py of any Python package that tries to compile C code. (Hints: on OS/X 10.8, for errors about -mno-fused-madd see http://stackoverflow.com/questions/22313407/ Otherwise, see https://wiki.python.org/moin/CompLangPython or the IRC channel #python on irc.freenode.net.)
-
Why does websphere 8.5 try to override javax-xml-bind using springframework-oxm-jaxb?
Hi I have developed a web application to marshall and unmarshall using Jaxb2Marshaller from springframework OXM. The web application is working in tomcat without any issues. But when I tried in Websphere 8.5 I got the following error:
Caused by: java.lang.LinkageError: loading constraint violation when overriding method "javax/xml/bind/attachment/AttachmentMarshaller.addMtomAttachment(Ljavax/activation/DataHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" during creation of class "org/springframework/oxm/jaxb/Jaxb2Marshaller$Jaxb2AttachmentMarshaller": loader "com/ibm/ws/classloader/CompoundClassLoader@78cb589a" of class "org/springframework/oxm/jaxb/Jaxb2Marshaller$Jaxb2AttachmentMarshaller" and loader "com/ibm/oti/vm/BootstrapClassLoader@9fb13ddf" of class "javax/xml/bind/attachment/AttachmentMarshaller" have different types for the method signature
Please help me on this issue.
-
Layer 7 Load Balancer vs API Gateway vs Load Balancer + Routing Service
I'm new to system design. Sometimes, as an entrypoint to a system, I see a layer 7 load balancer being used. Other times, I see an API gateway. Yet other times, I see a dedicated routing service (which does endpoint-based routing) behind a layer 4 load balancer.
I've read a few articles on the internet, but I don't quite understand when you would want to use which. Is there ever a time where you would have an API gateway behind a load balancer? Is it common practice to point a DNS record to an API gateway instead of a load balancer?
Can someone please disambiguate this for me?
-
What is purpose of decryption of data at both the load balancer and then the web server?
I heard that to alleviate the web server of the burden of performing the SSL Termination, it is moved to load balancers and then HTTP connection is made from the LB to the web server. However, in order to ensure security, an accepted practice is to re encrypt the data on the LB and then transmit it to the web server. If we are eventually sending the encrypted data to the web servers, what is the purpose of having a LB terminate SSL in the first place ?
-
How to distribute Traffic between two micro services when it is called from third service based on TPS Percentage
Detailed Requirement : If there are two services say A and B and we want to distribute traffic in 10% & 90% basis then 10% of traffic should get routed to Service-A & 90% to Service-B from service C
We tried this with Netflix Ribbon but to get the Real Time TPS was a problem and to manage the loadbalance between two services was doubtful. As per our understanding : The call to microservices can be directed to multiple instances in Netflix Ribbon.
Please suggest if there is any other approach which we can try out.
-
Connect to HDFS HA (High Availability) from Scala
I have a Scala code that now is able to connect to HDFS through a single namenode (non-HA). Namenode, location, conf.location and Kerberos parameters are specified in a .conf file inside of the Scala project. However, now there's a new cluster with HA (involving standby and primary namenodes). Do you know how to configure the client in Scala to support both environments non-HA and HA(with auto-switching of namenodes)?
-
RabbitMQ Fetch from Closest Replica
In a cluster scenario with mirrored queues, is there a way for consumers to consume/fetch data from a mirrored queue/Slave node instead of always reaching out to the master node?
If you think on scalability, having all consumers call a single node responsible to be the master of a specific queue means all traffic goes to a single node.
Kafka allows consumers to fetch data from the closest node if that node contains a replica of the leader, is there something similar on RabbitMQ?
-
Kafka scalability if consuming from slave node
In a cluster scenario with data replication > 1, why is that we must always consume from a master/leader of a partition instead of being able to consume from a slave/follower node that contains a replica of this master node?
I understand the Kafka will always route the request to a master node(of that particular partition/topic) but doesn't this affect scalability (since all requests go to a single node)? Wouldnt it be better if we could read from any node containing the replica information and not necessarily the master?