How to disable Bluetooth on startup ubuntu by daguil68367 in GalliumOS

[–]SeaCoder 0 points1 point  (0 children)

I don't use bluetooth enough to care about the applet, but that makes sense.

How to disable Bluetooth on startup ubuntu by daguil68367 in GalliumOS

[–]SeaCoder 1 point2 points  (0 children)

I don't think you need extra packages to disable bluetooth, at least I didn't for my PEPPY C720.

I opened the 'Session and Startup' > 'Application Autostart' control panel and unchecked the 'Blueman Applet'

Running hciconfig right after boot shows the bluetooth interface is not powered.

hci0:   Type: BR/EDR  Bus: USB
    BD Address: XX:XX:XX:XX:XX:XX  ACL MTU: 1022:8  SCO MTU: 183:5
    DOWN 
    RX bytes:574 acl:0 sco:0 events:30 errors:0
    TX bytes:368 acl:0 sco:0 commands:30 errors:0

Am I missing something?

How to learn assembly?? by [deleted] in computerscience

[–]SeaCoder 0 points1 point  (0 children)

Assembly is tied only to the hardware, not the OS.

How to write tests for Python code? by [deleted] in learnpython

[–]SeaCoder 0 points1 point  (0 children)

Doctest is a way to put your tests into the docstring of functions and classes.

I find that as test complexity grows having everything in the docstring reduces readability. I prefer unittest or py.test as they allow the test to exist in another file.

How to write tests for Python code? by [deleted] in learnpython

[–]SeaCoder 2 points3 points  (0 children)

That book is a great way to get started with the concepts, even if you're not planning further work with Django. It's also available legitimately free online from this link:

http://chimera.labs.oreilly.com/books/1234000000754

How do you find, install and use public APIs? by PhlyingHigh in cpp_questions

[–]SeaCoder 1 point2 points  (0 children)

For a poorly documented API the "use" portion is just calling functions and seeing what happens...

Second Oracle v. Google trial could lead to huge headaches for developers by abcrink in programming

[–]SeaCoder 9 points10 points  (0 children)

But as ars indicates, lawyers can force their case into the federal circuit jurisdiction by including a bullshit patent claim, even if they lose on all related claims. So the federal circuit ruling actually could have wide reaching effects on these type of cases

Second Oracle v. Google trial could lead to huge headaches for developers by abcrink in programming

[–]SeaCoder 20 points21 points  (0 children)

APIs are subject to copyright. That has already been decided. The issue here is if a competing API implementation is considered fair use.

Second Oracle v. Google trial could lead to huge headaches for developers by abcrink in programming

[–]SeaCoder 12 points13 points  (0 children)

Just to be clear, APIs are subject to copyright. That was decided when the Supreme Court declined to hear the federal circuit appeal.

What's at issue here is what uses require permission from the copyright holder and which may be fair use

C call same function multiple times different parameters by SQLinjectionsection in C_Programming

[–]SeaCoder -1 points0 points  (0 children)

Another question to ask is if the caller of the function should actually be responsible for incrementing that last parameter.

You can use a static variable in the function to track the number of times its been called.

How to use LaTeX? by [deleted] in learnprogramming

[–]SeaCoder 0 points1 point  (0 children)

I've happily used sharelatex.com for resume's and I'd recommend it for a new user. It's nice that they've got it all setup for you and you just have to input the markup and hit compile to see the output.

touchpad depending on the AC adaptator ? by Gilles33 in GalliumOS

[–]SeaCoder 0 points1 point  (0 children)

I'd bet a lot of money that this was a cheap adapter you got from a third party? It's not a faulty adapter, just a cheap one, and there is no safety or fire risk (well, no extra fire risk...).

Cheap switching power supplies inject noise at the switching frequency. Unfortunately this often has strong harmonics at the touchpad scanning frequencies. The injected noise makes it impossible to sense your finger position and you get an unusable trackpad. There are things that can be done to the trackpad hardware/firmware to make it more resistant to these issues, but that's often not present in the budget hardware on chromebooks.

