Loading [a11y]/accessibility-menu.js
2-tags-invalid-in-this-post aaa account account-activation account-creation account-recovery account-registration account-tickets acknowledgements actnearn adblue admin-menu ads adsblocker adsense adult-toy advertisement afternoon-tea agile agile-development ahmdal-law algorithm algorithms amazon american-express amex amp android-pay animal-drawing anniversary antibiotic antibiotics api apology app artificial-intelligence attributeerror audi authentication autumn babies backup baidu balance-transfer banding bank bank-of-china bankofchina baptism base64 bash bbq bcc beauty bedfordshire beer bible bicester bicycle-safety bing-wallpaper birthday birthday-party bisteemit bitasset bitcoin bitcoin-cash bitcoin-gold bitcoin-hd bitcoins blackmail-email block blockchain blockchain-overview blocktrades blog bluetooth blurt bmw-z4 bonfire bonfire-night boost bot bots bounty bowling boys-girls brainfuck brent-cross british-breakfast british-museum british-passport british-phd broadcast-error bruteforce bug bug-hunting bugs burndown-chart busy busyorg c-plusplus c-sharp cambridge cambridge-park camera camera-lens camping canon-lens car career cat certificates challenge chart chessboard childcare childhood children chinese chinese-characters chinese-chess christ christmas christmas-present chrome chrome-extension chrome-extensions chunwan cinderella cinema claim-account claim-rewards cloud-vps cloudflare cn cn-18 cn-2017 cn-bank cn-contest cn-cryptocurrency cn-curation cn-foodporn cn-love cn-members cn-midautumn cn-music cn-programming cn-reader cn-stats cn-tools code code-refactoring code-review codeonsteem coding coding-exercise coding-styles codingforspeed coinbase colour-lens comment-feed company-events complexity compound-effect compute-pi computing condenser contact-lens contest contests convert convertible copenhagen-diet copyright counting country-garden courtyard covid-19 cpp cracking-interview create-account credit-card credit-cards credit-report crocodile-farm crontab cryptocurrency csharp curation curator curl custom-json daigou dailychina data data-structures database date dblog ddos defensive-programming defuscator delegate delegation delegationhub delegator delphi-berlin delphi-starter dental dentist development diamondtoken discord discount doctor dota dota2 download-instagram doxxing dragon-boat drama drawing dream driving driving-insurance driving-othercars dtube dtube-farm dtube-lavender dvla dynamic-programming eat efs-24mm egg electricity-bill email en engineering entry-exams eos eq esteem event events everlasting-moments excel exchange-blast exercise exercise-daily extraction fairytale family family-bonding farm fashion fen-drayton fendrayton fever fiat fibre-broadband fifth-anniversary fight-spam finance-freedom firetrucks fireworks first-experience first-pay first-post fith-grade flat-tyres follow food football fractal framework free-fruits freelancer freespace full-node full-service fun fun-guess funny gadget game games gaming gardening gas-bill github giveaway god google gopro goto graduation graphics gratuity green-park guest-posts gym hacktoberfest halloween hamerton-zoo happy-kids happy-newyear happynewyear harddisk-review hardware hashtable health helloworld hf20 high-heel highheel hinchingbrooke history hive-180932 hmrc hospital house house-decorating house-price house-wife houses html https hubsan-drone huntingdon ico ide-tools ideas ifttt ilovecoding image-optimizer images incident include infant-schoolmeals information injection insurance-group insurance-types interests interview interview-question introduceourselves introduceyourself introduceyouself ip-address ip-addresses iphone-se java javascript jjm job-search job-searching jobs jogging jscript json justyy keyboard keyinput kids-imagination kses lake lassecash latex lavender learning lease-sp lease-steem leetcode legs lens life life-insurance linkedin linq linux load-balancer login logo logo-turtle logout london love luton luxury-shopping m3u8 machine-learning magic-number magik management markdown-table marlians marriage marryinuk mastercard math math-competition math-puzzle math-story mediaofficials meetup meipai-video memory mercede-benz miaopai-video microsoft microsoft-research midlife-crisis milking minnowbooster minnows minnowsupport moderator moments money mongdb monitors montecarlo-simulation mortgage-protector movie msscript multicolumn museum music music-school mute muted mysql natwest neoxian network network-infrastructure news nginx nhs nobrainer node nodejs nodes notification npm npm-js obfuscator offer offschool-policy ofo-cambridge ofsted old-macdonald online-offline online-tools open-source optimisation oracle-d outdoors overfitting paid-posts painting pal palnet parallel parallel-computing partiko passport password pathloss payout paypal paypal-credit paypal-fees pearvideo pengyouquan pension peppa-pig performance peterborough phd phd-process phd-scheme phd-thesis phone photo photo-api photography photos php php-checker php-image phpunit piano piles pingspeed pinyin plugins plusnet pm2 poker-game poloniex-wallet porn-https portrait powerdown powershell premium pretty preview primary-school privileged probability producer-reward profiler programmers programmers-chair programming programming-job project projects promo-china promo-cn promo-steem promo-steemit promo-utopian propagation pub pub-food pumpkin puzzles python qr-image qrimage quality-ham questions r-language r-programming radiowave radiowave-propagation railway random-picture ranking recall recovery-account recursion recycle-center red refund registration regulations replay reputation resilience resteem retro reward-account rewards rio-olympics robin-li robot rot47 roundup rpc rpc-node rss ruin-life rule-checker running saas sbd sbd-bitcoins sbd-steemit school-house schoold scriptcontrol scripting scriptingcontrol sct sct-cn sct-freeboard seagate-sshd security selfie selling seo server server-upgrade servers sevendaybnwchallenge shares sheffield shell shoes show-ip siblings sigmoid simplified-chinese singapore-vps slack smart-glasses sniper snow soft-fork software software-development software-engineer software-engineering solar-panel soup southend sp-lease spam spanish-serrano speeding-penalties sports spring-festival springfestival2017 spt sql sqlite ssh ssl-certificates st-ives statistics stats steem steem-account steem-accounts steem-api steem-apis steem-block steem-bug steem-couples steem-dev steem-engine steem-guides steem-information steem-js steem-node steem-nodes steem-payout steem-power steem-python steem-revenues steem-sql steem-stats steem-story steem-tips steem-tool steem-tools steem-tshirt steem-tutorial steem-ua steem-whale steem-witness steem-witnesses steemapi steemapp steemapps steemcoinpain steemconnect steemd steemdev steemhunt steemit steemit-api steemit-bug steemit-bugs steemit-stats steemit-witness steemitboard steemjs steemleo steempower steemsql steemstem steemtool steemtools steemvbs steemvoter stellar stock-option storage-sense stories story strawberry-picking street-portrait study study-room submit-button subsystem summative-record summer sunglass sushi swimming-pool table tags talks task-development task-request task-runner tatoo tdd tea-break teaching team-building teamsteem teamviewer tech-news technical-debt technology tesco testing the-fox the-invalid-tags threatening tips-uk title-register toilet-flush token tomyam-soup tools traditional-chinese traffic translation translator travel travel-document trends-website triangle turtle-graphics tutorial tutorials twenty-seventeen twitter two-boys tyres ua ubuntu uk uk-bank uk-creditcard uk-freelunch uk-gp uk-hospital uk-nursey uk-pub uk-pupils uk-taxcode unit-test unit-testing unit-tests upfundme upvote upvoting-bot url url-shortener utopian utopian-api utopian-bots utopian-bugs utopian-io utopianmodintro valentine valentines vbs vbscript vertical-monitors vessel video video-download video-downloader vintage-computers visa visa-debit voting-bot vps vr wallet wallet-tool wallets warning wasted-food web-tool wechat wechat-bot wechat-group wedding weechat weedkiller weibo-video weibomiaopai weight-control weight-loss wfh whalepower whales whatis-1024 wherein wherein-daka win32 windows windscreen-replacement windsor-castle wipe-disk wireless wireless-attenuation wireless-propagation wirex witness witness-category witness-cateogry witness-factor witness-news witness-node witness-nodes witness-page witness-plugins witness-proxy witness-ranking witness-report witness-server witness-servers witness-tool witness-tools witness-update witness-votes wordpress wordpress-themes work workfromhome writing wubi wxt xargs xiaokaixiu year2016 youtube yoyow zcash zenefit zoo zram zurich-insurance zzan

