OSX Terminal hanging? - Taking a long time to do tasks - ruby-on-rails

I am trying to install Ruby and do various things, i have found that terminal takes a hell of a long time to do any tasks and sometimes it doesn't complete anything, aka hangs.
"Mys-MacBook-Air:~ Main$ rbenv install 2.2.0
Downloading ruby-2.2.0.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc
Installing ruby-2.2.0..."
Then this sits for ages without showing me any feedback. It will do this with many things, including node setup and other things i have tried. Sometimes it doesn't do anything and i need to start a whole new terminal with CMD + N, Is it taking a long to download or is it installing without giving feedback? Is it normal for OSX to do this? My internet speed is 10 down so i wouldn't think it is the net.
Also, sometimes when i have finished doing something, like running a server, terminal will not go onto a new line meaning i have to reopen a new window every time, is there a way to restart the command line so i can begin typing commands again?

First off, compiling Ruby can take a while, especially on slower machines. On my new Macbook (maxed out), 2.1.5 took about 8 minutes to install.
To answer your question however, you can monitor that the machine is doing work using Activity Monitor (under Applications/Utilities) or use terminal tools like top or htop, the latter of which can be installed via homebrew. You could also use screen or tmux to background the job if you don't like the idea of opening a new tab.

Related

FMX debugging Can't bind address, Address already in use

First time debugging from PC to Mobile Phone work fine, when try again get error.
Any solution how fix this when try more debugging.
Add -debugport=54321 to Run->Parameters Parameters. By the way, the "inconsistent certificates" message is because the apk on the device was compiled with a different version of Delphi than the one you are using right now. You will have to uninstall it from the phone first. You can also use -cleaninstall in the Run->Parameters Parameters field.
There is no easy and fast solution.
You may need to:
Restart IDE
Kill adb.exe
Restart Windows
Restart device
Sometimes you will be able to debug again after doing only some of the above steps, however often you will need to do all of them.
Since every try takes plenty of time, I found out that complete Windows restart + device restart is the fastest thing to do.
With Delphi 10.3.3, it is enough to restart the device. After restarting the device problem goes away. It seems after the cancelation of code execution of the project debugged, the debugging service on Android continues to run. At this point, when new debugging started, IDE tries to run a new service with the same id of previous running service.

Rubymine 5.4.3.2.1 freezes sometimes

I am using Rubymine to work on a suite of rails projects. There are quite a bit of gems and source files, but I think rubymine should be able to handle everything despite the size...
My sources files (and gems) are shared in a Vagrant box (see https://stackoverflow.com/a/19662310/311744).
Sometimes, when I am editing, Rubymine freezes. (about 5-6 seconds).
Usually, 3-4 minutes after I restart the IDE, everything is fine. Then I have one big 5 seconds freeze, and then from that point every 15-20 seconds I have a new freeze. During a freeze, Rubymine takes 100% (or a big part) of the CPU.
I am running on MacOS 10.8.5 on a recent MBPr.
I don't want to give up Rubymine. How can I troubleshoot that ?
In case of the performance issues you should start from the troubleshooting guides on the official support site:
thread dumps
CPU snapshots
idea.log
Check that all the files are local, try to increase the heap size in case the problem is caused by the JVM garbage collection.
If nothing helps, provide all the collected data to the technical support team or to the issue tracker.
Trying RubyMine 6.0 will definitely not hurt as noted in the comment above =)
This guide is for all the users having performance issues with RubyMine or any other IntelliJ IDEA platform based IDE.

WAMP show logs in realtime in console

