This article shares about how to properly set up a permanent storage upload folder in Openshift.
Category: Technology
In short: Use Outlook to export Offline GAL to Access, then use Access to export to Excel if needed.
NTU Course Vacancy Checker
Update 2016: The code is no longer working due to external changes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
#!/usr/local/bin/python3 """NTU Course Vacancy Checker, written by @yuan3y (Twitter/Instagram) Source code available at: http://snipt.org/BCgh2 You will need a Python 3 interpreter to run this code: Such as http://www.python.org/download/releases/3.3.3/ Type in your subject codes each on a line, ends off with a single @ sign on a separate line. Merry Christmas and happy STARS games! God bless, @yuan3y 18 DEC 2013""" import urllib.parse import urllib.request def check(subj): url = 'http://wish.wis.ntu.edu.sg/webexe/owa/aus_vacancy.check_vacancy2' values = {'subj': subj} headers = {'Referer': 'http://wish.wis.ntu.edu.sg/webexe/owa/aus_vacancy.check_vacancy'} data = urllib.parse.urlencode(values) data = data.encode('utf-8') req = urllib.request.Request(url, data, headers) response = urllib.request.urlopen(req) the_page = response.read() lines = the_page.decode().split('n') for i, a in enumerate(lines): if '</TR>' in a: break try: # print('n',subj,end=”) while True: if '<TD> </TD>' in lines[i + 2]: print('', lines[i + 6], lines[i + 9], lines[i + 12] + lines[i + 15], lines[i + 18], sep=',', end='') i += 20 else: print() # print(subj,lines[i+3],lines[i+6],lines[i+9],'='+str(int(lines[i+9]))+'/'+str(int(lines[i+6])),lines[i+12],lines[i+15],lines[i+18]+lines[i+21],lines[i+24],sep=',',end=”) print(subj, lines[i + 3], lines[i + 6], lines[i + 9], lines[i + 12], lines[i + 15], lines[i + 18] + lines[i + 21], lines[i + 24], sep=',', end='') i += 26 if '</TABLE>' in lines[i + 1]: break except: pass while True: courseList = [] while True: a = input('course, @ to end:') courseList.extend(a.split()) if '@' in a: break for courseCode in courseList: check(courseCode.strip()) print() |
Screen brightness becomes unavailable after Toshiba Satellite M840 upgrading to Windows 8.1 |
Here is a warning for Toshiba Satellite M840 users. Do NOT upgrade to Windows 8.1 yet! Toshiba has not yet have proper drivers for the upgraded system. You will be unable to adjust the screen brightness after upgrade. All other functions (Fn+F1, F4-F12) have no problems; Fn-F2 and Fn-F3 for screen brightness adjusts fail.
I have yet to found a solution to it. Calling to Toshiba Support tells me I have to downgrade to Windows 8 (8.0) for now.
Toshiba Satellite M840 Review
T-Clock 2010 with my custom format for time display |
T-Clock 2010 Official Website: http://www.stoicjoker.com/tclock/
Current Version installed: T-Clock 2010 (build 95)
When I choose “Use small taskbar buttons” (from Taskbar Properties), the Date/Time display on the right end of taskbar became single-lined, and date went missing.
I’ve tried to hack the LogPixels value under HKEY_CURRENT_CONFIGSoftwareFonts in Registry Editor, as suggested on Internet. It worked (values I used were between 84 and 72). However it led to undesirable blurry fonts in Chrome, and I found no working solution to it. Thus I reverted back to original 96 dpi.
That was when I came across T-Clock 2010.
T-Clock 2010 is able to customize the way which Time and Date displays on Taskbar. It is a simple zip download from the developer’s website. Unzip x64 if you are using a 64-bit Windows, otherwise Win32 will do. Put it in any folder that is easy to access (but probably avoid Program Files or Windows). Start the Clock.exe in the folder, it is up and running.
Through T-Clock Properties (Right click on T-Clock area), much customization can be done. You should at least let this program run automatically upon starting Windows: tick the tick in the About tab of the Properties.
To re-imitate the default Windows Date/Time look, the following is to be put in Custom Format under Time Format:
TIMEnDATE
I found myself enjoying customizing the way it looks, so it took me further and I eventually came up with what you see in the screenshot at the top. The documentation in the T-Clock Help.rtf is quite comprehensive, except that it didn’t tell you how to make the preceding ‘0’ appear in hms of the system uptime. Sdd, Saa, Shh, Snn, Sss are the hhmmss corresponding version of the system uptime.
My custom format set for T-Clock 2010 is:
SaaSnnSss ddeddmmeyyyy”№”Ww”W-“hhttnn@@@.@
The font used is Calibri Light, ClearType Natural, Size 12.
For Clock size and Text Position, I have Vertical as 1.
I love the way it looks now.