Xcode 5 - change ___COPYRIGHT___ - ios

I've read how to change the entire templates used in Xcode, or how to change the Organization Name that is used in the ___COPYRIGHT___ variable of the templates, but how do I change the value of the ___COPYRIGHT___? Is there one template I can change? I do not want to change every template that uses ___COPYRIGHT___.
We need to change from
// Copyright (c) 2013 me. All rights reserved.
to
// Copyright (c) 2013 me and my affiliates.
I do not want to change all the templates as suggested by Change copyright / top-comment / "header" on ALL new files in Xcode 5.

Assuming it os only one specific line: // Copyright (c) 2013 me. All rights reserved. and you want to change only this you can do it simply by cmd+alt+F (Find & Replace) in XCode.
Correspondingly you can do this in AppCode by using cmd+shift+R (Find & Replace). Might be a bit different depending on your key mapping.
In both solution you can decide about each case all do it for all occurrences.
If it is not working properly you can write a script (once I did script doing more complex thing with headers in python and it worked nicely).
I'm suggesting this solution as you said you do not want to change any template.
Hope it will work for you :)

Related

Problem using the Find References (Inno Setup) feature in Visual & Installer

Let us say that I want to find all instances of where AddFileForDownload in used in my script to Visual & Installer in Visual Studio.
When I do it to usual way:
And it produces results as I expect:
But when I try to use the bespoke feature in Visual & Installer:
I end up with this:
If I drag the pane out it then looks like this:
I am using:
Visual Studio 2019 (16.6.2)
Visual & Installer (1.0.4.8)
This is an issue in VS 2019 which is caused by blocking any extension from synchronously autoloading since 16.1, see: https://devblogs.microsoft.com/visualstudio/updates-to-synchronous-autoload-of-extensions-in-visual-studio-2019/
In V&I this applies to Suggestions (Light Bulb actions - Add File(s) / Add Folder into script) and the References window. Both must be reworked/fixed for VS 2019.
The Suggestions are already done and we are currently working on the References window.
Both will be ready in next V&I release.
Update 27-11-2020: The transparent (blank) controls in References windows are caused by changes in .net DPI awareness: https://blog.jetbrains.com/dotnet/2019/06/11/blank-tool-windows-resharper-visual-studio-2019-net-framework-4-8-per-monitor-dpi-awareness/
Temporary solution is to uncheck Optimize rendering for screens with different pixel densities via Tools | Options, then Environment | General.
Update 2020-11-30: Today we have released an updated version of this tool where we have fixed this issue (it is necessary to reinstall the extension in Visual Studio 2019).
See the details and get latest version from official website: http://visual-installer.com/changelog.html#10410

Where to put own document class .cls file for Tex Live 2016

I understand that there are similar questions posted on stack overflow and elsewhere. But after a couple of trials and failures, I thought this could be a new version of an old question.
So with TexStudio 2.9.4 + Tex Live 2016 with Windows 10 system, my little project is to create my CV with a document class file res.cls.
I was told to put it under:
1. C:\Users\<user>\.texlive2016\textmf-config\textworks\scripts\LaTex Style, or some variations of it depending on what system. Yet, there is no folder like .\texlive2016 under C:\Users\<user>.
the texlive folder, which in my case is D:\Program files\texlive\textmf-local\tex\latex\local. It sounds sensible, yet not working.
Then I start to wonder if there's anything wrong with my editor. I switched from Tex Live 2015 to 2016, because there's no package update for 2015 version. Yet, I've reconfigured the Tex Studio to Tex Live 2016 (two red circles in the image below).
Is there anything wrong? Any thoughts? Thank you very much!
Execute kpsewhich -var-value TEXMFHOME which should give you c:\Users\<usr>\texmf.
Then install into tex\latex\<somedir>\, for example ...\local\.
.cls files are searched under tex\latex

Batch replace copyright comment in XCode

I've been working on an iOS project for some time now, creating hundreds of source files, and now that's it's good and done, I realize something sad : I edit the copyright file template before getting to work, and all of my files have this lame format :
//
// MyClass.h
//
// Created by Redwarp on 3/25/13.
// Copyright (c) 2013 Redwarp. All rights reserved.
//
And that's not cool ! I would like to replace it with something more like that :
/* This software is licensed under the Apache 2 license, quoted below.
Copyright 2013 Redwarp <redwarp#gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
*/
Anyway. I could probably write a script, that searches all my files and replace the first "//" lines with a better comment, but I'm sure there is a tool out there that does that perfectly.
Except : I can't find that tool anywhere.
Would anyone know of such a tool ? (Or might it be that I'm a fool ?)
I ended up using the script I found here : http://gergap.wordpress.com/2009/06/03/howto-recursively-replace-file-headers-of-source-files/
Does exactly the job I wanted to do, and spared me the burden of doing it myself.

Rails: Copyright headers for GPLv3 application

We are developing a project in Rails and planning to open source it under GPLv3.
I have the following questions regarding this:
To which files should we add the copyright header? Only the .rb files in lib, controller, model, helpers, config etc? How about the .erb, .js, and .css files?
Should we add the detailed GPLv3 header to the source files? Or a few liner with a pointer to some external file in the project or a URL to GPL site would be suffice?
I have looked into a couple of open source projects developed in Rails. Some of them have added the copyright header in .rb files. Few have added in some other file type too.
This could be a matter of preference, but I am looking for best practices in this regard.
Thanks for your help.
Typical practice is to simply include a single LICENSE file at the top directory of the application, containing the full license text and any addendums. It's also common to include the license text or a link to it on the home page of the project (see many GitHub open source projects for examples). I'm not a lawyer, so I can't say how protections vary if you only include a single top-level license vs. a copyright notice in every file, but in practice you'll rarely see it all over the place.

zend framework 2 flow diagram

i am trying to understand ZF2 flow but it's little hard without flow diagram like this one for ZF1:
http://tournasdimitrios1.files.wordpress.com/2011/05/zend-framework-sequence_flowchart.jpg
http://otroblogmas.com/wp-content/uploads/2010/07/zend-framework-flow-diagram.png
alternatively how can I logged my custom events that was dispatched in my app?
There is a Cheat-Sheet available:
German Version of ZF2 Cheat-Sheet (no longer available)
English Version of ZF2 Cheat-Sheet (no longer available)
English Version of ZF2 Cheat-Sheet (Alternative Link)
Please note that those are copyright protected and you may not use or redistribute them anywhere. You may only link to them.

Resources