Development on mobile phone,Currently popular on the network mainly two development software,Is a well-known unity (after all, the year 4399 above the game online edition of Minecraft developed by it,3d engine without any software beyond it),Another is the relatively small minority of the cocos。cocos occupy a major position 2d game,And unity has occupied a major position 3d game。And we are talking about the same as coronasdk and cocos 2d game engine (coronasdk not been known before 2010 mainly due to charges[……]
Recently received a project,Demand is to do a special project Andrews board serial read and write in order to achieve some specific external devices to interact with - yes you read right,Andrews is also a board can have serial port!
Many friends do mobile development may not come into contact with - in fact, before I did not come into contact with。He stepped on seven or eight hours a pit,Finally climb out,Here to do a summary,Each board may project different circumstances,We must improvise。
First of all you need to know
Jumper,In order to save the project board USB interface,The default external USB interfaces are not connected to the computer debugging[……]
Excellent input method,We came another excellent platform!
Although it lacks many features,But I can not wait to share these good things to you,He pocketed finally embarked on the input method macOS,over the years,Enter Larry is a nightmare in macOS,Now,This nightmare can end up。
In addition to incomplete abandoned pit I do not know when it can not be used palms input method for Mac、An outer substantially non-professionals can not be input with the Rime,You have one more choice,Pocketed input macOS version。
When the Ins and Outs of six months[……]
Some time ago I said ISave for a black high with apples,It was using an ordinary 1080p display,mine 21:9 To colleagues spent。
Now,I can not stand this 16:9,So he and I changed next,I go back to my 21:9,The results did not expect ...... Nima does not even support!
I heard hd530 drive nuclear significant not OK not result in recognition ......
In short,We still have a way to get the,Experienced a struggle most of the night,got the answer,The first is the splash screen,As shown below,把 Screen Reso[……]
RIP
Here the record about how I did it so that blog suddenly becomes black and white,Go one by one and replaced with a modified theme picture element must be a terrible way,I, of course, is global css style files,Use css itself functions can be realized black and white gray scale rendering。
Add the following code in Wordpress theme built additional css saved to take effect,If you are a static website,Then put the very beginning of the sentence added to your website style。
|
1 2 3 4 5 6 7 8 9 10 |
html { filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: url(desaturate.svg#grayscale); filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(1); } |
[……]
When developing pocketed input method,I met such a thing,That is, as a candidate bar window will go beyond the screen when the edge of the screen! and so,In the display window when I do extra check the coordinates:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
if visiableCandidateCells.isEmpty { if let screenframe = NSScreen.main?.visibleFrame { if screenframe.width < location.x + size.width { location.x -= location.x + size.width - screenframe.width } } } else { if let screenframe = NSScreen.main?.visibleFrame { if screenframe.width < location.x + self.window!.frame.size.width { location.x -= location.x + self.window!.frame.size.width - screenframe.width } } } if location.y < 50 { location.y += 35 + 35 } |
In short,That is, if you count the coordinates of their width exceeds the width of the screen,Norway put it back。
but,Such treatment does not work well in a multi-monitor,This case, since the multi display coordinate caused:
macOS multi-display coordinate Mechanism
[……]
Among write off the grid input method the Mac version of the process,I encountered such a problem,Article candidate system API disrepair,Many API functions exists but is essentially useless,such as:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
/*! @method @abstract Sets the "style" attributes for the candidates window. The keys for the attributes dictionary and the values are: NSFontAttributeName (value = NSFont) Setting the font attribute sets the font that is used to draw Candidates. It does not effect the selection keys which are always drawn in the same font. Note that to set the font size you should use this key/value pair. IMKCandidatesOpacityAttributeName (value = NSNumber with a float value between 0 and 1). Sets the opacity level to transparent (0.0) to completely opaque (1.0). The default opacity is 1.0. This constant is declared above. NSForegroundColorAttributeName (value = NSColor) Sets the text color used for the candidate text. By default it is black. NSBackgroundColorDocumentAttribute (value = NSColor). Set the background color that is drawn behind the candidate text. IMKCandidatesSendServerKeyEventFirst (value = NSNumber). NO (default) gives the candidate window first chance at key events. YES causes events to first be routed to the current IMKInputController. In that case, if the event is not handled, it will then be sent to the candidate window. */ open func setAttributes(_ attributes: [AnyHashable : Any]!) |
This method is used to set the style of a candidate bar,In addition to the default inside IMKCandidatesSendServerKeyEventFirst This can take effect outside,The other not ignore。
This awkward,Now flat out score easily 4k or to Watch[……]
In the Swift,We often used to initialize a URL path,For example, links to web pages。For example, this:
|
1 2 3 4 5 6 |
…… @IBAction func goToWeb(_ sender: NSButton) { let url = URL(string: "https://v2mm.tech/category/80/logcg-input-method") NSWorkspace.shared.open(url!) } …… |
When the user clicks the button (for example, the Help button),Then all of a sudden will help the user to open the default browser,And opens the specified page (here's a forum)。
Then,If this is your link: "https://How gracefully v2mm.tech/topic/618/ use pocketed input method dashed function" Then it is unfortunate,collapse。
collapse[……]
Gradle default Direct Connect network,Even Mac set the global proxy is the same。Even if you set up a proxy to Android Studio,It will still be directly connected fine, clear that you can not connect to the Web site in China for a lifetime ......
Gradle let go Agent,You need to give it a separate configuration,In each project
gradle-wrapper.properties Insert statement follows,Remember https do not save!
[crayon-69[……]
Do app do site,Inevitably and server、Backstage、Data deal,Then developed as a background,When it comes to Register Login,You should think most users should be safe,In particular password security。
Now a website security community almost every day、A company is Tuoku,That is the whole point of being stolen database download。So all your user data fall into the hands of criminals,Even so should be how to prevent,Criminals can not get the real password of the user of it?
Here we define,"Can not get" refers to the "lifetime" He can not get,Theoretically, if there is sufficient time ([……]
China's Internet is monopoly,Most Internet users daily access are not escape those few manufacturers of service,Another point of view,They do not require services outside of these manufacturers。Because daily Internet services are monopolized by manufacturers,As an independent developer,You do not have enough human and material resources,Not thinking focus、Research does not expect users,The temerity to contend against the wind and manufacturers,So the next failure is inevitable。
Previous articleWe discussed the importance of market segmentation for independent developers,So this time we take a look,No money, no team did a designer of independent developers,How[……]
Background account
Before everyone wrote OwnCloud build private clouds with personal Articles,Until now, network disk have been out of service for some time,Now ownCloud The team also abandoned pit,All switched to develop a new network drive”NextCloud“。
ownCloud version number has been maintained at v9.x.x ,As a newborn, however Nextcloud,The initial version is[[……]
As the saying goes,A good beginning is half the battle。
I find a lot of friends to chat,He says wants independent developers,Say you have an idea or project。And so they opened their mouths,I knew he was the end result is going to vote resume。
Many independent developers from the outset doomed (more likely than others) fail。 Why do you say? Many developers try to do independent development,Finally, you find yourself doing the app with no one。Eventually leading to frustrated,Back office。
Independent developers and companies to develop different,You do independent development,Then you are a person must wear many hats,But the most essential[……]
IOS app backend server to do,It needs to be done to support the ipv6,although 6 Almost do not use in China,Unfortunately Apple is now requiring all shelves app needs to support pure ipv6 network,so,At least our server to be up and running in under an environment ipv6。
Since most domestic server can not provide ipv6 network,So we can only find their own tunnel,Now it is used more widelyThis one,I also used their service,It is free,Registration look like。
After registration,Select the lower left "C[……]
All to known,Input method does not need to get off the grid. "Full access”,So according to Apple's rights,Naturally, you can not play the key tone。
but,Recent pocketed updated input method added this feature - you can even join in later versionsKey shockIt's。However, I stillNo needGet "full access"。
Then,How I do it?
iOS in the sound and vibration
In fact, the same thing。In iOS in,Actually sound vibrations,That is,First of all,As long as play sound,You can shake,Because in the iOS[……]
IPhone and other platforms to develop applications,Always need to use an Apple computer,Or iMac or rmbp,Even the mac mini is also OK。but,When a relatively large development projects,We need something more,Such as me,While doing a littleInput,But what algorithm run run thesaurus,A trip down must one day,It might also collapse again。Whenever Xcode disappointing at every turn white when,I wanted to - to a mac pro how good。
but,The price is a bit Oh。
Finally,exist Cy[……]
With the upgrade version of Xcode,speedMore slowly,In particular, Yiyanbuge "Whiteboard"I believe we will have problems encountered。
This is the very thing affecting development efficiency。If it is possible,Then we will Xcode cache file into memory,It should be much faster speed。(Although rmbp of ssd have a very fast,But compared to memory,Or far worse -For older machines for mechanical hard drives,Speed will be more apparent。)
- Remember the RamDisk Windows do? in fact[……]
Normal UILabel Is used in the application interface displays a simple text tips,but,We can also use it to display the contents of a large segment of users that do not require the participation of editors - such as reading the tweet
These contents are characterized by a need to support rich text。 UILabel of attributedText can do[……]
UITableViewController Is quite a common space in the iOS development,It's very early cell can support highly adaptive,Or is highly dynamic。In development,If the cell in the complex layout of content - such as a micro-blog even drawing with the word。Well, this time automated highly dynamic becomes very useful - you do not have to calculate the total。
In fact, many people will not use this highly dynamic,Some people even use the time to initialize itself a new cell,Then write[……]