Re: [nodejs] NodeJS clustering

2015-09-02 Thread 'Kevin Ingwersen (Ingwie Phoenix)' via nodejs
Hello Dirk, I dont want to sound rude, but you provided rather little detail, leaving us with barely anything to work with. I myself have had clustering issues, and there are a variety of things you can do - spreading from using RPC methods like hprose over to using a cluster solution like

[nodejs] Data cache and lifetime

2015-07-14 Thread 'Kevin Ingwersen (Ingwie Phoenix)' via nodejs
hey. I want to implement a cache server that starts empty but can restore itself after an exit from a JSON database. The principe of doing that seems simple, but there is just one problem: the time-to-live parameter. How can I best introduce a time-to-live, aka. time till the entry gets purged

[nodejs] Convert a multidimensional object to environment variables

2015-07-04 Thread 'Kevin Ingwersen (Ingwie Phoenix)' via nodejs
Imagine you are going to run a sub-process that does not understand JSON for some reason and your configuration has ultiple levels. So what do we do? Imagine this: { foo: 1, bar: 2 banker: { name: someName } } Now I would want this to become:

[nodejs] Advice on syntax highlighting

2015-06-27 Thread 'Kevin Ingwersen (Ingwie Phoenix)' via nodejs
Hey there. I have gotten myself into a situation where I am likely better off asking for help. Currently I am working on a site, that here and there shows code blocks and also has a chat in which one can write code blocks. The whole user input is in markdown and rendered through the backend.

Re: [nodejs] Trying to use PHP and NodeJS together to develop an application

2015-06-25 Thread 'Kevin Ingwersen (Ingwie Phoenix)' via nodejs
On Do. Juni 25 2015 18:51:04 Harishanker V wrote: I'm trying to develop a web application using PHP and NodeJS (for Server communication) with MySQL database. After some research I found some cross-language services like DNODE and Apache Thirft but with not much success. I do not want to

[nodejs] Express middleware to introduce proper cache headers

2015-06-18 Thread 'Kevin Ingwersen (Ingwie Phoenix)' via nodejs
Hey there, guys! I am struggling, trying to get caching right on my server. I currently use the „st“ module for serving static files to my client. But now I want to add the correct headers to it. The thing is, that when using ETag headers, the client always does a verification request… and

[nodejs] Create a webfont

2015-05-17 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. Is there a tool to convert a bunch of SVG’s into a proper CSS plus fonts? It would be awesome if that could be automated… Kind regards, Ingwie! -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules:

[nodejs] Strip code

2015-05-15 Thread Kevin Ingwersen
Hey. When working with C++ stuff, I usually see myself running the stirp over the resulting binary to press down the filesize on a Release target. However, there seems to be no such thing for JavaScript. What I am actually wanting to do, is to shrink jQuery. It has tons, and tons, and tons of

[nodejs] Webfont generator

2015-05-12 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. While reducing the size of my CSS and JS that is served, I realized that I really was having more Font Awesome icons in stock than I ever needed. Turns out that I was only using 7% of their icons. So I decided that I wanted to make my own WebFont. …but how to automate it? Especially

[nodejs] Optimizers for CSS, in a PHP environment with NodeJS backend?

2015-05-07 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. I am working with WebPack and have written a successful NodeJS-PHP bridge. Using WebPack, I prepare my assets for the web. By now, I am very well served with my javaScript. Still looking to get it a hundred KB (uglyfied). It currently, due to jQuery, stands at 178 kb. But my CSS on the

[nodejs] Socket.io client alternative

2015-05-03 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. Have you noticed, that - uncompressed - socket.io-client is pretty huge, actually? It almost competes with jQuery. That is why I would like to know if there is a thinner alternative to the „original“ client? Kind regards, Ingwie. -- Job board: http://jobs.nodejs.org/ New group rules:

Re: [nodejs] Storing module and exports in C++ module

2015-04-27 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. Have you considered getting „this“ from the „args“ parameter? This would allow you to store callbacks in the local module. That is how I handled the issue of storing a void* in the current instance. It is ages ago that I coded with v8, but I think what you want is this: LocalObject

[nodejs] Avoid duplicate logging

2015-04-21 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. So I have a variety of cluster workers…and when they boot, they do a bit of logging. But how do I avoid that? Like, is there a way to explicitly omit log entries when there is a duplicate? I am using the winston logger with file and console transport enabled. Kind regards, Ingwie --

[nodejs] [ANN] PowerHouse 0.1

2015-04-20 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey everyone! This is my first release to this mailing list - so hopefully I get this right. =) I’d like to present to you PowerHouse, a NodeJS module that enhances scaling across processes in an easy fashion, that does not require a cli program or much of a restructure in your app. In fact,

