Open Side Menu Go to the Top

08-04-2016 , 11:49 AM
Starting on my new team today. I am the only person at this site working on this scrum team, and the team is made up of people in 5 different locations across 3 time zones. Should be interesting.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
08-05-2016 , 02:36 AM
Quote:
Originally Posted by a12
Passed means, hdd passed smart test which is good but in general doesn't tell you much. Db line is nothing important. If you start getting write/ read errors in system logs thats not good.
If you got time i d look into downoading a live distro (i like knoppix for variety of hw support) boot of it and perform "secure erase" on the ssd. Make sure its the right drive Then reinstall everything thats not that important and monitor logs for few days. Or if data is imporfant, just replace the drive.
Here is a link on ssd "secure erase" https://wiki.archlinux.org/index.php..._cell_clearing
If I run into this issue again, I'll definitely look into this.

I do the same thing as you: look at Arch Wiki for documentation. It really is an exemplar of what documentation should be like for all Linux systems. Most of it is portable, but some things are isolated to how your flavor works.

***

More impression from trying to get work in SF.

Phone interview last week. I directed the guy to my music theory articles and he said "wow! that is some cool stuff!" It was for a music-based job, but still, kind of nice to get some positive acknowledgment once in a while.

Took a test yesterday. This is on a live OS disk since my OS had to be rebuilt and I wasn't sure when the questions were due. It was 6 questions, mostly fairly simple I/O and generating collections.

I probably messed up some of it due the time constraint, even though the quiz specified "quick and dirty" for the problems. Out of desire to do them all (so much better than Pokemon Go?), I took about an hour twenty for a one hour test.

If there are two classes of problems and algorithms that quickly expose my self-taught status, it is heaps and graphs. I know just enough about each to know that I don't know anything about them. I can sort of do a graph as long as it doesn't have any requirements beyond it being a graph... ironically, I can do graphs just fine in SQL, but not in a real programming language. Heaps are just total jibberish to me. One question involved a graph with some unusual requirements, and I just wrote a function that did what two functions are supposed to do (I think?) and then wrote out some of my thought processes about where it fell short of the full requirements and where I thought it was almost there. I really got stuck on that one.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 07:54 AM
Quote:
Originally Posted by daveT
If I run into this issue again, I'll definitely look into this.

I do the same thing as you: look at Arch Wiki for documentation. It really is an exemplar of what documentation should be like for all Linux systems. Most of it is portable, but some things are isolated to how your flavor works.

***

More impression from trying to get work in SF.

Phone interview last week. I directed the guy to my music theory articles and he said "wow! that is some cool stuff!" It was for a music-based job, but still, kind of nice to get some positive acknowledgment once in a while.

Took a test yesterday. This is on a live OS disk since my OS had to be rebuilt and I wasn't sure when the questions were due. It was 6 questions, mostly fairly simple I/O and generating collections.

I probably messed up some of it due the time constraint, even though the quiz specified "quick and dirty" for the problems. Out of desire to do them all (so much better than Pokemon Go?), I took about an hour twenty for a one hour test.

If there are two classes of problems and algorithms that quickly expose my self-taught status, it is heaps and graphs. I know just enough about each to know that I don't know anything about them. I can sort of do a graph as long as it doesn't have any requirements beyond it being a graph... ironically, I can do graphs just fine in SQL, but not in a real programming language. Heaps are just total jibberish to me. One question involved a graph with some unusual requirements, and I just wrote a function that did what two functions are supposed to do (I think?) and then wrote out some of my thought processes about where it fell short of the full requirements and where I thought it was almost there. I really got stuck on that one.
What was the programming language Dave? I am going to start a thread on interview test questions. Might be a good source for solutions.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 09:11 AM
I always do my coding tests in Python. It's the language I can write the fastest. I seldom have to Google to remember anything.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 09:23 AM
You know, you should take a day and spend it learning how a heap works. It won't take longer than that. They're very simple and they lead to a few useful things.

Like, it doesn't happen often, but sometimes someone will want you to demonstrate or explain a sorting algorithm (well, a good one). Heapsort is by far the easiest to demonstrate or explain.

