Bidding agent using node.js for RTBkit - node.js

With the RTBkit real-time-bidding kit for advertising, you can write your own agents in C++. But it also says you can write agents in node.js.
How would you do this?

A wiki page describes exactly what you are trying to do. Did you try to follow the explanations ?
RTBKit also contains an example of a bidding agent written in Node.js. I think that both the wiki page and the example should be a good start and you should quickly be able to write your bidding agent in Node.js
Finally, note that RTBKit has a public mailiing list for all the questions you could have. The list is quite active and the questions generaly find a fast answer. That might also help you if you start playing with RTBKit.
Enjoy !

Related

Suggestion on how to build a Node js book assignment application?

I have used little Node js/Node express and would like to discuss to you all of the proposed project I am working on. I am working on an application where users can add, remove and modify books (they have a title, category, an intended due date and completion date to be done by). This is a very broad question I know but do any of you know any tutorial, downloadable code that you think could be useful? Or any topics in node I should look at? Sorry as I have not used Node and would like to ask you some experts on this software before carrying out.
Thanks
This https://codeburst.io/writing-a-crud-app-with-node-js-and-mongodb-e0827cbbdafb will help you build a simple NodeJs app that can do what you want

Learning Netsuite

I am starting to learn Netsuite, since that is required for our New project.
I am completely new to it. Currently I am working on PHP.
As suggested by my manager I created the developer account on it. But I have no Idea about It. So if someone can spare to answer my below questions than I will be very greatful.
Do i need to learn JavaScript for that?
Is here any other technology that will be needed ?
Are there any free webresources that can give me the insight on this?
How long will it take to learn netsuite once My javascript is done?
Thanks in advance.
Glad
Yes you'll need Javascript. The entire API of NetSuite is written in Javascript. If you get the basics of if statements, for loops and understand how objects and functions work, its a pretty good foundation to start with.
That really depends on what you want to achieve. NetSuite's API will allow you to integrate to other platforms, APIs etc using a range of different things. This one is more a "what do you want" type question.
The UserGroup for NetSuite is a good place to start. That is free. The documentation help has examples which will get you started. I'd start small and then go from there. Ie. How do I get a field value? Read, Develop, Test. Then move on to "How do I set a value" Read, Develop, Test etc etc. You'll learn more and you'll be a better developer for it.
I've been coding in NetSuite for over 7 years for a range of clients. Fair to say you never "learn" NetSuite. It continues to evolve and you evolve with it.
Hope this helps.
Welcome to Netsuite family !! You may want to explore some basic about Netsuite. I would recommend to explore the NS help center as you gotten with a DEV account. Start with simple things and then move on to advance i.e APIs and integration level.
Responding to your quires :
(1) Do i need to learn JavaScript for that?
As you have mentioned you're coding ground is PHP, I guess you already have minimum expose to javascript and some functional programming. You dont need to be an expert to startup with. If you're completely noob to coding then you may want to explore some baics here to start with javascript.
(2) Is here any other technology that will be needed ?
I would say it much depends on your business needs. Netsuite supports both Rest & SOAP based access. For Rest access you need to know javascript as the API's are completely build upon on Suitescripts (NS dependent javascript) and for SOAP based access you can use either JAVA,.NET or PHP.
(3) Are there any free webresources that can give me the insight on this?
The very obvious place is the NS help center where you can explore more in details.You also may request for a membership in NS user group here.
(4) How long will it take to learn netsuite once My javascript is done?
Netsuite is not only limited to javascript or any specific programming. There are alot of things you need to lean apart from javascript. Remeber Learning never exhausts the mind !! ;)
Cheers!
Happy Learning.. :)
Yes you need only basic information about javascript. We are using here suitescript language. you are already familier with programming so it will not be difficult for you.
For integration purpose you may be need.
May be.
It will take hardly 1 month. First you learn manual , later you start coding. It will helpful for you.
Here are the answers to your fairly vague questions:
Yes
Yes
Probably
1 month - 10 years
Should you require more granular answers please provide me with further details.

Create a REST-ful api in Node.js for notifications

I'm a newbie in Node.js and after doing initial learning on Node.js, I find it rather confusing to find out any best practices. My project requires to build a real-time notification system such that, when something happens at the server side or any of the connected clients, a notification can pop up at all connected clients. I couldn't find any official recommendations on what's the best approach and tools to take. I saw there are various frameworks written in Node.js seem able to do the job, but I'm hoping some one can give me some direction.
Thank you in advance.
Start with Angularfire if you want to code less.
You can create real-time apps without a backend part like so: https://github.com/tastejs/todomvc/blob/master/examples/firebase-angular/js/app.js
Note, this is a Q&A site. Ask a question next time. "Please direct me" is not allowed to ask here.

