• Breaking News

    Wednesday, June 12, 2019

    Critique my NodeJS project Ask Programming

    Critique my NodeJS project Ask Programming


    Critique my NodeJS project

    Posted: 12 Jun 2019 07:23 PM PDT

    Hello all!

    I have just started programming and started my first project.

    I am building an API using NodeJS and am looking for people to critique my work as I build it.

    I thought by doing this it would accelerate my learning as I would be getting feedback on my first project, hopefully turning a mess into something respectable.

    It is in its infancy right now but posting it at this stage to hopefully get some early feedback to prevent myself from building a project with the basics messed up from the beginning.

    My next steps for this project are to clean up the error handling and maybe some restructuring.

    If you're interested in checking it out and providing some feedback, you can visit the repo here:
    https://github.com/AutoGnome/FirstAPI

    Thanks in advance!

    submitted by /u/GnomesKnowBest
    [link] [comments]

    Why, in machine learning, is the word "tensor" used so much? I don't see how it is related to mathematical tensors. Isn't a tensor (in PyTorch or something) just a multidimensional array?

    Posted: 12 Jun 2019 07:01 AM PDT

    Also, I feel like the use is just flat out wrong.

    From the Wikipedia article,

    Tensor products can be defined in great generality – for example, involving arbitrary modules over a ring. In principle, one could define a "tensor" simply to be an element of any tensor product. However, the mathematics literature usually reserves the term tensor for an element of a tensor product of any number of copies of a single vector space V and its dual, as above.

    Thus, a tensor (wrt. a finite dimensional vector space) should have all its axes of the same size. However, tensors in PyTorch allow dimensions to have any size (and most notably, be different).

    submitted by /u/extremeaxe5
    [link] [comments]

    Hi I want to ask about readyboost

    Posted: 12 Jun 2019 09:57 PM PDT

    Soooo my laptop pc has only 4 gb of ram and there is no extra slot for extra ram to be installed. Windows sys files are installed on an internal SSD. So windows will reject me using a USB 2.0 to use as ready boost. I was thinking of trying with an USB 3.0 and kinda change settings in my system files to enable ready boost if possible.

    What I really wanna ask is what is ready boost? Does it help my DDR3 ram read/write or it completely replaces it as my laptop's ram. And is USB 3.0 fast enough for read/write in games

    Currently at 4gb ram, I'm looking to add only 2 or 4 more ram but am unable to. Pls do help me out by answering my questions or providing an alternative solution

    submitted by /u/BillieIrish001
    [link] [comments]

    how to use microsofts SPTAG

    Posted: 12 Jun 2019 08:34 PM PDT

    Microsoft released one of the core components of their bing search engine a while back (you can view it here. I was wondering if anyone has any resources on how to use it? The documentation is minimal and Im just looking for some direction. Want to integrate it into something I work on but Just dont really know where to start

    submitted by /u/tiaanstals
    [link] [comments]

    Is there any tools to create a graphical representation of your source code? not paint

    Posted: 12 Jun 2019 07:44 PM PDT

    I'm creaitng my first MVC designed web app. I was hoping to make a single page that shows a graphical picture that shows how each portion interacts.

    I want to show all the files under each component and have arrows between the files showing what objects are sent and what methods are invoked. Is there a free tool I can use to help me make this other than paint?

    submitted by /u/ebayer222
    [link] [comments]

    How do you interpret a multinomial logistic regression output and the output for the p values in R?

    Posted: 12 Jun 2019 07:13 PM PDT

    The summary that you get when you run a glm () or lm () function is easy for me to understand but when I run the multinom() function I get a bunch of my inputted variables and numbers then an AIC value.I need help trying to understand how do I know which variables are significant? Also what's the point of have 999 numbers for the multinational logistic regression? Also what's the point of have 999 numbers for the multinational logistic regression? I am lost trying to read my data. Here's a snippet of what I see:

    (Originally I posted a similar question in the r/statistics subreddit and I got the idea of it but then I did the p-values and got more confused)

    I need to know if Age, Race, and Category(CAT) are correlated with District (DIST).

    Call: multinom(formula = DIST ~ AGE + RACE + CAT, data = dat) Coefficients: (Intercept) AGE RACE CATInvestigation CATLarceny/Theft 2 -0.4353757 -0.11409509 -2.010218e-03 5.46926940 -1.28073188 3 8.3060608 -0.06171800 -4.896339e-04 0.29853934 -3.87154511 4 4.6462151 -0.06768037 -2.733250e-01 2.03588625 -1.30031688 Std. Errors: (Intercept) AGE RACE CATInvestigation CATLarceny/Theft 2 0.097452180 0.03256400 0.3031004209 0.29833647 0.0014103506 3 0.148426435 0.01084028 0.0003535661 0.13653004 0.2235325446 4 0.280704461 0.01266196 0.1226228875 0.18448054 0.3518340769 Residual Deviance: 15832.92 AIC: 16206.92 

    My P Values:

     (Intercept) AGE RACE CATInvestigation CATLarceny/Theft 2 7.910842e-06 4.588108e-04 0.9947083221 0.000000e+00 0.000000e+00 3 0.000000e+00 1.245385e-08 0.1661001228 2.877026e-02 0.000000e+00 4 0.000000e+00 9.033027e-08 0.0258146764 0.000000e+00 2.191746e-04 5 0.000000e+00 1.852474e-08 0.2739170791 0.000000e+00 1.440372e-09 6 8.084888e-11 1.067542e-05 0.9713699294 0.000000e+00 0.000000e+00 7 4.273743e-05 3.903922e-03 0.4739989441 0.000000e+00 0.000000e+00 8 0.000000e+00 3.409064e-02 0.9975720021 0.000000e+00 0.000000e+00 9 1.605847e-03 3.222799e-01 0.7337250199 0.000000e+00 0.000000e+00 10 0.000000e+00 1.408640e-05 0.0485775585 1.544409e-11 0.000000e+00 11 8.485364e-10 5.166878e-01 0.9837160770 5.990952e-09 0.000000e+00 16 0.000000e+00 0.000000e+00 0.1516795954 0.000000e+00 1.089517e-10 17 0.000000e+00 1.148510e-04 0.0003243084 0.000000e+00 0.000000e+00 20 0.000000e+00 1.897695e-04 0.9109923669 9.900978e-07 0.000000e+00 21 0.000000e+00 1.131792e-02 0.6071402073 0.000000e+00 0.000000e+00 22 0.000000e+00 2.889853e-01 0.9879779835 0.000000e+00 0.000000e+00 25 0.000000e+00 2.134524e-07 0.9759040003 9.117273e-09 0.000000e+00 9999 0.000000e+00 4.457628e-05 0.4359428127 4.538148e-12 6.406465e-01 
    submitted by /u/kosar7
    [link] [comments]

    Getting transaction data from web hosted receipt?

    Posted: 12 Jun 2019 06:17 PM PDT

    I am trying to figure out if something is possible.

    My company uses a 3rd party booking software which generates a receipt whenever a customer checks out at one of our locations. It immediately emails them the receipt and the URL looks something like mycompany.bookingengine.com/receipt/customerid-JWT

    We have subdomain tracking in Google Analytics for all the pages that are mycompany.bookingengine.com and are able to update the code on there (we use GTM.)

    I am wondering it it's possible to set up a data layer or some time of event listener to pull transaction data from this page into Tag Manager or Analytics. I looked at the code and the only thing I see in relation to the transaction amount is text based, so I don't even know if it would be possible to set up a variable to pull $x paid = transaction value into GTM or GA. Not sure if that's even where I would find the info or if it's just CSS or HTML.

    Is this something that is possible? Plz forgive me if I am using the wrong language as I am not a developer or programmer.

    submitted by /u/wanderlotus
    [link] [comments]

    Another question about cross platform development.

    Posted: 12 Jun 2019 04:55 PM PDT

    Hey guys, a while back I asked a question about how to develop a cross platform application that used a different GUI framework on each OS. I got a great answer that told me to look into the abstract factory pattern.

    Now, I have a similar scenario, but this time the actual languages I have to use on each platform are completely different. So this pattern is not going to work. What would be the standard way to handle this?

    Should I break out my business logic into an API, and then make calls to that API to update my GUI for each platform? What is a standard way to structure your code in this case? A single github repo with an API directory, and then another for each platform? My only experience designing APIs is REST services, but I believe you can make calls to a C library from most languages, right?

    I guess this isn't exactly a question, just looking for thoughts on all the above topics. Thanks in advance everyone!

    submitted by /u/largepongus
    [link] [comments]

    [SWIFT] - If you are trying to the get most precise (like in feet) location of a specific iphone, how can you do it in swift?

    Posted: 12 Jun 2019 03:00 PM PDT

    I read that Core Location and IBeacon could be possible ways to do this. It would be in real time location.

    submitted by /u/AdditionalNotice3
    [link] [comments]

    Licensing Questions

    Posted: 12 Jun 2019 01:04 PM PDT

    I'm trying to figure out how licenses work better. If something is MIT licensed, can I change the license in my fork as long as I retain the original authors' copyrights?

    submitted by /u/d9a_
    [link] [comments]

    Sending sensitive data using HTTP

    Posted: 12 Jun 2019 11:54 AM PDT

    Hi! I'm coding this application that has to store some sensitive data, such as phone numbers, texts and pin codes

    This application works both as a credential manager and as a web server, which allows the user to access the credential from a browser, the device must be connected to the same network as the device running the application.

    The problem is that I cannot use HTTPS otherwise the browser will show an alert because the certificate is self signed and thus not safe.

    I was thinking about sending the html page with encrypted data in it and then from the client side ask the user for a key which is used to decrypt the data, but this looks too long for the users and if somebody sniffs the html page, the key could brute forced.

    Is there any other way I could do this?

    EDIT: I forgot to tell that the application is running on Android

    submitted by /u/DuckGuy12415113
    [link] [comments]

    [Solutioning] I want to automate tracking of my bills

    Posted: 11 Jun 2019 11:11 PM PDT

    Hey all!

    I would like to get all the bills that I pay (car) (home)(credit cards) etc and store it in a database (noSQL/sql) so that I can fetch the due date by saying "Ok google, how much do I owe for Capital one?"

    Some things I have thought of. perform regular selenium UI webdriver runs on specific dates when bills are posted and store them into the database. If you have a better option, let me know. Docker headless chrome was what I was thinking to do it in.

    I want to start on a project and wanted some solutioning. I graduated recently, so my solution might not be super efficient due to lack of exposure to technologies. I'm not trying to be lazy or anything, just want to introduce more automation into my life.

    I have recently played with google assistant and web hooks to retrieve data from a database and have been having ideas.

    submitted by /u/RS7theDream
    [link] [comments]

    Are blocks of threads in CUDA all execute at the same time?

    Posted: 12 Jun 2019 10:41 AM PDT

    Or because max thread number in a block is 1024, and only 1024 threads are executed at the same time, then the next block of 1024 threads are executed?

    submitted by /u/futureroboticist
    [link] [comments]

    Can't get the Eclipse IDE to run my JavaScript file! Error Message:

    Posted: 12 Jun 2019 09:27 AM PDT

    Unable to run Node.js program. Verify you have a configured Node.js runtime environment in your system and try again.

    I looked at some previous posts and saw that I had to download install the Node.js which I've done but this hasn't solved the issue. Guides I've seen online have done little to help me understand the problem. Please help me understand what it is I need to do to get this IDE working for my projects. Thanks

    submitted by /u/OnlinePosterPerson
    [link] [comments]

    What distinguishes "indie" developers from regular developers?

    Posted: 12 Jun 2019 04:35 AM PDT

    Which are some recommended best courses and ways to learn more advanced developer/programmer skills such as Docker, Kubernetes, Ansible, TerraForm, ... basically everything that helped bring you to a more advanced stage. Especially for devops/self-hosted/...

    Posted: 12 Jun 2019 06:46 AM PDT

    Which are some recommended best courses and ways to learn more advanced developer/programmer skills such as Docker, Kubernetes, Ansible, TerraForm, ... basically everything that helped bring you to a more advanced stage. Especially oriented to devops/self-hosted/... and so on stuff with a focus on Python use

    I am looking for a broad outline of guides, tutorials and resources to help me beyond what somebody with intermediate knowledge of several programming languages has.

    submitted by /u/Kalenden
    [link] [comments]

    Suggestions required on what kind of features can be added to custom FUSE filesystem implementation.

    Posted: 12 Jun 2019 06:26 AM PDT

    I am planning to implement a small part(for learning purpose) of FUSE(File System in Userpace) through python. What kind of additional features like: encryption, compression or some web cloud support could be added in the project. Need some suggestions and resources on this topic. Suggestions and advice is appreciated. Thanks.

    submitted by /u/Skillbox98
    [link] [comments]

    How to download an entire database/website

    Posted: 11 Jun 2019 11:08 PM PDT

    So here is the context, I'm a guitarist. I use Rocksmith 2014 and I would like to download extra custom DLC from a website called http://ignition.customsforge.com/ . Basically you need to click on a download button, it runs into some redirect page in another tab and downloads the file. Not bad, but try doing it 500 or 1000 times.....It gets old. Is there some way to query the database and have it send me all the files or at least more than one at a time. I don't wanna break the server or my internet connection so hopefully not all at once. A tool for this exists, right?

    TL-DR: Is it possible to download hundreds of files off of a site without manually clicking the download button each time.

    submitted by /u/SpeedingTicketss
    [link] [comments]

    Why does Apple’s Grapher program behave so badly where lines intersect?

    Posted: 12 Jun 2019 03:55 AM PDT

    Grapher is an impressive, powerful and fully featured graphing app that comes with a Mac.

    If you try to plot a graph where points intersect, the app struggles. This seems like a really low-hanging bug in an otherwise extremely well designed program.

    As an example, plot xy = yx and zoom in on y=x=e.

    The program just can't manage to plot that region. Any ideas why this exists? It doesn't bother me I just wonder why it's such a hard bug to fix?

    I get that for graphs not of the form y=f(x) the program finds a few points and then connects the dots but is it impossible to have a routine that finds areas where this strategy fails?

    submitted by /u/XiPingTing
    [link] [comments]

    Help Needed! Maximum call stack size exceeded when I am modifying words in the webpage through chrome extension's content script

    Posted: 11 Jun 2019 11:55 PM PDT

    So I am trying to make a chrome extension that blurs a partiular word if it's present on the webpage. But somehow I'm geting the error mentioned in title. Tried alot to fix it but unsuccesful so far. Would mean alot if anyone here could help.

    Stackoverflow post: https://stackoverflow.com/questions/56555733/maximum-call-stack-size-exceeded-when-i-am-modifying-words-in-the-webpage-throug

    submitted by /u/yautslil
    [link] [comments]

    No comments:

    Post a Comment