i'm playing around with c# reflection api. i can easily load type info of classes, methods etc. in an assembly.
now i wonder how can i load and read the code inside a method?
Supposing that I have millions of user profiles, with hundreds of fields (name, gender, preferred pet and so on...).
With database would You choose?
Suppose that You have a Facebook like load.
Speed is a must.
Open Source preferred.
I've read a lot about Cassandra, HBase, Mongo, Mysql... I just can't decide.....
I am trying to read the value of my slider from a DIV element's title (which may be the issue). That is pushed into the following:
$(document).ready(function() {
$(".myslider5").slider({
value: parseInt($(this).attr("title")),
slide: function(event, ui) {
// more actions
}
});
I think I get NaN error. Any clues?
Im trying to make my joomla powered site w3c compliant. I am stuck with ampersand encoding, I want to encode the '&' to '& amp;'(no space) under the menu, as required. However the menu link can not be directly edited (read-only), I was wondering how I can change this to be encoded?
Thanks
Hi,
Can somebody please tell me whether there is any difference between SPML and WSDL?
Are they related to each other?
I have read things saying that WSDL is generic, used for any service, while SPML is only for provisioning services. I have tried googling for things but I am still not getting what is the exact difference between WSDL and SPML.
Thanks..
So I have an engine which defines some models and controllers. I want to be able to extend functionality of some models/controllers in my application (eg. adding methods) without loosing the original model/controller functionality from engine. Everywhere I read that you simply need to define controller with the same name in your application and Rails will automatically merge them, however it doesn't work for me and controller in engine is simply ignored (I don't think it's even loaded).
Hi,
I'm new to Java Annotation. I know how to create custom annotation but I don't know how to process that Annotation to generate the dynamic code just like ejb 3.0 and hibernate does.
I read some articles based on APT but no one gives the details about how to process the Annotation.
Are there any tutorials with sample code for processing custom Annotations?
Thanks
When I try to use java.lang.System.console(), I get a null pointer. I can still write to out and read from in, but this only works when I run straight from my IDE. When I run the .jar file directly, nothing happens. How can I create a console like I'd see using std::cout for use in Java?
I set Isolated=true to some COM library that I need to use registration free. Visual studio now created Native.* manifest files for each of my assemblies:
Why "Native"? Can I change this? Can someone point me to info I can read? (googling native / assembly / manifest is yield a lot of non-related info )
Is there a way I can embed these manifest files into the assembly DLL?
Thanks!
I have an int(11) column which is used to store money. I read some of the answers on SO and it seems I just need to update it to be a decimal (19,4) data type.
Are there any gotchas I should know about before I actually do the converting? My application is in PHP/Zend and I'm not using an ORM so I doubt I would need to update any sort of class to consistently identify the data type.
i'm developing an application for content filtering. i'll use it as web service but my problem is that i hadn't developed any extension for firefox or ie before. i read some about firefox extensions and now i know a little about it.
firstly can i use web service in a firefox/ie extension? if yes, can you give me a link of tutorial or sth like that?
all suggestions are welcome.
thx..
Hello. I have read some info about DSL. But what is it good for? What are situations, where using of DSL is better than another approaches?
And how widespread is using of DSL?
This all seems like it should be working to me but my appended "read more" link displays as plain text instead of as a link... Any insight or help on fixing this would be awesome! My pipe can be found at: http://pipes.yahoo.com/pipes/pipe.info?_id=1a22724d01568b8019be3125c7fb3075
I do have a whole bunch of files in a directory and from every file I want to remove the first line (including carriage return). I can read the whole file into an array of strings and write all but the first element to a new file, but that looks a bit cumbersome to me are there better ways? Oh the prefered language is Perl.
I have a Java application complied to a collection of jars that I want to make installable on Ubuntu and SuSE. I Want the installer to be able to check for the JRE, register a file association and be able to load a website on un-install.
I understand Ubuntu and SuSE are based on different architectures, so is there a consistent way to do this?
Does anyone have an advice on utilities to use or guides to read to help me achieve what I'm trying to do.
I downloaded xml.vim (xmledit : A filetype plugin to help edit XML, HTML, and SGML documents ). I placed it in my ftplugins folder. I read the documentation and it says: enter :filetype plugin on but this doesn't work, I'm still unable to make the filetype plugin work. Any suggestions?
Read some texts about locking in PHP.
They all, mainly, direct to http://php.net/manual/en/function.flock.php .
This page talks about opening a file on the hard-disk!!
Is it really so? I mean, this makes locking really expensive - it means each time I want to lock I'll have to access the hard-disk )=
Can anymore comfort me with a delightful news?
Hi,
I want write these SQL Query:
CREATE VIEW `uniaverage` AS select `averagegrade`.`mjr`,`averagegrade`.`lev` , avg(`averagegrade`.`average`) AS `uniAVG` from `averagegrade` group by `averagegrade`.`lev`, `averagegrade`.`mjr`;
But MySQL Query Browser give this error:
Operand Should Contain 1 column(s)
I somewhere read can use group by on more than 1 column!!!
How can I solve this error? or how can I change the Query to get the same result?
Hi, I wonder if is the Android multi-touch support reliable? I've read it suffers from some problems.
I also wonder, how can I define custom multi-touch gestures? Like: 3 fingers rotate or 3 fingers stay static and fourth is moving.
I've come across some resources (Gestures or MotionEvent on developer.android.com) but nothing states it clearly.
Regards,
Zdenek
I have a lot of Perl scripts that looks something like the following. What it does is that it will automatically open any file given as a command line argument and in this case print the content of that file. If no file is given it will instead read from standard input.
while ( <> ) {
print $_;
}
Is there a way to do something similar in Python without having to explicitly open each file?
From what I read on the internets, WCF Data Services seem to be bound to data access via Entity Framework on the server.
Is there a way to have NHibernate access mapped in the same way?
hi
i read alot about GlassFish application server that support whole JEE6 Technologies.but tomcat which ?
i know tomcat is Servlet/JSP container.but i see articles in web about " JSF and tomcat " , "Hibernate
and tomcat" and many more...
can tomcat play with these technologies : EJB , JSF , JPA , Hibernate , Spring [Framework] , .... ?
thanks
Is it possible to determine the country of a mobile phone browser?
I've read elsewhere that mobile phone IP addresses frequently change and can be reported as originating from different countries by some IP location databases. 1
I read this article regarding creating popup notes with javascript and css
The problem is that this one works only in IE since window.event is undefined in Firefox.
// assigns X,Y mouse coordinates to note element
note.style.left=event.clientX;
note.style.top=event.clientY;
So could you point me a fully working example? Or at least, how could i modify the javascript code to make it work in both internet browsers?
I have big file with utf16le (BOM) encoding.
Is it possible to convert it to usual UTF8 by python?
Something like
file_old = open('old.txt', mode='r', encoding='utf_16_le')
file_new = open('new.txt', mode='w', encoding='utf-8')
text = file_old.read()
file_new.write(text.encode('utf-8'))
http://docs.python.org/release/2.3/lib/node126.html (-- utf_16_le UTF-16LE)
Not working. Can't understand "TypeError: must be str, not bytes" error.
python 3