inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Nov 3, 2016 11:18:55 GMT -8
For a while now I've been thinking about figuring out a way to shorten the process of adding changes to my plugins that I have made on local code when I'm doing projects that are too big to edit in the plugin builder. Since ProBoards frowns on using third party hosting services, it can get rather monotonous to make an edit, compile a source, copy the new code, paste it into ProBoards, run it, and then go reload the page I'm working on to see if everything worked. I recently ran into selenium (https://pypi.python.org/pypi/selenium). Long story short it would allow me to "simulate" a browser and automate the task of pasting the stuff into the code box on ProBoards. However, I feel like this is probably against TOS so I wanted to check. VS Admin Tim Camara
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Nov 3, 2016 15:03:43 GMT -8
I think that would be fine.
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Nov 3, 2016 15:59:29 GMT -8
Awesome. Thanks.
|
|
Former Member
inherit
guest@proboards.com
225992
0
Nov 30, 2024 10:50:48 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 3, 2016 16:43:11 GMT -8
This doesn't make any sense, can you elaborate? Fake browsers still need an endpoint to send data to.
HTTP ? not secure. FTP ? not secure SSH ? doubt it
Even if the data gets sent, pretty sure proboards are not going to validate it.
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Nov 3, 2016 17:12:31 GMT -8
@synthtec, check out the link in my post if you want to know more about how it works. The gist of it is that it's a completely programmatically run browser. i.e. I tell it to perform clicks/types in certain inputs and it simulates as if a person was actually doing it manually. So...it's just as secure as if I copy/pasted it into firefox...
|
|
Former Member
inherit
guest@proboards.com
225992
0
Nov 30, 2024 10:50:48 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 3, 2016 17:25:05 GMT -8
I know how it works mate, I could do the same from a CLI tool, node for example. It still does not validate the request. How do you think bots work?
Your essentially opening up a back door(not good)
The data itself needs to be validated on the server(proboards) ie: they would need to be involved.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Nov 4, 2016 3:46:48 GMT -8
TexasMost IDE's can do the bulk of the manual stuff for you. Yeah, you may need to write a few scripts to handle building, but then you just setup the IDE to watch your files and auto run the scripts and whatever else needs doing. For me, I can edit a file, the IDE detects the edit, runs my build scripts and other things, and if I want it to, it can upload that to my server. In the plugin I am developing, I link to the script / css, so all I need to do is a refresh of the page on the front end of the forum to see my changes. Quick and easy, no complicated setup needed. If people aren't aware, you can get all of IntelliJ for free if you work on active open source projects. www.jetbrains.com/buy/opensource/
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Nov 4, 2016 6:39:20 GMT -8
@synthtec, Don't get me wrong here, but I think your mis-understanding what selenium does. It literally just opens a webbrowser and manipulates the DOM. It'd be no different than if I just opened my browser and clicked on everything myself. No special ajax calls, no posts, no gets, no http, fttp, or ssl, just a normal browser that's being operated headless. PeterYeah, unfortunately I don't have a server of my own (college student). So, that final step I can't really automate. However, I do already create build files for most of my stuff but I hadn't thought about using the IDE to automate it. I'll have to look into it. Simple is better. Thanks.
|
|