Leetcode Biweekly Contest 31

I have recently started to attend the online coding contest. Leetcode has held weekly contests on Sunday early mornings - which isn’t ideal for coders living in Europe.

However, they have biweekly contests, which is run the Sat 3:30 to 5:30 (BST) every two weeks.

Today’s contest: https://leetcode.com/contest/biweekly-contest-31

I have managed to solve 3 puzzles in 30 minutes, however, failed to solve the fourth puzzle (difficulty level) in next hour.

The programming language I choose is C++. I have 2 Wrong Answer submission for Problem 2 - which adds total 10 minutes time penalization.

image.png

The fourth puzzle is not that difficult - it is a pity that I didn’t get it - and my ranking is expected to drop.

Count Odd Numbers in an Interval Range

https://leetcode.com/contest/biweekly-contest-31/problems/count-odd-numbers-in-an-interval-range
Easy Math, we can simplify the problem by adjusting the low/high acordingly. For example, when low is even, we can increment the low and the result will be the same.

Number of Sub-arrays With Odd Sum

https://leetcode.com/contest/biweekly-contest-31/problems/number-of-sub-arrays-with-odd-sum/
Dynamic Programming or Prefix Sum. Count the even sum or odd sum and add them.

Number of Good Ways to Split a String

https://leetcode.com/contest/biweekly-contest-31/problems/number-of-good-ways-to-split-a-string/
Use two arrays to store the number of occurencies for each character. There are O(N) ways to split a string.

