tmcdonald | 1 year ago | on: Qwen2.5-1M: Deploy your own Qwen with context length up to 1M tokens
tmcdonald's comments
tmcdonald | 1 year ago | on: Ruby Video – On a mission to index all Ruby conferences
https://testdouble.com/insights/the-selfish-programmer
Was lucky to be at the conference when you gave it and it's stuck in my head since. When I'm struggling for motivation or my side projects seem to be just too big I give it another watch.
tmcdonald | 10 years ago | on: Bootstrap 4 alpha
tmcdonald | 12 years ago | on: Valve releasing Dota2 for Linux
[1]: http://steamgraph.net/index.php?action=graph&jstime=1&appid=...
tmcdonald | 13 years ago | on: Oxford Temporarily Blocks Google Docs
Couldn't agree more about education never actually fixing the problem.
tmcdonald | 13 years ago | on: Tech press misses Google/Amazon name grab
> The .search gTLD provides Google with the opportunity to differentiate its Google Search products and services by linking them to a unique gTLD. Google will be able to quickly distinguish new products and services it develops and⁄or acquires by offering them in the proposed gTLD.
> The mission of the .SEARCH registry is to provide a unique and dedicated platform for Amazon while simultaneously protecting the integrity of its brand and reputation.
> A .SEARCH registry will:
> • Provide Amazon with additional controls over its technical architecture, offering a stable and secure foundation for online communication and interaction.
> • Provide Amazon a further platform for innovation.
> • Enable Amazon to protect its intellectual property rights.
Basically, only for their own commercial gains. The other two applicants want .search to be a place for consolidation of search related domains, which seems like an absolute pipe dream.
tmcdonald | 14 years ago | on: Confirmed: SpaceX Dragon Ferried ‘Scotty’s’ Remains Into Space
tmcdonald | 14 years ago | on: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
The main exception to this was for 2.0, which had a separate branch for a while so that people could still use bootstrap-sass while updating their application to the new syntax. When 2.0 was merged into master, since it had been under such heavy development I reconverted the entire codebase.
There are a few quirks with the conversion from Less to SCSS, but these tend to be few and far between, and are usually down to me missing a variable somewhere. The main one is the use of namespaced mixins[1]. SCSS doesn't support this, so I have to prefix/suffix the namespace to each mixin within the namespace. Aside from that, and method names/variable notation, there (appears to be, can't speak authoritatively since I haven't really used Less) little difference between the two.
tmcdonald | 14 years ago | on: The Ruby on Rails Tutorial, now with Twitter's Bootstrap
tmcdonald | 14 years ago | on: GitHub and Rails: You have let us all down.
tmcdonald | 14 years ago | on: GitHub and Rails: You have let us all down.
- Every GitHub Repository could be access by anyone as if they had full administrator privileges.
- This means that anyone could commit to master.
- This means that anyone could reopen and close issues in issue tracker.
- Even the *entire* history of a project could be wiped out. Gone forever.
As I understand it from his explanation[1] he added his public key to the Rails user, which has permissions to push/pull to the repository. This doesn't mean he had web administrative access, just Git access, since you cannot log in to the web service using your private key. I hope that's the case, at least.tmcdonald | 14 years ago | on: Hacked: commit to rails master on GitHub
By default, if you have an new, create or update_attributes (and more, I imagine) call which changes various attributes based on a hash from parameters (eg params[:post], where you have params[:post][:title], params[:post][:body] etc) Rails allows mass assignment of every attribute on that model, since attr_accessible is not called.
There is a method you can call in the model called attr_accessible that restricts the columns that can be updated through mass assignment, while still allowing for manual assignment of other columns.
An example of this might be a post's user_id, which you would usually want to set to the current user while not allowing mass assignment. Without specifying attr_accessible it would mean that if a malicious user added params[:post][:user_id] to their POST/PUT, the Rails application would update the user_id as per the params value. If attr_accessible had been called, defining the columns that the developer wanted to be mass assigned (say post and title), it would mean that the user_id would not be mass assigned and Rails would log that this was the case.
attr_accessible therefore acts as a whitelist for columns that can be mass assigned. It just so happens that the Rails default is to have no whitelist and allow all columns to be mass assigned, despite the fact that the sensible option is to always have a call to attr_accessible in your models.
tmcdonald | 14 years ago | on: TSA: Fail
The Department for Transport has full confidence in the independent assessment
undertaken by the Health Protection Agency. We are confident with their assessment
that the dose from being scanned is far below the allowed levels in the UK and
does not constitute any unacceptable risks to healthtmcdonald | 14 years ago | on: Advanced caching in Rails
tmcdonald | 14 years ago | on: Twitter's Bootstrap 2 ready for testing and feedback
tmcdonald | 14 years ago | on: Magdalen Oxford gets rejection letter from student
It's also worth pointing out that this was sent on December 10th, before any replies from the university, meaning that she didn't actually have an offer to reject, it was technically a withdrawal of her application, and probably only preempted a rejection letter from the university.
Personally, while I didn't enjoy the interview experience as a whole (much of the conversation was awkward, and having to wait 12 hours while you 'might' get called for another interview is incredibly stressful) I really enjoyed the interviews I had - the opportunity to discuss aspects of CS/Maths with experts in the field, particularly talking about areas that interest me is something I've not really had chance to experience through the UK education system - although I can't say I had any of my interviews in 'grand formal settings', just the tutors offices.
For those interested in the full text of the 'letter', it can be found here [1], as kindly posted to the 2012 Oxford Applicants group on FB by one of her friends who did get an offer.
[1]: http://img248.imageshack.us/img248/5766/ellylawoxfordemailco...
tmcdonald | 14 years ago | on: Twitter Bootstrap 2.0 pre-release demo
bootstrap.io isn't actually running the most up-to-date documentation: it's missing the new style dropdowns, as well as the JS builder and a few plugins (typeahead, carousel etc).
tmcdonald | 14 years ago | on: All Node.js servers are vulnerable to DoS
http://technet.microsoft.com/en-us/security/bulletin/ms11-10...
tmcdonald | 14 years ago | on: HTC sales fall 30% in a month
To add to that, I have found the camera to be exceptionally poor, and the hardware keyboard will occasionally trigger shortcuts rather than inputting the text.
tmcdonald | 14 years ago | on: I too know the websites you visited