Graphs though, have basically infinite depth in terms of how much there can be to learn. I took 2 full semester courses on graph theory (as a math class, aside from CS stuff) and didn't even scratch the surface. My graduate work was in graph theory and computational geometry, before I, uh, quit to join a start up in 1999. ****in internet.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 10:59 AM
Quote:
Originally Posted by RustyBrooks
Yeah, but man I have a hard time believing even your story. No one ever told him? He never saw a programming language before? Like what the actual ****? I knew not to use global variables by the time I was like 10.

And who thinks that it's a good idea for a professional's only experience with C to be a 5 ****ing day seminar and then you set him loose in the wild.

I mean, I'm taking over a project from a junior developer, and there are things I don't like about it, but there's nothing you can point to that is on that kind of level. So I don't think the answer is "he came back early from a 5 day seminar" I think it's "he's a functioning stillborn"
Every point you raise is exactly what makes it a WTF-worthy story. But it's 100% true.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 12:24 PM
Quote:
Originally Posted by daveT
If there are two classes of problems and algorithms that quickly expose my self-taught status, it is heaps and graphs.
The Sedgewick algorithm classes on coursera do a pretty good job of covering this stuff for practical purposes. I find it pretty hard to retain this type of algorithmic knowledge though.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 01:42 PM
Haven't fully read this yet, but apparently DogIsHead (poker player) is now a software engineer or something and this week's Hacker Newsletter had an article by him about negotiation.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 03:36 PM
Yeah, it appears that's his new thing - the AirBnB thing linked at the start of the article was mentioned here and made it to NVG http://forumserver.twoplustwo.com/29...kills-1605947/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 04:33 PM
never heard of the guy until his airbnb post but my god is he insufferable.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 04:53 PM
The sticky headers/footers and floating popups that appear on that site when you scroll up and down are insufferable.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 05:16 PM
Quote:
Originally Posted by Prickly Pear
The Sedgewick algorithm classes on coursera do a pretty good job of covering this stuff for practical purposes. I find it pretty hard to retain this type of algorithmic knowledge though.
I can describe a heap by rote, but I have a hard time building one up, if that makes sense. I get the impression that those courses give you a lot of ground material to work with, which is basically, you get a file of functions that already have the heap for you.

I never did that, so suppose I generate a list of 20 numbers, grab distinct random numbers, and push them into a function that generates a heap. This is where I end up with trouble.

Also, didn't coursera close all of their classes (the Sedgewick book isn't very good, IMO)?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 05:19 PM
Does anyone know for SEO purposes, does a site map include pages only accessible by login? Google cant scrape those anyways correct?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 05:24 PM
#1 - usually not

#2 - correct
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 05:40 PM
Quote:
Originally Posted by daveT
I never did that, so suppose I generate a list of 20 numbers, grab distinct random numbers, and push them into a function that generates a heap. This is where I end up with trouble.
What's the trouble? If it helps, a heap is valid if it's root is the smallest member in the set - that's the only condition for a valid heap. Last time I implemented a heap, I did it as a fixed array. array[0] was the head, array[1] and arary[2] were it's children. array[3] and array[4] were array[1]'s children etc. The nice thing about this is that some heap operations involve swapping the "end" of the heap with the root, and that's super easy to do with an array. It's also very efficient.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 06:00 PM
Quote:
Originally Posted by daveT
I can describe a heap by rote, but I have a hard time building one up, if that makes sense. I get the impression that those courses give you a lot of ground material to work with, which is basically, you get a file of functions that already have the heap for you.

I never did that, so suppose I generate a list of 20 numbers, grab distinct random numbers, and push them into a function that generates a heap. This is where I end up with trouble.

Also, didn't coursera close all of their classes (the Sedgewick book isn't very good, IMO)?
I just liked the lecture videos. He shows the important parts of the implementations and walks through examples with visualizations that are much easier to follow than any book explanation. They're good for getting a feel for the algorithms and data structures.

If you struggle with writing implementations of whatever algorithm you just need to practice and compare with others fully working code. There isn't really any other way to learn.

Also I'm not sure if coursera is still free/public but there is a torrent for the algorithms videos. Some of it is on youtube too.