how stable is AirBnB node.js rendr?

I wanted to know if anyone has been using AirBnB Rendr and is it stable and ok to use in commercial projects or is it still changing a lot?
I'm developing a website which can run both client and server based, this mean I need to be able to render pages and widgets server and client based.
The server is running Node.js, dust.js and has custom server based code to render the pages and widgets on the server side. I need to pick how to handle it on the client side.
Naturally I want to try and not repeat code, but obviously the client is different I can:
Keep my current page based server rendering and develop custom
client side code.
Use backbone.js on client side and keep my server based code the
same.
Use AirBnB rendr that is based on Node.js and backbone to use the
same code on client and o server. AirBnB Rendr Library
I like the 3rd idea very much, but I'm looking for some input from you guys.
Has anyone used it? any experience with it in terms of stability and/or how often their api changes etc?
I've just started playing around with Rendr. If I ignore the learning curve and oboarding friction, I like it a lot and I plan to write my next large production app using Rendr.
Unfortunately, as bababa listed above, the documentation needs a lot of work. There is an explanation of how Rendr works in its README and the example app's README but beyond that you'll need to source dive in order to figure out how the gears are turning. Currently, there is no forum for questions (other than stack overflow :D) and I've had a hard time figuring out its idioms on my own.
Despite all the struggles, I finally see the light and I'm starting to understand why Rendr is so powerful.
tl;dr - If you're willing to source dive and figure out your own workflow, I would suggest using Rendr. Otherwise, I would recommend going old school by writing a traditional client app with a more mature library. (is it too early to say that? =X)
Well given AirBnb is a successful commercial enterprise, there's some validation that the library works well enough for them. This question is probably best answered by watching their github commit log for breaking changes. Given backbone is 1.0 and essentially stable at this point, rendr will probably quickly stabilize, but honestly your fear of instability is probably unjustified. I think rendr looks compelling and although my current project is using a very similar home-grown solution, I would consider using rendr in a future project or even porting our code to rendr. "Stability" per say is much less important to the web development community compared to other situations like packaged or embedded software.
I used (tried to use) and Rendr on a project and gave up. There are just to many limitations (currently) and the lack of documentation doesn't help. I ended up need to rewrite the source code to accomplish some things I would consider trivial with other frameworks, such as passing multiple collections to a view. It just wasn't possible (at the time I used it) and that was a deal breaker. Not being able to pass a collection of categories and results to a page was to much of a limitation.
I have no doubt it will eventually be ready for production use, but right now I would say unless you are an engineer at AirBnb and know how to hack the source then no, it's not ready.
If you really want to know if it will work for your needs, take a look at the issue list on github. That will give you a good idea where the projects at.

Are there any building blocks for a search engine that will scrape other sites?

I want build a search service for one particular thing. The data is freely available out there, via free classified services, and a host of other sites.
Are there any building blocks, e.g. open-source crawlers that I would customize - rather than build from scratch, that I can use?
Any advice on building such a product? Not just technical, but any privacy/legal things that I might need to take into consideration.
E.g. do I need to 'give credit' where the results are from and put a link to the original - if I get them from many places?
Edit: By the way, I am using GWT with JS for the front-end, haven't decided on the language for the back-end. Either PHP or Python. Thoughts?
There are few blocks in python you can use.
beautifulsoup [http://www.crummy.com/software/BeautifulSoup/] for parsing HTML. It can handle bad code too, and its API is veeery easy... way better than any DOM-like tool for me. My friend used it to scrape his old phpbb forum with success. It has pretty good docs.
mechanize [http://wwwsearch.sourceforge.net/mechanize/] is a webbrowser-simulating http client library. It handles cookies, filling forms and so on. Also easy to use, but it helps if you understand how does http work.
http://dev.scrapy.org/ -- this is a relatively new thing: a whole scraping framework based on twisted. I haven't played with it much.
I use first two for my needs; f.e. it needs 20 lines of code to get an automatic testing tool for a 3-stage poll, with simulation of waiting for user entering data and so on.
I made a screen-scraper in Ruby that took like five minutes. Apparently this dude has it down to 60 seconds! I'm not sure if Ruby is as scalable or fast as what you're looking for, but I've never seen a faster route to a proof-of-concept or a prototype.
The secret is a library called "hpricot", which was built for exactly this purpose.
I don't know anything about PHP or Python or what's available for those development systems/languages.
Good luck!

Resources