« first day (1519 days earlier)      last day (3408 days later) » 

1:03 AM
Annd I'm pretty much done with the packing and preparations for going away over the holidays
 
 
5 hours later…
5:45 AM
:0
 
5:56 AM
Hi peeps
I r official ownerz
 
6:12 AM
:S
 
no idea what channel this topic would go under but has anyone had any luck in finding a minimalist adapter to go from usb to sata for a 3.5 inch drive?
along with being able to power it
not here i guess lol
 
Nope :P
 
would think you java techno geeks would know something about it >_>
 
well i don't
 
@ItachiUchiha well you are of little use on that subject matter then, how about one about programing languages ?
 
6:18 AM
shoot
 
should i learn java or c++ next, i want to create apps for android but also would like c++ to intergrate into my current osx projects, i have a background in c and program in python swift little bit of obj-c atm
andriod and windows apps*
 
C++ has nothing to do with Windows app. You gotta learn C# for it
 
c# for the gui but isnt a fair bit of foundation built in c++?
 
If you want to learn about OOPs then go for C++
actually it all depends on your area of interest
if you just want to make apps, learning C++ will be a waste of time
start with java or C#
 
oops?
also, overall i do not see c++ being a waste of time because i can integrate it in my current applications on other platforms fairly easily but i will spend some more time looking into c#
 
6:26 AM
:)
 
but if i go with java i can bother all my comp sci major friends to teach me lol
 
well C++ is also popular :P
 
yes but my local uni starts off with java lol
only reason i started with c instead of java and never got to take it is cause engineering
 
6:50 AM
@nsij22 what?
 
7:00 AM
@ItachiUchiha If you want to make professional apps, doing it without learning Clang (aka C or C++) will be a waste of your time.
 
@Unihedro what kinda app are we talking about in here?
if it is an android app, I don't think you will be needing Clangs for it
 
lol nvm, what would you say about working through this book to learn java?
 
7:27 AM
@ItachiUchiha Look, I'm not sure whether you're aware, but when I say "professional" I mean professional. Cutting-edge programming has to do with frequent low-level elements where the language itself is not sufficient. For example, some Java programs comes with shell files that mitigate the work. Also, Mathematics has an incredible influence on programming - weather forecasting, data science, graphics rendering, and machine learning.
For example, you cannot implement 0x5f3759df in Java.
 
8:03 AM
@Unihedro I guess you haven't still understood the subject. Its about programming for a celfone. I hope you do understand that nobody is gonna write such programs for graphic rendering on a mobile. All the memory efficient operations are done on the server side..
 
@Unihedro what you need is ceh
lol
// evil floating point bit level hacking
// what the fuck?
 
@ItachiUchiha "nobody is gonna write such programs for graphic rendering on a mobile" - Welcome to the world of OpenGL and DirectX.
@nsij22 They don't have CEH courses over here, otherwise I would had taken them.
 
u no need de course
i mean i took a ceh course and it was 100% shit general intro to programing
then i bought this book
 
// cc @fge @Gem "why schools suck" continued
 
lol //school is only worth it for A lab components, b instructor advice and c class discussion on more advanced topics
intro courses are bs imo
but yeah great book for learning the basics of c
 
8:18 AM
2 hours ago, by ItachiUchiha
C++ has nothing to do with Windows app. You gotta learn C# for it
@Ita this is blatantly wrong.
 
yeah, from more reading c++ with direct-x or other options for windows apps
 
Look at this repository by @Sam, its core is written in C++ and the wrapper to display the stuff was written in C#.
 
but c++ doesn't seem useful for android apps
i mean android sdk is all about java and the ndk is limiting and a lot more complex
 
@nsij22 I haven't seen anyone using both NDK and SDK, but considering that most android apps aren't open sourced, I bet someone has done it before.
@nsij22 "a lot more complex" is a simple oversight.
 
lol
"a lot more complex" as in a lot less fast references and example code
 
8:21 AM
Why on earth would you need example code and references when you gain bit level control?
I don't get what you're trying to convey here.
 
i am trying to figure out what language to learn next >_> so nothing really lol
 
Oh :P
That moment when you end up with a 2x2 area in Minesweeper where either two of them are mines, so you click randomly to gamble and you end up losing.
 
