speaking of python 3.. In my project I/we originally intended to go with Python 3 but found it wasn't included by default in 12.04 and for various reasons we don't want to pull in any other dependencies so.. :/
@hbdgaf If you had an app with a Gtk frontend and a cli backend how would you tell whether the Gtk frontend was running vs just the cli backend? I have an app that needs to do some things differently depending on whether the gui is running or not. I'm trying to keep the gui separate from as much of the actual work/logic as possible so I can use it elsewhere too.
I guess you might be able to check if certain Gtk specific things are defined or not.
I have a question which is not really about how ubuntu works but is tangentially connected and might be seen as a bit provocative is this a place I can ask it?
Lack of plain English explanations of how to write and use scripts, editors and multiple languages simultaneously.
Inability to easily find commands.
Incredibly unhelpful error messages.
I'm also trying to do things in ubuntu that I would struggle to manage in more familiar environments which definitely is not helping.
None of the features and settings are easy to find. I just spent an hour an a half to find out the .bash_profile and .profile are sort of maybe the same thing.
Meh I could rant about it but what would be the point. Let's just say I am concerned that continuing to use it may adversely affect my mental health.
Well, I certainly don't recommend doing something that would jeopardize your health.
A lot of Linux tools and commands are like swiss-army knives. They do a lot of things (and can be painful if misused) which can sometimes overwhelm someone who isn't used to the tool.
Yes, I think that the most sensible thing for me to do is to try somehow to get through this to the end of my PhD and then run for the hills away from Linux and away academia.
Just got to hang in there and try to put my mind back together afterwards somewhere a bit less frantic.
Unfortunately I often can't express the problems I am experiencing clearly enough to get too much out of this site. Didn't take long for me to experience tumbleweed.
I try but frankly I don't think that I get it enough to actually take advantage.
I have my Ubuntu machine running in production in which we have our app server running. My app server connects to cassandra and get the data from the database.
When I do ifconfig -a on my ubuntu machine, I am seeing lot of dropped packets -
davvid@machineX:~$ ifconfig -a
bond0 Link encap:E...
@Seth How I would do it depends. One way would be dropping a state file filled with json somewhere when the app launches or using a sock file to communicate with the running instance. Then you'ld (socket example) have to use an event loop in both the GUI and CLI though. Not just a linear CLI.
@blade19899 :) I also noticed that there is a new firefox-developer-edition tag under that question that doesn't have a tag excerpt written yet. All registered users can submit edits for tag wikis.
@blade19899 I wonder if the new firefox-developer-edition tag will get culled by tag cleanup. I hope not, because I expect new questions with this tag will appear in the course of time as Firefox Developer Edition gets updated to newer versions.
Addressing an error of Too many open files I was attempting to follow the suggestions here
Although /etc/sysctl.conf
fs.file-max = 70000
vm.swappiness = 10
and /etc/security/limits.conf
nginx soft nofile 10000
nginx hard nofile 30000
following changes to the sysctl com...
@blade19899 You know you can edit chat messages for a few minutes right? Just hover over the message, click on the down arrow and then click on "edit".
> I like to work on Personal home pages rather than .NET, though .NET provides the ability of drag and drop elements, but I love Personal home pages much.
I see pretty much all the answers recommend deleting the lock. I don't recommend doing that as a first measure; maybe if there is no alternative. The lock is placed when an apt process is running, and is removed when the process completes. If there is a lock with no apparent process running, this...
Hello everyone, it's my first time here, so sorry for any problems. I have one problem here in Ubuntu, that another user told me to post it in the chat here (I updated the question): askubuntu.com/questions/547357/…
@Nori-chan Hi, what makes you think there is a problem? First of all, confirm that there is really a blank line there by running history | grep -P '^\d+$'.
I just did that and saw that I have some blanks too. I'm thinking about how that could have happened but it is nothing to worry about, you can do anything you like to the .bash_history file and that won't harm the system. It is just a log.
Hmm, in my case it seems to have happened with commands I copy pasted so presumably I also pasted newlines but I can't repeat this at the moment.
@terdon I know that it's just a log. But I'm really scared of the possibility (if that's possible) of someone being able to hack into my PC (it happened with me in the past). Both gedit and the Log viewer shows some blank lines.
@Nori-chan I don't know what Log Viewer is. Some kind of graphical thing? I have no idea what it shows. Follow the steps in my answer. Hit space a few times, say 5 for example, then run history. It should look like this:
73 ls
74
75 history
The blank line is because I hit enter on a line containing spaces.
1663 exit 1664 history | grep -P '^\d+$' 1665 exit 1666 history | grep -P '^\d+\s*$' 1667 exit 1668 history 1669 ls 1670 history 1671 history | grep '^\s*\d+\s*$' 1672 history | tail
Strange right?
I still ahve some time here, What do you think it is? A bug?
1665 exit 1666 history | grep -P '^\d+\s*$' 1667 exit 1668 history 1669 ls 1670 history 1671 history | grep '^\s*\d+\s*$' 1672 history | tail 1673 exit 1674 history | tail
Before typing the history | tail, I pressed 10 times space and then enter
@Nori-chan OK, that explains it. That means that any lines that start with a space are not saved in the history. So, the blank lines you see were probably from before you set that.
Or, they are from a time when you used ssh or dropped to a tty to log in, ran an empty line and since .bashrc isn't read when you log in that way, the setting was ignored and the blank line was saved.
Why they're shown in gedit is weird. I suspect you either 1) are looking at .bash_history~ and not bash_history or that 2) you have a very long line ending in whitespace and gedit is wrapping it, making it look like an empty line.
@Nori-chan Not sure what's going on then. Strange. In any case, this is really nothing to worry about, there is no reason to assume you've been hacked.
OK, it has something to do with when/how the cmmands are written to history. I also have to go now but the bottom line is don't worry, everything is fine.
Unsolved mystery - I was given a coworker's Ubuntu 12.04.1 LTS machine and set up my own (sudo/admin) user on there from the command line. I switched to my user and confirmed everything was okay using the groups command and the /etc/passwd file looked great. After months of everything working per...
@astrob0t Copying one answer, verbatim, into someone else's answer isn't really appropriate. Especially if you don't quote it (good job for attributing it though). I suggest you suggest a new edit with just a warning "try this other answer first".
@astrob0t ouch, yes, sorry. I didn't understand you meant to copy the answer directly. I thought you were suggesting adding the information to the accepted answer. Copying directly is a nono.
@Seth i was pretty reluctant to copy it verbatim at first, but it was pretty properly worded. So just left an attribution note. Thank you for the suggestion.
ok, just to confirm, is the CC license for posting new answers(built upon the existing answers) and not just editing/direct copy-pasting on existing ones?
@Seth I may have overstepped my bounds here. On U&L we tend to approve of stuff that clearly improves the answer even if it changes the intent. Especially when this is an accepted answer which is just not the right way to do things. Doubly so when it's a post that is so often used as a master for dupes.
Hope this ok to post I got a rails project on ubuntu on virtual-box. rails server fails due to a mysql socket 2 error, turns out that mysql.sock and mysql.pid not exist, despite being being referance in my.cnf (it does not even look like the folder they should be in is there var/run/mysqld). (also, I am sing rubymine and rbenv only apreas in the RM terminal, not the real one, no idea if that is relevant)
@Btuman The Q itself should be on topic as long as the issue is on the mysql side and not in your rails code. Are you sure mysql is running by the way?
@terdon If you are referring to my reject reason that's just because there wasn't a better choice.. I really don't like the new reject reasons.
Pretty much all of the edits I've rejected since they were implemented didn't completely fit any of them..
@astrob0t I can't remember top of my head, but I believe the CC license allows you to copy the entire thing with attribution, yes. Just because you can doesn't mean you should though. Especially when both answers are on the same question.
@hbdgaf Most of it looks similar but the OP of the first questions says he can't even get wifi to work until he suspends/unsuspends, not really sure they are the exact same problem.
Sadly the first is more of something you would need to troubleshoot IRL :/
Good comments @hbdgaf, looks like the OP doesn't quite know what it all means though (not your fault). I might take a jab at adding a bit more, or wait for one of our other wireless gurus to take a stab. Your comment was pretty helpful.
Dunno that there is any moderatorly action I can or should take quite yet though.
There isn't. I just wanted that one to be floating around in "I'm aware of that" headspace. I'm not sure if the installation procedure was followed. So, I think I'll let that one sit. I think trying to nudge it along would probably get me irritated and trite, so things would get less constructive.
I'ld think if that installation procedure was followed 1+2 wouldn't be happening at all.
@hbdgaf I checked that, but his card isn't listed there.. I'm not familiar with broadcom cards (thankfully) so I don't know if that is purposeful and/or important, but it isn't listed..
hmm, doesn't look like he's been in chat yet. Maybe I'll leave a comment.
@hbdgaf That's possible as well. I'm hoping one of our wireless gurus will see it and step in. There are a couple of people around here who do nothing but answer wireless questions (or almost so).
Hopefully someone that has that chipset laying around will, so they can do a "this is the driver that worked for me" addition to the canonical installation question and drop a "rinse repeat and update question" cycle.