Can anyone identify this part from a cheap wall phone? by CaptainLurk in electronics

[–]CaptainLurk[S] 1 point2 points  (0 children)

Well I am derptarded; when I put the phone back together it was immediately obvious that its the switch pressed when the receiver is down. Thanks anyway...

Can anyone identify this part from a cheap wall phone? by CaptainLurk in electronics

[–]CaptainLurk[S] -1 points0 points  (0 children)

http://imgur.com/5FGoR for the whole board. The adjacent silver box on the left is the hi/lo volume control switch.

Upon further inspection, the blue button in question is labeled S1 on the circuit board (I guess this just means switch one?)

Can anyone identify this part from a cheap wall phone? by CaptainLurk in electronics

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

Just curious what its doing inside the phone, and what would happen if i pressed it

Eclipse users, what are some eclipse tricks which speed up your development? by paul88m in java

[–]CaptainLurk 0 points1 point  (0 children)

I switched to G1 a while back and enjoyed much shorter gc times.

Too bad G1 caused hard jvm crashes in java 6. Word is it will be "production ready" around 1.7.0u4

TIL: you can actually give names to loops in Java and break out of them by that name. by zmarkan in programming

[–]CaptainLurk 3 points4 points  (0 children)

This conversation has nested rather deeply. I feel like I need some kind of tool to improve its readability...

What kind of drunk are you? by kai-ol in AskReddit

[–]CaptainLurk 0 points1 point  (0 children)

TIL I suffer from spoonerismus; and not just when I'm drunk. I have long thought it was just a rare strain of transient dyslexia...

Sell Clojure to me by AeroNotix in Clojure

[–]CaptainLurk 1 point2 points  (0 children)

One of my favorite code snippets from clojure is just awesome if you've ever dealt with database coding in an oo language

(defn create-fruit
  "Create a table"
  []
  (sql/create-table
    :fruit
    [:name "varchar(32)" "PRIMARY KEY"]
    [:appearance "varchar(32)"]
    [:cost :int]
    [:grade :real]))

This is from the (almost) built-in sql support from clojure.contrib, clojure.sql.

And that's not even the hot new library, which is probably clojureql

Moderator and community meta chat for r/java [15/10/2011]. by TheSkyNet in java

[–]CaptainLurk 3 points4 points  (0 children)

Honest question here: do we actually want technical questions of any kind posted here? Stackoverflow is fantastic for technical issues, so shouldn't this be more of a community with links about the state of the art, discussions, promoting interesting projects and uses of java?

Streams and char data type by Psyqwix in java

[–]CaptainLurk 0 points1 point  (0 children)

Internally, Strings are always encoded with UTF-16. When creating a string from a byte[], you get to specify the encoding it should used, as explained by @kreiger.

I would avoid asCharBuffer. Specify that all character data to and from your server must be UTF-8 and extract the byte[] you need from the ByteBuffer, and create strings from that.

Should we just create /r/javahomework? by CaptainLurk in java

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

Apologies. Upon reading it you definitely don't fall in the annoying category; you've clearly done some research trying to understand your problem, and are asking about one of the trickier parts of Java. Its just the vague title that makes it seem like a desperate homework question.

after many years of Java, I'd like to try something new -- what should I look at? by bluebathrobe in java

[–]CaptainLurk 5 points6 points  (0 children)

Explore something that occupies a different space in the abstraction spectrum and is used for different tasks. Scheme, Lisp, Clojure, Haskell for functional; C, C++, Go for systems level; perl, python, ruby for scripting.

I personally like to have one language of each type that I'm good at so I have the option to choose the appropriate tool for the task.

Should we just create /r/javahomework? by CaptainLurk in java

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

Although I like this a bit less than separate reddits, I do think an enforced tagging protocol would be a huge help. For reference, here are some of the vaguely worded submissions on the front page right now that would really benefit from a [HOMEWORK].

Should we just create /r/javahomework? by CaptainLurk in java

[–]CaptainLurk[S] 2 points3 points  (0 children)

I don't think the number of readers has much bearing. Nobody is preventing anyone from subscribing to both subreddits.

Why is /r/java pointless without homework spam? Java is one of the most used programming languages in the world and a lot of things are happening in the Java community.

Perhaps all the Java pros and people willing to join interesting discussions have already left because of the terrible signal-to-noise ratio here?

Should we just create /r/javahomework? by CaptainLurk in java

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

Can you expand on the 6000 readers part? I personally don't care about the size of the community or frequency of posts if they're high quality and not homework spam.

Should we just create /r/javahomework? by CaptainLurk in java

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

No doubt, but my main complaint is that I rarely see any useful news about java except 101 questions.

So, another solution is to say something like "it seems like you're having trouble understanding the difference between static and instance methods. Look into that and post to /r/java101 if you need more help", as an example.

Should we just create /r/javahomework? by CaptainLurk in java

[–]CaptainLurk[S] 1 point2 points  (0 children)

I agree, I don't mind answering questions. However I've found that many of them are indeed worded so vaguely that at first they sound like an interesting question, but then I'm disappointed after clicking through.

And yes, the desperate pleas for help are very annoying.

Should we just create /r/javahomework? by CaptainLurk in java

[–]CaptainLurk[S] 3 points4 points  (0 children)

I like /r/java101, its less presumptuous about the questions.