Can anyone here gives me a for loop (as a code) for extracting html table data from a web page using jsoup library
I tried those for (Element table : doc.select("table"))
{

for (Element row : table.select("tr")) {
but the out print the table caption only
 
2
Q: How to parse HTML table using jsoup?

user2809564I am trying to parse HTML using jsoup. This is my first time working with jsoup and I read some tutorial on it as well. Below is my HTML table which I am trying to parse - If you see my below table, it has three tr as of now (I have shorten it down to have three table rows just for understanding...

 
python ftw
 
8:35 AM
Python is a great language.
 
fge
Python is a sh*tty language
 
fge your face is a shitty language
 
ha ha ha
 
fge
"Indentation matters" was what cobol devs believe
Come on, this is 2014
And how could it get multithreading sooo wrong?
Come on, this is 2014
 
lol shit so i find my old tablet, all of my google accounts are signed out and no idea what passwords were
but samung account stays signed in....
or not nvm fuck
 
8:47 AM
@fge If you think multithreading should be gotten right for a language to matter, look at Ruby.
new Thread does nothing like you would ever believe.
Ruby sucks.
 
fge
@Unihedro I despise ruby even more than python
 
Ruby is really only used for how shiny it is.
 
fge
Well, don't tell that to github
They run on ruby
 
That's why they had to make this: bounty.github.com
 
how much cash is a point worth?
 
8:58 AM
Each point is a dollar given. Most rewards range from $100 to $5000.
 
jesus what a gap in top 10 lol
23000$ vs 700
 
Chrome, at >60% of our traffic,
 
> Reported vulnerabilities

Injection badge 5,000 pts
GitHub Pages remote code execution

Injection badge 5,000 pts
GitHub Pages arbitrary file read

Injection badge 5,000 pts
Service hooks remote code execution

Cross-Site Scripting (XSS) badge 2,500 pts
Persistent cross-site scripting (with CSP bypass)
 
 
1 hour later…
fge
10:13 AM
Note to self: beware when Files.createFile() and setting POSIX permissions, the umask applies
 
fge
10:34 AM
still waiting for feedback on java.nio.file usage page(s)
 
It's awesome
I'm checking out a new golfing language
If I were to build a script engine in Java, will the user of MethodHandle help me? @fge
 
four?
 
fge
@Unihedro yep, that would be the way to go; this is what JRuby uses all around (and it is twice as fast as the native Ruby, heh)
 
@fge :O
 
@fge Ewwwww jruby
 
10:46 AM
Jul 23 at 15:16, by aliteralmind
user image
 
fge
@Unihedro I'd appreciate if you tried out grappa for your parsing needs :p
 
@fge Is grappa an executor?
 
fge
@Unihedro no, a PEG parser; with the advantage that grammars are written in pure Java and parsers are generated at runtime
 
Greetings.
 
morning
checking out the docs now @fge :)
 
fge
10:47 AM
Moo
Docs are still lacking... And I need to release 1.0.0 and start work on 1.1.x
 
bugcrowd.com/list-of-bug-bounty-programs why does it seem like no one pays out in bitcoins
 
What's bitcoin?
 
trolling?
 
Oh, if it has to do with trolling, I won't like it.
 
10:55 AM
Morning
 
Hurrah for updates!
 
11:16 AM
zomg yet another update
reports @fge's wikia account to be suspended for update abuse
 
fge
Meh, I still have a lot to write
Directories, file tree walking...
Between this and coding, my head is spinning
But the more people use java.nio.file, the better it is
3
 
11:51 AM
I don't have time to code anything until tomorrow, but my head is full of ideas to code >_<
 
@Gemtastic programmers' syndrome
 
fge
java7fs.wikia.com/wiki/… <-- directories, tree walking
 
Which is when a programmer wants to implement a lot of things, to the point where the project is massive :P
 
fge
Now, what else could be added?
 
Christmas is upon us!
 
11:54 AM
@Unihedro I had 6h to sleep before today which I will first have a family christmas dinner, then drive for 6h >_>
And I woke up after 4
 
@Gemtastic I'd wake up in the middle of the night with solutions for code, roll over, and forget it while asleep! Keep notepaper handy
 
fge
waiting for feedback
 
@Joe'sMorgue I do that too, except I can't fall asleep again :P
well, time to get going.
 
Now, I'm thinking, I need a dictation app on my phone so I can just speak the stuff into it, and listen laters...
Was it something I said?....
 
You mean dictionary?
 
fge
11:57 AM
No, dictation
 
fge
Blurt words at it
 
No, speak into the device, and it records...
Listen to it later [laugh at your own voice...]
 
Sockets ver of dictation?
 
fge
12:02 PM
@Gemtastic that is the kind of question you could answer easily --> stackoverflow.com/a/27580043/1093528
@Gemtastic all it took was a quick glance at the javadoc ;)
 
That's part of my problem, javadoc's don't make a lot of sense to me....They confuse more than help. I gave up and only look for code examples when I'm stuck...
 
fge
@Joe'sMorgue really? They look rather clear to me (OK, most of the time; sometimes they are obscure)
 
12:17 PM
Really...
 
TL;DR: "to me" -> not constructive
 
12:48 PM
@Uni I have a small question: I am unable to understand this thing: In a remote method declaration, a remote object declared as a parameter or return value (either declared directly in the parameter list or embedded within a non-remote object in a parameter) must be declared as the remote interface, not the implementation class of that interface. Can you help?
What I understood is: All the parameters being passed to the remote method, must be of kind Remote, is that right?
 
... ?
 
Am I not clear enough?
function void method(Remote obj);
OR
function Remote method();
OR
function void method(AnObj obj);//where obj has an instance of Remote interface
 
 
3 hours later…
fge
@OlegKuznetsov yeah, I've read it; I disagree on some points though
 
@OlegKuznetsov Didn't I link it just the day earlier? :P
 
@Unihedro Oh, well. No, I didn't see your post (I knew about the theory wiki for long time ;) their BitTorrent spec is awesome)
>>"import java.io.File;
import java.io.FileNotFoundException;" Hm, maybe I should read your article... ;)
 
File sucks, hang out and chat and enjoy fge's commentary.
 
Ah, NIO is only since Java 1.7...
 
3:47 PM
Oh, right, you have to use Java 6.
 
yes, but not for my pet projects!
 
fge
@Unihedro I say this and I also act on it :p
 
Sam
4:38 PM
@Unihedro I would just like to point out that it's currently broken though.
 
... Oh.
 
Sam
The C# side is fine.
It's just the backend.
(Which is one reason why I wrote Wav.Net)
 
Is Java capable of OCR for capthca solvers?
 
@RahulKhosla Why not?
 
is it a difficult task to code this?
I cant seem to find many java guides for this online
 
4:43 PM
Java does pretty much everything. Not the best tool for this though, so unless you're a great macgyver, don't wrench a nail with an old shoe.
Which, by the way, best describes what you're trying to do.
@RahulKhosla Why would you need online resources when what you're trying to do is beyond information theory? Hire a research team.
 
I just wondered because there are many online resources for this to be done in other languages
 
No, you cannot natively do this.
 
ok, no problem. Thanks for your help
 
\o
 
@RahulKhosla We used C++ library (through JNA) for OCR...
 
4:47 PM
JNA is awesome.
 
5:15 PM
hey ppl
 
@ItachiUchiha Heyo!
 
@OlegKuznetsov ssup?
 
Just chilling (and reading about NIO)
 
nio.file?
 
5:19 PM
@fge advised ya?
 
Ha ha. Kinda :D
 
fge
@ItachiUchiha I didn't bash him, mind you :p
 
@fge haha, no1 concluded that :P
 
fge
@OlegKuznetsov reading my page on the API usage?
 
5:24 PM
And this one too
 
20 hats!
 
fge
@Unihedro should I say "hats off"?
 
hats off caps on yes
turns on caps lock
22 hats!
 
 
2 hours later…
user4205741
7:17 PM
Can anyone help me in this question ?
 
user4205741
2
Q: keep history of connected clients to a web-service jax-ws

A.bsaI have a multi player game and I want to keep history of connected players to understand when should game start . I used HttpSession But it can't solve my problem. also I created a static ArrayList of players in webservices but it couldn't solve my poblem . :( Any other idea ? @Resource ...

 
SJD
You want to start the game once all players connected to the server?:D
 
user4205741
i am beginner
 
user4205741
am i doing this work?
 
user4205741
:D
 
user4205741
7:23 PM
I want to have 2 clients that use this web service
 
user4205741
Can u guide me ?
 
user4205741
I use wsdl and create 2 clients and run them
 
SJD
And what exactly is your issue?
 
user4205741
7:54 PM
I want to keep one player when it connect
 
user4205741
exactly I want to start game when 2 client connect
 
user4205741
but after each connection playerlist is empty
 
quick question: in en.wikipedia.org/wiki/D-ary_heap if we increase d from 2 to 3, how much is the tree height reduced?
 
8:43 PM
I want to make a basic messenger service with java using sockets. I can fully implement locally on the wifi
but how do I use the same if I need to send messages to a remote server via internet. and how do the server send back the messages to the client , if more that one client are connected on same local ports using different local IP's
 
you may need to have one server as a host
 
fge
@kritya for this your router needs to be able to do port forwarding, or use something like SOCKS
 
or you may need a database
 
@SpeedCoder Yes I would set the remote server
@fge what if I can do it ? Still possible ? Like how do all the IM's that work on android work ? Do they long polling ?
@fge what if I can not**
sorry
 
9:01 PM
can someone pls tell me stackoverflow.com is not working i m getting alert in browser that
For Security Reasons Framing is not allowed press ok to remove frames
anyone here
@Nexion here ?
 
Sorry?
Anyone have any Android experience? Waiting on the okay for chat permissions for that room.
 
9:16 PM
a bit of
 
So I have a bunch of vertical linear layouts inside of a horizontal one, but the vertical layouts are only showing their children if there is one, any more than that and there's nothing
 
eh did you check their width and height on the first ?
 
Not entirely sure what's going on - the layout has enough height for the child views
 
I mean if in the parent did you set the width of the vertical layouts to match or fill parent ?
 
The vertical layouts have 0 width, with weight 2. The height is match_parent
 
9:23 PM
maybe put a question with the code , eh ? If you cant get in the android chat room like me ;)
 
NIO looks complicated :(
 
9:41 PM
Well that was weird. I had another layout inside each of the vertical ones by default that was causing weird issues. Everything's working now.
 
fge
@OlegKuznetsov really?
What is complicated?
 
@fge So... Instead of File, I should use Path - right?
Ah, nevermind: I think, I found what I was looking for
 
fge
@OlegKuznetsov if that is my page which is unclear, tell me
 
No, I'm reading Oracle's guide
 
fge
Well, try and read this one ;)
 
 
1 hour later…
fge
10:58 PM
@ZouZou I have an idea for your package
 
11:16 PM
@fge Listening :)
 
