Coding Mid-term part 3
With thanks to S.Slover, my code now parses geoLocation and gives user location on the task card. Next steps are two fix HTML/CSS and look up Sentiment analysis when we get to the Node stage. Sentiment analysis when giving tasks is helpful to determine urgency (priority of tasks). This is subject to fair bit of testing of course.
Coding Mid-term part 2
Okay so this is where we are: we can take in text from out chat window, and parse for certain tasks (#buy, #call etc). The next natural steps are to (i) display the task in html card like task bubbles (ii) have them show up on another window - for the tasker to do (iii) counting type of #'tag and generating json object. I'm not particular about order of (ii) and (iii).
On to (i), these are the parameters I'll be passing to the card: (i) task text (ii) time stamp (iii) current location of user sending task. Location so tasker can provide localized results, time stamp, because it's important to track it now - will help determine turn around times in the future.
Getting somewhere with the task card, notice timeNow in console
Getting user location
I need help: getting getJSON jQuery object to work in main.js and not be in index.html
- Calling project Teagle (TaskEagle)
- Selecting week3, weather-dashboard-inclass code as boiler plate for front end and copying over
- Editing main.js; eventlistener to input tag calls getWeather, which checks if valid input added. Renaming that to getTask(). Renaming geoCodeIt() function to taskParse() which looks for #'tag task category.
- removing API calls
- Removed ajax object as it seemed challenging at this time
- focusing on parsing #'tag from task using regular expression
- Searching for regex helper
- Using https://regex101.com/
- Here are the imp regex references
- Turns out I may not need regex, as I found from my regex code in witness
- testing that...oh, it returns a boolean only. Will need regex
Yes, yes it did work! Above link (and it's regex solution) was a savior. I am able to parse all defined #'tags in a sentence, not just the first #tag but all. Here's the code:
And the screenshot:
Using < xmp > tags to embed code in html since this post is being written in html:
- (i) Build an instant messenger'ish interface for taking in a task - like the input field for Weather search
- (ii) Designating #'tags as task categories
- (iii) Parsing tasks as #'tags, counting them and generating json objects
- (iv) visualizing that data to draw conclusions on what type of automation can a person perform
- (i) develop an intuitive interface inviting people to delegate tasks regularly
- (ii) a mobile UI is to make the virtual assistant always on always available
- (iii) get users to think about their tasks and #'tags as categories they internalize and starting thinking about their work as such
- (iv) Automate delgation and pass that on to the right person for the right job
- (v) Observe the supply and demand of task-outsourcing and task-working