Questions tagged [opal]

OPAL is a high-level interface for low-level physics engines used in games, robotics simulations, and other 3D applications

OPAL is a high-level interface for low-level physics engines used in games, robotics simulations, and other 3D applications. Features a simple C++ API, intuitive objects (e.g. Solids, Joints, Motors, Sensors), and XML-based file storage for complex objects.

20 questions
2
votes
1 answer

How to convert ruby - Rspec to js test - opal gem

In my Ruby on Rails app I use opal gem for converting the ruby code to JS. How can I convert also the Rspec tests to JS test - opal. And how to run those JS/opal tests? Thank
Shir
  • 253
  • 1
  • 6
  • 18
2
votes
0 answers

opal builder, ruby to javascript yields undefined method "to_a" and missing ";"

I recently tried Opal builder for the first time to compile Ruby code to javascript, following this tutorial: https://github.com/opal/opal However, even basic things like converting a number to an array or checking inequality with nil produce…
1
vote
1 answer

How can I upload a file in hyperstack?

Basically the title. The documentation says to use Operations in place of traditional APIs, but I can't seem to find a way to handle file uploads. Is this even possible in hyperstack?
Cereal
  • 3,699
  • 2
  • 23
  • 36
1
vote
0 answers

opal-rails in Rails 5 does not add fingerprinting to assets?

I've precompiled my assets with RAILS_ENV=production bundle exec rake assets:precompile And run my rails app as: rails s -e production But my app does not request application-{fingerprint}.css application-{fingerprint}.js Instead it request…
Gavin Yap
  • 642
  • 12
  • 26
1
vote
1 answer

How to decode a H323 packet?

I am looking for a third party library capable of decoding H323 packets. I think I should be able to use OpenH323. But since it's a large library, I don't know which class and function I should use to decode a packet. Any advice would be…
B Faley
  • 17,120
  • 43
  • 133
  • 223
1
vote
1 answer

Cannot use Ruby Math library with Opal

Is there a way to use the ruby Math library in Opal ? I got the following error message Uncaught NameError: uninitialized constant Object::Math when using Math::PI in my ruby method. The ruby code : class Numeric def degrees self * Math::PI /…
jazzytomato
  • 6,994
  • 2
  • 31
  • 44
0
votes
0 answers

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported

I have installed Opal Theme and i have this error: Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in…
0
votes
1 answer

How to provide an erb-file as an opal-template in rails?

I have a rails-application (rails 5.2) with opal (0.11.1) running. I would like to use erb-templates on client site. I followed the steps described in the official opal-docs (http://opalrb.com/docs/guides/v0.11.1/templates.html), but requiring the…
0
votes
1 answer

OPAL-How to configure properties of project

While I'm running analysis(eg.CHADemo in OPAL source code), i always get warning as [warn][OPAL] the property org.opalj.threads.CPUBoundTasks is unspecified In former question, it suggested the config file in the Common project under…
0
votes
1 answer

Is it possible to install Reactrb and Opal via NPM and Webpack?

Is it possible to have NPM/Webpack package Opal and Reactrb? I would simply like to install Reactrb like this: NPM install Opal --save NPM install Reactrb --save And then require as necessary. Then ```webpack`` to package Reactrb and Opal…
BarrieH
  • 373
  • 3
  • 11
0
votes
1 answer

How do I import a JavaScript or JSX based component into React.rb so it is accessible in ruby?

Using the example given for React-Bootstrap and react.rb works perfectly but I am trying to get a NPN component called React-TimeAgo working and I am lost. This is what I have done: In index.js (for Webpack to import it into the webpack…
BarrieH
  • 373
  • 3
  • 11
0
votes
1 answer

How do I tell Rails not to pre-render components?

When using React.rb how do I keep Rails from prerendering the components?
Ken Stipek
  • 1,512
  • 8
  • 12
0
votes
0 answers

Freeswitch terminates with signal SIGSEGV, Segmentation fault

While freeswitch is running and we call 1 client to another client then another client pick the call then code is dumped and throwing following error. I am trying allocate the memory for that function but nothing happens. Core was generated by…
Vishal
  • 17
  • 5
0
votes
1 answer

Freeswitch : getting error while loading module mod_h323

I am configuring h323 with freeswitch but while loading mod_h323 module in freeswitch getting below error. CRIT] switch_loadable_module.c:1520 Error Loading module…
Vishal
  • 17
  • 5
0
votes
1 answer

How do I generate more than one dom element from a react.rb component

I am trying to get the following code working: class HelloWorld < React::Component::Base # stuff def render div { "hello" } div { "goodby" } end end but I keep getting this error: Exception raised while rendering #
Mitch VanDuyn
  • 2,838
  • 1
  • 22
  • 29
1
2