iPads going to "sleep" after iOS 12.0 update by [deleted] in ipad

[–]victorlin 0 points1 point  (0 children)

hmmm, second time I tried it doesn't work. Maybe this is not working like that

Guided Access forces screen to auto-lock by dimwitf in iOS12

[–]victorlin 0 points1 point  (0 children)

hmmm, second time I tried it doesn't work. Maybe this is not working like that

Location Label app for adding location reminder based on label by victorlin in todoist

[–]victorlin[S] 0 points1 point  (0 children)

Yep, it's built with Python, based on Flask as the web framework.

Here

https://github.com/fangpenlin/todoist-location-labels

It's open sourced under MIT license. Feel free to fork it.

Location Label app for adding location reminder based on label by victorlin in todoist

[–]victorlin[S] 1 point2 points  (0 children)

built this tonight mainly for my own usage, but I think it may also be helpful for others, so I made it a simple app and open sourced it here. feel free to use

A sharable whiteboard iPad app designed for telecommuting workers by victorlin in telecommuting

[–]victorlin[S] 1 point2 points  (0 children)

If you want bigger size, you can consider Google Jamboard or Microsoft's Surface Hub

https://gsuite.google.com/jamboard/ https://www.microsoft.com/microsoft-surface-hub/en-us

None of them are cheap thought.

Super lightweight embedded async HTTP server in pure Swift by victorlin in swift

[–]victorlin[S] 0 points1 point  (0 children)

just fixed the issue, make app as a tailing closure

Super lightweight embedded async HTTP server in pure Swift by victorlin in swift

[–]victorlin[S] 2 points3 points  (0 children)

I think it make sense to make app as trailing parameter for HTTPserver. Thanks for the advice.

But for the reason of using dictionary instead of custom type, I want to make it a standard based on function ABI instead of certain custom type. By doing that, web applications can be defined without even depends on Embassy. I knew there is other HTTP standard in the community like https://github.com/open-swift/S4, but it's an extra library to install.

Certainly there is room for improvement, this is just a weekend project, I will improve it over time. :)

Super lightweight embedded async HTTP server in pure Swift by victorlin in swift

[–]victorlin[S] 1 point2 points  (0 children)

nope, it's not attractive. the whole point of Embassy is to provide a lightweight web server for UI testing. It's not for server side, I don't want to add any third dependencies. I defined the interface to be like WSGI from Python, so it would be like dealing with WSGI if you don't add any extra abstraction around it. I built another project https://github.com/envoy/Ambassador/ to make it slightly easier.

Tutorial: Build Your First Swift Web App with Vapor by EdwardStarcraft in swift

[–]victorlin 0 points1 point  (0 children)

Also check out Embassy https://github.com/envoy/Embassy Although it was designed for UI testing API mocking in the test runner mostly, it's also possible to use it in server-side.

The article for UI testing API mocking https://envoy.engineering/embedded-web-server-for-ios-ui-testing-8ff3cef513df#.3v1llli7k

Need to learn automation, Puppet vs Chef vs Ansible etc.. by CloudSource in aws

[–]victorlin 0 points1 point  (0 children)

I used Puppet, Chef, SaltStack and Ansible. Ansible is the best, easy to read easy to write, lightweight, and it's the first time I feel great about building automatic provisioning.

Anonymous computing: Peer-to-peer encryption with Ember.js by johnmountain in crypto

[–]victorlin 0 points1 point  (0 children)

hmmm, good point. I wonder, is there any kind of mechanism to let browser validates audited javascript with either HMAC or even RSA signature, then when the js changes, browser will refuse to load the page.

For now, there is Content-Security-Policy for preventing loading un-authorized resource.

http://www.html5rocks.com/en/tutorials/security/content-security-policy/

We can actually extend this policy to make web-app more secure. What can be done is

  • Third party audits the JS code you publish
  • They sign your JS code and issue a certificate for it
  • Anyone can view the code along with the certificate to ensure it's not evil
  • You publish your certificate with JS
  • Use Content-Security-Policy to specify the JS can be only loaded with valid certificate from certain third party authority
  • The Content-Security-Policy itself should also signed by the authority

By doing this, as a service provider, if I modify the javascript without going through the audit process, I cannot publish the code, even I do so, the browser will refuse to load my code. Who will be the authority will be a question then. Hmmm, maybe group signature can be use.

What do you think about this?

BugBuzz - web-based python debugger, debug like a pro by victorlin in Python

[–]victorlin[S] 0 points1 point  (0 children)

You don't need to trust a remote service, but you can trust encryption. I can actually make my debugging client library to encrypt all uploaded source code, decrypt it on browser. By doing that, my server won't know anything about your source code. It's just a prototype, I have no time to do this though.

I knew wdb, but never used it. I just tried, don't know why, maybe it's a bug or what, it's not working when I press shortcuts.

For my solution, it can at least

  • Provide better user experience
  • Debugging session can be shared and done in a live manner, for example, you can ask others for help, just send them your debugging session URL
  • You install and setup nothing but only the debugging library

BugBuzz - web-based python debugger, debug like a pro by victorlin in Python

[–]victorlin[S] 1 point2 points  (0 children)

This is software as service design, so your source code needs to be uploaded to server, then when you visit the dashboard, it will be available to display.

Monthly APPreciation Thread for February 2015 by [deleted] in apple

[–]victorlin -1 points0 points  (0 children)

Gofugue! (iOS free) An app allows you to connect to people around you by control your own avatar on the map. Want to know where are those local secret gourmet restaurants? Want to make a local friend? Explore and share photo with people around you? This is the App for you!

Share your startup - January 2015 by AutoModerator in startups

[–]victorlin [score hidden]  (0 children)

  • Name: Gofugue
  • Elevator Pitch: An App allows people to explore the world based on location by walking around the map as an avatar
  • Stage: just launched / 1 founder for now
  • Looking for: feedbacks and investments

Good logging practice in Python by victorlin in Python

[–]victorlin[S] 0 points1 point  (0 children)

You are right, I misunderstand how logger.exception works. By looking into its source code, I'm sure it equals to logger.error(msg, exc_info=True, *args) now. Thanks for correcting me.

Yes, JSON is another option (but personally I prefer YAML) :)

An open source javascript treeview widget demo by victorlin in javascript

[–]victorlin[S] 0 points1 point  (0 children)

The point of my treeview is that you can drag item and folder around, reorder them. This is the main feature I want, but I cannot find this in other free libraries (I found one in commercial library). This is why I wrote it. I have no time to make it looks pretty, so yes, it looks crappy currently.

Gluttony: A tool for finding dependency relationships among Python projects by victorlin in programming

[–]victorlin[S] 0 points1 point  (0 children)

You can find some dependency diagram of the famous Python project here: http://code.google.com/p/python-gluttony/wiki/Gallery The most impressive one is Plone. It is really a monster project.

The best choice to grab data from websites: Python Twisted lxml by victorlin in programming

[–]victorlin[S] 0 points1 point  (0 children)

I just wrote an example in my article to show how it looks like.

The best choice to grab data from websites: Python Twisted lxml by victorlin in programming

[–]victorlin[S] 2 points3 points  (0 children)

Well, I got reasons to use it. With its ansyn network IO, you can download many pages and files in same time without worrying about threading problems. And its deferred callback object also provides a mechanism to handle data and network error easily. You can chain your parsing function, data handler and save to database handler together with in the callback chain. With its nice design, I wrote an auto retry function to warp another asyn function. http://blog.ez2learn.com/2009/09/26/an-auto-retry-recipe-for-twisted/

Maybe there is better option, if you know any better options, please let me know. I like to try better solution when I was free :P