Questions tagged [nitrogen]

The Nitrogen Web Framework is a framework for building full-stack Erlang web applications.

Filter by
Sorted by
Tagged with
1 vote
1 answer
26 views

Nitrogen over Yaws set cookie throws exception

I've installed Nitrogen over Yaws (Nitrogen 2.4.0, Yaws 2.0.8, ERTS 13.2 - R25). When I try http://0.0.0.0:8000/I get Internal server error. When I check in the console I get this error. {error,...
Vianney Sserwanga's user avatar
1 vote
1 answer
51 views

Nitrogen - File upload directly to database

In the Nitrogen Web framework, files uploaded always end in the ./scratch/ directory when using #upload{}. From here you are supposed to manage the uploaded files, for example, by copying them to ...
Vianney Sserwanga's user avatar
0 votes
1 answer
149 views

Nitrogen through systemd services doesn't work

I am writing a tool (zxcV32/OpenRWC) that fetches wallpapers from Reddit and sets them to the monitor(s) using nitrogen. To make it easy to install and run automatically, I have created a deb package ...
zxcV32's user avatar
  • 74
1 vote
1 answer
26 views

Nitrogen SimpleCache Mutex signkey issue

Nitrogen seems to be running properly until it starts throwing these warning messages. It throws these warnings. =WARNING REPORT==== 2-Jul-2022::10:18:25 === SimpleCache: Mutex "{nitrogen,signkey}...
Vianney Sserwanga's user avatar
2 votes
1 answer
289 views

Why am I getting permission denied on my Travis CI build for rebar?

I ran a build, on Travis CI and got a permission denied error: $ source ${TRAVIS_HOME}/otp/23.0/activate 3.01s$ ./rebar get-deps /home/travis/.travis/functions: line 355: ./rebar: Permission denied ...
Ookma-Kyi's user avatar
1 vote
1 answer
180 views

Erlang Nitrogen tutorial project does not work

I'm following the tutorial on the nitrogen project page: starter tutorial here and when I point my browser to localhost:8000 it does not work. I suspect it is something to do with this following the ...
Bucephalus's user avatar
3 votes
1 answer
298 views

Using Erlang Nitrogen and Bootstrap 4 Templates

Is there a way to allow bootstrap 4 designed web pages (as Nitrogen templates) to "interact" with Erlang Nitrogen? Apart from breaking out all input fields, buttons and forms and converting ...
Daniel Schutte's user avatar
0 votes
1 answer
153 views

How to upload image in N2O erlang

I am setting up a new server in erlang n2o web framework, and want to upload image using #upload. How can I use upload event.
Aaron's user avatar
  • 1
0 votes
0 answers
454 views

Signing and verifying digital signatures in Erlang/OTP from other languages

I have an application where I've to verify digital signatures from different users. These users are programming is different languages/platforms, such as .NET, JAVA, C, etc; yet may application is ...
Vianney Sserwanga's user avatar
0 votes
1 answer
89 views

How do you make a button alert() the text of a textbox?

In "Introduction to Nitrogen", there is this example: body() -> #panel { style="margin: 50px;", body=[ #h1 { text="My Page" }, #label { text="Enter Your Name:" }, #...
7stud's user avatar
  • 47k
0 votes
1 answer
78 views

OpenDaylight Geo-D setup

I am trying to set up nitrogen version of ODL in Geo-D configuration. As per the ODL documentation, initially I set up a cluster with 6 nodes(3 in active site and 3 nodes in standby site) with active ...
PdtrMe's user avatar
  • 1
0 votes
1 answer
37 views

nitrogen: How to implement Autocompletion for in-place text box

I have a page with in-place texbox, so user could easy modify some data, is it possible to add auto-completion functionality? I would like it behaves as #textbox_autocomplete{}.
Anton Prokofiev's user avatar
1 vote
0 answers
181 views

Starting ibrowse to support unlimited requests to the server

I am using ibrowse to make POST and GET requests to the external server but I have issues when it comes to supporting frequent and simultaneous requests. I start ibrowse with default settings: ...
Vianney Sserwanga's user avatar
-1 votes
2 answers
260 views

Erlang Nitrogen web framework with elixir language

I am developing webapp using erlang nitrogen web framework, studying elixir. Is there a way i can code in elixir and use nitrogen web framework and existing developed code ?
tumbudu's user avatar
  • 699
1 vote
1 answer
111 views

Nitrogen wf:wire() does not work for dynamic content

I have 2 modules: test2 Module create div element with a button id = wf:temp_id() wire #alert{} event to it. return these HTML elements so they could be used by other modules. test Module ...
Anton Prokofiev's user avatar
1 vote
0 answers
168 views

nitrogen console Segmentation fault(core dumped)

I download nitrogen in http://nitrogenproject.com/downloads, and what I download is nitrogen-2.3.1-mochiweb.tar.gz, a linux binares. When I run ./bin/nitrogen console ,it's error "/lib64/libc.so.6:...
jianwei's user avatar
  • 3,561