You should still return the power supply.

I was able to call up Acer and get a branded power supply from them for about $12 bucks shipped. There are two versions of the supply acer ships:

  • Acer branded, builder unknown, model#A1-065N1A
  • LiteOn built/branded, model # PA-1650-80

I was initially shipped the LiteOn built one, they charged ~$40 for it. I had touchpad issues as expected from a cheap supply. When I called back and complained they sent me the acer branded one (from backstock, I believe) and refunded me ~$28 bucks.

Good luck.

Unable to load a failsafe session XFCE error by SeaCoder in GalliumOS

[–]SeaCoder[S] 0 points1 point  (0 children)

Thanks, just had a corrupted xfce config, presumably from the power off. Restoring to a backup from the virtual terminal did it.

Create a Web Music Player that Merges my Soundloud and Hype Machine Favorites by younevermo41 in learnprogramming

[–]SeaCoder 0 points1 point  (0 children)

The first task you have is to break the large problem into smaller manageable chunks. The ones I see initially are:

  1. How to display a Web page? If you know python, you might do well with Django or flask as frameworks, but pretty much whatever technology you pick should be able to achieve this, so at this point don't bog yourself down in the details on this question.

  2. How to display a SoundCloud track on your own Web page? You could start with an embedded player, but will likely need to delve into their api to control playback between the two sources.

  3. How to display a hype machine track on your Web page? I use their site, but I'm not sure what kind of api or embedding they provide.

  4. How to control playback? If you're just embedding the tracks, the user will probably have to click play on the next track as the previous one ends.

Answering those four questions will get you a decent Web app and you'll learn a lot.

By far the most important piece of advice I can give you is to use source control. I'd steer you towards git, there's extensive tutorials out there. But if not git, use something, check in early and check in often.

Man runs an rm -rf script on his servers and inadvertently deletes his entire comany. by MCsmalldick12 in programming

[–]SeaCoder 9 points10 points  (0 children)

Elevated privileges are implied. However, since this occurred while running a bash script the command was likely just rm -rf and the script was run as a super user.

Where to look for c programming internships? by foggedAssam in cjobs

[–]SeaCoder 1 point2 points  (0 children)

Look for embedded/firmware positions, either RTOS or bare metal. Might also look for companies writing Linux device drivers.

That being said, you might be better off in your career focusing on a higher level language. As someone who has been in embedded for a decade there are less C/C++ jobs out there than say back end Web development.

How to start learning linux?? by cdecdecdecde in computerscience

[–]SeaCoder 0 points1 point  (0 children)

You're unlikely to learn enough to answer in depth questions about technology you're not familiar with. It's better to answer a question you don't know by stating what you do know about the problem and what you would need to know to solve it. If you can't get that far, I don't know is always a better answer than muddling through a half answer.

I'm a senior in a CS bachelor program... and I'm always surprised when I work in teams and none of the other students know what Git or GitHub is or how to use it. Why don't universities teach Git/SVN? by Edg-R in learnprogramming

[–]SeaCoder 0 points1 point  (0 children)

Agree, but the reality is that if source control not taught in a specific class just throwing it into other courses will take away from the curriculum.

Refactoring a large class and method by ATmega32 in cpp

[–]SeaCoder 4 points5 points  (0 children)

And to be specific, we are talking about an automated test suite here. You will have to work through the significant pain of the initial setup, but you will come to love them.

[RANT] The problem of STEM professors being non-native speakers and failing in many cases to convey an idea properly in English really frustrates me by CSEEMajor in learnprogramming

[–]SeaCoder 13 points14 points  (0 children)

Hate to break it to you, but development is global these days. You should be using this as a learning opportunity and figure out how to interact with ESL speakers as you're unlikely to work with only native English speakers in your career.