« first day (1196 days earlier)      last day (2059 days later) » 

1:35 PM
Happy Thursday
 
2:33 PM
Happy Thursday to you too. It's good to see you.
I finally got to read that article. That was fun reading. Too bad that Ruby was in the middle and so not represented... I'd have liked to learn how many people are doing Ruby in off-hours vs. work hours.
 
I do Ruby in off-hours
 
Me too
 
So Ruby must be a language you enjoy.
What do you all do during your work hours?
 
Java
 
My last position was Javascript plus a little C# and GLSL
 
2:37 PM
Ruby for work, dabble in all sorts of things in my off hours... I should really stick to one thing and make something tangible
 
1 month before the house, so might be tempted to try the world of IoT/Home automation.
 
@Jared I've heard that every programmer should make a 3d maze crawler that renders in ASCII
 
I'll make a generator, you make a solver
 
I've made a generator plus the three-dee stuff already. My latest issue are upside-down ghost doors that hover in mid-air in front of you when you face away from them.
when you face towards them, they merely protrude into the floor by one chixel
 
"chixel", heh.
 
2:44 PM
Not my term
 
I like it though.
 
The solution to my floating doors, which I haven't gotten to yet, will also reduce duplication and perhaps unlock further optimizations down the road.
 
That's pretty cool stuff. I don't have the chops to do 3D.
 
2:59 PM
good evening
I need a suggestion if you've some time :)
 
shoot
 
OpenGL is pretty fun if you wanna do 3D. one of my college projects was making a scale representation of the solar system... Thats when I realized the sun was huge after I couldn't leave it after moving from 0,0,0
 
I don't think OpenGL renders to ASCII :-D
 
ahahah I'm sure someone crazy enough could do something about this
 
probably
 
3:02 PM
I have a table called Mark, it will have some foreign keys and for one of the foreign keys, it'll be used conditionally. That's based on some other attribute. What options do I have?
 
There is libcaca
Libcaca + gnuplot, perhaps? But it feels like cheating to use a library :-D
A really crazy idea would be to use Opal.rb => javascript rendering to canvas inside a headless emulator that supports WebGL => native ruby script that feeds the canvas data to libcaca.
 
@Anwar Look for another way to do this, if at all possible. The idea will cause suffering later.
For one thing, you won't be able to use normal foreign key constraints on the database.
 
Just created this one. You see the answer_sheet_id column in mark table? that will be sometimes and sometimes it won't be required ctrlv.it/id/25083/3020009124
 
I work with a database that has conditional foreign keys, and it is awful.
 
Yes, but all the other fields are same. Should I just create another table?
 
3:09 PM
Either have a collection of nullable foreign keys, one for each type of table that the object can belong to, or use join tables.
Or, if it's a one-to-one relationship, move the foreign key into the other tables.
a text not null;
b text not null;
c_id int references c(id) null;
d_id int references d(id) null;
etc.
^ That's the collection of nullable foreign keys. a and b are the data.
 
got it. Thanks.
What about the join table approach? can you describe it a bit further?
 
A join table is one with two foreign keys, so that approach would have the data--and no keys--in one table. Let's call it data. And then a join table for each type of table that can be associated with data.
data_id int not null references data(id);
c_id int not null references c(id);
primary key (data_id, c_id)
^ That's a join table. Repeat for associated tables d, e, etc.
OK, time for meetings. Talk with you all later.
 
Thank you very much for your time :)
 
 
1 hour later…
4:32 PM
Back from meetings. They went well. I just realized that the entire org chart above me was at that meeting... my boss, boss's boss, owner... and I wasn't nervous. That's new. Maybe that's from playing music in front of people.
I hope it is, because that's kind of what I want to achieve from doing that.
 
I always just remember what Steve Jobs said. it was more or less "Infrastructure, Government, everything was designed by people no smarter than you"
2
Kind of levels the playing field in my mind and helps me "play the game"
 
I like that.
 
Nice way of improving your stress for meeting! You're getting more out playing music than just learning music!
 
Music is turning into a big journey for me. If I ever write a song, I'll want to write about how this little trip turned into an epic.
 
4:53 PM
Found that Steve Job's inspirational video(Youtube)
 
I wish I could watch videos at work. I'll have to take your word for it.
 
 
3 hours later…
7:31 PM
39
Q: What is the "Fix Everything" design pattern?

Aaron HallIn this 2003 article by Stephen Figgins on linuxdevcenter.com, Bram Cohen's BitTorrent is described as using the "Fix Everything" design pattern. A less common approach that both makes BitTorrent harder to grasp, but worthy of study, is Cohen's use of idempotence. A process is idempotent whe...

I've used this pattern before, but didn't know it had a name.
I like to think of every program as a "fix everything" program, where you introduce caching as needed for performance (and to cause subtle bugs).
The idea is closely related in my mind to functional programming.
A member variable is just a kind of cache.
 
Is someone using W10 with VM running on Virtual Box ?
 
I am.
Running on VirtualBox 5.0, because I had display trouble with 5.1
 
I'm having trouble from the vm to access my machine. Ping is working, but connecting to the tomcat 8080 port is not.
My google skills are not helping me though
 
7:47 PM
Assuming you enabled the network for the VM and set it up to be a Bridged Adapter?
 
We can't used bridged at work, so I have to use the host-only adapter. My setup was working fine on my previous computer on W7. Don't know what is different and not working now.
I have 2 network card, 1 NAT and 1 for the host only
I can ping 192.168.56.1 correctly, but wget on my tomcat doesn't work.
Anyway that will be a problem for tomorrow :)
 
In order for my host machine to contact SqlServer in the VM via TCP/IP, I had to mess with Windows firewall rules.
 

« first day (1196 days earlier)      last day (2059 days later) »