Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sahat Yalkabov
    @sahat
    @uptownhr @niallobrien I recently worked on a project where all components were organized "by feature" and each component's JS file was named index.js. Sure it makes "require/import" really clean, but oh wow what a pain it was to switch between these files inside IDE when all files are named index.js.
    agaez code
    @agaezcode
    @sahat I recently post this question on stackoverflow on how to save reference of multiple images to database. Can you explain/understand what I am doing wrong on that code? Thank you
    Sahat Yalkabov
    @sahat
    @agaezcode I am not familiar with that jQuery file upload plugin or multi file uploads, but it looks like it's POSTing for each image separately?
    agaez code
    @agaezcode
    @sahat yes! I'm having problems because of that... I'm trying some way to make it post all the images at once, but not getting there yet
    Sahat Yalkabov
    @sahat
    @agaezcode I think you may have to look for a different file upload library, or use some kind of counter in your upload controller, then have an if statement that checks if the counter is complete and execute the required logic to handle all those images. But before that you should try to go with this upload behavior and handle each file individually. If you really need to be notified when all images have been uploaded then you may need to use a counter.
    agaez code
    @agaezcode
    @sahat , thanks for these new perspectives. I'll try them
    Tobias Lundgren
    @lundgren2
    Thanks @sahat ! I’ve tried out your megatboilerplate.com with express and react. Would you recommend to use Max Stobier’s react boilerplate instead of this setup? It would be an simple CRM system as my master thesis… Thanks!
    arashdoescode
    @arashdoescode
    This new open source is truly revolutionary
    Which is megaboilerplate
    I dont know how to repay him
    Dipesh Bhardwaj
    @Dev-Dipesh

    @sahat @uptownhr
    Hola Guys!
    I'm looking for a solution to a problem I'm currently facing, any kind of help will be greatly appreciated.
    I've an array of 35 Yahoo WOEIDs in woeids.trends_country_capital, with which I want to fetch twitter trends for respective WOEIDS. Now twitter has a limit of 1 req/min for it's trends API, so I would like to fetch 35 WOEID's trends with 1 at a time and once all done will repeat the process indefinitely.

    node module - cron

    const worldWide = new CronJob({
      cronTime: '0 */35 * * * *',
      onTick: function() {
        _(woeids.trends_country_capital).forEach(woeid => {
            new CronJob('0 */1 * * * *', function() {
                trendsCountry.get('/trends/place', {id: woeid}, function(error, trends, response) {
                    if (!error) {
                        dbCountries.countries.update(
                            { woeid: woeid },
                            {
                                woeid: woeid,
                                trends: trends[0].trends,
                                lastUpdated: new Date().getTime()
                            },
                            { upsert: true },
                            function (err, data) {
                                console.log(err, data);
                            }
                        )
                    }
                });
            }, null, true, 'America/Los_Angeles');
        });
      },
      start: false,
      timeZone: 'America/Los_Angeles'
    });
    Sahat Yalkabov
    @sahat
    @lundgren2 Max's react-boilerplate has a lot of nice features but it can be overwhelming for beginners. In my latest React project, I took a few good ideas like "CSS modules" from there and used Mega Boilerplate's project structure. Keep it as simple as possible, there is no need to over-engineer.
    Sahat Yalkabov
    @sahat
    Using a combination of async.queue and async.forEach.
    arashdoescode
    @arashdoescode
    @sahat i couldnt find any existing tutorials for socket.io using react , even in the megaboilerplate, its only on the server
    James Lee
    @uptownhr
    @Dev-Dipesh so what is your problem :) ?
    Dipesh Bhardwaj
    @Dev-Dipesh
    Thanks @sahat, I missed that.
    @uptownhr yeah right ;)
    Dipesh Bhardwaj
    @Dev-Dipesh

    Heya guys -
    I have a project at hand, where I'm bit confused in picking up the right database. Project requirements are as follows -

    Data Size -> Small JSON dataset with overall data size in complete database can go as high as 5 Mb. That's right overall size comprised of all datasets.

    Write Frequency -> From 1 write per minute to 16 write per minute at max with a data set size of 10 Kb.

    Read Frequency -> Can scale up to several thousands to millions of request per second.

    Dipesh Bhardwaj
    @Dev-Dipesh
    Volt, Unqlite and Loki are already on my radar, will be looking for more suggestions.
    Above, the important section is the read frequency, where at times I have to write 0 - 15 requests at most while requesting data.
    Stevo Perisic
    @stevoPerisic
    First off, great resource, thank you very very much for putting this together Sahat!
    Next, question, how to set up live-reload?
    Stevo Perisic
    @stevoPerisic
    n/m I got it :)
    tackpapa
    @tackpapa
    has anyone tried instagram api?
    im having issues with ------OAuthPermissionsException: This request requires scope=public_content, but this access token is not auth
    orized with this scope. The user must re-authorize your application with scope=public_content to be granted this per
    missions.-------- this error
    Welder Marcos
    @weldermarcosxd
    Hello there
    can anyone please provide the first steps to take after download the boiler plate?
    Ive generated a simple nodejs project with bootstrap and git authentication, but none of the functions of login, contact do work or throw errors , ty
    Tobias Lundgren
    @lundgren2
    have you run npm install?
    Niall O'Brien
    @niallobrien
    We need a bit more info I'm afraid
    Dale V Ross
    @dalevross
    Currently at a TADHack event in Orlando. Thanks guys!
    Now to learn node and win :D
    Dale V Ross
    @dalevross
    Anyone around?
    Dale V Ross
    @dalevross
    Any tips for quickly deploying to digitalocean?
    Dale V Ross
    @dalevross
    csrf verification
    Niall O'Brien
    @niallobrien
    @dalevross I'd use Zeit Now
    Dale V Ross
    @dalevross
    Thanks @niallobrien.
    I turned off csrf validation during the hackation as I was having trouble identifying where to make it just be that one post request I needed.
    I’ll check out zeit for deployment, I just went with git in the end.
    Niall O'Brien
    @niallobrien
    @dalevross how'd the Hackathon go? What did you build?
    Dale V Ross
    @dalevross
    I intended to build an online repository of “All the Things"
    I got tripped up by my lack of expertise in Node/Mongo development :)

    But I loved the project so much I reckon I’d take the risk and enjoy the weekend, regardless.

    Think of it as pinterest/instagram for JSON, with a front end.

    Dale V Ross
    @dalevross
    It’ll hopefully be at allthething.dajengroup.com by tonight (EST)
    Dale V Ross
    @dalevross
    Anyone here with experience troubleshooting PM2?
    Niall O'Brien
    @niallobrien
    Sorry @dalevross I've never had any major issue with PM2.
    Dale Ross
    @dvross-dev
    Someone pointed me here...Unitech/pm2#319
    So I'll be checking that out when I get home/
    Dale V Ross
    @dalevross
    I think I may have found the problem with PM2 but working through Mongo learning pains.