1 vote
2 answers
231 views

Uncaught ReferenceError: Nitrogen is not defined

I am running a Nitrogen web framework over Yaws driven site. It has been working properly on all browsers for the last three years. But recently postbacks could unpredictably fail to respond in Google ...
Vianney Sserwanga's user avatar
0 votes
3 answers
200 views

Error while installing Nitrogen

while installing the nitrogen i had the following error. Following install instructions outlined in http://nitrogenproject.com/doc/tutorial.html, I pulled source from GitHub and ran the following ...
msairam's user avatar
  • 11
2 votes
1 answer
162 views

Starting Nitrogen Web framework at boot time

I have always started nitrogen to run as a daemon using the command below: sudo /home/someuser/myapp/bin/nitrogen start It works well but i have to repeat the same activity should the server reboot. ...
Vianney Sserwanga's user avatar
0 votes
1 answer
96 views

what is best way to show timer on page

I wanted to know is this really overhead to use comet to update timer over using javascript at client site and posting to server on specific time interval to log time if required? body() -> wf:...
tumbudu's user avatar
  • 699
0 votes
1 answer
345 views

Install Erlang Cassandra Cqerl

I have a Cassandra cluster that I need to connect with Nitrogen? I installed Cqerl as instructed yet cannot make the connection. I do not think i installed the dependency correctly. When trying to ...
user3102075's user avatar
0 votes
1 answer
65 views

Nitrogen get content of table