https://www.youtube.com/watch?v=Hz_P-_R2l60
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 06:43 PM
Quote:
Originally Posted by PJo336
Does anyone know for SEO purposes, does a site map include pages only accessible by login? Google cant scrape those anyways correct?
Quote:
Originally Posted by suzzer99
#1 - usually not

#2 - correct
You can also use robots.txt to keep them from indexing things you don't want them to.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-05-2016 , 09:38 PM
Most of my site is user based stuff, so it feels like the sitemap would just be like FAQ and terms and stuff. Almost feels pointless. I guess I want them searchable though so I have to
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-06-2016 , 04:20 AM
Quote:
Originally Posted by RustyBrooks
What's the trouble? If it helps, a heap is valid if it's root is the smallest member in the set - that's the only condition for a valid heap. Last time I implemented a heap, I did it as a fixed array. array[0] was the head, array[1] and arary[2] were it's children. array[3] and array[4] were array[1]'s children etc. The nice thing about this is that some heap operations involve swapping the "end" of the heap with the root, and that's super easy to do with an array. It's also very efficient.
Not to go all "I can do fizzbuzz," but here's my implementation of a max heap (without looking up online, lol):

Code:
def parent(i):
    return i//2

def left(i):
    return 2 * i + 1

def right(i):
    return 2 * i + 2

def max_heapify(L, i):
    print("h ", L)
    lft = left(i)
    rt = right(i)
    largest = 0

    if lft < len(L) and L[lft] > L[i]:
        largest = lft
    else:
        largest = i

    if rt < len(L) and L[rt] > L[largest]:
            largest = rt

    if largest != i:
        L[i], L[largest] = L[largest], L[i]
        max_heapify(L, largest)

    return L

def build_max_heap(L):
    for i in range(len(L) // 2, -1, -1):
        L = max_heapify(L, i)
        print(L)
    return(L)
        
print(build_max_heap([1, 2, 3, 4, 5, 6]))
print(build_max_heap([1, 2, 3, 4, 7, 8, 9, 10, 14, 16]))

>>> [6, 5, 3, 4, 2, 1]
>>> [16, 14, 9, 10, 7, 8, 3, 1, 4, 2]
In an odd way, I get it, but I don't at the same time. It takes a lot of pen and paper to see exactly how it is stepping through the list (print statements can serve as a slight guide as well), but it's still a bit confusing to me.

I get that, in essence, the heap is saying take an Array[n];
for each n, the element in position floor(n/2) is less than the n. as you iterate from n to 0, the numbers get larger, therefore:

A[5] > A[5/2] > A[(5/2)/2] > A[((5/2)/2)/2] .. A[0]

I feel like I'm missing something super obvious and important here, but I'm just shy of figuring it out.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-06-2016 , 05:44 AM
darn it, it is supposed to be A[n] < A[n/2] < A[(n/2)/2] < A[((n/2)/2)/2] .. A[0]
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2016 , 11:34 AM
I'm pretty sure I can separate my life into two different columns: before and after purchasing a gtx 1080 & ultrawide UHD monitor.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2016 , 02:43 PM
I have a 32" dell that does 2560x1600 and I have a hard time working on anything smaller.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2016 , 03:03 PM
http://cs.boisestate.edu/~jhyeh/cs42...mer16/lab3.pdf

This is the last program I have to do for my summer course in CS 421 -- Design and Analysis of Algorithms.

Looks brutal, no?

I have an A in the class but maybe not after this assignment xD I'll start working on it tonight.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2016 , 08:42 PM
I just installed SUSE and I'm finding that a certain utility takes an absurdly long time to execute if I output to a new file as opposed to an existing file or the console. I'm finding the times to be something like:

Output to existing file - 5 secs (normal)
Output to console - 20 secs (normal)
Output to new file - 2 mins (abnormal)

If I ls in another window I can see the file growing very slowly. This doesn't happen in Ubuntu - it's 5 secs to a file regardless of whether it needed to create it or not. I'm invoking this from within a script, so a simple workaround is to just add a touch command before it, but I feel this shouldn't be necessary. Any ideas why this happens?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
08-07-2016 , 09:55 PM
Do you know how to use strace? That's what I'd look at.

http://linux.die.net/man/1/strace
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m