snoctopus's People
snoctopus's Issues
tumblr get_oauth broken
i butchered this file to get it to work with sessions and broke it, will fix asap
EC
Email Verification was removed
Email verification was removed when registering new users. We dont see this as an issue seeing how the user has to have valid social network accounts to use our service
Threaded conversations in issues instead of using Google Groups?
E-mail notifications are active by default (look under account options to modify) so it would appear that we could have threaded conversations here and forget the google group. Thoughts?
Build Instructions: Social Network App ID
build instructions need to be updated to tell anyone who is looking to setup a SNOctopus server how to register for an app for each social network and where in our project to put the app_id and app_secret
Group Email
We should use [email protected] as the email we use to signup for these networks. With a common password so we can all login to each with no problems.
GPL license
I inserted this as a license header at the top of the facebook plugin
It seems consistent with usage directions here:
http://www.gnu.org/licenses/gpl-howto.html
I also uploaded a copy of the license.
Thoughts?
/*
This program is distributed under the terms of the GNU General Public License
http://www.gnu.org/licenses/gpl.txt
Copyright 2011 by:
Lior Ben-kiki
Evan Cordeiro
Fabio Elia
Thomas Norden
Elmer Rodriguez
Royce Stubbs
*/
New repository
While configuring my git client, I unintentionally created a new repository under my name. If you see this in your dashboard, please ignore it and continue pushing your updates to git@github:evcordeiro/SNOctopus.git.
How can I remove the copy I made under my name?
Points for Stephen
Stephen seemed to want to integrate all sorts of RSS feeds into this app. Not simply one from his blog but from blogs he has no control over.
He seemed to think that polling (ex every 15 mins) was the technique to use and writing blog plugins would be the alternative.
Additional features he mentioned were Tags, only post blogs with certain tags. As well as do all post on a certain day.
Also he talked about the front end to use an email based username and to be able to pull all your accounts off each Social Network. Thats definitely something to look into.
tag handling/plugin side parsing - facebook plugin
the facebook plugin needs to handle more tags than twitter or tumblr, most significantly tags. there is a little structure to handle this in index.php, but ideally we should handle this within each plugin.
there is some basic code in the sno_facebook.php, but the FB developers API describes options in depth here:
UI integration
The networks.php file in /ui is a pretty cool interface to integrate into the registration/account mgmt part of the ui. i think it will tie in well when we need to actually retrieve oauth keys for release 1.0 (as opposed to manual form field entry for 0.5). I added a preliminary get_oauth.php for facebook as well, though its still broken.
Also, the UI should be looking for the wamunity database, which it doesn't seem to be doing.
Logo design discussion
Logo design discussion
- I think the logo should be small and easy to remember. Look at familiar logos like gmail, facebook or yahoo for example.
@fabio, I like the orange octopus. Did you make it or take it. If you took it, where from? what's the license on it? can you make a small icon size version with just the head, and no background? (keep the rss logo and eyes) ~~~ Lior
RSS/Atom Parser
Language
For this project we can't program in javascript. We can only use javascript for when the user initially signs up. Retrieving feeds and processing feeds has to be done in PHP.
pdo syntax issues
the db library functions are not working properly. looks like a syntax issue.
get_oauth must check for referring URL
this is a security issue that fabio pointed out. if we arent checking referring urls or otherwise authenticating the post to the get_oauth.php potentially anyone can enter data into the db
twitter get_oauth needs error handling
/
|
|
|
|
IDE
While theoretically we can all use what we want, wouldn't it be easiest if we were all using the same IDE for this? Eclipse has a git plug-in. Thoughts?
poll.php not posting
poll.php isn't posting to social networks
should turn off chron job if haven't already
are we pulling actual db table info?
Database schema
Latest database schema needs to be committed to setup up the database for other servers.
Test website php issue
Test website does not allow mail to be sent out (this is important for registration testing).
Fabio says it needs to be redirected to a specific folder, should be a quick fix.
serializing creds[] data for database storage
We decided that the get_oauth modules will pass data into to the database using a library function that Royce is implementing.
Using PHPs serialize() and unserialize() functions seems like the most straightforward way to encode the creds[] data structure for database storage. We should probably keep the (un)serializing within the library functions that are storing and extracting the data, instead of the plugin side, for future compatibility. It's easier to update the library code than deal with all of the plugin code.
automating OAuth key retrieval
The registration/account mgmt part of the UI should be able to automatically prompt the user to validate their particular social network's credentials.
I haven't looked into the twitter/tumblr process but the facebook api will run us into a problem.
Because the authorization process ends with by opening a url (we define) with the access code passed as a variable (for all intensive purposes anyway), I don't believe we can pass the code back as return value to the UI script (this would be optimal)
It seems that the server side flow would be interrupted. I am not completely sure about this however. This is the basic idea:
top.location.href='" . $dialog_url . "'</script>"); ``` } /* the conditional is skipped the second time through because code exists as a passed var from the facebook oauth server */ ``` $token_url = "https://graph.facebook.com/oauth/access_token?client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url) . "&client_secret=" . $app_secret . "&code=" . $code; $access_token = file_get_contents($token_url); //will return $access_token work here? i don't think it will ``` } ?>You guys know more about server script flow than I do, any thoughts?
Polling solution
Going off Royce and Fabio's Idea for the transparent image being the polling solution, what it if it was our logo (or small ad for us), that might create some incentive for the user to add the image to their blog. As I see it, they advertise us we distribute their material immediately otherwise we poll their feed once/twice a day. I don't think we are going to be able to avoid polling but this would help limit the number of polls we have to do.
Uploading code.
To start off with you need to download http://code.google.com/p/msysgit/downloads/list for windows or the comparable git for Mac.
Then follow the initial steps listed in the source tab. These didnt work for me when it came time to committing. To get that working I had to do the following
ssh-keygen -t rsa -C "your email [email protected]"
This will generate a private key for you. The next step is navigate to the folder where msysgit and follow the following path:
\Data\home.ssh
Next copy the contents of the id_rsa.pub file and paste it onto Githubs public key list.
Now you should be able to commit with msysgit.
If you want to upload / commit changes with an SVN client simply use the following url for the server
http://svn.github.com/evcordeiro/SNOctopus.git
tag handling/plugin side parsing - twitter plugin
there is way too much documentation to list here, the basic class we have now in sno_twitter will suffice for now tho.
the key here is formatting the post, twitter can take 140 chars max. do we post a URL and the next 50 chars followed by an ellipses? i dont know, but its ugly now.
also see the general parsing issue (if unresolved) this post should look pretty, no abnormal characters, although that should be ideally handled at the index.php level
Build Instructions: Cron Job
Add instructions to setup a cron job for poll.php in build.txt
facebook get_oauth enhancements
two enchancements to be integrated:
should prompt user to logout/in (through jscript facebook dialog?)
so that a non-logged in users account can be added
the other, handling managed pages authorizations which need to be stored as separate feeds in the db
here are the comments already in get_oauth:
/*should prompt which to get, user->id? or user->accounts which yields below:
{
"data": [
{
"name": "SNOctopus",
"category": "Software",
"id": "167168166665156"
},
{
"name": "SNOctopus",
"category": "Application",
"id": "155751477815713"
}
]
}
then selected outputs, credentials['id'] is simply id, the network identifier to send the db
is a concatentation of user->username . " - " . user->accounts->name . ", " . user->accounts->category
obviously the last two only if applicable. we are logged into the users account at this point,
so we can use the graph api. once we have this information, we can extract information
in the future
*/
Twitter plugin duplicate post error
Twitter doesnt let you post duplicates. Which is fine, but we should detect this error and acknowledge it somehow. I tried messing with it a little but ran out of time. Through a var_dump($response) on the output page
gpl license headers
Need to make sure gpl license headers and updated version headers are on all files for release 1.0
tumblr errors
Currently, the oauth mechanism for tumblr is not functional. Since the deadline is today, we are leaving tumblr access out of the version 1.0 release until these issues can be resolved.
Stories
Everyone should post their revised story on the story page wiki or post them here and i will do it
Source restructure
Before the bridge to our database gets built, we need to clean up our structure. Right now we have library scripts and text and images all bunched together in the same directories. I recommend having a library directory for common (shared) scripts (where my database code will go, along with other functions and probably a DB abstraction code layer). Also the UI directory needs a lot of attention.
After this is done I will place my abstraction layer and SNO-specific database code in our library directory.
general feed_data parsing issues
I noticed an issue specifically on tumblr posts, somewhere in the parse we are converting non alphabet characters, for example:
avid is the kid8217s English name He laughs every time I try to pronounce his real name but he can8217t say mine either And besides he8217s the one killing me off on a regular basis At first it was teacher die After weeks of hard work though he8217s grasped that teacher dies The 8216s8217 David remember the s Recen
Tumblr Oauth Not working
Not authentication / having issues sending
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /***/***/***/sno/build/index.php:47) in /home/waterto/public_html/sno/build/plugins/tumblr/sno_tumblr.php on line 36
pdo syntax issues
the db library functions are not qorking properly. looks like a syntax issue.
Building a web UI in php
Check out smarty. The VisitMe project in my graduate SE class last year used it with great success.
Posting
ATM it is posting the most recent blog post without regard of previous post. (easy fix)
Facebook API
Stub for conversations about the Facebook plugin.
I created a SNOctopus App for Facebook to get a secret and id. I need to add everyone as admins. Although I am having difficulty doing so at the moment. Everyone might need to friend on Facebook. Block my posts if you don't like politically charged conversation, but the connection needs to be there to add as an admin on the app it looks like.
Everyone else except Royce is an admin on the SNOctopus Facebook site, as all I had for reference was the gmail accounts that everyone has been using.
tag handling/plugin side parsing - tumblr plugin
check out the tumblr api for more details
also see the general parsing issue (if unresolved) this post should look pretty, no abnormal characters, although that should be ideally handled at the index.php level
Hello World
What can we produce in a short amount of time that isn't just fluff?
-A dummy page with a sample RSS feed
-A program that -parses- this simple feed and puts it somewhere else. text only.
-linking to a facebook is probably way to early, maybe just output it to a file?
tumblr
periodic oauth failure. it seemed that this issue was fixed. it worked in both the /tests and /build directories. i may have broken it on the last commit but i don't believe so.
Adding Networks
I cant seem to get the networks to be added to use.
Someone verify?
Database tables
I think the processed posts table should include some reference to the feed/social network mapping table.
This way we can access bit.ly statistics for a given user (through a join on user id)
and break it down not only by feed but by social network posted to (to track traffic by social network)
Each feed/social network mapping would need a unique identifier tho.
Also a thought occurs to me from above, are we giving each "post" a bit.ly link or each "post to a particular network", or does bit.ly record referring sites?
evan
Updates to wiki & code
To all SNOctopus editors,
When you edit a wiki, commit your code, close or open an issue or any other change to the project, please make sure to fill the comments field.
When you don't write any comments about your changes, there is no way to tell what just happened, and why.
For most of us this is the first experience of working as a group on the same piece of code, and it's extremely important to document your work, for others and for yourself.
Thanks!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.