So, I have a nitrogen page, index.erl, which contains codes like this: body() -> [#table{ id = mytable, rows=[ #tablerow{ cells=[#tableheader{text="column a"},...
Not an ID's user avatar
  • 2,579
1 vote
0 answers
100 views

#spinner{} element fails two worker when Nginx is the reverse proxy in front of Nitrogen

I have running my Nitrogen driven application directly however because i want to use Nginx load-balancing magic i found out that the progress notifier of Nitrogen, the Spinner is not showing at all. I ...
Vianney Sserwanga's user avatar
0 votes
1 answer
81 views

Determine HTTP method type

I'm trying to determine the HTTP method (GET, POST) send to an erlang module in nitrogen. I've added nitrogen as a dependency via rebar. I'm attempting to do this via the wf_context:request_method/0 ...
Nikolay Manolov's user avatar
1 vote
1 answer
543 views

Storing and retrieving photo files from riak through nitrogen using riak-erlang-client

I am running a riak cluster of 5 nodes which i connect to through a protocol buffer client riak-erlang-client. I installed riak-erlang-client as a nitrogen plugin as i suggested at this stackoverflow ...
Vianney Sserwanga's user avatar
0 votes
0 answers
53 views

Nitrogen wf.hrl file is deleted with a warning

I am using a slim_version of cowboy, I have also tried that on slim_yaws on nitrogen. What puzzles me is the abrupt deletion of the wf.hrl file by the VM. I do not understand what causes this!! Here ...
Vianney Sserwanga's user avatar
2 votes
3 answers
1k views

Best way to log access to web pages

One of my website is using Nitrogen with a Cowboy server. I would like to log every access to web pages just like Apache does with access.log. What would be the best way to do that ?
Maeln's user avatar
  • 370
2 votes
2 answers
579 views

How to install erlydtl to make it usable in nitrogen?

I found, that erlydtl may be used with nitrogen. Unfortunately, author hasn't described how he installed erlydtl to make it usable from nitrogen. Probably somebody has ever faced with the same ...
Oleksandr Khryplyvenko's user avatar
2 votes
1 answer
75 views

How to handle a nitrogen application with source control?

As far as I know I am only supposed to put my site directory under version control. (See 1 2). However, all the tutorials mention that I should start the application via bin/nitrogen console. But ...
Peter Zeller's user avatar
  • 2,255
3 votes
1 answer
329 views

How to develop Erlang Nitrogen apps in Docker

I'm trying to work out an efficient work flow for developing Erlang Nitrogen apps in Docker. Sans Docker, I would keep two terminals open: a bash terminal terminal for making source changes a ...
Lloyd R. Prentice's user avatar
2 votes
2 answers
143 views

Nitrogen how to add element id

I can't figure out how to get Nitrogen to generate an actual id attribute of an html element. For example, In index.erl: #panel { id = "test" } or #panel { id = test } the generated html element ...
Aaron Frantisak's user avatar
0 votes
0 answers
80 views

Nitrogen web framework auto internet detection

I tried to embed auto internet connection detection and server availability in my nitrogen driven application by including the script in the template bare.html available at http://github.hubspot.com/...
Vianney Sserwanga's user avatar
2 votes
1 answer
270 views

Error while installing Nitrogen

Thought I'd explore Nitrogen. Following install instructions outlined in http://nitrogenproject.com/doc/tutorial.html, I pulled source from GitHub, executed second step, make rel_inets, and hit a wall....
Lloyd R. Prentice's user avatar
2 votes
1 answer
241 views

Frama-C: Jessie plugin can't prove bitwise-or safety (w.r.t. overflow)

I'm using Frama-C Nitrogen to analyze the following code #include "/usr/share/frama-c/builtin.h" int test() { const unsigned char a = Frama_C_interval(0, 255); const unsigned char b = ...
XDnl's user avatar
  • 470
0 votes
2 answers
544 views

Automatic redirection from port 80 to port 433 in nitrogen over Yaws and Cowboy

I am developing my application using nitrogen framework which runs over Yaws and also over Cowboy web servers. My clients only know this 'domain-name.xx'or 'www.domain-name.xx' which by default hits ...
Vianney Sserwanga's user avatar
0 votes
1 answer
239 views

Using the Erlang client library from Riak in Nitrogen

This question is a continuation of Including the Erlang client lib which was asked before. I was able to include the library by changing: {mimetypes, ".*", {git, "git://github.com/spawngrid/...
neildaemond's user avatar
1 vote
1 answer
154 views

Yaws fails to scale on nitrogen during execution of wf:q_pl(KeyList)

I have gotten a shocking error when running Nitrogen over Yaws when executing this nitrogen function wf:q_pl(KeyList). Well when length(KeyList) approx less 40 it worked but when length(KeyList) grew ...
Vianney Sserwanga's user avatar
0 votes
2 answers
1k views

Installing an SSL certificate and running nitrogen webframe work over cowboy server over https

I am developing an application using nitrogen web framework over cowboy web server. When i run the server over http is works perfectly well. Now in production the application must run on https. I ...
Vianney Sserwanga's user avatar
1 vote
1 answer
351 views

Making nitrogen over Yaws from github.com

I am using Ubuntu 12.04LTS with all softwares upgraded according to the software manager utility I am trying to create a nitrogen application over yaws from the nitrogenproject site using git ...
Vianney Sserwanga's user avatar
0 votes
2 answers
283 views

How to read from post param?

I need to parse text file. This file is in post param. I have code like this: upload_file('POST', []) -> File = Req:post_param("file"), What should I do next? How to parse it?
cnaize's user avatar
  • 3,139
1 vote
1 answer
368 views

Erlang nitrogen file download

I need to provie file download feature in my nitrogen app. In principle I need to set headers like this: wf:header("Content-Disposition", "attachment; filename=\"" ++ Filename ++ "\""), but now I ...
Luman75's user avatar
  • 878
2 votes
1 answer
2k views

Node is not running, Nitrogen

In shell I typed bin/dev page foo and shell returned Node is not running, I checked my logs and noticed the message epmd: epmd: node name already occupied nitrogen Then, in shell I typed epmd -names ...
aug2uag's user avatar
  • 3,379
1 vote
1 answer
374 views

Nitrogen Server

I would like to know which server is the best to use for the Nitrogen Web Framework? Of the 5 listed on the site, I have already removed Inets(not recommended for production) and WebMachine. Left with ...
samaras's user avatar
  • 235
2 votes
2 answers
262 views

Retrieving #dropdown selection in nitrogen framework

I'm using the erlang nitrogen web framework to develop an application. I must be missing something really simple, but I cannot figure out how to retrieve the selection made by a #dropbox element. It ...
redrover's user avatar
0 votes
1 answer
194 views

Usage of audio and video tag in Nitrogen

Still working on my personal web server, I was trying to use the html5 audio and video tags within Nitrogen. As there is no #audio nor #video records, I decided to insert html text directly in the ...
Pascal's user avatar
  • 14k
1 vote
1 answer
313 views

How to manage several users in nitrogen/inets erlang

I am building a simple web site for my family usage, using Nitrogen/Inets. The current version works as expected as long as I have a single client connected to the web server. If I try to connect a ...
Pascal's user avatar
  • 14k
2 votes
1 answer
191 views

Setting content header for file download in Nitrogen webserver

I am dynamically generating a file on Nitrogen Webserver and want the browser to show the name of file in download dialog. Currently I am setting something like this - wf:content_type("application/...
spkhaira's user avatar
  • 821
1 vote
1 answer
187 views

I cannot access to nitrogen/inets server from any machine but the localhost

Thanks to many discussions in this forum, I found that I should be able to build the application I was planning to do for home usage based on Nitrogen. So I ran into Nitrogen tutorials, Demo and docs,...
Pascal's user avatar
  • 14k
2 votes
1 answer
449 views

How to call an erlang function in nitrogen?

-module (blah). -compile(export_all). -include_lib("nitrogen_core/include/wf.hrl"). main() -> #template { file="./site/templates/bare.html" }. title() -> "Welcome to Nitrogen". body() -> #...
Perroquiet's user avatar
1 vote
2 answers
412 views

How to get full URL of a page with Nitrogen?

I want to make certain pages of my site available only by https. I think it would be ok to recognize protocol right in the page.erl and then redirect to the right URL. Something like case Protocol of ...
akalenuk's user avatar
  • 3,815