devmoore94 / textthem Goto Github PK
View Code? Open in Web Editor NEWThis is an app to send text messages from the web browser
License: GNU General Public License v2.0
This is an app to send text messages from the web browser
License: GNU General Public License v2.0
At the moment the path to static/nouns.txt is given given relative: path_to_nouns = "static/nouns.txt"
. This is a problem if we are executing the module somewhere else then in .
e.g. if your structure is the following way: /home/syntonym/git/textthem/TextThem.py
try executing TextThem from the git folder. It will not work (well it will until it hits generateRandom()
and then it will crash).
Does any of you know how to fix this? It seems that __file__
can come handy in here, but I'm a bit confused by it. This seems to be read that it can be either relative or absolute. I can't think of a way to solve the problem (utilizing __file__
or not) that would work always. Does anyone of you have a clue?
Since 6ed7e91 login is no longer needed to access the "send text" page. Besides there is now little feedback if you are logged in or not (working on that regarding #6) the login does not seem to provide much functionality. I guess it's good to have some reference if there is abuse (e.g. spam or insults/threats) but without validating there is not much we can do about that. Are there any features planned that need login?
During one of the pull requests something got changed that is causing a Bad request error when sending a message.
I'm currently working on some javascript and was wondering what to use for indentation. Currently it's 1 tab per indentation level. Random internet sites (like this) suggest 4 spaces. Do you have preferences?
aboutpage is missing a ">" in line 7.
Also most "orange" sites use the body and head tag in an incorrect way. As far as I know the default structure of a html should be as following:
<!DOCTYPE html>
<html>
<head>
<title>sometitle</title>
</head>
<body>
<p>content</p>
</body>
</html>
i.e. body should enclose all content, especially all div tags. But layout.html looks as following:
<!doctype html>
<title>Text Them</title>
[...]
<div>
[somecontent]
</div>
<body>
[more content]
</body>
{% block body %}
{% endblock %}
</div>
This htmlspec says that the html, head and body tags could be ommited.
the api call only recognizes phone number of the form1234567890, but users can enter any paasword. Unfortunately the API call is silently failing. should be fixed through simple javascript validation on the client side and regex on the server side. might also want to get response from API Call
Even if we don't want to add new features to TextThem (or assure it can send sms) we might want to polish it a bit to add it to our portfolio to showcase it to future employers. By polish I mean:
That are points I have still on mind if thinking of TextThem, but most of these tasks are more or less.. boring and would not realy have an impact.
What do you think?
From the readme, it seems like you're thinking about making this open source (i.e., calling for contributions). If so, you should definitely add a license.
I often need a simple way to communicate instant-message like but do not share a communication channel with them e.g: I want to check some details with a friend, but i've got only his email address and we lack common communication programms i.e. she/he only uses whatsapp and I only skype (besides email). While writing emails works, it produces a lot of short emails and sometimes I simply overlook the answer. Optimally I could send an link to my friend and then communicate on that website without any further issues.
There are some tools out there that can be used this way: Etherpad (and lookalikes), but it's more for collaborative writing and is thus a bit "complicated" for simpel chatting. freenode but you need to input a nickname and channel. While this is not really difficult I wouldn't presume my grandmother could to do that.
So a cool thing would be:
textthem.com/syntonym/a7d39f9123
or maybe anonymAdditionall features could be:
textthem.com/syntonym/askme
. If a person visits this link a chatroom is generated and a notification (via email or sms (or more?), configurable) is send to me, so i can speak asap to this personSo, this is a lot. Also it does not really has anything to do with what is TextThem now... But I guess I would use such a service (european here, I guess blower.io is usa only). Technically some kind of AJAX would be needed (does continously polling belong to AJAX?).
What are your thoughts?
Thought about adding this when I was working on form validation. We should probably have an upper limit maybe 141 characters :)
It is possible to override the Stormpath templates with your own. I think we could modify them to fit our theme better.
Simple password reset tab
I added the new changes for the phone book and there a few bugs that I am looking into right now. As well as ensuring proper validation.
@syntonym and @DevMoore94
when adding new features do you guys want to primarily implement on the client side(in javascript/jquery) or on the server side(create a python lib).
When I say a feature I mean different things the app might send like locations, data from api calls, etc.
Also, do we want to continue with the current structure of a separarte javascript "library"(.js) for each new feature? If that's the case we should probably assign each implementation to an object so that the variables are restricted in scope.
Let me know what you guys think.
Thanks...
We're gonna need to come up with an alternative to blower.io because 50 messages a month is defiantly not enough.
Everytime I pull the Production value is set back to True. Adding a flag so with python2 TextThem.py --developing
would enable Production=False would be a good way to make this configurable.
It's also realy easy to implement:
if "--develooping" in sys.argv:
Production=False
would be enough. Besides this simple solutions there are command line arguments parser out there:
I could provide an implementation with all of the three, but is it worth the additional package or is the simple solution enough?
I really do not care the color scheme and logo of the website. I feel like we could make it look much better. I am not the best at front end design though. I am leaning more towards having the sites main color be green and scrapping the logo or having a new one or something. I know @mkowoods said he was more of a back-end guy and I'm not sure about @syntonym but if anyone knows anyone that could help of we could just all pitch in and work together that would be much appreciated.
Hey @DevMoore94,
I haven't had a chance to run the Dev Version of the project, but am interested in doing a contribution maybe adding a feature.
before i started is there anything about the API's i should know before adding to the repo?
Seems like the solution to disable the send button also disables the random button. Looking into this.
Instead of having a seperate page for the random generator a button "Insert random text" could be under the send form that inserts the random words into the form.
Best for this would be probably be a javascript function that calls to an endpoint `textthem.com/random" or something like that and inserts that into the form.
Would that be okay?
@syntonym Stormpath is all based off of templates and can be modified to look however you want. I'm not sure what kind of background you have in HTML and CSS but if you would want to look into that or into changing the layout around. I know that there is a flask-bootstrap library as well. Let me know what you're thinking.
Do the unittests work? I'm getting NotImplementedError
. Can't copy full traceback right now because.. well I've no idea why it won't copy to clipboard.
Also is the TextThem app somehow imported? All I see is app = Flask(__name__)
but __name__
should be __main__
if executed this way if I'm not mistaken. Did I miss something?
I also noticed that the site when formatted on mobile doesn't reformat to fit the screen. Maybe something worth looking into as well.
Just thought I'd open an issue to start throwing some ideas around about what should be on the homepage?
I'm experimenting with Grunt for things like (javscript-) linting. It can handle a lot more, just take a look at the availeble plugins. E.g. minimizing javascript files link. If you also want to give it a try i can upload the required config files. If you don't want to use it I will only use it locally.
Thoughts?
Just a heads up we should make sure to add server side validation on the messages so that if someone posts directly from a URL or embeds the URL in a form the server still catches any erroneous behavior.
http://textthem.herokuapp.com/smsapi?number=1-301-325-8376&message=test
Need to disable the default functionality of the enter key or reconfigure the html to not use the standard form tags and instead only post based on an onclick event bound to the button.
Any preferences?
I havent done a lot with Unit Tests in Flask, but this might be a good time to get the ball rolling.
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.