Minimum Number of Increments on Subarrays to Form a Target Array

https://leetcode.com/contest/biweekly-contest-31/problems/minimum-number-of-increments-on-subarrays-to-form-a-target-array/
Accumulate the difference between neigbour numbers, this can be done in O(N), four lines of code.

I’ll share the solutions on the blog in more details soon.

Although the contest has ended, you can try to participate on the virtual contest.


Every little helps! I hope this helps!

Steem On!~

If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE



Alternatively, you could proxy to me if you are too lazy to vote!

Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy

Visit me at: https://steemyy.com


This page is synchronized from the post: ‘Leetcode Biweekly Contest 31’

Remove the Temporary Files (including Windows.old) on Windows 10 to Save Space via Storage Sense

Recently I found out on my C:\ there is a folder windows.old probably this is due to the fact that I refreshed my Windows 10 using a Recovery software from Microsoft.

Can I safely delete Windows.old Folder?


Yes, The windows.old contains the previous Windows installation files, and is scheduled to be deleted after 30 days by OS. Prior to then, those files are protected and can’t be deleted unless you use the Storage sense.

Go to Settings and Navigate to Storage

Select the Temporary Files, you will see Previous Windows Installation, Tick it and Click Remove.

By default, the Temporary Files will be kept 30 days before they are automatically removed. You can configure the

You can also configure to let it clean the files every day, week or month. This should free up your harddisk space.


Every little helps! I hope this helps!

Steem On!~

Reposted to Computing and Technology

If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE



Alternatively, you could proxy to me if you are too lazy to vote!

Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy

Visit me at: https://steemyy.com


This page is synchronized from the post: ‘Remove the Temporary Files (including Windows.old) on Windows 10 to Save Space via Storage Sense’

The importance of Backup

I recently lost a harddrive. I sent it to data recovery, and paid for 300 GBP, however, no data was recovered.

Unfortunately we could not recover the data from the hard drive due to media damage on the hard drive disk platters.

We imaged your hard drive disk platters 6%, however there was 94% we could not image from your disk platters.

We scanned the 6% image for any good data, unfortunately no good data was recovered from the partial image.

Initial problem on the hard disk was read/write head failure, although this did not cause any media damage to start with, it seems the hard drive was powered on for a period of time after the read/write head failure which caused media damage on the disk platters.

