« first day (750 days earlier)      last day (1410 days later) » 

5:33 AM
Hey
 
5:44 AM
Toughest review ever, but I'll add his login with password+PIN and an iPad modification
(3 stars - Mediocre):
I seen this on stackover flow and I though to go and check it out. So far this is an 'ok' concept. There are loads of improvements needed, example I uploaded a photo on iOS version and it's not coming up on the desktop version. Second, I put in a pin for better security, why do I only need to put in my password? I should be asked to put in my password plus pin. Third, the design. Ask your self this, why do people use Dropbox? Why do people use iCloud? What do you offer over these ma
That's why I "changed" the desktop version to a Coming Soon page
 
6:24 AM
(The desktop version is merely in a pre-alpha)
�0{"sid":"8aPQ_A45UCCBFi4SAAAB","upgrades":["websocket"],"pingInterval":25000,‌​"pingTimeout":60000}
@Unihedro YES I DO USE WEBSOCKETS!
 
7:09 AM

Sandbox

Where you can play with regular chat features (except flagging...
 
 
1 hour later…
8:14 AM
 
8:50 AM
@GabrielTomitsuka hi... just felt like letting you know that I luckily had backups of most of the code in unexpected places
and I'm working hard on publishing the code to GitHub.
(i was raindrop earlier)
@GabrielTomitsuka btw I get 404s for the images at blog.montreus.com/?p=67
 
@kuhanmuniam Oh yes
I changed the server's image scripts.
@kuhanmuniam I always use Git for version control.
 
9:09 AM
@Iplodman You could have remembered about Node.js's long-polling requests and the pretty handy Express.js framework
 
9:31 AM
Hello people. Does anyone know a place that can tell you how many words that can be found in a sequence? Example you have 16 letters and it tells you how many words you can make, thanks.
 
@MichaelMooney Scrabble solver?
 
Thank you! Scrabble only lets you put in 12 letters :(
 
Sam
@MichaelMooney Or you could just write your own simple algo for that.
 
10:21 AM
@MichaelMooney Oh crap I always send useless stuff. Sorry.
 
Ohh I found an interesting contest problem.
 
Sam
Oh?
 
By analysis, palindromes -> [X, Y, Z, ... , Z', Y', X'].
 
Sam
Sounds interesting.
 
For X and X', the steps required to normalize them would be max(X, X') - min(X, X').
 
Sam
10:30 AM
That's on hackerrank, right?
 
Sam
wishes I had time to compete
 
I agree.
I'm almost done with Vincentyification/JavaBot#33, too.
 
Sam
Well, maybe one day, one day...
Nice :D
 
But that day is not today. :P
 
10:32 AM
@Unihedro That's a good one.
 
Sam
@Unihedro So is JavaBot running on JCE?
 
@Sam Not yet, because JCE doesn't have an operable build yet.
(ETA: Mid-Feb)
A lot of the current issues are being hot-fixed until JCE is done.
 
Sam
Oh, kk.
So, what does JavaBot use then?
 
It runs on HTMLUnit, a Java library that acts as a browser.
So we log in and auth by mimicking browser usage.
 
Sam
Ohhh.
I guess that also includes chat interaction?
 
10:37 AM
Yeah.
It also computes the JS on a page, etc.
 
Sam
Wow, that's neat.
 
JCE, on the other hand, uses Apache HTTP lib to act as a minimal http client, and uses Java-WebSockets library for its implementation of WS.
So it's entirely done on an HTTP layer.
I also have a JSocket.IO implementation somewhere in my garage of code dump to use to communicate with the Miaou chat with a plugin.
(Miaou runs on socket.io.)
 
Sam
:O
 
@Unihedro Told you that Socket.io isn't that useless :)
 
@GabrielTomitsuka I already convinced them to switch to websockets. It's only a matter of time until I can burn JSocket.IO.
 
10:42 AM
@Unihedro Couldn't you use a modified version of the Android library?
 
@GabrielTomitsuka No, because Android is GNU.
 
It's somewhere in there.
@GabrielTomitsuka Huh?
 
@Unihedro Check this. You may not use everything, but a good start.
Probably that
I think I'll use this in the future.
 
11:04 AM
Help vampires! There should be something in the rules regarding them
 
 
1 hour later…
12:17 PM
Heya
 
hi
 
Sam
Hiya
 
How are you all ?? :)
 
Sam
Good thanks, and you?
 
12:31 PM
Em goooddd... Super duper... :D
 
Sam
:D
 
Fine.
I'm just checking the code from the company I had an internship.
They are paying me a bit to optimise everything.
They are using jQuery+Wordpress+LAMP+Bootstrap+Facebook SDK for the WEBSITE
Not the app
It's PHP.
 
@GabrielTomitsuka good.. is that online work?
 
@LittleGirl This time, yes
 
Hmm
 
12:33 PM
It's awful code.
(I was responsible for part of the iOS version; not more)
 
how can i get online internships
means remote
in databases or android or java
 
A radix of 2 means binary, right? I'm storing binary digits, aka 10101010111
 
I'm creating a Redis database for caching stuff.
(I'm also removing Wordpress and LAMP. But I can't use Node.js, so I'll have to stick with Apache...)
@LittleGirl I worked there physically.
 
@GabrielTomitsuka ohhh ok.
@Unihedro @sam @GabrielTomitsuka where is @imagine ??? Anybody knows about him
 
12:40 PM
@LittleGirl He changed his name to Jacob Gray.
 
ImagineWebDesign changed his name to @JacobGray
 
ohhh...:P
i was worried where is he just disappear .. :D
 
1:24 PM
@Unihedro i think so
 
2:24 PM
@LittleGirl
 
Sam
Hiya @Jacob
 
Hiya!
@LittleGirl lol, imaginewebdesign was arrested and sent to the gulag, never to be seen again
 
 
2 hours later…
4:25 PM
Anyone on?
 
yep
 
Hey Jacob
 
Hey @GabrielTomitsuka @ProgramFOX !
 
Hey!
 
Sorry, i was writing an email for a competition i am in, didn't see your messages until now :)
 
4:39 PM
@JacobGray what competition? static showdown?
 
@ProgramFOX what search engine do you use?
No, its called envirothon
 
Hi everyone can you help me with something ???
 
@JacobGray Google
 
NCF-Envirothon is an annual environmentally themed academic competition for high school aged students organized by the NCF-Envirothon a program of the National Conservation Foundation. The competition is held by the United States and Canada on a regional, state, and bi-national level. Envirothon combines in-class and hands-on environmental education in a competition setting which involves a problem-solving presentation as well as written field tests. The competition tests students on five core subjects- aquatic ecology, forestry, soils and land use, wildlife- along with a fifth annually-changing...
 
ah cool
 
4:40 PM
It's pretty fun, takes a lot of effort
@ProgramFOX i use bing :)
because they give you rewards lol
 
lol :D
 
@JacobGray Google. But I won't advertise it because I pay $5 every month :P
 
@GabrielTomitsuka why?
 
@JacobGray Google Apps for Business
 
4:42 PM
Gmail for Business, Google Drive for Business(30GB) and Google Contacts for Business(unlimited).
I have Google Calendar too, but don't use it.
 
I need a little more bing reward points to get a $5 amazon gift card lol
Now, newest messages are shown on top
how many messages should i show in the message pane, before users have to go to their user inbox to see more? @GabrielTomitsuka @ProgramFOX @Ahmad
@Akshay what did you need help with?
 
@JacobGray I'd suggest adding 20 to the message pane where 4 or 5 are immediately visible and the other 15 or 16 can be seen by scrolling.
 
okay, 20 was the number i was going to use :)
so, it looks fine right now?
(the scroll bar is there, you cant see it )
 
4:58 PM
@JacobGray Going to log in to check...
 
@ProgramFOX i haven't got it online yet!
 
oh
From your screenshot, it looks good.
 
you will get the cruddy looking userhome lol
okay :)
Oh, and you may have to re-register when it updates, >.<
 