fge
@ZouZou stream of bytes -> hash or stream of bytes -> encrypted stream. That would probably mean creating a ByteStream the same way there are {Int,Long,Double}Streams
@ZouZou also, I have written this small piece, I trust you see what it does ;)
Also, Map.Entry has comparators included since 1.8, I didn't know that
Sort by value for instance
Ah, and there is this to look at for primitive streams
Uh, that looks to be... Hard!
 
@fge Yes I saw the post of brian goetz few months ago
9
A: How to sort a Map<Key, Value> on the values in Java?

Brian GoetzJava 8 offers a new answer: convert the entries into a stream, and use the comparator combinators from Map.Entry: Stream<Map.Entry<K,V>> sorted = map.entrySet().stream() .sorted(Map.Entry.byValueComparator()); This will let you consume the entries sorted in a...

Yeah looks great indeed
goota think abut tht
 
user1648409
Hi, someone here who knows a bit about Java Networking and can help me a bit?
 
fge
11:33 PM
@ZouZou also, did you know that Stream implemented AutoCloseable?
 
@fge Yes I saw a blog entry few days ago about that
 
fge
I haven't tested it but I wonder what happens if you don't close a Stream such as the ones produced by Files.{walk,find,lines}()
Especially Files.lines()
Files.lines().filter(something).findFirst(); // hey, and my fd?
Unless a terminal operation closes the stream?
 
