If you build a projection like this:
t = Arel::Table.new(:projects)
ps = t.project(t[:id].as(:snark))
How do you get the result column that's named :snark?
I am trying to optimise the boot-up time of linux on an embedded device (not PC)
Currently to profile the boot-up sequence,
I have enabled the timing info on printk logs.
Is this the most optimum way?
If not, how do i profile the boot-up sequence (with timing) with minimum overhead?
PS:
I have a terminal (of the device) over a serial-connection…
Hi.
Here what I have got:
Qt SDK version 4.6.2
Windows XP
Question: how can I simply crypt and encrypt simple QString value? I need this to be able to save some crypted string into the INI file, and after reopening application encrypt string to normal password string value.
PS: I'm looking simple and nice solution.
Thanks for help!
Sometimes my whole Django based site goes into 504 gateway timeout errors so none page can be displayed.
Is it possible to write a shell program and cronjob it run every 5 minutes to detect such errors and restart FastCGI process if needed?
I'm currently using command below to restart FastCGI in case it's crashed but it doesn't work for above…
I'm now learning Ruby because I saw it's a very powerfull language, but now I want to know what mobile ports of Ruby we have and for what devices.
PS: I have a HTC S711, HP iPAQ Hx2, Nokia E61, Nokia N95, Palm T|X, Palm Z22, HP Jornada 720..., it's better if I can use it on these platforms, but I'm open to buy other devices, as I'm a mobile…
I use Aloha theme in NetBeans 6.8, everything looks cool except these blue tags in HAML files, which are unreadable. How to find a place where this blue color could be changed?
P.S. I use that HAML plugin which seems to be unsupported and lacks features
Screenshot: http://img.leprosorium.com/846904 (sorry, new users can't embed images)
I remember, I have a GoF book back in college about design patterns which helped me a lot with my C and C++ programming, since my jump ship to Rails I was trying to use those design patterns I learned previously, Rails is a relatively new paradigm to me, plurals, verbs, REST, DRY.. Can you give me a recommended book for Rails that I can…
I am so fed up with this google products I am Ready to give someone my UN and PS and pay them to do it. I keep getting a error message saying Text, I followed the instructions , they said to do it in excel and save as a text please
Help Please microcomputerctr.com
I'm new to asp.net and now following through the http://nerddinnerbook.s3.amazonaws.com/Part1.htm howto.
All is fine except of when code is falling with exception i see
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
but at project properties 3.5 is selected.
what is wrong and…
I'm looking for a netbook to do some dotnet development. Is there a recommended brand/configuration. I'm looking for reasonably good performance.
Here are some of my requirements:
Win 7 ultimate
MS Office
VS 2008 and VS 2010 when it's out
CodeRush
good size keyboard without having to do a Fn+Key for Insert, Home, End and Del keys…
Hi everyone,
Im trying to plot the roots of a polynomial, and i just cant get it.
First i create my polynomial
p5 = [1 0 0 0 0 -1] %x^5 - 1
r5 = roots(p5)
stem (p5)
Im using the stem function, but I would like to remove the stems, and just get the circle around the roots.
Is this possible, is stem the right command?
Thanks…
I'm using Visual Studios' built-in ASP.NET Development Server (VWD) to test my web site during development.
I would like this ASP.NET web site to use extensionless URLs (pages don't require the aspx extension). Ordinarily I would configure a custom 404 in IIS that directs to an ASPX page. How would I do this with VWD?
P.S.…
I have project in MFC that works fine in x32.
I used the configuration manager to change the project to x64, then I tried to rebuild the project.
the result was "unresolved external symbol" for many MFC function.
I guess that I miss something here in the Tools/Option toolbar with x64 platform but I don't know what.
P.S.
…
I have a fanpage which has a tab/facebook application, that renders some info from my server
in this application(tab) I want to have button that will open up a dialog box where I would like to refer to another application. Is it possible? and any suggestion concerning how to implement this would be appreciated
PS. the…
Where can I set it? I need files to be encoded in UTF-8 by default... there is nothing in Tools - Options or any other menu as far as I know :(
P.S. I don't need to set default encoding for Project or so, I need it to be default for any files I create. Thanks for your help :)
Does anyone know where can i find an explanation and implementation of the diff algorithm. First of all i have to recognize that i'm not sure if this is the correct name of the algorithm. For example, how Stackoverflow marks the differences between two edits of the same question?
ps: I know C and PHP programming…
I've been managing all of my todo-lists as
~/git-repo/todo
which is kept under git. THen I add/delete files from the todo list, and have git autocommit all changes. However, I feel there should be more powerful tools.
Besides "cil" and git-issues [neither of which I've tried], what tools are available?
PS I…
I was wondering if somebody could highlight the advantages of programming in F# in comparison to my regular object-oriented programming language such as C#.
PS: Sorry if I sound like a person who just got out of the cave.
Hello everyone,
I have used a JDialog to display a form ( I could have used JFrame, but I have my reasons). There is an event in my application that will cause a function to generate and display the said JDialog. Now, I want to know if the user has closed that JDialog. How do I find this out?
P.S. My…
I'm writing an ASP.Net webform with some DropDownList controls on it. Then user changes selected item in one of dropdowns, ASP.Net doesn't seem to handle SelectedIndexChanged event until form is submitted with a 'Submit' button click.
How do I make my dropdowns handle SelectedIndexChanged instantly?
…
Hey I am having some issues while using Nggalley plugin for wordpress
the plugin makes use of a JW player and JW player needs an XML
- so it requests link like this http://nextgen-gallery.com/index.php?callback=imagerotator&gid=1&149
The lay &xxx really creaps me out couse I am using it…
If I write code in the JavaScript console of Chrome, I can retrieve the whole HTML source code by entering:
var a = document.body.InnerHTML; alert(a);
For fb_dtsg on Facebook, I can easily extract it by writing:
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
Now, I am…
Hi everyone,
My problems is in a Struts2 action, where
I have a class :
public class MyAction<T> extends ActionSupport
with a private member like this :
private T myData;
And I would like to declare this aciton in the struts.xml file,
how can i manage to do so ?
Thanks for the…
Hello, I'm working on a web application that uses ajax to communicate to the server.
My specific situation is the following:
I have a list of users lined out in the html page. On each of these users i can do the following: change their 'status' or 'remove' them from the account.
What's a good…
Hello
Is possible change background-color on same td in fullcalendar?
for example: I like have blue beckground at Mo 10:00-14:00 and green beckground at Tu 9:30-11:30.
I visit:…