ok, no problem
 
You will get a fancy looking email telling you that when you need to lol
 
5:14 PM
@JacobGray Can you pull the update?
@ProgramFOX Agreed.
@Unihedro I think I got a more exciting position for you.
What do you think about helping me build a web crawler working with Regex and running every 24 hours with Node.js?
 
5:59 PM
@GabrielTomitsuka what do you mean by pull?
 
Sam
@GabrielTomitsuka Wait, parsing HTML with RegEx? :O
 
Ahhhhhhhhhhhhhh!
 
@JacobGray Ugh, upload
update the online version
 
@GabrielTomitsuka How about I jump out of the window and try to survive?
(That response took me quite a while to come up.)
 
Lol
 
Sam
6:01 PM
@Unihedro Don't worry. Unis always land on their feet.
 
Ok. I need to make a web crawler. It should run using Node.js.
 
haha
I'm amused
 
That response didnt take long lol
 
You can do whatever you want for parsing the page.
 
Does it include dummy loading?
function getPage(url) {
  return "";
}
 
6:03 PM
@GabrielTomitsuka ill update it when the userhome is done
 
@Unihedro It must result the website element I need.
 
But really, node.js is incapable for the task because it doesn't support header manipulation with requests extensively, and works mostly on the HTTP layer.
 
