1995.10.09 – 2018.06.03[……]
https://www.youtube.com/watch?v = bg6QV2JEPvI
Always liked Jannine Weigel,This song has recently been brain worm,And later recommended to the female vote,She asked me to translate ...... Well,A long time have not translated lyrics,Then the song lyrics and no Chinese,So I simply translated a bit, "Deep end" there broke out in the English language、Crazy meaning,So inside the lyrics can be understood as "walk the edge of collapse"? In short this is probably a pun。[……]
Woman sent me a ticket Cherry MX Borad 8.0! Yes,That is a rare manufacturers that need a 9.5 H CNC milling machineAnodizing 87 Key mechanical keyboard! Apple external keyboard and a design style,Coupled with a specially designed key caps font,I fell in love with at first sight to see(Incidentally blown about,This is what I often sayDesign three elementsIn the "visceral design")
but,Manufacturers are customers can design,I like this small minority are basically not be considered in,then,In addition to hand happy or outsideHappyGo pondering[……]
When carrying out the development of iOS macOS,We often need to interact and file,For example, association and open a certain type of file,Well, this time,Your name suffix used in this document are not,But it's UTI。
UTI is a unified file type name,It sets out what should be a file type,Rather than suffixes to determine,For example, txt,text,json are plain text files,They are public.text
Then,usually,For the well-known file types,You can go toApple's official page[……]
With the wrong default environment is not terrible,Well matched back like a big deal。
Obviously,He says such things there is no story。
In short,If you find that your vps One day suddenly can not log in,The content is not being given no authority,But the certificate is to determine the right - then you might be wrong with the last exit before the shell。At this time, even if you use the console to log on,After logging will find immediately flashed back to the login screen - finished,You thought,Just with a good environment, we have to do it all again。
use chsh Silent switch[……]
existAfter purchasing a VPS you should spare security measuresAs we mentioned with fail2ban To protect ssh ,So even without changingsshPort (default is22),Also can be done to avoid brute force password,of course,We have opened the credentials to log in and closed the ssh password login option,But with fail2ban Kill those who keep trying to make us feel bot is also a pleasant thing。
In fact,apart from Use fail2ban Bind9 be used to prevent DNS amplification attacksouter,We can also[……]
Use custom sounds as notification sounds
In iOS 10 after,iOS uses a new
UserNotifications As the notification API,This allows developers to use images、video、Sound and other rich media content as the notification,While further,You can also use the Notification Content Extension Size customize the content and layout of notice。
If you are self-defined tone notification,Then you can give [cray[……]
When restoring data,You may need to use U disk copy data,But macOS default is read-only mount ntfs,of course,We have a way to use the command line to become re-mount it read-write。But this is likely to cause ntfs permission error,The result is that when plugged into another computer's,This file mayGrayed:
If you use this time to force it open decompression software,Then you will get a similar error:
Item “xxx” is used by macOS and canno[……]
Since I replaced the United States District Apple ID,Originally purchased the Surge will not be used again - of course,Now Surge also updated the new version,to me,Spend millions to buy an advanced network debugging tools and then simply used over the wall,Think I felt very stupid。
Fortunately,macOS version of the Surge 2 Authorization is still,After all, this does not follow Apple ID,I can continue to use。Surge future 2 Stop updating of the maintenance,I would consider continue to adhere to a few years to buy new。
In short,In iOS[……]
As early as last year,Off the grid user input methods have reported pocketed Chinese input method macOS can not type in normal mode MarkDown proper way cloud notes,After testing proved true,Embodied in the text when hit,buffer refresh will be strange delete a character before the cursor - on,no more, no less,To delete a。
Fiddle for a long time failed,Finally, I did not move all the contents out of print,Discover the mystery:
When I get input cursor to the left of the text printed out,I found behind the text is appended a strange character[……]
For iOS developers,The face of app piracy,The biggest problem is not a technical break,Instead, more and more sharing of pirated Apple ID,Some people might say that piracy is equivalent to a "trial" of the,Like people will naturally go into positive ...... but in fact,Because of penny share account of piracy,Led to numerous independent developers and ultimately to the vote resume。
In short,last year,Surge authors published such an article Surge 2.0 It is how to achieve the anti-piracy on iOS His theory was purchased from the app[……]
On iOS,If we want to display a shadow View,So basically do:
|
1 2 3 4 5 |
self.view.layer?.shadowColor = NSColor.black.cgColor self.view.layer?.shadowOpacity = 0.1 self.view.layer?.shadowOffset = CGSize(width: 0, height: 0) self.view.layer?.shadowRadius = 3 self.view.layer?.masksToBounds = false |
but,To the macOS,This would not work - no effect。
The answer lies in the macOS a View If you want to use
layer ,You must manually mark,For example, this:
[crayon-69d58[……]
In fact, two months ago, this one should be written,However, there are some things to delay so they now。A few days ago to discuss the concept and friend to the independent development of the "small minority" of,I feel the need to further detailed definition of what。What independent developers do this minority is,The so-called market segmentation,Exactly how should subdivision。
Mind niche
When it comes to niche segments and,It may be the first impression a lot of people are those things nobody cares about, such as a handful of students in a small school needs,In some lawyer or needs work ...... Here we recallMarket segments:How independent developers that determine the development projectin[……]
Today Gerber drop-off certificate expired,I have written beforeHow to add https support with letsencrypt to blog,And teach you to write a regular update service at the end of the article,So you do not own every three months to update the manual。
but,If your certificate to expire,So in fact letsencrypt robot will send you a reminder email,The general content like this:
Hello,
Your certificate (or certificates) for t[……]
Before I wrotePoker 2 Mechanical keyboard Mac key to modifyArticles,Because now I bought a lift tables,Then poker wired,So very convenient,Just wondering to buy a Bluetooth keyboard,I did not expect that year dream of mechanical Bluetooth keyboard has been ready,Just,He wondered if he ordered a。
I have a soft spot for wasd key direction of poker,Especially after the change is fn capslock,Simply programming tool,Cool batch,So this is bound to be looking for 60 key keyboard,Also support capslock + in[……]
Under normal circumstances,You do not need to know the contents。
In rare cases,Your app might need to get the user presses the button information,such asThe ones released Develop a Input Method。Only then can you provide candidates to the user。
How to create an input method under macOS,I'm hereSwift uses InputMethodKit to write an input methodThis article has detailed instructions,Pass it over here,How do we have focused on addressing key user,Especially the handling of a modified key。
Pocketed input method has always been a sort of a small[……]
A recent project on Windows,Customer requirements to do the "flip" a little,so,Dynamic window background is always essential content (such as mobile phones qq login screen, right?
I thought this is a very easy to implement functionality so keen on the idea down ...... yes,In winform in,Not so easy to achieve the effect you want the。
Of course,We think that if you want to play video,Then the system comes with media player,Just add a control that can handle - the result is a video playback of either[……]
Update:upgrade Ubuntu 20.04 LTS Rear,csf is not working,Prompt that iptables cannot be found:
|
1 |
Testing ip_tables/iptable_filter...open3: exec of /sbin/iptables -I OUTPUT -p tcp --dport 9999 -j ACCEPT failed: No such file or directory at /usr/local/csf/bin/csftest.pl line 144. |
This is because Ubuntu 20.04 LTS Changed iptables Related command position,The csf script is not updated in time。
|
1 |
/sbin/iptables → /usr/sbin/iptables |
To solve this problem,We can go to[cr[……]
When developing pocketed macOS version of the input method,I encountered such a problem,That is the window priority issues。Before How to make NSWindow displayed in a different Space or the Screen This article I referred to himself realizes candidate field pocketed input method,In fact, with a NSWindow Implementation。So since it is a common (through the magic change) of [crayon-69d58affdabfe98792[……]