recentpopularlog in

kme : questions   25

HowTos/PXE/InternetInstallation - CentOS Wiki
So *this* is why the netinstall ISO doesn't give you a list of mirrors to pick from. Because it's not Debian, and Anaconda doesn't do across-the-Internet installs very well.
People attempting such installations tend to be 'drive-by' distribution 'samplers' or 'first time newbies' who impose a load of many questions on CentOS support structures, seem to always be insistent on receiving immediate answers, but (from experience) have usually not read the Installation documentation. As such, there is little incentive to support such efforts by the regulars in the #centos IRC channel.
centos  netinstall  questions  answered 
september 2019 by kme
Where do I find Python? - Apple Community
Asking questions is hard. Coming up with sympathetic answers in the face of profound misunderstandings is even harder.
python  apple  newbie  questions 
august 2019 by kme
shell - What's the difference between .bashrc, .bash_profile, and .environment? - Stack Overflow |
The main difference with shell config files is that some are only read by "login" shells (eg. when you login from another host, or login at the text console of a local unix machine). these are the ones called, say, .login or .profile or .zlogin (depending on which shell you're using).

Then you have config files that are read by "interactive" shells (as in, ones connected to a terminal (or pseudo-terminal in the case of, say, a terminal emulator running under a windowing system). these are the ones with names like .bashrc, .tcshrc, .zshrc, etc.

bash complicates this in that .bashrc is only read by a shell that's both interactive and non-login, so you'll find most people end up telling their .bash_profile to also read .bashrc with something like

<code class="language-bash">
[[ -r ~/.bashrc ]] && . ~/.bashrc

Other shells behave differently - eg with zsh, .zshrc is always read for an interactive shell, whether it's a login one or not.

The manual page for bash explains the circumstances under which each file is read. Yes, behaviour is generally consistent between machines.

.profile is simply the login script filename originally used by /bin/sh. bash, being generally backwards-compatible with /bin/sh, will read .profile if one exists.
unix  linux  bash  loginscripts  dotfiles  newbie  questions  dammitbrain 
january 2018 by kme
http - application/x-www-form-urlencoded or multipart/form-data? - Stack Overflow

The moral of the story is, if you have binary (non-alphanumeric) data (or a significantly sized payload) to transmit, use multipart/form-data. Otherwise, use application/x-www-form-urlencoded.

According to the specification:

[Reserved and] non-alphanumeric characters are replaced by `%HH', a percent sign and two hexadecimal digits representing the ASCII code of the character

That means that for each non-alphanumeric byte that exists in one of our values, it's going to take three bytes to represent it. For large binary files, tripling the payload is going to be highly inefficient.
questions  http  post  html  forms  webdevel  answered 
february 2017 by kme
syntax - Can someone explain __all__ in Python? - Stack Overflow
Where I usually use this is in modulename/ to export just the symbols I want other modules to have access to.
python  imports  devel  newbie  questions 
february 2017 by kme
git - How do I remove a submodule? - Stack Overflow -
The deletion process also uses git rm (since git1.8.5 October 2013).

The all removal process would then be:

mv asubmodule asubmodule_tmp
git submodule deinit asubmodule
git rm asubmodule
# Note: asubmodule (no trailing slash)
# or, if you want to leave it in your working tree
git rm --cached asubmodule
mv asubmodule_tmp asubmodule
But you seem to still need a:

rm -rf .git/modules/asubmodule
git  submodule  questions  devel  scm  reference 
march 2016 by kme
Sharing Data Between Controllers - AngularJS Video Tutorial #free @eggheadio []
If AngularJS Controllers are the glue of an application, how do they communicate and pass data around? This introduction to service factories will shed some light on that question.

* Why is myApp.factory('Data', function () {
return { message:"I'm data from a service"}
}) any better than var Data = function() { ... }?
javascript  angularjs  tutorial  questions 
january 2014 by kme

Copy this bookmark:

to read