@Unihedro you've crushed his dreams
 
@JacobGray I tried to slow it down.
 
@Unihedro By the way, there are tons of things in Painless Cloud REST API with this exact code.
 
6:04 PM
Lol
 
@GabrielTomitsuka ha
microsoft-style coding
just return constants and let it break so the bug fixing hours are timed into billing seperately
 
@Unihedro Is it possible? I don't know much about RegEx, but it should run on Node.js. If not possible, I can install something else. Your suggestion?
 
Sam
@Unihedro Microsoft coding conventions suck.
 
Haha, why?
 
@Unihedro (However, returning AJAX)
 
6:06 PM
@GabrielTomitsuka I want seven red lines, perfectly perpendicular, with green and invisible ink, please.
 
Sam
@JacobGray ... because... Microsoft.
 
And my target audience are NOT colorblind.
@Sam You don't say. :P
 
@Sam are you at one?
 
Sam
~ Increased sarcasm detected.
 
{"error" : 500, "description" : "An unknown error occurred", "localization" : "en-US"}
 
Sam
6:08 PM
@JacobGray coding conventions = coding rules/styles/widely recognised ways of doing something "the right way™".
 
@Unihedro I should start paying you for being able to say that I'm your employer, not your employee...
 
@GabrielTomitsuka Eh, it was a comedy reference. :P
From the above video.
 
Sam
LOL
 
lol
 
:D
 
Sam
6:11 PM
"try it on meta" ROFL
@Unihedro GFSE is the funniest thing I've seen for a very long time. Thanks for suggesting it ;D
 