Your only other option for recovery is a forensic style recovery in our lab in London.

We don’t feel this is a viable option based on the low percentage your disk platters were imaged but if you need them to review your job let us know and I will put in a request to them (it takes them one day to review jobs, forensic cost for your size of drive would be around the £1000+vat mark).

I lost years of Family data and photos. One lucky thing is that I posted occasionally on social networks (including steem) some photos.

Two lessons learnt:

  1. I should have backups, ideally more than one, on different harddrive. I should ‘ve also stored photos/videos on Cloud apart from important files and data. Google Photos are free/unlimited if you choose a compressed format to store all the photos/data

  2. Once the harddrive becomes faulty, don’t try to play your lucks by plugging in. The broken headers may actually damage the disk platters which causes further data recovery to fail. Once it is faulty, unplug, and sent it to data professionals for data recovery.

  3. Use a software to monitor the health of harddrive regular. Once it is about to fail, replace them.

  4. Use RAID.


Every little helps! I hope this helps!

Steem On!~

Computing and Technology

If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE



Alternatively, you could proxy to me if you are too lazy to vote!

Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy

Visit me at: https://steemyy.com


This page is synchronized from the post: ‘The importance of Backup’

Performance Comparison between Two RPC Nodes

I have compared the RPC node performance between api.justyy.com (Germany) and api.steemyy.com (Japan) for visitors coming from China

image.png

As we can see, the German RPC node are quite slow (orange) and the Japanese RPC node is a bit faster (green) for most parts of China, especially the eastern coast.

Compared to api.steemit.com the official node, these two nodes provide a good alternative.


Every little helps! I hope this helps!

Steem On!~

Computing and Technology

If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE



Alternatively, you could proxy to me if you are too lazy to vote!

Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy

Visit me at: https://steemyy.com


This page is synchronized from the post: ‘Performance Comparison between Two RPC Nodes’

Tesco & Hired Programming Competition Aborted due to Technical Issues

Today, at BST 5:00PM, the first programming contest (virtual) is scheduled. This event is sponsored by Tesco and organised by Hired.

image.png

There were around 180+ participants on the zoom meeting. But unfortunately, the hired website kinda got DDos when ‘so many’ concurrent users are trying to log in.

image.png

After 10 minutes, the organised annouced that the event unfortunately has to be aborted. Good thing to know is that it is not totally cancelled. It will be changed to offline coding contest: given 2 coding tasks, finish within 24 hours instead of 1 hour online. Code will be graded and the winner will be getting 1000 TESCO gift card!

Good luck and have fun!


Every little helps! I hope this helps!

Steem On!~

Computing and Technology

If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE



Alternatively, you could proxy to me if you are too lazy to vote!

Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy

Visit me at: https://steemyy.com


This page is synchronized from the post: ‘Tesco & Hired Programming Competition Aborted due to Technical Issues’

Testing the Speed for the Load Balancing Node of STEEM - Part 1 - China

In this post, I am going to test the page speed to the Load Balancer RPC Node for STEEM: https://steem.justyy.workers.dev The tool is done via the http://ping.chinaz.com/steem.justyy.workers.dev

image.png

image.png

A few comments:

  1. most of China can’t access api.steemit.com
  2. the ping of the Load Balancing Node steem.justyy.workers.dev is still quite high in China.
  3. In order to speed up access in China, one needs to apply ICP, which is the short name for “Internet Content Provider”.

According to Chinese regulation, all website hosted in Mainland China or content served from Chinese data centers (which is true for our China Network service) needs to obtain an ICP “BeiAn备案” or “License 证” number for every domain that serves content to your pages. These number needs to be displayed on footer of your pages.

With ICP, then we can use the CDN to speed up the access in China.


Every little helps! I hope this helps!

Steem On!~

Computing and Technology

If you like my work, please consider voting for me, thanks!
https://steemit.com/~witnesses type in justyy and click VOTE



Alternatively, you could proxy to me if you are too lazy to vote!

Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy

Visit me at: https://steemyy.com


This page is synchronized from the post: ‘Testing the Speed for the Load Balancing Node of STEEM - Part 1 - China’

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×