Questions tagged [nitrogen]

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

The Nitrogen Web Framework is for making rich web applications with an emphasis on AJAX and Comet, and uses full-stack Erlang, using the Erlang webserver of your choice: Inets, Mochiweb, Yaws, or Webmachine.

Created by Rusty Klophaus (@rustyio)

Resources:

Home page with demos and tutorials: http://www.nitrogenproject.com

Github: http://github.com/nitrogen

Google Groups: http://groups.google.com/group/nitrogenweb

IRC: irc.freenode.net // #nitrogen

Twitter: @nitrogenproject

88 questions
2
votes
3 answers

How to keep track of a process per browser window and access it at each event in Nitrogen?

In Nitrogen, the Erlang web framework, I have the following problem. I have a process that takes care of sending and receiving messages to another process that acts as a hub. This process acts as the comet process to receive the messages and update…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
2
votes
1 answer

What is the correct usage of the Nitrogen Auth API?

Just wanting to confirm the usage of the Nitrogen Authentication and Authorization API. The description of the API is: wf:user() -> User or 'undefined' Return the user value that was previously set by wf:user(User) wf:user(User) -> ok Set the user…
Jeremy Raymond
  • 5,817
  • 3
  • 31
  • 33
2
votes
1 answer

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 and it returned epmd: up and running on port 4369…
aug2uag
  • 3,379
  • 3
  • 32
  • 53
2
votes
2 answers

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 doesn't seem to get passed by the postback…
redrover
  • 21
  • 1
2
votes
1 answer

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/x-download") This enables the browser to ask for…
spkhaira
  • 821
  • 7
  • 18
2
votes
1 answer

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() -> #button { id=calcButton,…
Perroquiet
  • 177
  • 1
  • 2
  • 14
2
votes
1 answer

Mnesia Replication and Large Numbers of Dirty Operations

Some applications require really fast response, to meet their expectations to users. I am building one such application and i am using mnesia. Now, when we by-pass the mnesia transaction manager , we approach good performance. However, this is the…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
1
vote
1 answer

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,first_request, {url,"b_server/"}, {throw, …
1
vote
1 answer

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 their final destination directory. However, in case…
1
vote
1 answer

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}" timed out after 10 seconds. Something might be…
1
vote
1 answer

OTP14B02 configure error

I have tried to install OTP14B02 on OpenSolaris and i get the following error at calling ./configure: muzaaya@opensolaris:~/Desktop/software and data/otp_src_R14B02# ./configure Ignoring the --cache-file argument since it can cause the system to…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
1
vote
1 answer

Confused about Nitrogen listen IP address

Am running Nitrogen 2.0.X on Windows 7 Home Premium, HP Pavilion Entertainment PC Laptop. Nitrogen starts with inets and i have failed to change or dictate the IP address of the webserver. Once it starts, it tells me to go to my browser and hit…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
1
vote
1 answer

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 command: make…
Bucephalus
  • 291
  • 1
  • 2
  • 9
1
vote
2 answers

Starting nitrogen (erlang)

I need some help starting nitrogen 2.1 This document (http:// nitrogenproject.com/doc/index.html) tells me to run ./deps/get_mochiweb.sh - but the deps folder contains no such script ls ../../deps nitrogen_core nprocreg simple_bridge sync These…
Bente
  • 11
  • 2
1
vote
2 answers

How to route translated URLs to a module with nitrogen

I used to develop in English, but this time, the webApp i'm building is only for people in my city, which is in France. In nitrogen, when you call "/user/login", nitrogen calls user_login:main(). I would like nitrogen to call user_login:main() when…
niahoo
  • 11
  • 2