« first day (490 days earlier)      last day (4687 days later) » 

02:16
Hey I need some help, can you guys check out my question?
0
Q: Moveable/draggable <div> using javascript

Proud_to_be_NoobThis is my updated and modified script, it works completely, except I would like to universalize it... observe the ** how can I make it so that I don't have to do function(e){ALAMI.Draggable.elemen = e.target || e.srcElement; elementDraggable(e); everytime I need to use the dragable function for ...

Nevermind, I solved it! :-)
 
5 hours later…
07:23
hey
ho#
got a great 11 hour flight coming up... >_>
07:39
oh fun,where to?
08:17
Hello,
can someone please take a look :D stackoverflow.com/questions/9338281/…
 
4 hours later…
12:38
0
Q: What does class mean in a script?

dublintechJust a simple question. I am looking at some javascript code here: <script class="brush: java" type="syntaxhighlighter"> @XmlAccessorType(XmlAccessType.FIELD) public class... </script> What do the class, type attributes mean exactly in this script element? I get when type is set ...

12:50
0
Q: Referring to a javascript object

dublintechLooking at some sample javascript code at http://alexgorbatchev.com/SyntaxHighlighter/manual/api/autoloader.html I see: <script src="shCore.js" type="text/javascript"></script> <script src="shAutoloader.js" type="text/javascript"></script> <script type="text/javascrip...

 
1 hour later…
14:16
@IvoWetzel but SF is fun
14:27
@Raynos noob question
is it better to open 1 connection per user in with the database
or just 1 connection for the whole server and multiplex
[server is node.js , and DB is Mongo with the MongoDB native driver ]
Depends
I was thinking the same
It depends on how mongodb works
over there the person used single connection
for the server
but coming from the vulgur php idea of database called mysql i am still worried if the single connection will bottleneck :/
He gets a new collection for each request
14:44
"he" ?
@Raynos which he are you referring ? the mongodb native programmer or the howtonode example ?
he as in howtonode
15:08
@Abhishek one connection doesn't scale :P
open the db once
do io and close it ?
no
I mean
one connection per query doesnt scale
I immediatly hit "too many open connections" error
oh
so basically just make 20 connections at once from server - db server
and multiplex em ?
[replace 20 with any reasonable number if too high ]
1 more question @Raynos ... flash vs JavaScript [written nicely with intention to make security ] .. which will be more secure .
Dont
dont make your own pool
mongodb native has a pool build into it
define: secure
you cannot trust anything that comes from client
there is no difference between js and flash in that regard
if you are willing to entrust the security to either one, you should find a different hobby , because programming is not for you ... try maybe gardening , or beekeeping .. or anything else with a more limited impact
15:32
security is easy
just encrypt everything :D
15:46
RT @miketaylr: Have a question on browser developer tools past, present, or future? Ask Opera, Chrome, Firefox, or IE here: http://t.co/ ...
@Raynos company i work for has an api, and between it and mongodb they have a redis instance and another minimal node app that ends requests if mongo is too slow
@Raynos you arent saying mongodb can do this, right?
My problem is deciding when to open new mongo db connections
since I dont know whats optimised
I'm saying mongo native driver has a connection pool build into it
well in the case of this api, each redis worker has an instance/connection
and those are the only connections to mongodb in the whole app
everything goes through redis first
RT @IE: #MSDN IE blog: Sub-pixel Rendering and the CSS Object Model http://bit.ly/zhZFMS
RT @mfinkle: Firefox on Android and ARMv6: @TedMielczarek has details http://blog.mozilla.com/ted/2012/02/17/firefox-mobile-on-armv6-processors-2/
16:10
RT @html5gamedevs: Mozilla building Metro version of Firefox for Windows 8 http://bit.ly/zjSnPL
I memoized the damn thing to use the same db connection for each collection you have
so in theory it should use a single connection pool for each collection
@Raynos thanks :-)
This may still run into issues if you have multiple collections
i am going to handle it slightly in a different way
as the driver supports in built pools
so i will combine your code with database's pool and we should have a stable otput
    getByPhoneNumber: function getByPhoneNumber(phoneNumber, callback) {
        collection(error.passTo(callback, findUser));

        function findUser(err, collection) {
            collection.findOne({ phoneNumber: phoneNumber}, callback);
        }
    },
Oh I thought pools were enabled by default
16:18
MongoDB Native makes only 1 connection
you have to explicitly tell it to use pools
Ah I see
share that code with me once you've written it :D
okay :-)
i shall go and code now
 
2 hours later…
17:59
Hello, my jquery is not working..all of a sudden, so i put it the src above the <html> tag but it still does not work.
Any ideas anyone?

« first day (490 days earlier)      last day (4687 days later) »