• Web Dev Questions That Don't Need Their Own Thread v4
    5,001 replies, posted
how can I contact you?
[QUOTE=frietje2008;46646316]how can I contact you?[/QUOTE] Steam
I can agree that you do not want to use Magento. Worked with it for a little over a year and I hated it.
What was that site that somebody posted a while back that helped you find vulnerabilities in your site? 'Hack yourself before somebody hacks you' was the motto or something
[QUOTE=Coffeee;46655887]What was that site that somebody posted a while back that helped you find vulnerabilities in your site? 'Hack yourself before somebody hacks you' was the motto or something[/QUOTE] Isn't it in the GitHub student pack? [editline]7th December 2014[/editline] Oh wait, I believe it's a CloudFlare app [editline]7th December 2014[/editline] [url]http://i.imgur.com/s1wwvyG.png[/url] This?
i am having a issue of me not understanding how foreach works with Source Query to return the contents of the query array. [QUOTE] $a = $Query->Connect( SQ_SERVER_ADDR, SQ_SERVER_PORT, SQ_TIMEOUT, SQ_ENGINE ); $b = $Query->GetInfo( ModInfo ); $c = foreach( $Query as $b ); [/QUOTE] that is my current code, and it returns this error; [QUOTE]Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /usr/www/cubeserver/public/index.php on line 88[/QUOTE] i know i need a print_r or foreach to return the contents of the array, i can't figure out how to implement them. if anybody could help me with this, i'd be grateful
[QUOTE=Tolee;46657967]i am having a issue of me not understanding how foreach works with Source Query to return the contents of the query array. that is my current code, and it returns this error; i know i need a print_r or foreach to return the contents of the array, i can't figure out how to implement them. if anybody could help me with this, i'd be grateful[/QUOTE] 1) Don't name variables like that because that makes it impossible to comeback and maintain. I hope it's just temporary code. 2) [url]http://php.net/manual/en/control-structures.foreach.php[/url] I'm not sure why your foreach is like that 3) how did you end up having that code? I'm guessing you're using the one from xpaw? [url]https://github.com/xPaw/PHP-Source-Query-Class/blob/master/Example.php[/url] getinfo doesnt have any parameters. [url]https://github.com/xPaw/PHP-Source-Query-Class/blob/master/SourceQuery/SourceQuery.class.php#L215[/url]
I cant seem to get angularjs' ng-change to work, I tried using a scoped object as js seems to have weird scoping issues? Its like the event only fires when the Model.Email is empty Heres a full example [url]http://plnkr.co/edit/xdgNIjfVhMW7jWAAojBz[/url]
[QUOTE=Richy19;46659715]I cant seem to get angularjs' ng-change to work, I tried using a scoped object as js seems to have weird scoping issues? Its like the event only fires when the Model.Email is empty Heres a full example [url]http://plnkr.co/edit/xdgNIjfVhMW7jWAAojBz[/url][/QUOTE] The model of an input with the email type is undefined if the input is not a valid E-Mail. [URL="http://plnkr.co/edit/pOdzDRrDgg9IbdcBCixX?p=preview"]http://plnkr.co/edit/pOdzDRrDgg9IbdcBCixX[/URL] Change the .com to .co.uk
I'm new to javascript and asynchronous programming and I'm having trouble calling multiple APIs. Essentially I need to make 6 different API calls in client side javascript and right now I have a massive chain of callbacks (i.e. function for API#1 callbacks function for API#2, and then the function API#2 callbacks function for API#3, etc). Is this really the correct way to do this? Feels really sloppy.
[QUOTE=KmartSqrl;46637847]DO NOT USE MAGENTO UNLESS YOU WANT TO HATE YOUR LIFE[/QUOTE] It can't be worse than proprietary osCommerce forks? Can it? :tinfoil:
[QUOTE=Sean C;46661248]I'm new to javascript and asynchronous programming and I'm having trouble calling multiple APIs. Essentially I need to make 6 different API calls in client side javascript and right now I have a massive chain of callbacks (i.e. function for API#1 callbacks function for API#2, and then the function API#2 callbacks function for API#3, etc). Is this really the correct way to do this? Feels really sloppy.[/QUOTE] Seems to me like you're making async functions act like sync functions. If it is correct or not depends on your code, do you [B]have[/B] to wait for API#1 to finish before executing API#2, etc? Do you need something from API#1 in order to execute API#2? If so, you're doing it corect.
[QUOTE=Svenskunganka;46661414]Seems to me like you're making async functions act like sync functions. If it is correct or not depends on your code, do you [B]have[/B] to wait for API#1 to finish before executing API#2, etc? Do you need something from API#1 in order to execute API#2? If so, you're doing it corect.[/QUOTE] Well none of the API calls depend on each other, but I run a visualization after all of the data is loaded. Am I stock with my hacky synchronous chaining?
how do you guys come up with usage agreements/privacy policies for your websites? is it just done by hand? I dunno anything about legal stuff
[QUOTE=Sean C;46663964]Well none of the API calls depend on each other, but I run a visualization after all of the data is loaded. Am I stock with my hacky synchronous chaining?[/QUOTE] No not necessarily. There are various ways of doing this, and if your API calls do not depend on eachother there is absolutely no way you should make them act synchronous instead of asynchronous. You save alot of time running them all at once, and there are lots of ways you can do this. You can have an object/array which holds simple booleans if the callback for a particular API has been executed or not, and each time one of the callbacks is executed, it sets its own boolean in the object/array to true. Each callback should check if all callbacks have been executed, and once they have, execute the visualization function. Another way of doing this but might not suit your particular setup is to visualize on the go, not waiting for any other API call to complete. But as I don't know how your script works, you might have to wait for all calls to complete before you visualize.
Is there a javascript/node framework akin to what django is? I'd like to do fast full-stack development in an opinionated framework. The closest thing I've seen with a lot of support is Meteor but my app is not real-time so I don't know if that would be the right choice.
[QUOTE=Sean C;46675940]Is there a javascript/node framework akin to what django is? I'd like to do fast full-stack development in an opinionated framework. The closest thing I've seen with a lot of support is Meteor but my app is not real-time so I don't know if that would be the right choice.[/QUOTE] Not really sure, never used Django. I like to work with [URL="https://github.com/DaftMonk/generator-angular-fullstack"]Yeoman's Angular Fullstack Generator[/URL]. It's amazing, but only if you use Angular really.
Does anyone have experience with SSL certificates? It's kicking my ass.
[QUOTE=littlefoot;46681105]Does anyone have experience with SSL certificates? It's kicking my ass.[/QUOTE] Yes
[URL]http://asm3m.erikhumphrey.x10.mx/[/URL] What's causing the blank space at the top of the page? I have only have the img tag directly after the body tag!
Remove/reduce the padding of the body. It's currently 50px.
[QUOTE=Cronos Dage;46683799][URL]http://asm3m.erikhumphrey.x10.mx/[/URL] What's causing the blank space at the top of the page? I have only have the img tag directly after the body tag![/QUOTE] Your body has 50px padding, change it like so: [code] body { /* Set's top/bottom to 0px and left/right to 50px */ padding: 0 50px; }[/code] [editline]10th December 2014[/editline] I got ninja'd [editline]10th December 2014[/editline] By an hour, holy shit I need to refresh more
worked, thanks. don't remember adding that down there [editline]today[/editline] I only have instance of padding or margin on the whole site :tinfoil:
I just got Google domains access and it includes 10 invites. PM me if you want one. Seems pretty nice so far. 12$ per year for a regular domain, includes their own whois guard, uses Google's DNS servers, and has gmail support and stuff. [url]Http://domains.google.com[/url]
Apparently I have to invite via email (it works through the site) so I'm gonna need an email to send the invite to if you want it. Rip automerge
[QUOTE=Pw0nageXD;46695240]I just got Google domains access and it includes 10 invites. PM me if you want one. Seems pretty nice so far. 12$ per year for a regular domain, includes their own whois guard, uses Google's DNS servers, and has gmail support and stuff. [URL]Http://domains.google.com[/URL][/QUOTE] Nice, I could use that. I'll PM you.
I can't make up my mind. In one side, Google rocks. Price is cheaper if you take in mind the included WhoisGuard, and their DNS are perfect. On the other side, 100 x limitations and the fact that I had just finished setting up Google Apps the other day...
[QUOTE=Coment;46699823]On the other side, 100 x limitations and the fact that I had just finished setting up Google Apps the other day...[/QUOTE] Well it's not like you can't switch to your own mail server when you end up needing more.
[QUOTE=DrTaxi;46699919]Well it's not like you can't switch to your own mail server when you end up needing more.[/QUOTE] Good luck reliably sending mails from your own mail server. Or just setting a mail server up, because that's tough in itself.
[QUOTE=Alternative Account;46700292]Good luck reliably sending mails from your own mail server. Or just setting a mail server up, because that's tough in itself.[/QUOTE] Setting a mail server up is actually pretty hard if you do it the manual route. If you have a decent panel though like Webmin/cPanel/Plesk or use iRedMail it's pretty easy though.
Sorry, you need to Log In to post a reply to this thread.