Skip to main content

Posts

Mysterious deployment

Finally, got Flask site deployed on Azure.....  There's probably nothing wrong. The only problem might be my rebellious inner self that giving me a hard time.... A programmer under Mac or Linux OS may prefer to use python and develop under Linux compatible environment; they may choose Visual Studio Code. I developed my Flask under Windows environment (no IDE), using CMD for git version control, or, at the end, I didn't know how to make a simplest webapp work on Azure, trying on Visual Studio Community 2019 for deployment. (only for ASP... too bad...) Finally, I installed Visual Studio Code for deployment.... It worked.... Nothing wrong with my testing code.... Anyway, nothing wrong is a good thing. A fulfilled day!

Flask-- Getting familiar with Python

    Walk through example provided by Flask.  https://flask.palletsprojects.com/en/1.1.x/     After years of software development, "learn a new programming language" became abstract. If a 'language' is specialized, it probably could be taken as a tool/package. What I need to know is its APIs. What it can do, how the procedural goes and where to start are main purpose I should figure out. Learning a tool won't take too much time.      If the language is for general purpose, probably they all seem very similar........     C++, Java, PHP, C#, Python, etc. are little difference to me. Of course each owns its specialty. Just because that they can do almost anything, How well a programmer masters these language might depend on how many packages/extensions the programmer knew. And this could be easily solved by internet. I assumed that, once seeing possible usage, an experienced programmer still not knowing how to use it is impossible.  ...

WCF walk through

    Finally, got example that intriguing~     When I create client/server between Linux servers, it was not so complected... Opened a port, bind address, and then listen. Or prepared information that server were listening, and retrieved the result back. Under current Windows framework, so much information required. And how come I never successfully built startup projects provided by docs.Microsoft ....?    Many environment related issues happened when I tried to complete this WCF project. At the end, its so pleasant~~~ Source:  Docs.microsoft.com:  Tutorial: Get started with Windows Communication Foundation applications I would say this example was designed carefully. The instructions is set to be clear and simple. Naming convention may make attributes ambiguous, and the tutorial designer carefully make minor differences. I encounter many issues and finally decided not to change a word in code, making it easier to disting...

New adaptation

For COVID-19 impact, governments’ subsidies are only for temporary relief. We need to innovate new sub programmes to keep our society moving. Since gathering activity should disappear, we need new ways to make it possible in virtual, and shift the benefits to real. Focus on location instead of on functionality to support real communities. Those innovations won’t replace our original business model when the world survives normal, but can live together as subservices with the mainstream. And take heavy duty during emergency situations.

VC# and chart/image viewer

    Walk through code related to charts, browser and image viewer.       It's a good thing to know how others deal various object in different way, though everything is simple on textbook. But, still, some doubts raised since the outcome is not ideal. For example, how could I create a modern browser if the version VC visual design provided is not supported by most website.....? I have to break into main loop and find out where objects are initialized, instead of waiting for system dispatched event, right? or find some way to breach the main flow...? Probably this is viable solution, but a little ugly.....    Most functionality could be done by VC UI, even the author mildly expressed that coding is almost neglectable.... As what I mentioned on last post, this is a book for VC, not for C#..... I will still complete it. At least there are examples showing me how functionality are performed. And hopefully this could be break into raw functions wit...

VC with MSSQL

    Walk through of VC with MSSQL. Current progress is 60%. The topic I may spend more time could be charts related.     Gradually, I got some feeling that, generally, people like system design. As a gamer, I like unlimited imagination. I may pursuit everything but common and regular. But for many people, they love things familiar. I'm no stranger to database manipulation and data expression. But people like system design, plus fast. Customization always takes time, and not acquainted, maybe not convenient....     Stepping into different world is always interesting.     2 code sections are included on this page. I thought meaningful, but still boring. I should find sometime to design interesting exercises, and also practice on LINQ.     But maybe I'm in a hurry. Azure pop into my mind rather often.When working on MSSQL exercise, I tried to find remote MSSQL host, free. Remote connection is more practical than local database...

VC menu exercise

    A VC exercise on menu and dialog box for loading/saving.     Actually... I'm not looking for formal guides to use visual studio... Sure thing is I need to know the detailed difference between C++ and C#. I also programming in Java, and once in Objective-C, memory address manipulation is special to C++, and also dangerous, so newer languages prevent memory issues and cover them with system background works.     Saying that knowing C++ well is also accountable for C#, but I still can't say confidently that I'm also good at C#. Things are almost the same that my IT career is almost entirely bind with internet, remote service, virtual machine simulator, cloud development, patching services, etc. before they gained modern names. But I can't say I knew Azure, AWS, SaaS, PaaS, REST api, cloud, git, etc.     I need to prove it with my codes. I don't complaint. At least, nowadays, it's possible. And studying is kind of my recreations. ...