[nodejs] Socket.io, express and sticky sessions. How to...

2015-04-16 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey everyone. If you peered into the list, you may saw that I was asking for help ins caling my app. And I got that one working just as I wanted; using „various-cluster“ for a pretty neat way to spawn multiple workers of specific scripts. That one is pretty neat. I use a Frontent-Worker that

Re: [nodejs] NodeJS Developer Smackdown

2015-04-16 Thread Kevin Ingwersen (Ingwie Phoenix)
I love the idea of this! I was always by the opinion that there wasnt anything „on internet’s TV“ for developers except for various speeches and talks and such…but this is gonna be interesting! Though, I am a very young developer (7 years, self-taught), so I am not sure if i should participate

Re: [nodejs] socket.io on clusters: broadcasting to all sockets...

2015-04-11 Thread Kevin Ingwersen (Ingwie Phoenix)
/docs/using-multiple-nodes/#passing-events-between-nodes — @rauchg https://twitter.com/rauchg On Sat, Apr 11, 2015 at 10:36 AM Kevin Ingwersen (Ingwie Phoenix) ingwie2...@googlemail.com mailto:ingwie2...@googlemail.com wrote: Hey. So now that I have a plan for scaling my Express app, I am

[nodejs] socket.io on clusters: broadcasting to all sockets...

2015-04-11 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. So now that I have a plan for scaling my Express app, I am likely going to give my Socket.io service the same treat. But there is a little bit of a concern I have. Say I have 2 workers for a chat service. A good way to promote that a user logged in is to broadcast to all sockets

[nodejs] Question: fork-in-fork

2015-04-11 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. Imagine you have the following structure: main * http worker#1 * http worker#2 * api worker#1 This is a structure that can easily be done with the cluster module. But what if we have one major watchdog process and the structure changes to this? watchdog - http server * worker#1

Re: [nodejs] Distribute Express app across servers

2015-04-10 Thread Kevin Ingwersen (Ingwie Phoenix)
On Fr. Apr. 10 2015 21:24:31 Aria Stewart wrote: On Friday, April 10, 2015 at 3:20:24 PM UTC-4, Ingwie Phoenix wrote: Step 2: use the cluster module. That's exactly what it's for. It's better designed in iojs and node 0.12 than node 0.10, but the general idea is the same. Do I listen on

Re: [nodejs] Re: Nodejs written in Rust?

2015-04-03 Thread Kevin Ingwersen (Ingwie Phoenix)
On Sa. Apr. 04 2015 02:24:14 Aria Stewart wrote: On Friday, April 3, 2015 at 8:14:31 PM UTC-4, Johnin wrote: If considering reimplement Nodejs with Rust will definitely see significant performance improvement and lower memory usage, our javascript will be improve much better.

Re: [nodejs] Caching with Connect/Express

