customization

Changing highlight line color in emacs

筅森魡賤 提交于 2019-12-02 19:09:38
I installed emacs 24 and also installed prelude and I wanted to change the theme from zenburn to tango-dark. But the color that the line is highlighted is yellow and I don't like that. I want it to be like the gray color in zenburn. What should I do? I prefer not to turn off the hl-line but when I tried that I saw that the space between parentheses () are highlighted with the same yellow color. (In zenburn theme that didn't happen). I also know that this is not part of the tango theme because when I run vanilla emacs(sudo emacs) with tango theme no such highlighting happens. That would be an

Custom image assets for use in the App Store

倾然丶 夕夏残阳落幕 提交于 2019-12-02 17:54:20
问题 In the iOS App Store, some apps are presented in a custom and non standard way. Instead of a standard app icon and standard black text describing the app, some apps in the App Store feature a custom background color scheme and custom banner at the top of the screen. In the below example, an image is used in the banner, along with a dark red background and white buttons and text. Question: How can customization be achieved in Xcode and Swift code for images that will appear in the App Store?

UIAlertController customization

天涯浪子 提交于 2019-12-02 17:36:52
问题 I'm trying to customize my UIAlertController with a dark theme. I'm aiming for something like this I'm trying different things, including the suggestion I found here https://stackoverflow.com/a/29122883/1817873, but for some reason only the first button gets colored while the cancel button keeps staying white. Here is my code: UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; UIAlertAction *deleteAction =

Error 7, argument 1: cannot convert from ' ' to ' ' [duplicate]

ぃ、小莉子 提交于 2019-12-02 16:57:53
问题 This question already has answers here : Cannot convert from List<DerivedClass> to List<BaseClass> (6 answers) Closed 27 days ago . I am coming across an error that I have not seen before. I am hoping some one can help. Here is my code: public class MyT { public int ID { get; set; } public MyT Set(string Line) { int x = 0; this.ID = Convert.ToInt32(Line); return this; } } public class MyList<T> : List<T> where T : MyT, new() { internal T Add(T n) { Read(); Add(n); return n; } internal MyList

How to create a C compiler for custom CPU?

随声附和 提交于 2019-12-02 16:33:24
What would be the easiest way to create a C compiler for a custom CPU, assuming of course I already have an assembler for it? Since a C compiler generates assembly, is there some way to just define standard bits and pieces of assembly code for the various C idioms, rebuild the compiler, and thereby obtain a cross compiler for the target hardware? Preferably the compiler itself would be written in C, and build as a native executable for either Linux or Windows. Please note: I am not asking how to write the compiler itself. I did take that course in college, I know about general compiler

May I customize 'edit custom object records' page layout on SalesForce?

不羁岁月 提交于 2019-12-02 14:01:10
问题 For example, to create or edit an object, when I want to add or change some value to one specific field, I need to refer another website to retrieve some info.In this way, may I add one button or link on the edit page? The help link of SalesForce is here: https://help.salesforce.com/apex/htviewhelpdoc?id=co_edit.htm&language=en_US Thanks. 回答1: Custom buttons and links don't display on new/edit page layouts so even if you'd make one, it will be visible only on detail view. Not too invasive

TFS: Work item type is not allowed to be added as a link

六眼飞鱼酱① 提交于 2019-12-02 11:24:34
I just finish to generate my custom WIT (work item type= CRM Case), I add the relative information in the categories s child of RequirementCategory: <?xml version="1.0" encoding="utf-8"?> <cat:CATEGORIES xmlns:cat="http://schemas.microsoft.com/VisualStudio/2008/workitemtracking/categories"> <CATEGORY refname="Microsoft.FeatureCategory" name="Feature Category"> <DEFAULTWORKITEMTYPE name="Feature" /> </CATEGORY> <CATEGORY refname="Microsoft.RequirementCategory" name="Requirement Category"> <DEFAULTWORKITEMTYPE name="User Story" /> <WORKITEMTYPE name="CRM Case" /> </CATEGORY> <CATEGORY refname=

how to customize wordpress internal functions, like adjacent_post_link()

可紊 提交于 2019-12-02 07:54:39
I need to customize the previous_post_link() and next_post_link() on WordPress. Per example, I want to shrink permalinks like "Top 5 programming languages that you need to learn" to "Top 5 programing...". The function responsible for creating the link isadjacent_post_link() located at wp-includes/link-template.php To create a custom adjacent link for posts I can make use of the filter hook next_post_link and previos_post_link; In the functions.php: function shrink_previous_post_link($format, $link){ $in_same_cat = false; $excluded_categories = ''; $previous = true; $link='%title'; $format='«

Using jwplayer 6.11 video not Play on ipad

这一生的挚爱 提交于 2019-12-02 07:42:17
问题 We using JW Player 6.11 for video play .mp4 & .flv but not work on. ios7 iPhone How can I fix this one for at that time for iPad? function playvideo() { jwplayer("mediaplayer").setup({ playlist: [{ sources: [ { file: "<?php echo $this->getUrl().'Content/video/'.trim($_product->getVideourl());?>", //type: 'html5', } ], title: "Play" } ], controlbar: "none", height:388, width: 610, streamer: "rtmp://s14flalja9b5hr.cloudfront.net/cfx/st", startparam: "ec_seek", fallback: false, repeat: false,

Using jwplayer 6.11 video not Play on ipad

白昼怎懂夜的黑 提交于 2019-12-02 07:24:47
We using JW Player 6.11 for video play .mp4 & .flv but not work on. ios7 iPhone How can I fix this one for at that time for iPad? function playvideo() { jwplayer("mediaplayer").setup({ playlist: [{ sources: [ { file: "<?php echo $this->getUrl().'Content/video/'.trim($_product->getVideourl());?>", //type: 'html5', } ], title: "Play" } ], controlbar: "none", height:388, width: 610, streamer: "rtmp://s14flalja9b5hr.cloudfront.net/cfx/st", startparam: "ec_seek", fallback: false, repeat: false, autostart: true, primary: 'flash', bufferlength: '30', stretching: 'fill', onpause: 'true', events: {