001 Jinghong Forum & Algorithm

Source: Internet
Author: User

(1) Jinghong Forum IOS Client

I wanted to create an iOS client for my school forum for a long time. However, the absence of APIs in the Forum (discuz) is a hard nut to crack. The idea of the expert is to use cookies to simulate the computer online, use http get to get the content on the webpage, and use various regular operations to get the content on the HTML webpage. Then, it is parsed and displayed on the client. Post and other operations are performed through http post. Of course, the shortcomings of this method are obvious.

  • Simulate the client on the computer, and the traffic consumption is obvious.
  • Complex: parse HTML instead of JSON
  • Inconvenience: Forum parameters may change at any time

Try to use Charles to capture the package and get all the content in HTML, and decide to put the solution behind it.

Then I contacted Jinghong's Technical Department to develop a set of Apis at the backend, but it seems that the results would not be so quick?

When the day was over, I suddenly remembered that there was another discuz client generated using the template. I used it decisively and captured the packet and got the JSON! Obviously, the client generated through this template interacts with each other through a JSON file. There is probably a third method available, and what I need to do is to explore its API and how the client communicates with the server.

(2) algorithms

When I arrived at the library at six o'clock in the evening, I started to read "Introduction to algorithms". I forgot about mathematics. I was eager to seek success. Mathematics proved that I was sleepy and I was not smart enough, otherwise, I will study mathematics or physics with love ...... Leave this book and read the fourth red version of "algorithm". I was a little excluded (because there is no Java Foundation), but after reading the second chapter, select sorting and insert sorting, awe-inspiring to this book ------ this book is very clear. The time was too fast. I had never touched anything in the code list with the past, and it had been more than nine points. Before going to bed at night, I tried two algorithms on xcode... However, I found that I was weak when I used C to describe it. I forgot about it and it seems too complicated to use objc. In fact, I haven't re-touched C for several years. I should have a look at the basics of all kinds of forgetting, although I was quite impressed.

(3) insomnia

I am not used to leaving the company on the first day. I still can't sleep at. It's also related to the dormitory, lighting, keyboard sound, and fan sound. What you suspect is the consequence of your choice. One reads a book, one knocks on the code, and one develops independently. Is there more progress than the practice in Yinjiang? I am confident, very cautious. Maybe I should continue to update my resume, and continue to seek an internship on the hook, street, and Intranet. In fact, I am only one thesis away from my theoretical graduation.

001 Jinghong Forum & Algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.