Latex / Beamer: Variable to get current Section name

Recently, we were trying to write a table of contents for a specific section in a Latex / Beamer presentation. Being too lazy to update the frame title each time the section name might change we needed an automation to do that for us!

Luckily, the following variable does the trick: \secname gets the Section name. \subsecname gets the subsection name for those that might need it.

\begin{frame}
	\frametitle{Outline for \secname}
	\tableofcontents[currentsection, hideothersubsections, sectionstyle=show/show] 
\end{frame}


IEEEXtreme: What Did The Penalty Bracket Mean?

The penalty (per challenge), is the time in minutes between the initial release of a challenge and the time at which a team submitted their best answer to that challenge.

For example, the challenge named “Crafting Wooden Tables” was released on the 5th hour of the 14.0 IEEEXtreme competition (05:00 UTC +0).

If a team had their best solution to this challenge submitted at 19:59 (UTC +0), which gives us almost a 15 hour delay, then the penalty for that challenge would be 899 point (14 hours * 60 minutes + 59 minutes = 899 minutes since the release of the challenge.)

Each teams’ total penalty is the sum of all individual penalties.


How to use slack on a mobile device without the application (using a browser)

Recently, we had to use slack to join a workspace but could not use their mobile application for reasons..

When we logged in to the workspace website it would only show us the settings of the workspace and it would prompt us to download the application.

The way we bypassed it was:

  1. to request “Desktop Site” from our browser,
  2. then navigate to the conversation channels and
  3. finally disable the “Desktop Site” mode so that we could get the responsive (mobile friendly) version on our screen!

It is not amazing but it works!

To request the “Desktop Site” from FireFox:

Some websites may appear or function differently from mobile to desktop. Firefox for Android lets you switch between desktop and mobile view:
– Open the page you want to view in Firefox.
– Tap the menu button.
– Toggle the switch next to Desktop site to turn it on and off.

From: http://mzl.la/1xKt6XL

iPhone asking for Passcode before adding one! – Phone locked

While setting up a new iPhone, at the step where you are supposed to type your new Passcode, we let the screen lock. When trying to unlock it it was asking for the Passcode to unlock! Since we never gave it a Passcode that made it impossible to unlock the phone. We tried using the iCloud password with no success..

Please note that we created an iCloud account from the iPhone on the setup process and used a phone number to verify the ownership. When trying to sign in to the iCloud, we got an error that the password is not correct. While trying to recover that password, we’ve verified the password by SMS but we clicked that we do not have the option to used the iCloud account to verify the ownership.

Even though we clicked that we do not have access over the account, it notified us that it will use that account to contact us!!