How to rename an iOS project in XCode

Renaming a project in XCode can be a hassle and cause a lot of complications and problems if not done correctly because there are a lot of root files and embedded files that must be renamed as well. So how can you easily rename a project in XCode?

The following tutorial shows you how to do it within 3 minutes and I found it very helpful:  https://www.youtube.com/watch?v=6P6ya2vdC8M&ab_channel=CodeDisciple

The only discrepancy I found in that tutorial (made in 2019) and Xcode version today (2021) is that I don’t believe the current version has an option to rename the “Development Assets” under Deployment, but everything else is the same.

Best of luck!

Constraint Satisfaction Problems (CSP)

Constraint Satisfaction Problem

Characteristics:

    • Search problem
    • Care about the goal itself: state is a black blox, implemented as some data structure
    • Goal test: function over the states, set of constraints specifying allowable combinations of values for subset of variables
    • Main 3 elements of CSP:
  1. Set of variables
  2. Set of domains for each variable
  3. Set of constraints

Customize your vim: How to add line numbers, colors, and cursor to your vim

Vim can be very annoying to navigate and use when everything is one color, there are no line numbers to help debug, and you must only use arrow keys to navigate. Here is how to customize your vim for easier convenience when programming:

Go to terminal, type command:

vi ~./vimrc

The vimrc file contains optional runtime configuration settings to initialize Vim when it starts. You can customize Vim by putting suitable commands in your vimrc.

In this file, type the following

To turn on color schema: 

syntax on 

colorscheme delek

To add line number:

set number

To add cursor:

set mouse=a

 

Intro to Swift iOS Programming

For my research at school, we are building an iOS application to help the visually impaired navigate through new environments. To do so, we had to go through a few Swift tutorials. Here are some that were provided that I found helpful:

https://docs.swift.org/swift-book/GuidedTour/GuidedTour.html

Start Developing iOS (Swift):

https://developer.apple.com/library/archive/referencelibrary/GettingStarted/DevelopiOSAppsSwift/index.html#//apple_ref/doc/uid/TP40015214-CH2-SW1

This one is a little outdated, but it still serves to introduce the main concepts and functions.

iOS Glossary:

https://developer.apple.com/library/archive/referencelibrary/GettingStarted/DevelopiOSAppsSwift/GlossaryDefinitions.html#//apple_ref/doc/uid/TP40015214-CH12-SW1

Edmund Burke on the Reflections on the Revolutions of France

Some interesting analysis of Edmund Burke’s Reflections on the Revolutions of France: https://www.libertarianism.org/columns/edmund-burke-intellectuals-french-revolution-part-3

Burke on prejudice

In a very controversial manner, Burke defends the notion of prejudice, and speaks about how the English uphold their prejudices or “untaught feelings” of what is right or wrong based on prejudices passed through generations. It seems ludicrous initially as it seems that we as society try to strive towards justice by abandoning prejudice and unreasoned emotions and feelings towards another, and relying solely on rational principles and facts to determine what is right or wrong in order to govern a body. A government driven by emotion and prejudice in any way or form is what we would normally regard as a corrupted government. Yet, Burke defends prejudice by drawing upon the nature of human beings. Humans are emotionally driven beings that rely on their sentiments to make decisions. He condemns those who support the Revolution and preach of a completely just government that could rule solely on reason as one such perfectly rational entity could never exist since humans are driven by sentiments and humans make up the government. He continues his argument that our natural sentiments can be destructive or civilized, and it is through civilized sentiments that can uphold some degree of order or justice in a society. Yet, he does not believe that we can civilize our sentiments on ungrounded zealous deliverance of justice and righteousness like that of those part of the Revolution. Instead, it is civilized through adopting past values and customs, along with past prejudices. I think this idea is quite opposite of Smith’s idea of an impartial spectator in Theory of Moral Sentiments, because the impartial spectator is needed to remain impartial and not be swayed by previous bias in order to sympathize with someone, whereas Burke supports holding onto prejudices and sentiments to, ironically, civilize our sentiments to create order and justice.