@JacobGray ohhh why?? :( very sad... :P
 
6:45 PM
@Unihedro FALLS OF LAUGHING. My partner is the suited-director, I am the project manager and you are the line specialist :P
 
you realize
Christmas spirit:
 
@Unihedro I'm a busy man.
 
@GabrielTomitsuka I do realize.
I'm probably busier than you are, too. :P
 
@Unihedro So, I need to parse the following site: thesailor.com.br/2012/?page_id=5
 
@Sam is that basically a suggestion for Asian programmers to date?
 
Sam
6:52 PM
@Firedrake969 Tbh, I only read the title + a few lines of the first paragraph.
 
I need to get the event's details.
 
Sam
@Unihedro Confession time, I'm part-multitasker-part-over-focused-guy-part-R&D-addict.
 
:D
<- working from home legitimately
 
Sam
:D
 
So, I need to parse everything inside the #portfolio-wrap id and then do a loop for each element with RegEx for separating the date from the title.
 
Sam
6:56 PM
@GabrielTomitsuka You should totally drop that and try jQuery.
 
@Unihedro I'm a bit the over-focused guy, but I spend too much time on SO.
@Sam I'm not the website owner.
I'm merely making a web crawler for my former employer.
And hiring Unihedro at the same time.
I'm pretty much the project manager.
@Unihedro I need to do a web crawler for one website every 24 hours with Node.js. Any module can be used.
But now I won't receive as an intern but as a half-time employee.
 
you don't really need a crawler
since it's js
and you can process the DOM in js
or you can use cheerio
 
@Ahmad I need to check this page contents every 24 hours: thesailor.com.br/2012/?page_id=5
Every portfolio item, and see if they already exist on the DB.
 
7:13 PM
Okay, so i fixed the stupid way i was displaying newest messages first
 
@Sam How big can human stupidity be?
 
I had been doing it like:
 
I wonder.
 
@Sam Depending on my mood, I can be the R&D addict, the "working" guy, the purist, and the multitasker, but I'm always over-focused
 
$text = 'Stringhere'.$text;
Yeah, it was stupid
 
7:15 PM
is that PHP?
 
yes
 
var cheerio = require('cheerio');
var request = require('request');

request('http://www.thesailor.com.br/2012/?page_id=5', function (error, response, html) {
  if (!error && response.statusCode == 200) {
    var $ = cheerio.load(html);
    console.log($('.class1', '#id2').text());
  }
});
@GabrielTomitsuka
that's what I meant
 
I forgot that it was getting it from the oldest messages, so it would get the oldest twenty messages, then display them with the newest ones first >.< not what i wanted
 
@Ahmad That's what I'm trying. Thank you!
 
you don't need a scraping framework
you can just load the DOM into js with cheerio and select html elements with css selectors
and then just set up a cron tab that hits your script every 24 hours and you're done
 
7:17 PM
So, i was a good boy and coded it correctly, where it searches the database till it finds the newest messages, aka the ones with the highest number, and displays the top 20 of those
 
@Ahmad Okay. Memory usage isn't important, I can take 20+ minutes and use up to 4GB RAM.
 
or you could just have the messages date-stamped in a new column
and grab the messages sorted by date
 
(It's a pretty good server)
 
$number=0;
$numberbool=false;
$numberint=1;
while($numberbool==false){
$numberquery = $usermessagesdatabase->prepare("SELECT num FROM `'$name'` WHERE num=:numberid");
$numberquery->execute(array( ':numberid' => $numberint));
$numberid = $numberquery->fetchColumn();
if($numberid== $numberint)$numberint= $numberint+1;
else $numberbool=true;
}
$numberint = $numberint-1;
while($number <= 20){
$checkmessage = $usermessagesdatabase->prepare("SELECT * FROM `'$name'` WHERE num=:numberid");
$checkmessage->execute(array( ':numberid' => $numberint));
 
Sam
@Firedrake969 :D
 
7:18 PM
memory usage? this will take 1 second at most.
 
Very messy coding...
 
Sam
@GabrielTomitsuka It seems to be ever-growing.
Brb, dinner.
 
you can do this on a raspberry pi and it will not take longer than 1 second
 
@Sam ?
 
@Ahmad I mean, these are the limits, so memory usage doesn't matter.
 
7:19 PM
@JacobGray use an SQL ORDER BY
 
@Firedrake969 LOL, i just figured that out :P
 
:D
I had a similar problem on a smaller scale
 
But, i created a nice little send messages function :)
All i have to do is write postMessage('Hey There!','System','Jacob'); and it sends a message from system, to jacob, with the message being Hey There!
 
Awesome
Care to get it on GitHub? :P
 
I dont know if it would be much use to anyone else, it is made to work on the chatteriffic databases, not actually send emails
 
7:24 PM
I'd still be interested
 
@Firedrake969 its tiny:
<?php

function postMessage($message, $from, $to){
include_once('config.php');
try{
//Connects To messagedatabase
$usermessages= new PDO($chatmessages, $admin, $password);
$usermessages->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$numberbool=false;
$numberint=1;
while($numberbool==false){
$number = $usermessages->prepare("SELECT num FROM `'$to'` WHERE num=:numberid");
$number->execute(array( ':numberid' => $numberint));
$numberid = $number->fetchColumn();
if($numberid== $numberint)$numberint= $numberint+1;
Thats it :)
 
cool, thanks
I have to go eat lunch, bye
 
okay bye :)
Where do you live @Firedrake969 ?
 
7:41 PM
Got it!
How can I do a RegEx for a date i.e. "24/11"
24/01 SÁBADO, São Paulo 461st Anniversary
28/01 QUARTA, Show COWBELL
29/01 QUINTA, Show TABOO
30/01SEXTA, SHOW com a banda MONK
31/01 SÁBADO, INSONICA
I want to have just the date
If I do only ([0-9]/[0-9]) it will return 1/2 from a 11/22
Done! ([0-9][0-9][/][1-2][1-9])
That will do the job
Goodnight
It ended like this: returnedItem.search(([0-9])?[0-9][/][0-2][0-9]);
 
8:19 PM
@Firedrake969 Don't use the code above for anything, there is a security hazard on line 12
$to is inserted directly into the SQL, no parameters are used
Updated code:
<?php

function postMessage($message, $from, $to){
include_once('config.php');
try{
//Connects To messagedatabase
$usermessages= new PDO($chatmessages, $admin, $password);
$usermessages->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$numberbool=false;
$numberint=1;
while($numberbool==false){
$number = $usermessages->prepare("SELECT num FROM `:to` WHERE num=:numberid");
$number->execute(array( ':numberid' => $numberint,':to'=> $to));
$numberid = $number->fetchColumn();
if($numberid== $numberint)$numberint= $numberint+1;
And a nice little demo:
<?php
include_once('postMessage.php');
if(isset($_POST['submit'])){
$message = $_POST['message'];
$from = $_POST['from'];
$to = $_POST['to'];
 postMessage($message,$from,$to);
 }
?>
<form method="post" action="test.php">
<label>From: <input name="from"></label>
<label>To: <input name="to"></label>
<label>Message: <input name="message"></label>
<input type="submit" name="submit">
</form>
At least the code for it...
Of course, none of it does you any use whatsoever, because you dont have the code for the databases, or really everything else
:D
 
8:44 PM
Hamburg -> Barcelona \o/
hackathon nr. 2 in 2015
 
8:58 PM
@JacobGray I'm in Utah at the moment
 

« first day (750 days earlier)      last day (1410 days later) »