2015-03-31 Thread Kevin Ingwersen (Ingwie Phoenix)
/en/docs/http/websocket.html -- Daniel R. dani...@neophi.com mailto:dani...@neophi.com [http://danielr.neophi.com/ http://danielr.neophi.com/] On Sat, Mar 28, 2015 at 10:46 PM, Kevin Ingwersen (Ingwie Phoenix) ingwie2...@googlemail.com mailto:ingwie2...@googlemail.com wrote: I am using

[nodejs] Wait for a file upload to finish (Connect/Express)

2015-03-29 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey. I would like to wait for a file upload to finish before I do anything with it. How is that done best? Kind regards, Ingwie -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules:

Re: [nodejs] Caching with Connect/Express

2015-03-28 Thread Kevin Ingwersen (Ingwie Phoenix)
that handle all of the caching logic. Varnish Cache and NGINX Content Caching are popular options. -- Daniel R. dani...@neophi.com mailto:dani...@neophi.com [http://danielr.neophi.com/ http://danielr.neophi.com/] On Fri, Mar 27, 2015 at 9:15 AM, Kevin Ingwersen (Ingwie Phoenix) ingwie2

[nodejs] Caching with Connect/Express

2015-03-27 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey everyone! My current project is based on using Express - or connect, still trying out which is better… - and serves a good amount of static files that are likely to not change in a long time during production. But the current cache-hell that I have is pretty … ugly. I mean, just look at

Re: [nodejs] Node.js interpreter as a C/C++ library

2015-02-15 Thread Kevin Ingwersen (Ingwie Phoenix)
NodeJS is based on the v8 JavaScript engine - thus, it is ment to be a standalone app…so embedding it is not a goal you can reach. NodeJS’ core logic relies on being the „one and only“ part of the app - initializing an uv event loop and v8 instance for the process. There is no such way of

Re: [nodejs] v8pp, a header only library for C++ code binding into V8 JavaScript engine

2015-02-06 Thread Kevin Ingwersen (Ingwie Phoenix)
This is a very nice library! I think I know where I’ll use it. It’s ability to add require() to a v8 context is very useful. Am 06.02.2015 um 07:58 schrieb Pavel Medvedev pmedve...@gmail.com: Hi there, I have updated a new version of v8pp, a library to make bindings from C++ code into V8

[nodejs] Connect: Routing

2015-01-21 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey folks. I am trying to work out my way aorund a tiny routing issue I have. There are three major modules: API, CDN and Main. I want to map them as follows: main = / cdn = /cdn api = /api So anything that goes to /api/* is handled by the API part, for instance. But all that is called is the

[nodejs] Make a middleware based system for non-HTTP stuff

2015-01-15 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey everyone. Within my app, I have a global event object, so that all components of the app can talk to one another. However, I have linked it to Redis - so I can not use complex data when turning it into JSON. So I decided, that for pure internal use, i’d add a sub-object that runs on

Re: [nodejs] Optimize images

2015-01-15 Thread Kevin Ingwersen (Ingwie Phoenix)
Thanks for both your replies! In the end I went with imagemin. its very easy to use and is easily put into a middleware. You may have to change this around and about, but here is how I implemented a caching, minifying middleware: CDN.use(/cdn, function(req, res, next){ var

Re: [nodejs] Optimize images

2015-01-15 Thread Kevin Ingwersen (Ingwie Phoenix)
I was thinking of implementing this hybrid. There is a webp middleware that actually figures out if the browser supports it or not and delivers a converted image accordingly. That’d actually work - but is there such a middleware for BPG? Am 15.01.2015 um 21:39 schrieb Ryan Schmidt

[nodejs] Optimize images

2015-01-14 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey everyone. I am currently working on reducing the amount of data sent from my connect based HTTP server to my client. So far I am very proud that 9/10 of my site is cache-able, plus some PHP pages (used trough a fast-cgi connection) being able to re-cache themselves if possible. This means

Re: [nodejs] My fcgi wrapper is giving me a hard one...

2015-01-13 Thread Kevin Ingwersen (Ingwie Phoenix)
Am 13.01.2015 um 23:36 schrieb Ryan Schmidt google-2...@ryandesign.com: On Jan 12, 2015, at 6:10 PM, Kevin Ingwersen wrote: I had forked a project that promised to let me run PHP scripts trough fcgi and did slight modifications to it so it would work properly with the Yii framework

[nodejs] Please tell me this is no longer valid?!

2015-01-13 Thread Kevin Ingwersen (Ingwie Phoenix)
So while working on a FCGI thing, I came across a very, very weird if statement: try { var parsed = htparser.execute(buffer, start, len); console.log(- Parsed message:,parsed);

[nodejs] My fcgi wrapper is giving me a hard one...

2015-01-12 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey everyone. I had forked a project that promised to let me run PHP scripts trough fcgi and did slight modifications to it so it would work properly with the Yii framework. But now I just tried to print an image verbatim - changing the content type and and adding Content-length to the

Re: [nodejs] Re: Data Model Definition Standard in JavaScript/Node

2015-01-10 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey Prabhash! Using functions to return objects tends to be known as „generators“ or „factories“. You could also call it a pseudo-constructor. This method is used to create more dynamic objects. Imagine you had this data model that could pick up information off some kind of configuration file

[nodejs] Licensing

2014-11-20 Thread Kevin Ingwersen (Ingwie Phoenix)
Okay, so let’s say I have coded a bunch of modules for a private site and I opensource them on my website, but do NOT want them to be used anywhere else without my permission. What license would be good? o.o -- Job board: http://jobs.nodejs.org/ New group rules:

Re: [nodejs] Preprocess Javascript on-the-fly

2014-11-04 Thread Kevin Ingwersen (Ingwie Phoenix)
Here you have it: https://github.com/IngwiePhoenix/connect-oj/blob/master/pp.js https://github.com/IngwiePhoenix/connect-oj/blob/master/pp.js You can copy it, put it in your project and use it. Its simple and pretty cool. :) It does not just work with JS, but really everything. I am using it to

Re: [nodejs] [ann] Bolty - binary javascript object serializer

2014-11-04 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey there. This sounds like an interesting project. Did you make bindings for other scripting languages - mainly PHP - too? I am just looking for a smaller soltuion than JSON… o.o Kind regards, Ingwie Am 04.11.2014 um 16:59 schrieb Alan Hoffmeister alanhoffmeis...@gmail.com: Hello guys,

Re: [nodejs] [ann] Bolty - binary javascript object serializer

2014-11-04 Thread Kevin Ingwersen (Ingwie Phoenix)
I dont like the idea to compile a module just to use two functions, so I am looking for a flat - scripted - alternative instead. Am 04.11.2014 um 17:15 schrieb Alex Kocharin a...@kocharin.ru: I thought we had BSON for this purpose already. 04.11.2014, 19:11, Alan Hoffmeister

[nodejs] [ann] connect-oj: Compile OJ into JS on the fly

2014-11-04 Thread Kevin Ingwersen (Ingwie Phoenix)
Hey everyone. Just today, I published a small connect middleware, that allows you to urilize OJ - an alternative to objective-j - on the fly. The work on this project has caused OJ itself to update its API, making it easier to use. I just put it onto NPM, but you can also find it here

[nodejs] Pipeing stuff to a child process

2014-10-31 Thread Kevin Ingwersen (Ingwie Phoenix)
So, all unix users know this: cat myfile | ./someProg someProg assumes its data to come to STDIN and wouldn’t take other arguments. But, how do we do that in NodeJS? Imagine we have the contents of myfile and just want to spawn a child process of someProg…but then? How do I feed it the

Re: [nodejs] Preprocess Javascript on-the-fly

2014-10-29 Thread Kevin Ingwersen (Ingwie Phoenix)
://profiles.google.com/jsoverson | li http://jarrodoverson.com/linkedin On Tue, Oct 28, 2014 at 3:19 AM, Kevin Ingwersen (Ingwie Phoenix) ingwie2...@googlemail.com mailto:ingwie2...@googlemail.com wrote: I am currently looking into using oj, a Objective-C like syntax for JS. Why I didn’t

Re: [nodejs] Preprocess Javascript on-the-fly

2014-10-29 Thread Kevin Ingwersen (Ingwie Phoenix)
That is a very impressive example - i wonder why thsi method is not its own module anyway =p I will try and test this! Thank you a lot for this solution. I never saw any ude for the vm module…well, now I do. Am 28.10.2014 um 20:13 schrieb Axel Kittenberger axk...@gmail.com: Why not use the

[nodejs] Preprocess Javascript on-the-fly

2014-10-28 Thread Kevin Ingwersen (Ingwie Phoenix)
I am currently looking into using oj, a Objective-C like syntax for JS. Why I didn’t use Objective-J? Its not nodejs-friendly. But oj lacks a preprocessor…but I need one. Actually, I only need one thing: #include. I went and browsed npm, but I only found one preprocessor, but it required

Re: [nodejs] Adding modules to node.js on Android

2014-05-22 Thread Kevin Ingwersen
Am 22.05.2014 um 17:51 schrieb Aria Stewart aredri...@nbtsc.org: On May 22, 02014, at 10:04, Ingo Albers pjotrpan...@gmail.com wrote: For a new project I need some modules (serialport, socket.io, express) but I can't use npm on my device. I tried building the modules on an ARM QEMU but

Re: [nodejs] onload?

2014-05-19 Thread Kevin Ingwersen
Hey. No, there is no such event in nodejs. But there are libraries that offer such functionality, as far as I am aware. But, I would suggest something like this. var myModule = require(...); function initialize() { // put some code here } (function(){ initialize(); // do

[nodejs] Whats @ used for?

2014-05-19 Thread Kevin Ingwersen
Hey. Short question; what is the @ operator used for in JS? in PHP, its the silence errors operator. Kind regards, Ingwie. -- Yo Dawg, I heard you like C++, so I added C++ to your build system, so you have to compile before you compile. -StackOverflow, Matt Joiner (

Re: [nodejs] Whats @ used for?

2014-05-19 Thread Kevin Ingwersen
() { this.@privy = true; this._privy = false } var foo = new Foo(); foo; { _privy: false } -- no access to @privy property Rick On Mon, May 19, 2014 at 4:09 AM, Kevin Ingwersen ingwie2...@googlemail.com wrote: Hey. Short question; what is the @ operator used for in JS? in PHP

Re: [nodejs] Need help converting a makefile into a gyp file (raspberry pi camera)

2014-05-12 Thread Kevin Ingwersen
, but the path of the header files are not resolved correctly. El viernes, 9 de mayo de 2014 17:16:27 UTC+2, Kevin Ingwersen escribió: Hey! In a target, you may also specify the key include_dirs. Its a list. So just look at the example here: https://github.com/Deskshell-Core/node-ph7/blob

[nodejs] Atom Shell's node library.

2014-05-07 Thread Kevin Ingwersen
Now, there it is. Atom Shell was open sourced a while ago and I roamed around in its code. Apearently it directly targets a node_lib target within node.gyp. I have not checked the current version of Node's gyp file, but I think now its actually time to offer an embedding API. Why? Because even

Re: [nodejs] v8 Uint32Value performance

2014-04-30 Thread Kevin Ingwersen
Am 30.04.2014 um 15:51 schrieb Kees k keeskwekkeb...@gmail.com: I get an error with v8: '3.11.10.25': FATAL ERROR: v8::Object::SetIndexedPropertiesToExternalArrayData() JSArray is not supported Now I am trying this option: GetPointerFromInternalField (int index) Isn't that function

[nodejs] (C++/libuv v8 bindings) Are the native fs bindings bound to an actual uv_default_loop?

2014-04-30 Thread Kevin Ingwersen
Hey! I just realized something as I was working on a concept for an embeddable nodejs API. Most of the uv_*() functions are bound to a message loop. At least, the types obviously are, like uv_idle_t and such. But what about the fs bindings - are they bound to be stuck into a uv_loop? That's

Re: [nodejs] Re: Error: Symbol myaddon_module not found

2014-04-29 Thread Kevin Ingwersen
1st: Spelling of the target_name and the NODE_MODULE name parameter must be idendical. 2nd: Include the .node file directly. Use a module like binding. 3nd: Make sure that your node_module.cc file is actually compiled and added. Showing your binding.gyp file, plus the init part of your module

Re: [nodejs] NodeJS Application Design Architecture

2014-04-27 Thread Kevin Ingwersen
CSharp? ... But there is only a real C++ binding. o.O Am 27.04.2014 um 10:10 schrieb Joseph Baiden joseph.baide...@gmail.com: Hi All, I have a work-related project to develop an application using NodeJS. This application needs to capture data and use wrapper classes developed in C# to

Re: [nodejs] Re: NodeJS Application Design Architecture

2014-04-27 Thread Kevin Ingwersen
How would you be able to interface HP AM? That is quite important. Do you use sockets, HTTP requests, actual C++ bindings? Am 27.04.2014 um 14:48 schrieb Joseph Baiden joseph.baide...@gmail.com: OK. Is there any way I can develop the application on Node.js to interact with HP AgileManager, so

[nodejs] License?

2014-04-25 Thread Kevin Ingwersen
Hey! I am currently working on an embedding API for nodejs that will go straight into my open source project. Thing is, I want to make sure I am not doing anything wrong! NodeJS and its dependencies - uv, http-parser, zlib, v8 is bundled in another library already - are bundled along other

Re: [nodejs] Error on installing Zombie package in nodejs

2014-04-25 Thread Kevin Ingwersen
Am 26.04.2014 um 02:03 schrieb Ryan Schmidt google-2...@ryandesign.com: On Apr 25, 2014, at 00:28, Selvaraj Periyasame wrote: My requirements is to scrape the third party https websites by posting the details. Like clicking the button using nodejs. I found that client side event

Re: [nodejs] Execution Order

2014-04-25 Thread Kevin Ingwersen
Because the code with B) is a callback. Its first added to the stack of execution and ran later, which is why variables go out of scope in these cases. So the code that is not in a callback is ran first, when there is some CPU time free - i think it was that factor - then the callback is ran.

Re: [nodejs] Instantiate an object in a subfolder

2014-04-20 Thread Kevin Ingwersen
Have you tried to use __dirname to get the current, full path, working directory? Or just use relativep aths to the file from where you do the instance. Am Mo. Apr. 21 2014 01:43:25 schrieb Alejandro Paciotti: I am structuring my node.js application with express as follows: myApp - app

Re: [nodejs] @indutny :: Well done! #heartbleed

2014-04-19 Thread Kevin Ingwersen
Wow! Congratz dude ^___^ I was just learning how this exploit worked, for educational purpose, as I never had experience with exploits. Congratulations again! Am Sa. Apr. 19 2014 21:57:39 schrieb Glenn Block: No doubt! On Wed, Apr 16, 2014 at 10:41 AM, Mikeal Rogers

Re: [nodejs] Insanely basic question... but I can't find the basic answer...

2014-04-18 Thread Kevin Ingwersen
Hey! Oh yes, you got that one right. In my cases, I just have a folder containing my stuff, or app. Let's take an example, for a WebSockets server... ChatSock |- main.js |- lib/other.js |- node_modules |- socket.io |- someOtherStuff the node_modules within your app/project directory is

Re: [nodejs] nar: node.js application archive

2014-04-17 Thread Kevin Ingwersen
No. Nexe builds executables, whilst nar is like jar or phar (java archive, php archive). I like the project, very nice. :3 Am Do. Apr. 17 2014 21:08:49 schrieb Alex Kocharin: Isn't it something nexe is doing already? 17.04.2014, 22:02, Tomas Aparicio to...@aparicio.me: Hi everyone!

[nodejs] Removing duplicates in Plist file

2014-04-15 Thread Kevin Ingwersen
Hey everyone! I am sitting here, importing music across from my laptop to my homeserver, using iTunes. But when I got the songs from a friend, they accidentially got imported as duplicates... So now I have things like this in my plist: TrackID: { Name: This Song

Re: [nodejs] Re: node.lib

2014-04-14 Thread Kevin Ingwersen
Good to know this one! :) Always good to read about the differences of unix and win32 stuff. :) Am Mo. Apr. 14 2014 17:14:14 schrieb mscdex: On Monday, April 14, 2014 10:32:25 AM UTC-4, Pawel Por wrote: I can see that node.lib exists in Windows installation and does not exist in Linux one.

Re: [nodejs] C++ addons and scope / context

2014-04-11 Thread Kevin Ingwersen
avril 2014 19:22:44 UTC+2, Kevin Ingwersen a écrit : Well, what are you expecting in an empty this object? XD You have nothing assigned to it! Therefore, it will stay empty. Again, check the v8 docs and look for v8::Script, which esentialy is what oyu want; it lets you run arbitary JS code

Re: [nodejs] C++ addons and scope / context

2014-04-10 Thread Kevin Ingwersen
I dont get what you are trying to do? So you want to call a function that prints contents of the global object? Besides, you shouldn't need to create a v8::Function for eval, instead, look into v8::Script. There is most probably an existing eval-like function. Am Do. Apr. 10 2014 15:24:56

Re: [nodejs] C++ addons and scope / context

2014-04-10 Thread Kevin Ingwersen
to execute arbitrary JS code from C++. I've an idea for a potential project. But understand things is necessary. Le jeudi 10 avril 2014 15:33:14 UTC+2, Kevin Ingwersen a écrit : I dont get what you are trying to do? So you want to call a function that prints contents of the global object

[nodejs] Audio stream thru nodejs?

2014-04-09 Thread Kevin Ingwersen
Hey! I do some DJing at some time and I enjoy sharing that on a little stream. But on a random thought, I wondered if it would, theoreticaly, be possible to stream an MP3 stream to nodejs, and have clients listen to that very stream? I.e. thru a browser's audio tag? Kind regards, Ingwie. --

Re: [nodejs] Audio stream thru nodejs?

2014-04-09 Thread Kevin Ingwersen
Thats plain awesome!! ^^ So I could replace my IceCast serveroo. Thanks for the response, that is gonna be awesome! Am Mi. Apr. 09 2014 21:23:46 schrieb Aria Stewart: On Apr 9, 02014, at 14:48, Kevin Ingwersen ingwie2...@googlemail.com wrote: Hey! I do some DJing at some time

Re: [nodejs] access git data

2014-03-30 Thread Kevin Ingwersen
He was obviously wanting to use some module to access a repo's data. There are some modules i can spot on nPM that could help: https://www.npmjs.org/package/git-wrapper2 https://www.npmjs.org/package/git-tools https://www.npmjs.org/package/js-git etc, etc~ Am 30.03.2014 um 17:28 schrieb Duy

Re: [nodejs] [ann] Bangkok Node.js Hackathon

2014-03-28 Thread Kevin Ingwersen
Wow, thats some awesome event...wish Germany had that o.o! Wish you all the best at that Hackathon!!! :D Am 28.03.2014 um 13:36 schrieb Thomas Watson t...@tws.name: Hi fellow node devs I recently moved to Bangkok from Denmark and would really much like meet other Node.js hackers here. To

Re: [nodejs] lode, a toolkit to bring C/C++ libraries to Node.js applications

2014-03-25 Thread Kevin Ingwersen
I just looked into it, and it looks interesting for one part: the IPC one. But otherwise, the API seems a bit confusing. Therefore, I have some questions: - How do we offer native functionality to a user? - How do we simply compile the module, and how is it properly used? - What can we do to

[nodejs] Threading the node-core.

2014-03-20 Thread Kevin Ingwersen
Hey there. I am working on a rather good-going idea, of modding the NodeJS core. Now, I want to create a nodejs instance, that should thread in the background. So I am just giving it a script, and letting it work all its way in the background. The idea is to embed nodejs with CEF, but letting

[nodejs] nodejs as a lib, stuck at builtins

2014-03-14 Thread Kevin Ingwersen
Hey there. I did post this on github, but I think I should post it here too - maybe some-random-guy knows an answer :) https://github.com/joyent/node/issues/7310 Summary: I have slightly changed the build, so nodejs itself builds as a library, and node_main.cc is later on added as an

Re: [nodejs] Contacting the actual devs

2014-03-12 Thread Kevin Ingwersen
, at 6:51 pm, Kevin Ingwersen ingwie2...@googlemail.com wrote: Hey guys. Is there a way that I could send a question directly at the nodejs developers? I asked twice for something rather deep about nodejs, but got no help here, so I was tempted to mail the devs directly. Is that possible

[nodejs] Contacting the actual devs

2014-03-11 Thread Kevin Ingwersen
Hey guys. Is there a way that I could send a question directly at the nodejs developers? I asked twice for something rather deep about nodejs, but got no help here, so I was tempted to mail the devs directly. Is that possible, and to which email do I send my question? Kind regards, Ingwie --

Re: [nodejs] How to append to global CAs, rather than replace them?

2014-03-06 Thread Kevin Ingwersen
Sounds to me like its an array/object, so try this: https.globalAgent.options.ca[] = lesserKnownCas; That will add an entry into the array. Am 07.03.2014 um 01:17 schrieb AJ ONeal coola...@gmail.com: So it turns out that when I do this https.globalAgent.options.ca = lesserKnownCas;

Re: [nodejs] How to append to global CAs, rather than replace them?

2014-03-06 Thread Kevin Ingwersen
I dont know what you actually mean by CA - but. https.globalAgent.options {} This comes up in the node REPL, and it clearly shows an empty object - there is no 'ca' entry. What would be the expected output here? (btw - node 0.10.24) Am 07.03.2014 um 02:07 schrieb AJ ONeal coola...@gmail.com:

[nodejs] Embedding Nodejs...in a different way.

2014-03-06 Thread Kevin Ingwersen
Hey! So, I have been poking and peeking aorund...most results were quite horrible. I mean, the project I am trying to do isnt going as good as I wanted. The CEF (Chromium Embedded Framework) integration I wanted to develop is making a lot of troubble. Mainly the fact that its behavior is sort

[nodejs] Re: Build nodejs with an alternative build system?

2014-03-05 Thread Kevin Ingwersen
posted the files I wrote up at https://gist.github.com/Acubed/9363269 Please let me know what you think. Austin Wright. On Saturday, March 1, 2014 10:42:57 PM UTC-7, Kevin Ingwersen wrote: Hey. I am thinking forth and back about an issue I have. When somebody on windows wants

Re: [nodejs] Re: Build nodejs with an alternative build system?

2014-03-05 Thread Kevin Ingwersen
, Kevin Ingwersen ingwie2...@googlemail.com wrote: Thats very cool! :) Why is it that V8 can barely built without Python? Its just a bunch of C++ sources - or what makes it difficult? I am currently trying to port nodejs + deps to a build system I am contributing to. Kind regards, Ingwie

[nodejs] Nodejs' main stuff on a non-main thread?

2014-03-01 Thread Kevin Ingwersen
Hey. Out of curiosity... I am playing with modding nodejs' source some, and I just wondered: What if I ran node::Start() on a non-main thread - like if I used pthread_create() and put a nodejs main stuff into a separate thread? How would that affect the program? Kind regards, Ingwie. -- --

[nodejs] Build nodejs with an alternative build system?

2014-03-01 Thread Kevin Ingwersen
Hey. I am thinking forth and back about an issue I have. When somebody on windows wants to build nodejs, they need python - and python is all but small (100mb, to build a 20kb file...haha). So I was wondering: is nodejs also build-able with an alternative build system? o.o Kind regards, Ingwie

Re: [nodejs] How to link an external library?

2014-02-25 Thread Kevin Ingwersen
The link_settings are applied to other targets depending on that target. You should: { name: my_cool_addon, sources: [...], libraries: [path/to/dll_or_lib], # ... } You won't really need link_settings within a nodejs extension, unless you build the lib and

Re: [nodejs] Module: how to pass variable ?

2014-02-25 Thread Kevin Ingwersen
Hey. Consider adding this to your module: module.exports.view = function... module.exports.Post={}; Now, you can modify the second Post variable with... var View = require(...); View.Post={dat:dude}; Should help. Otherwise, you may use the globals object - its global everywhere, and the same

Re: [nodejs] v0.12 Release

2014-02-23 Thread Kevin Ingwersen
Hey. I am using 0.11, because I urgently needed 3.22 v8 for a project. XD It works just as expected, I have not noticed any weird behavior, yet. Kind regards, Ingwie Am So. Feb. 23 2014 23:23:55 schrieb Fedor Indutny: Hello guys! Sorry for not responding early, I have pretty long backlog

Re: [nodejs] v0.12 Release

2014-02-22 Thread Kevin Ingwersen
As far as I can figure, they updated v8 to some 3.22 version. Which is good - brings new internal features, speed improvement, and such. But it also changes the native addon API some. Now, you have to take care of passing isolates into instantiations for things. But otherwise, things seem to be

[nodejs] Plans to make nodejs an embedable language?

2014-02-21 Thread Kevin Ingwersen
Hey. I just became curios about a little question. Since a while, I am using embedable scripting languages such as ph7 and ObjectScript, and in a recent project, I actually need to make things a lot more different. So, I am stuck on the CEF bindings, still. It turns out that the thread model I

Re: [nodejs] Running node.js code on apache server

2014-02-20 Thread Kevin Ingwersen
Look up Apache reverse proxy - that is how you map an apache request to your nodejs port. In my case, I am mapping a whole domain, so each request going to mydomain.com:80 is initially going to mydomain.com:8080 Am Do. Feb. 20 2014 14:01:07 schrieb gyanesh gouraw: How am i supposed to run my

[nodejs] Adding function to libuv

2014-02-20 Thread Kevin Ingwersen
Hey there. I need to add a function to libuv's event loop. It must be run each time in the stack, and once I do not want the function to run anymore, i need to be able to unplug the function. How can I archieve this? Kind regards, Ingwie. -- -- Job Board: http://jobs.nodejs.org/ Posting

Re: [nodejs] Adding function to libuv

2014-02-20 Thread Kevin Ingwersen
schrieb Fedor Indutny: Hi! You could use `uv_prepare_t`, or `uv_idle_t`, or `uv_check_t` depending on your needs. See https://github.com/joyent/libuv/blob/master/include/uv.h#L1253 for details. Cheers, Fedor. On Fri, Feb 21, 2014 at 12:56 AM, Kevin Ingwersen ingwie2...@googlemail.com

Re: [nodejs] Adding function to libuv

2014-02-20 Thread Kevin Ingwersen
And this won't cause any troubble with the already existing uv_loop? Am Do. Feb. 20 2014 23:12:45 schrieb Fedor Indutny: You could use `uv_default_loop()`. On Fri, Feb 21, 2014 at 1:49 AM, Kevin Ingwersen ingwie2...@googlemail.com wrote: Hey! Thanks for the fast answer - that appears

Re: [nodejs] Adding function to libuv

2014-02-20 Thread Kevin Ingwersen
. 20 2014 23:21:58 schrieb Fedor Indutny: This is exactly the loop that node.js runs on, it is using the only default one. On Fri, Feb 21, 2014 at 2:19 AM, Kevin Ingwersen ingwie2...@googlemail.com wrote: And this won't cause any troubble with the already existing uv_loop? Am Do. Feb. 20

Re: [nodejs] Adding function to libuv

2014-02-20 Thread Kevin Ingwersen
;) On Fri, Feb 21, 2014 at 2:29 AM, Kevin Ingwersen ingwie2...@googlemail.com wrote: That looks like it works! ^_^ Thanks for that hint. :) That basically fixed a big issue I had. Instead of threading, and letting a message loop circle around in a seperate thread, it now works in the same loop

Re: [nodejs] Why is node-gyp written in python?

2014-02-19 Thread Kevin Ingwersen
GYP's language is a giant python dictionary - very JSON like. Hence, you can use certain python expressions, for expanding variables and stuff. Thats why you cant use YAML. o.o Am Mi. Feb. 19 2014 13:34:59 schrieb Aria Stewart: On Feb 18, 2014 2:55 AM, Alex Kocharin a...@kocharin.ru wrote: Is

Re: [nodejs] Re: Colored stdout on Windows...?

2014-02-19 Thread Kevin Ingwersen
://www.npmjs.org/package/ansi-color (https://github.com/loopj/commonjs-ansi-color). I haven't tried that particular module, but a lot of others seem to use it, so it'll probably do the trick. Colors are fun! Jimb Esser On Friday, February 7, 2014 7:41:48 AM UTC-8, Kevin Ingwersen wrote

Re: [nodejs] Why is node-gyp written in python?

2014-02-19 Thread Kevin Ingwersen
to implement a full-bloated python interpreter in order to parse that file. Hmm... maybe pyjs or skulpt will do the job. 19.02.2014, 16:43, Kevin Ingwersen ingwie2...@googlemail.com: GYP's language is a giant python dictionary - very JSON like. Hence, you can use certain python

Re: [nodejs] Re: Colored stdout on Windows...?

2014-02-19 Thread Kevin Ingwersen
AM, Kevin Ingwersen ingwie2...@googlemail.com wrote: Not all the customers my project has will randomly happen to have a VBox around XD...sadly. I'll be trying the nodejs modules. o.o I thought I needed ANSICON in order to use Ansi colors in windows :o Am Mi. Feb. 19 2014 20:26:58 schrieb

Re: [nodejs] Why is node-gyp written in python?

2014-02-18 Thread Kevin Ingwersen
Am Di. Feb. 18 2014 00:36:13 schrieb Alex Kocharin: 16.02.2014, 14:12, Gagle gagle...@gmail.com: I mean, it's a very huge dependency. Node.js can be installed in any system with low resources. If python were a 5MB dependency, it's ok, but python also depends on sqlite. Don't you think that

  1   2   >