I don't know, I guess you should always use the trywith resource statement when opening a Stream from an I/O resource?
 
fge
That's what I do but I didn't consider the fact that a terminal operation may do the job for us... Easy to test since Stream has this
Answer is NO
Terminal operations don't close the stream
IntStream.closedRange(1, 10).onClose(() -> System.out.println("END")).forEach(System.out::println) --> won't print END
 
6
Q: Do terminal operations on streams close the source?

skiwiConsider the following code: Path directory = Paths.get(/* some directory */); Files.list(directory).forEach(System.out::println); Does a terminal operation (like forEach) close the underlying file that has been opened? Refer to the relevant parts of the javadoc of Files.list: The returne...

and also
5
Q: Closing streams in the middle of pipelines

Lii When I execute this code which opens a lot of files during a stream pipeline: public static void main(String[] args) throws IOException { Files.find(Paths.get("JAVA_DOCS_DIR/docs/api/"), 100, (path, attr) -> path.toString().endsWith(".html")) .map(file -> runtimizeExce...

 
fge
11:46 PM
So, it IS necessary to close yourself
 
yeup
well if you use the try with resource it will close it for you
 
fge
Yes
I always do this with Files.*() operations which return Streams so that's OK
 
I find it defeat the purpose to use the stream with resource. For me stream operations can always be done in a single line by chaining call; but this is the only way to go unfortunately
 
fge
Well, few streams are I/O bound so...
(but I'm sure there's already some resource leaking code out there because of precisely that)
Hmm, maybe public interface AutoCloseStream<T> extends Stream<T> { @Override default public void forEach(Consumer<T> consumer) { super.forEach(consumer); try { close(); } catch (IOException oops) { throw new UncheckedIOException(oops); } }?
Hmmno
Well, something like this could be done using delegation, but it needs a concrete implementation
And that would be catch Exception anyway since this is what AutoCloseable throws
 
I'm not very comfortable with this to be honest
 
fge
11:56 PM
Well, terminal operations are terminal
After they are done you cannot reuse the stream anyway
 
yeah its consumed
 
Greetings
:D
 
fge
Well, that could be worth a try
 
I'm doing a project involving using a decision tree but I can't find any good starter examples.. does anyone have any relevant references?
or code examples?
 

« first day (1519 days earlier)      last day (3408 days later) »