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 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, gender, and so on. Do I need to create an other model for those properties or can I just add them to the Identity model?
Thanks for helping.
We all know that Android runs Dalvik VM programs.
Normally developers write programs in Java and they compile it to Dalvik bytecode.
Iwonder if it would be possible to create a compiler that can take C# code and compile it into Dalvik bitecode.
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.
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 Scala/Lift improve upon that?
Hi,
I need to execute some Sql server stored procs in a thread safe manner. At the moment I'm using software locks (C# locks) to achieve this but wonder what kind of features provided by the Sql server itself to achieve thread safety. It seems to be there are some table and row locking features built in to Sql server.
Also from a performance perspective what is best approach? Software locks? Or Sql Server built in locks?
Thanks,
Shamika
If I open two Java projects in Eclipse which depend on each other, I have to add dependencies between these two projects in the Build Path (Properties - Java build path). This works fine for one way, but why doesn't allow Eclipse to set the dependencies vice versa? The following error message occurs:
A cycle was detected in the build path
of project 'A'
and
A cycle was detected in the build path
of project 'B'
I know what's causing this error but iwonder why exactly this isn't allowed. 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 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?
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 Syncing?
Not sure if this belongs here or on SuperUser though.
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 code , if possible !
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?
thanks
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 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 programmatically? Is that I would need to use the if-statement, say if one sticker is loaded, the app will auto generate a new sticker on top of it?
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
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");
j1.addActionListener(this);
JButton j2 = new JButton("button2");
j2.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
//if the button1 clicked
//do something1
//if the button2 clicked
//do something2
}
}
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 the routes file here but it's not quite what I need.
Please tell me this is a solved problem and I'm not the first one to think of this. :)
I want to make a insert into 2 tables
visits:
visit_id int | card_id int
registration:
registration_id int | type enum('in','out') | timestamp int | visit_id int
i want something like:
INSERT INTO `visits` as v ,`registration` as v
(v.`visit_id`,v.`card_id`,r.`registration_id`, r.`type`, r.`timestamp`, r.`visit_id`)
VALUES (NULL, 12131141,NULL, UNIX_TIMESTAMP(), v.`visit_id`);
Iwonder if its possible
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
Since it came out a few days ago, I am sure at least some members of SO had a chance to try it out.
For those that did, Iwonder if you could share the following:
Whether you liked/disliked it
What you liked/disliked
Whether it's worth upgrading
To ensure fairness (and to make the mods happy) I will make this CW.
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
I need to determine how many channels a sound track has in a QuickTime movie. I can get to the track, then I am stuck. Iwonder if the answer would be in a QTFormatDescription, but I can't figure out how to get one for the track. I am using Objective-C on Mac OS 10.6.
I wonder if scala.dbc supports stored procedures?
The mysql jdbc backend I'm using supports it, bonus points for a code illustration to show how it works.