I'am using the WAMPServer, and it's located in d:/wamp/. Is there a way to show logging window or console in realtime as I'am crawling on my server web ?
On unix/linux boxes I tend to use the tail command to watch logs as I browse for debugging. Of course, Windows has no equivalent, but there are a few options. The one I settled with was mTAIL. It's a standalone app and not a command line program, but it does exactly what you'd expect:
I was going to suggest using unxtools, a suite of ported GNU tools that can be used on the command line, but it's out of date and trying it on more recent versions of Windows I had problems. You can download them from sourceforge if you want to take a look. Also tail for Windows, is another Windows app that unfortunately doesn't seem to work on later versions, but included here in case it saves anyone the time looking.
Of course, you may find that if you prefer the command line you want to look at getting cygwin installed, which contains a host of commands you could use for the task you have.

Slow RVM initialization with cygwin on a 64bit machine

I am imagining that this might get me dinged for asking such a non-specific question but I'm getting desperate at this point. I'm using cygwin (I'm a bash addict) on a Windows 7 machine with huge memory and processor speed. For some reason when I do anything with RVM I get a 30 second delay before it happens. This includes but is not limited to rvm use, cding into a directory that has RVM in it and actually cding back OUT of those directories.
When this huge delay occurs I get the most insane forking of bash in my process explorer. bash processes are forked off and then disappear rapidly during the 30 seconds. I can't figure out how to really dig into this and see what is happening.
What I'm hoping someone can help me with is directing me toward resources that might address this issue (yes, I've Googled a lot and haven't found what I need--and I'm still looking) or even have had experience with this themselves.
thank you in advance and please be gentle :)
Since windows doesn't have a native equivalent of fork, cygwin must emulate it, so it will probably be a lot slower than on a real Unix OS.
See this thread:
http://cygwin.com/ml/cygwin/2008-05/msg00360.html
Also at least one person has reported that forking on cygwin 1.7 is slower than 1.5:
http://cygwin.com/ml/cygwin/2010-09/msg00871.html
Does your development require Windows, or can you do your work in a VM instead?
Does it work in Windows?
According to the FAQ, rvm is not intended to work on Windows.
You should use pik to get similar behaviour in Windows (although it misses the gemsets, it allows you to switch between ruby-versions, and with pik each rubyversion has its own set of gems).

application wont start or load in blackberry simulator

I'm developing an application on two different machines (home and work) and while the home one seems to run just fine, the work one is, for lack of a better word, possessed. It has been exhibiting the following issues:
When loading the application, it will start at the simulator's main screen instead of starting the application at random intervals. You can start the application and have it work fine, then close the simulator, reload, and have the same codebase not load.
Going to applications doesn't show the application itself, in fact it never does.
Trying to load the applications cod file (File->load java program) never works. Tried the steps in this thread, with unreliable results.
Extremely small changes, such as modifying the value of a width variable by one, commenting out a function such as makeMenu or adding a button will cause code to no longer work, with no errors shown by the IDE.
Using clear.bat with sometimes work, sometimes not. Same with manually removing all files with the name of the project.
reinstalling the eclipse environment and the blackberry plugin did nothing more then burn off an hour.
having "load on startup" in the blackberry_app_descriptor.xml file is set.
Both systems are using Eclipse 3.5.1, BB plugin for eclipse 1.1 beta, Java 4.5 with the 8300 simulator. THe only difference that I am seeing is the operating system between the two systems. The work one being XP Sp3, home being vista. THe vista one isn't perfect, but I can test variable changes without flipping a coin to see if the app will even load or not.
I've tried the solutions that were similar on this forum, such as this one, but it looked to be that those solutions are dated as none of the options for the steps existed in my eclipse install.
So has anyone ran into such baffling behavior, and can it be fixed? Anything that I might have missed that could be tried?
I've been seeing this behavior with the new 1.1 plugin, the application doesn't load on startup and the FIle->load java program doesn't help. For me, the solution was I have to run a clean build every time, that is the eclipse clean and build instead of just build, not the clean.bat... Hope this helps!
Try clearing resources that have improper naming structure in your projects stuff with spaces or special character in the name of the file.
It took me two days to figure out.
One solution i got regarding your problem.
As I See Please run the application first time as Run as blackberry simulator
that is got start and here pick up run and then Run as Blackberry simulator

Resources