[QUOTE=KmartSqrl;44149200]Come in to work today and all the category pages on our store are just blank. Not showing any products or subcategories. Everything was working fine last night and no code changes have been made. Fucking Magento...
[editline]6th March 2014[/editline]
And everything still works on my dev machine...[/QUOTE]
magento is always having a mad one tbh
still havent fixed aws api being unreliable as hell, atleast the way the opencart database thing is set out it's relatively easy to fill it out from multiple passes over the original list of ASINs
also can't find anything one it online, at all
anyone know anything that might be causing it? I doubt i'll be able to fix the api so what would be my best bet work around the issue
[IMG]http://i.imgur.com/D0AveXN.png?1[/IMG]
Added a [URL="http://saming.fr/p/2048/mp"]local multiplayer option[/URL] for all your local friend ruining needs.
[QUOTE=Eltro102;44151675]still havent fixed aws api being unreliable as hell[/QUOTE]
Which API are you having issues with?
[QUOTE=KmartSqrl;44151868]Which API are you having issues with?[/QUOTE]
product advertising api, using it to scrape images from a bunch of ASINs
this is the code for it
[code]import requests
from time import sleep
import xml.etree.ElementTree as et
from scraper import asinImageScrape
def getImageFile(ASIN,outputfile):
outputfile.write(ASIN + '\n')
AS_TAG = 'happytoysandg-21'
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
APIDATE = '{http://webservices.amazon.com/AWSECommerceService/2011-08-01}'
#ASIN = raw_input('Enter product ASIN: ')
url = asinImageScrape(AS_TAG,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,ASIN)[0]
print url + '\n'
r = requests.get(url)
#print r.text
xml = et.fromstring(r.text)[1]
try:
print xml[1][3][0].text
except IndexError:
print
#for image in xml.iter():
# if image.tag == APIDATE + 'LargeImage':
# print image[0].text
# if image[0].text == "":
# print '\n'
# outputfile.write(image[0].text + '\n')
# #with open(ASIN + '.jpg','wb') as imgfile:
# # imgfile.write(requests.get(image[0].text).content)
return
#ASIN = 'B001JT1ZGO'
outputfile = open('ASINIMAGEOUT.txt','a')
f = open('ASINS.txt','r')
for line in f:
sanitized = line.replace('\n','')
print sanitized
getImageFile(sanitized,outputfile)
f.close()
outputfile.close()
[/code]
sometimes it works fine and returns all the images, other times about half and sometimes only one or two
Yea I think I agree, thanks for the second pair of eyes.
[QUOTE=Eltro102;44151943]product advertising api, using it to scrape images from a bunch of ASINs
this is the code for it
[code]import requests
from time import sleep
import xml.etree.ElementTree as et
from scraper import asinImageScrape
def getImageFile(ASIN,outputfile):
outputfile.write(ASIN + '\n')
AS_TAG = 'happytoysandg-21'
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
APIDATE = '{http://webservices.amazon.com/AWSECommerceService/2011-08-01}'
#ASIN = raw_input('Enter product ASIN: ')
url = asinImageScrape(AS_TAG,AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,ASIN)[0]
print url + '\n'
r = requests.get(url)
#print r.text
xml = et.fromstring(r.text)[1]
try:
print xml[1][3][0].text
except IndexError:
print
#for image in xml.iter():
# if image.tag == APIDATE + 'LargeImage':
# print image[0].text
# if image[0].text == "":
# print '\n'
# outputfile.write(image[0].text + '\n')
# #with open(ASIN + '.jpg','wb') as imgfile:
# # imgfile.write(requests.get(image[0].text).content)
return
#ASIN = 'B001JT1ZGO'
outputfile = open('ASINIMAGEOUT.txt','a')
f = open('ASINS.txt','r')
for line in f:
sanitized = line.replace('\n','')
print sanitized
getImageFile(sanitized,outputfile)
f.close()
outputfile.close()
[/code]
sometimes it works fine and returns all the images, other times about half and sometimes only one or two[/QUOTE]
Strange, I used that API a while back and had no issues with things not coming through. What happens if you throttle it so it's only sending one request every second or so?
[QUOTE=Eltro102;44151943]product advertising api, using it to scrape images from a bunch of ASINs
this is the code for it
sometimes it works fine and returns all the images, other times about half and sometimes only one or two[/QUOTE]
pep8 please. This code hurts my soul as a python programmer
[QUOTE=KmartSqrl;44161911]Strange, I used that API a while back and had no issues with things not coming through. What happens if you throttle it so it's only sending one request every second or so?[/QUOTE]
that seems to make it work, although it seems more efficient just to do a bunch of passes
i feel this would be more efficient as a script on the server, but i dont think godaddy support python on their el-cheapo plan
i guess the best way would be make a php script that simultaneously inserts the right data into the db and downloads the file onto the server
[QUOTE=Mega1mpact;44162061]pep8 please. This code hurts my soul as a python programmer[/QUOTE]
i live on the edge, but i really need to get on that tbh
[QUOTE=Eltro102;44162077]that seems to make it work, although it seems more efficient just to do a bunch of passes[/QUOTE]
Sweet, okay next step. Log the response code and the response body of all the requests that fail.
Ladies and gentlemen, I present to you...
[img]http://i.imgur.com/xbdhTsr.png[/img]
A brilliant spin on the whole coffeescript/javascript ideal. Liquidscript has the same relationship with javascript that coffeescript has with javascript (minus the part about being written in it) - it compiles directly to javascript.
Example:
[img]http://i.imgur.com/k7s0qmZ.png[/img]
It's pretty cool, I think. For those who can't guess, the left is written in liquidscript, the right being javascript.
[url=https://github.com/redjazz96/liquidscript/]The project can be checked out here.[/url] Coming soon to a rails application near you!
Also,
[img]http://i.imgur.com/HEgiJRc.png[/img]
[url=http://redjazz96.github.io/liquidscript/]Check it out![/url]
[QUOTE=Ac!dL3ak;44164585]A brilliant spin on the whole coffeescript/javascript ideal.[/QUOTE]
To me it looks more like watered down Coffeescript with no indentation and brackets instead. (With not yet complete controls) Although, perhaps I am missing something?
Made a [URL="http://facepunch.com/showthread.php?t=1373525"]special topic for 2048[/URL] on General Games Discussions to talk about the game so as to not spam this one.
I may need help Ac!dL3ak, the code you've given for the game over screen doesn't work; it sometimes returns that there is no possible move when there are so I commented that part out for the moment. I will not touch the code so that it will make the eventual merge easier.
EDIT: I thought posting after on of your post sent your post as an edit to the last... sorry.
[QUOTE=Ac!dL3ak;44164585]Ladies and gentlemen, I present to you...
[img]http://i.imgur.com/xbdhTsr.png[/img]
[/QUOTE]
I'd love to help with designing the site, making docs, writing code etc. Since I won't be able to write a lot of code the coming 4 weeks (broken wrist)
[QUOTE=saming;44170953]I may need help Ac!dL3ak, the code you've given for the game over screen doesn't work; it sometimes returns that there is no possible move when there are so I commented that part out for the moment. I will not touch the code so that it will make the eventual merge easier.
EDIT: I thought posting after on of your post sent your post as an edit to the last... sorry.[/QUOTE]
It does, but after 2 hours it doesn't.
I'll take a look, I'm not sure what's causing it.
[editline]8th March 2014[/editline]
I know exactly what's causing it.
[url=http://96.47.230.36:3000/]Demo of liquidscript.[/url]
Playing around with Jekyll, a blogging system for github pages.
Check out this blog post:
[url]http://qwook.github.io/2014/03/08/Test.html[/url]
i suck at writing pls dont judge me
I also made the design but that was really simple.
[QUOTE=Ac!dL3ak;44174191][url=http://96.47.230.36:3000/]Demo of liquidscript.[/url][/QUOTE]
[t]http://puu.sh/7o7sQ.png[/t]
[QUOTE=Dorkslayz;44174329][t]http://puu.sh/7o7sQ.png[/t][/QUOTE]
it gave me that error even when there was no input lol
[QUOTE=Dorkslayz;44174329][t]http://puu.sh/7o7sQ.png[/t][/QUOTE]
Oh dear, let me fix that.
[thumb]http://i.imgur.com/J5NMMpq.png[/thumb]
i didnt even do anything
[t]http://i.imgur.com/tV676om.png[/t]
Should be fixed.
I compiled lua 5.2 in emscripten and I got it to run javascript in lua by doing runjs("string") and run lua in javascript by doing runlua("string")
Idk how to manage the filesystem in emscripten, but is anyone interested?
I was actually planning on using it to interface with nodejs and host servers using Love2D api, so I can write server code in lua for dedicated servers and host it on nodejs web services (since they're cheaper and most of the time free).
[QUOTE=Eltro102;44151943]product advertising api, using it to scrape images from a bunch of ASINs
this is the code for it
sometimes it works fine and returns all the images, other times about half and sometimes only one or two[/QUOTE]
[url]http://legacy.python.org/dev/peps/pep-0008/[/url]
So I restarted developement on a project of mine, "CommunityHub"
Got module loading done so far. They will be the most important parts of the project as they will add and modify the behaviour of the server, adding routes or fields to models. They should also be able to interact with each other.
In the end there will be two major parts, the user(s) and the content. While the user will be a fixed resource the content is completely defined by modules. I take advantage of Node.JS' CommonJS layout. So every module is either a directory or a .js file in a 'module' subfolder, depending on the complexity.
It's nothing extremely complicated, but so far it looks like I am on the good track.
[thumb]http://i.imgur.com/gzkH19S.png[/thumb]
Is there a place where I should put this issues? Github?
I moved house, and I still haven't had time to sort out a proper internet connection, so I'm stuck with internet that completely saturates as soon as you try to download anything. As a temporary solution to this, I wrote a node app that I run on my raspberry pi to schedule downloads when I'm not awake. Then all the files transfer to my PC when I turn it on in the morning.
[thumb]https://matt-walton.net/nightdl.png[/thumb]
[URL="https://github.com/MattWalton12/NightDL"]GitHub[/URL]
While trying to make the online multiplayer for 2048, I chose NodeJS. It works in local no problem.
Now to find a host which doesn't require a degree in experimental string theory abstract physics. Heroku will just [B]not work[/B] and every other website do not have free plans.
Sorry, you need to Log In to post a reply to this thread.