Open Side Menu Go to the Top

07-06-2014 , 09:46 PM
DVORAK you inefficient QWERTY sheep

tho a real l33t keyboard baller wouldnt buy a blank keyboard, hed buy one of those LED ones where you can change the layout at the push of a button
** 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 **
07-06-2014 , 10:51 PM
Quote:
Originally Posted by suzzer99
I bought a refurbished Toshiba laptop for my technophobe dad to replace his XP laptop which is dying. How much hell am I going to have to go through to get Windows 8 to look something like what he's used to? Is it even possible?
"Classic Shell" might well be your friend here
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-06-2014 , 11:19 PM
I heard you couldn't do that with Win 8.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 12:17 AM
you believe everything you are told? Thats just big keyboard at work, trying to keep you complacent. keep pounding away on the keys in ignorance. baaaaaaaa.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 02:21 AM
Quote:
Originally Posted by suzzer99
I bought a refurbished Toshiba laptop for my technophobe dad to replace his XP laptop which is dying. How much hell am I going to have to go through to get Windows 8 to look something like what he's used to? Is it even possible?
tell him to just click the big "desktop" tilebutton, or press the WIN+D, or even just the WIN key itself, or move the mouse cursor to the lower left corner and click. its not hard.

those last 3 might not be easy or intuitive for a non techie.

so just click the big desktop tile button:

http://www.eightforums.com/attachmen...e_on_start.jpg

Last edited by greg nice; 07-07-2014 at 02:31 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 03:53 AM
I have to say YUMI is an amazing tool. I decided to setup a dual boot last night. xubuntu 14 and windows 7. YUMI allows you to put both operating systems on a single flash drive and then you can pick which OS you want to install.

If anyone is curious if you already have windows installed the xubuntu installer sets grub up for you so you can pick which OS to boot into. Didn't require any extra setup.

I have to say going from developing inside of a 768mb VM with a GUI to a true base OS was the best thing ever. Things are so snappy and it automatically mounted my NTFS partitions so I'm able to access my files on both OSs. I remounted my windows partition in read only mode just to be safe.

Now I can happily sit here in xubuntu and have 5 linux containers open with no delay or issues, yay for being able to test automation tools on a cluster of servers without having to pay for a cloud provider.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 05:01 AM
Quote:
Originally Posted by daveT
Thanks for the answer. I'm guessing that if it is bad in C++, then it is bad no matter what language I am using. I know that was pretty awful but when you are drinking...

I reconsidered the design a bit. Basically, I need to be able to construct maps like this: https://github.com/timotheus/ebaysdk...ng.py#L151-186

Which are nested and chained together. I found this from SO: http://programmers.stackexchange.com...a-class-method

And now I'm considering methods that look like this:

Code:
class GetFinalValue ():
    def __init__ (self, final_value = True):
        self.query = {}
        self.query['IncludeFinalValueFee'] = final_value
    
    def v (self):
        return self.query

class GetOrdersByDay ():
    def __init__ (self, days):
        self.query = {}
        self.query['NumberOfDays'] = days

    def v (self):
        return self.query

class GetOrdersByDate ():
    def __init__ (self, from_date, to_date):
        self.query = {}
        self.query['CreateTimeFrom'] = from_date
        self.query['CreateTimeTo'] = to_date

    def v (self):
        return self.query

class GetModifiedOrders ():
    def __init__ (self, from_date, to_date):
        self.query = {}
        self.query['ModTimeFrom'] = from_date
        self.query['ModTimeTo'] = to_date
    
    def v (self):
        return self.query
Which I guess would allow me to create said trees, but I end up with somthing like this:



If I want to call the API, I end up with something like this:

Code:
myCall = api.execute ('GetOrders', days.v().update(fv.v()))
I guess you can see how long that part I linked to would get. Obviously I can iterate, but still feels pretty gross.
It might not be bad in Python. In the Django ORM you can do Model(field1='foo').save() and it seems to work well and is definitely convenient. Though, the idea that I'd have a class creating a concrete database/api class which accesses a class variable to modify some global object does make me cringe. I think that could get messy quick.

What you have now is certainly far easier to understand, but you can factor all of the query code into a common subclass, and instead of having a new class for every query, you can make it a function:

Code:
class Query(object):
	def __init__(self, **kwargs):
		self.query = {}
		for key, value in kwargs.iteritems():
			if key in self.KEYS:
				self.query[self.KEYS[key]] = value
			else:
				raise ValueError('Invalid key')

class OrderQuery(Query):
	KEYS = {'day': 'NumberOfDays',
			'final_value': 'IncludeFinalValueFee',
	}

	def include_final_value(self):
		self.query['IncludeFinalValueFee'] = True
		return self
	
	def by_day(self, days):
		self.query['NumberOfDays'] = days
		return self

	def created_between_dates(self, from_date, to_date):
		self.query['CreateTimeFrom'] = from_date
		self.query['CreateTimeTo'] = to_date
		return self

	def modified_between_dates(self, from_date, to_date):
		self.query['ModTimeFrom'] = from_date
		self.query['ModTimeTo'] = to_date
		return self
I also threw in the ability to init your query with a set of keywords defined in the specific query subclass. You can use it like:

Code:
order_query = OrderQuery(final_value=True).by_day(6).created_between_dates(from_date, to_date)
api.execute('GetOrders', order_query.query)
You should probably add your own API endpoint so you have api.get_order(order_query) throughout your code instead of api.execute('GetOrders', order_query.query) and then if the api changes, or you need to add an api key or something you have one place to change it. You could also consider adding a QUERY_NAME class variable to your query subclasses and then you can call api.execute_query(order_query) where execute_query is:

