neojp / l4c.me Goto Github PK
View Code? Open in Web Editor NEW[deprecated] No longer supported.
[deprecated] No longer supported.
An idea: if photo's height is lower than 540px and its width is higher than 100px, it's a panoramic photo.
It's been pretty much abandoned since 2 years ago and hasn't commited a single patch from the pull requests.
photo upload C:\Users\neojp\AppData\Local\Temp\4fc2e30050b45b3952f2b8ae9c3a2350
-> 50a174255ee91a7408000004_o.jpg
grpahicsmagick current_size - [object Object]
photo resize not needed l - c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_o.jpg -> c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_l.jpg
grpahicsmagick current_size - [object Object]
photo resize not needed m - c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_o.jpg -> c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_m.jpg
grpahicsmagick current_size - [object Object]
photo crop start s - c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_o.jpg -> c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_s.jpg
grpahicsmagick current_size - [object Object]
photo crop start t - c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_o.jpg -> c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_t.jpg
photo resize end l
photo resize end m
photo crop end s gm convert: Unable to open file (c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_s.jpg) [Invalid argument].
DEBUG: Error: Command failed: gm convert: Unable to open file (c:\projects\nodejs\l4c_prod\public\uploads\50a174255ee91a7408000004_s.jpg) [Invalid argument].
at ChildProcess.module.exports.proto._spawn.proc.on.onExit (c:\projects\nodejs\l4c_prod\node_modules\gm\lib\command.js:238:17)
at ChildProcess.EventEmitter.emit (events.js:91:17)
at maybeClose (child_process.js:638:16)
at Process._handle.onexit (child_process.js:680:5)
photo error
500 2012/11/12 17:11:50 -0500 POST /fotos/publicar 1042ms 127.0.0.1
photo crop end t
Remove login links and use an [upload a photo] button, then request to login if the user is not, and then redirect them to the upload page.
Create a new command-line script - scripts/photos-migration.js - to connect to the Mongo database and migrate old data into the new schema, using the photo.image property, and removing the old photo.ext property
Some are displaying the wrong Twitter's creator ID, it's showing up as @Cristalab when it should be the actual uploader's twitter information.
Also, change the current twitter:site to twitter:site:id
We could create a new l4c_system
database with sessions
and logs
.
Not sure if it's needed anymore.
Move current mongodb:// url to a child property called "url", and split all other data into their own properties.
"mongodb": {
"app": {
"db": "l4c",
"host": "localhost",
"password": null,
"port": null,
"url": "mongodb://localhost/l4c",
"user": null
},
"system": {
"db": "l4c_system",
"host": "localhost",
"password": null,
"port": null,
"url": "mongodb://localhost/l4c_system",
"user": null
}
},
This can be an issue when the user uses a very long title, which is used for tweets (up to 120 characters).
New logging library would let us use multiple transports to display and save our logs in the most inobstrusive way possible.
https://github.com/flatiron/winston
We must use the following transports:
It should look like the last widget on right sidebar.
http://clabie.com/neojp/l4c-wireframe/sizes/o
This bug was introduced when moving sessions into a new database - #28
Do no let users use non-alphanumeric characters in their usernames (eg. @Nickname - do not let them use an @)
Create RSS feeds for user profiles
http://clabie.com/feed/:username
Node module.
https://github.com/dylang/node-rss
It's supposed to be an object with the original photo's dimensions (width, height), file extension and a boolean noting wether it's a panoramic photo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.