I have the following class
class Identity < OmniAuth:: Identity:: Models:: ActiveRecord
attr_accessible :email, :name, :password_digest, :password, :password_confirmation
end
Iwonder if the above properties are the only ones allowed for a class that derive from a OmniAuth. I wish I could add some more like FirstName, LastName, age,…
I'm trying to implement unit testing for my code and I'm having a hard time doing it.
Ideally I would like to test some classes not only for good functionality but also for proper memory allocation/deallocation. Iwonder if this check can be done using a unit testing framework. I am using Visual Assert btw. I would love to see some sample…
I am trying to document the API for my Rails application and I can't help but wonder if there is a better way to generate an XML file based on my routes.rb file. I'm envisioning something similar to the output of rake routes but in a more friendly, XML type format. Corey has some interesting ideas about using reflection/introspection on…
Hi,
I know this question is a bit open but I have been looking at Scala/Lift as an alternative to Java/Spring and I am wonder what are the real advantages that Scala/Lift has over it. From my perspective and experience, Java Annotations and Spring really minimizes the amount of coding that you have to do for an application. Does…
I read that when hosting a queue endpoint all these names need to match:
Hosted in IIS at: http://localhost/MyService.svc
service endpoint address: http://localhost/private/MyService.svc
queue: .\private$\MyService.svc
So Iwonder, how can you host a service with multiple endpoints to different queues? For example a service…
I've been doing a lot of calculating stuff nowadays.Usually I prefer to do this job in PHP rather than Mysql though I know PHP is not good at this cuz I thought mysql may be worse.But I found some performance problem :some pages were loaded so slowly that 30 seconds' timelimit is not enough for them!So Iwonder which is the…
Weird question: I have an iPod Touch and plan to get an iPhone once the next generation comes out.
Now, my main machine is a Windows PC which is where the iPod is connected to. As I need a Mac to do development, Iwonder if it is possible to connect the iPod to the Mac for Xcode/Development but keep it synced to Windows for…
I'm trying to find a good metaphor to explain memory allocation, initialization and freeing in c to a non technical audience. I've heard pass-by-reference/value talked about quite well with postal service usage, but not so much for allocation/deallocation.
So for I've thought about using the idea of renting a space might…
Hi everyone,
I am in the middle of building a cache layer for the Redis DB to my application and I have come to the point where's it's about to take care of arrays.
Iwonder if there's any good (high performance!) way of controlling an string to be serialized or not with PHP?
Thanks a lot!
i wonder if the multi threading in python/ruby is equivalent to the one in java?
by that i mean, is it as efficient?
cause if you want to create a chat application that use comet technology i know that you have to use multi threading.
does this mean that i can use python or ruby for that or is it better with java?
…
I have a classifieds website, and users may post classifieds, add images, remove classifieds etc etc...
I have no idea what to set the permissions to on folders.
For instance, a php script which I have uploads a file to a directory.
What would you have set the directory permissions to?
Nobody need access to the…
I have installed JRE on my Ubuntu server.
However, not JDK.
When I execute solr to start, everything seems fine. But I cant access the solr/admin page.
Wonder if this is possible without the JDK?
Or do I have to have JDK installed?
Thanks
I've noticed that Firefox throws me a warning on the following jQuery code:
$("li.example div.code:gt(4)").hide();
CSS Error: Unknown pseudo-class or pseudo-element 'gt'.
According to jQuery, it all should be correct. And it works, but Iwonder how to fix this error for cleanness sake.
i wonder if symfony 2.0 is stable enough to use?
cause i never used symfony before.
it seems that symfony 2 is much more better than the previous version and i dont want to relearn/recode everything some months from now.
when do you think symfony 2.0 will be released?
will it be a wise choice to use 2.0 now?
You see a fair bit (in the Geek community anyway) about OpenID. It seems like a good idea. I'm developing a website that will be targeted at a somewhat less geeky audience (but not quite Mom and Pops either) so I have to wonder if OpenID is going to be "too hard" for some audiences.
What do you think? That…
Hi,
I tried this question in another forums, like OS X hints, so I try it here now. I just wonder if there is somewhere available an external keyboard for the iphone, so I can program on the road. And second question, if you know good IDE's on the iphone for programming and compiling on C++
Thanks
I've got very limited knowledge about Erlang, but as far as I understand, it can spawn "processes" with a very low cost.
So Iwonder, what are those "processes" behind the scenes?
Are they Fibers? Threads? Continuations?
I am new to photo apps, recently I am interested in making a sticker app like those can be seen in the appstore, I know I would need to use uiimagepickercontroller, uiscrollview and uigesturerecognizer.
However Iwonder which code method should I use for the app to load multiple stickers? Should it be called…
Hi all,
Iwonder if we can capture that which button is clicked if there are more than one button.
On this example, can we reach //do something1 and //do something2 parts with joinPoints?
public class Test {
public Test() {
JButton j1 = new JButton("button1");
…
i wonder how you can make an advanced Android User interface where you can add for example a drag drop and more graphics options? is that by using OpenGl ?!
this is example of UI in iPhone Apps.
example 1
example 2
Thanks
Hi there,
Iwonder if it is possible to build iphone-wireless' stumbler app with Apple XCode or it is necessary to use alternative arm-apple-darwin environment to build it.
thanks
We are in web era standalone applications are almost gone everyone wants their internet application to run inside browser, programming languages like Ruby, Python and scala are becoming more and more mainstream.
Sometimes Iwonder what these programming language offer which make them…
I have been developing websites in n-tier structure and so far my requirements are fulfilled. But as powerful frameworks like Zend Framework, symphony are getting popular, Iwonder how to know if it is time to shift to a framework?
I am in a kind of dilemma? Can anyone suggest me the…