Code:
def execute_query(query):
    api.execute_query(query.QUERY_NAME, query.query)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 07:21 AM
"big keyboard". Nice.

Although I didn't know keyboards were sold for hundreds of dollars so maybe its less of a joke than I realize.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 08:34 AM
Quote:
Originally Posted by suzzer99
I heard you couldn't do that with Win 8.
Windows 8 or 8.1? If it is 8 just do the free upgrade and then do what other posts indicate in this thread.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 09:49 AM
Ah thanks, good to know.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 10:19 AM
i have win8 not 8.1, so all the basic stuff i posted will work regardless
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-07-2014 , 11:50 PM
Quote:
Originally Posted by skier_5
It might not be bad in Python. In the Django ORM you can do Model(field1='foo').save() and it seems to work well and is definitely convenient. Though, the idea that I'd have a class creating a concrete database/api class which accesses a class variable to modify some global object does make me cringe. I think that could get messy quick.
Oh yes, I agree. It would get a bit messy fast. I'm kind of surprised that no easy solution exists for this one. I could, of course, go with a naive solution, but that wouldn't help much either.

Quote:
What you have now is certainly far easier to understand, but you can factor all of the query code into a common subclass, and instead of having a new class for every query, you can make it a function:
I think I was trying to go down that path, but didn't quite know how to get there. That is a very interesting solution. Took me a few minutes to figure out how it all worked, which obviously means I wouldn't be able to right it.


Quote:
Code:
I also threw in the ability to init your query with a set of keywords defined in the specific query subclass. You can use it like:

order_query = OrderQuery(final_value=True).by_day(6).created_between_dates(from_date, to_date)
api.execute('GetOrders', order_query.query)
This part could certainly go a few different directions. For example, every call in the API has a 'Pagination' option, and in fact, many of the query calls are the exact same thing. The painful part is that namespace conflicts won't allow me to make calls to different parts of the API even if many of those parts are the same. I guess I will have to create a files of common definitions. I'm still not a huge fan of chaining like this, but I guess nesting calls a'la FP exactly better either.

Quote:
You should probably add your own API endpoint so you have api.get_order(order_query) throughout your code instead of api.execute('GetOrders', order_query.query) and then if the api changes, or you need to add an api key or something you have one place to change it. You could also consider adding a QUERY_NAME class variable to your query subclasses and then you can call api.execute_query(order_query) where execute_query is:
Thanks for this. I wasn't sure if over-riding their methods was a great idea, though the intention was to use that for database insertions and the like.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-08-2014 , 03:00 AM
Quote:
Originally Posted by jjshabado
"big keyboard". Nice.

Although I didn't know keyboards were sold for hundreds of dollars so maybe its less of a joke than I realize.
Definitely worth the money.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-08-2014 , 06:26 AM
I figured this is probably a good place to quickly catch up with latest hand evaluation trends. I'm looking for a recent performance comparison for "out of order" 7-card evaluations in Java.

Is there anything faster than Steve Brechers evaluator for this? (I'm aware that the 2p2 eval is great for sequential enumerations, but it's *way* slower when doing isolated/random evaluations.)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-08-2014 , 11:29 AM
Nevermind i guess. I wrote one recently and was interested how it compares to the current state-of-the-art.

Figured i'd just share it:
http://forumserver.twoplustwo.com/15...uator-1457962/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-08-2014 , 12:30 PM
classic_shell is the bomb. I was ready to kill myself after 15 minutes on Win 8 with all the screens randomly changing and no idea how to get back (it didn't help that the laptop trackpad was super sensitive and kept dragging instead of just moving).

My Dad would have had a nervous breakdown and thrown it out the window dealing with that.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-08-2014 , 12:51 PM
Finally got my apple developer account nonsense squared away and deployed the app I'm building using ionic framework (uses cordova). Runs really well, and I'm super stoked.


edit: on an iphone 5 anyway, I'm sure it'll get knocked around a bit on slower devices. I'll test my iphone 4 tonight.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-08-2014 , 02:45 PM
Link to app on App Store so we can download and check it out?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-08-2014 , 02:52 PM
Quote:
Originally Posted by Barrin6
Link to app on App Store so we can download and check it out?
Will probably submit to app store in ~10 days. We haven't launched yet, was just happy to see it run well on my actual device.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-09-2014 , 02:00 PM
So something pretty cool happened to me yesterday. Out of the blue I got an email from my professor/advisor with contact info for a manager at IBM, with instructions to contact him ASAP and let him know that my professor had referred me to him.

I don't know for sure what happened, but my guess is that the IBM guy told my professor to refer someone to him and he chose me? I don't want to get my hopes up like last time when I got screwed over on the other internship because of a hiring freeze, but this seems promising.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-09-2014 , 02:08 PM
I have an idea I want to play around with which involves a forum like 2+2 but with some modifications to accounts/threads. Things like extra metadata for an account or maybe a custom poll type or whatever.

Is there anything out there that would make that easy? Took a quick look at vbulletin but it seems to be completely missing the idea of plugins/hooks which I think you'd need to make this work.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-09-2014 , 02:38 PM
Wasn't there a thread on forum software and the consensus "let someone else do it?"
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-09-2014 , 02:46 PM
Hah, didn't even see that thread.

This looks like what I'd want: https://nodebb.org/

"Let someone else do it" is my motto for anything that isn't your core business. But I'm thinking of some ideas where it would be core.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-09-2014 , 03:22 PM
jj,

also checkout http://www.discourse.org/
** 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