« first day (499 days earlier)      last day (4458 days later) » 

8:00 PM
@GeorgeEdison tis true. They roll out things incrementally.
 
So that might be the reason you're only seeing it now.
 
grumbles.. They should tell you shits gonna change before they change it
I feel violated when sites do that.
 
I love Wolfram-Alpha ads:
 
BTW, I'm looking to offer bounties soon from now :). So point me to good answers or good questions in need of a good answer.
 
Okay.
I think Wolfram-Alpha messed up something...
 
8:10 PM
heh
 
That's not a kingdom IIRC.
 
@GeorgeEdison you might know... in the chat system here, how can I programatically tie into a new message being displayed?
 
Well, I do it the hard way...
...override the send() method of XMLHttpRequest.
 
Anybody knws curl here?
 
$('#chat').live('change', function() { }); ??
 
8:15 PM
@dragosrsupercool Hello. What is your question?
 
@rlemon I'm sure there's an easier way, but I don't know what it is :P
 
@OctavianDamiean: I am trying to write an architecture in which one thread shall send url to the remote server to request data while the other thread would fetch data when avaibale.. idk how to do this using curl
 
@dragosrsupercool What programming language are you using?
 
jrg
@JorgeCastro after an hour wrestling with it, I give up on that importer.
 
@GeorgeEdison: libcurl C/Python
 
8:17 PM
Why do you need to use curl for that?
 
jrg
If you really want, I'll try and do something else, but right now, i'm out of ideas. :\
 
@OctavianDamiean: curl is stable i guess.. what do you suggest/
 
For Python there is urllib2.
 
@OctavianDamiean: urllib2 is far behind curl in lot many ways
 
@dragosrsupercool If you want to use libcurl in Python, unless there is a wrapper somewhere, you'll need to use ctypes.
 
8:20 PM
@GeorgeEdison: I just want to use curl
 
@dragosrsupercool Ohh.... you mean invoke the curl command?
 
@GeorgeEdison: libcurl (curl.h in C)
or pycurl in Python
 
PycURL... so there is a Python wrapper for cURL.
 
@GeorgeEdison: yes
 
8:22 PM
What is it that you need help with?
 
@GeorgeEdison: what exactly happens during curl/multicurl perform ?
 
Installing it?
 
0
Q: How do I enable Unity when using Ubuntu 12.04 Alpha 2?

oshirowanenAt the moment, I am using Ubuntu 10.04 with visual effects on, i.e. with the shadows behind the windows, the windows wobble when moving etc. I downloaded Ubuntu 12.04 Alpha 2 and booted up using the livecd and typed echo $DESKTOP_SESSION in a terminal window. It returned Ubuntu-2d. How do I en...

one more folks!
 
@OctavianDamiean:??
 
8:23 PM
@dragosrsupercool That question is a bit vague. What exactly do you want to know?
 
hey @GeorgeEdison
did you ever find an answer to this?
4
Q: How to get my Flash drive to cache disk reads to my primary partition?

George EdisonBasically I'm looking for a way to mimic Windows' ReadyBoost. I asked this question on Unix.SE to get an idea of whether this was even possible and it seems like it is. Appparently there is a cachefs filesystem I can use to do this. My question is then: how can I configure Ubuntu to do this? F...

 
Lemme check...
 
@OctavianDamiean: I wish to create two threads, one which sends request for data to remote server and other which receives data from remote server. How to do this using Pycurl? The problem is we use multicurl perform thing which does parallel things internally while if we use easy handle the problem you cannot do anything before perform function return
*returs
*returns
 
@dragosrsupercool I don't think you can have two threads working on the same socket.
@JorgeCastro Not really... I got an answer that was far less than helpful.
 
yeah, that answer is totally incorrect
 
8:27 PM
Just telling me to install a package and figure out the rest... which I couldn't.
 
that's for network filesystems
 
@GeorgeEdison: So does it mean once a request is send, we have to keep the thread in wait mode than making it useful for something else?
@OctavianDamiean: what do you say?
 
Once your thread sends a request, it needs to wait for the reply.
For Python, I'd actually recommend looking into Twisted.
...it's an excellent framework for network communications - used by lots of Python apps, including Bazaar.
 
@GeorgeEdison: What about C?
 
Is C++ an option?
 
8:30 PM
@GeorgeEdison: Does C++ have any such option?
 
For C++, I would recommend the super-awesome Qt framework.
It's cross-platform and it makes network applications really easy to write.
 
Bounty offered: How is disk space shared from nodes when using Ubuntu Cloud? http://askubuntu.com/questions/102574/how-is-disk-space-shared-from-nodes-when-using-ubuntu-cloud #cloud
 
@GeorgeEdison OHAI
i see you checked the bug :P
 
@GeorgeEdison: why are we talking about frameworks than curl?
 
@ThomasWard Yup.
 
8:32 PM
@GeorgeEdison if the 2010 libraries are loaded into a system, it works. MSVCRx64 installs both the 32bit and 64bit libraries for cross-compatibility
 
@dragosrsupercool Do you really need to use cURL or do you just need similar functionality?
 
and the only reason i know that is because I actually code in Visual Studio :P
 
@ThomasWard Ah, excellent.
 
@GeorgeEdison since XP only has 32bit support for the MSVCRuntime, the x86 version is what I linked
Vista and later can support the 64bit though
 
@ThomasWard I used to use it and ended up quitting because of the issues with the VC++ runtime.
 
8:33 PM
mmm
i have to use it :/
mainly because of Sharepoint development
i just installed every language because i could, though xD
MSDN has its uses :P
points to his MSDN license
also, i'm still subscribed to full bug updates for StackApplet xD
 
I used VC++ to build 64-bit editions of some other applications on my 32-bit machine.
 
@GeorgeEdison: Anything would go if its better than cURL!! But then you must elaborate why is it better?
 
I still remember all of the configuration mess I had to go through to get that to work.
 
@GeorgeEdison and this is why i use 64bit OSes
 
@dragosrsupercool Qt offers an event-based setup for network communications.
...so you don't really even need multiple threads at all.
A single thread can be used for the interface / GUI and network requests.
...without one or the other getting blocked.
 
8:37 PM
@GeorgeEdison: I am writing a crawler.. Are you suggesting Qt over Curl? I
 
If you are looking to stay in Python, the Twisted framework I pointed out earlier offers similar functionality.
@dragosrsupercool Why do you need multiple threads for a crawler?
 
@GeorgeEdison: I need to make sure I am utilizing CPU and Network fully!! No over load no under load
 
@dragosrsupercool A crawler probably won't need to worry about CPU usage... unless you are doing a lot of processing on the data you retrieve?
 
@GeorgeEdison: Using CPU fully is how I plan to scale up the crawler performance..
 
What is the crawler doing?
 
8:40 PM
crawling.. .
 
All it's doing is fetching data?
...it's not interacting with the data at all?
 
it fetch data it saves data thats all
now when its waiting for remote server reponse cpu is free
which is like waste of cpu cycles
i want to make sure another requests can be entertained by the cpu at that time
now for this there can be two approaches
one can be you make every url request a thread
other can be you just use two threads
one keep sending request
other keep receiving reponse
so cpu get utlilized fully
so does network
 
I'm sorry, but I'm pretty sure that two threads cannot use the same socket.
If one thread writes data to the socket, then that thread is the only one that can read from it.
 
may be may be not.. if a thread writes data he must be using some memory reference to read
if that memory reference is used by some other thread
then it might be able to read
 
No, no - I mean writing to the socket.
 
8:46 PM
@GeorgeEdison also, regarding StackApplet, Windows 64-bit can still run 32-bit apps :P
 
you mean no two threads can write to the same socket at one time?
I agree...
but my concern is one thread reading from socket while other writing to that socket
and they are not doing that at the same time
 
@ThomasWard I know... but it will still need the 32-bit runtime libraries, right?
 
i want to implement this using curl
in someway you can say kind of pipelining over different domains
 
@dragosrsupercool I don't think two threads can even use the same socket.
 
@GeorgeEdison which are installed usually by default. On a 64bit system, the x64 runtime libraries should autoinstall both 64 and 32bit support
 
8:47 PM
Hmm... then I'm puzzled over the error message.
 
@GeorgeEdison one moment
 
Maybe the problem is with the PyGTK libraries...
 
@GeorgeEdison
0
Q: Unhandled Exception in Microsoft Visual C Runtime

Thomas WardThis is the error I'm getting: The procedure entry point '_except_handler4_common' could not be located in the dynamic link library msvcrt.dll This occurs on a Windows XP SP3 system with Microsoft Visual C++ Redistributable 2005 / 2008 installed, but does not occur on a system with the Visuial ...

generally speaking it might be needing MSVCR 2010 support
(which seems to have the entry point / symbol)
 
@GeorgeEdison: TCP socket is a full-duplex stream, you can read from and write to it from multiple threads.
 
Ah, well that's a reasonable requirement.
 
8:49 PM
which is why i added "Try running with the 2010 libraries"
if they come back and say "This fixed it", then all you need to do is add a "Prerequisites" section saying "Requires MSVCR 2010 Redistributable installed"
which is available for XP and later (XP as 32bit only)
 
@dragosrsupercool I will concede that it is technically possible to have multiple threads accessing the same socket BUT it is not recommended as it is extremely error-prone and dangerous.
...and completely unnecessary in your case.
Each request (as far as HTTP goes) can only access a single resource.
 
@GeorgeEdison: Writing using thread 1 and reading thread 2 that too at different cpu cycle IS COMPLETELY SAFE!!
anyways thanks.. i appreciate you help :)
 
@dragosrsupercool Not really if you're making HTTP requests... you would have to write an awful lot of synchronization code.
 
@dragosrsupercool You can actually edit your messages. For a minute or so, then it will be too late forever.
 
@NN: lolz thats great.. i dint realize it.. anyways thanks.. i would keep that in mind from now onward :)
 
8:54 PM
I would definitely recommend limiting a socket to a single thread.
There is definitely no need to use more than one.
 
what @George is saying is logical :P
 
@dragosrsupercool It is a nice feature. Takes time to get used to for IRC diehards
 
Even if it would be possible that two threads can operate on a socket it could have catastrophic results.
 
I should correct something I said earlier... HTTP can be used for more than one request using KeepAlive.
...but I would treat that as an exception.
 
@GeorgeEdison: As far as I know sockets are thread safe. You should only be careful when you call close() on socket from one thread. Second one could hang on some blocking function or select infinitely.
@GeorgeEdison: KeepAlive is not an exception but a feature which other protocols are planning to release in their coming versions... :)
 
8:58 PM
@dragosrsupercool Well, you can definitely take advantage of it if you like but realize that it means a lot of special-case code to handle the extra complexity.
The bottom line is you don't need more than one thread per socket (regardless of whether it is a good idea to use more or not).
 
@OctavianDamiean: I agree.. . But in this specific case thread 1 makes the request and dont access the socket ever again.. . While thread 2 handles all writing operation.. correct me if I am mistaken
 
@dragosrsupercool Why not have the same thread read the response?
 
You know, there is a very good advice in software development. Premature optimization is the path to the dark side of software development.
 
@GeorgeEdison: Reponse can take time.. If we use the approach you are suggesting I guess we need to keep a thread per url.. Many threads can make system totally inefficient.. .
 
@dragosrsupercool I'm only suggesting a single thread.
 
9:02 PM
So basically, don't try to over-optimize it now but get a working single threaded version and find out if you need to optimize from that.
 
A Qt app, for example, can use a single thread to send multiple requests and receive the responses all without blocking a GUI or command-based interface.
 
@GeorgeEdison: Using single thread is going to waste your cpu cycle and make the complete process very slow.. .
 
@dragosrsupercool Is that an assumption or an observation?
Because assumptions are yet another path to the dark side.
 
@dragosrsupercool I doubt it - you're not doing any processing on the data so it should be light on the CPU.
 
@OctavianDamiean: I appreciate but I already have written crawlers to crawl like 2M urls per day using single thread :)
its an observation
 
9:04 PM
It's just network-heavy and disk IO-heavy.
 
my current project is to enhance the crawlers
 
@dragosrsupercool Are you sure the CPU is the bottleneck?
...and not something else?
 
@GeorgeEdison: explain IO heavy?
 
Alright, I just wanted to know why you want to add that much complexity. :)
 
@dragosrsupercool Heavy on disk reads / writes.
(Since you said the data retrieved was being saved to disk.)
 
9:05 PM
@OctavianDamiean: Its just because I need to optimize codes to an extreme level.. .
@GeorgeEdison: Crawling time is greater than saving time.. .
in this particular case
 
@dragosrsupercool Meaning the network is the bottleneck?
Compiling code, for example, is heavy on CPU usage... but network crawling shouldn't be.
 
@GeorgeEdison: network is not the bottle neck, the algorithm is.. we are waiting for server response and wasting cpu and network bandwidth while waiting
all i am trying to do is using the wait time ;)
 
@dragosrsupercool Why are you wasting CPU cycles while you are waiting?
It's completely unnecessary if you are using an event based framework.
 
@GeorgeEdison: Do you think CPU cycles are getting utilized? How and What exactly for?
 
What is your application doing when it's waiting?
 
9:09 PM
So, what would you want to do with the now wasted CPU cycles?
 
As long as the programmer cannot come up with perfect assembly code the bottleneck is the programmer.
 
Assembly? :o
Sheesh!
 
@NN: I agree :)
 
@NN No, a compiler is far better than a programmer at optimization.
After all, it's the compiler that's generating the assembly code.
 
@OctavianDamiean: Simple, I want them to work on other urls till then ;)
 
9:11 PM
...unless you are writing the application in assembly - in that case...
 
@GeorgeEdison lolz :p
 
@GeorgeEdison I was not serious. Also, programmers are probably more expensive than cpu cycles.
 
@NN: I agree again lolz
 
@dragosrsupercool Is the network connection saturated at that point?
...or is there spare bandwidth?
 
@GeorgeEdison: No No No ,, And that is why I am saying lets use it!!
 
9:13 PM
Wait, so you actually just want multiple parallel requests and save the responses to disk?
 
@dragosrsupercool So why not have a single thread issue multiple requests?
 
@OctavianDamiean: we dont use disk.. we use Amazon SQS and S3 .. it wont be a bottle neck atleast till 20x scaling
 
Well to that then. :)
And where exactly was the problem? I have lost track. :P
 
Would it make sense to try to get these three meta.askubuntu.com/unanswered/tagged/status-completed out of the unanswered questions list or would people just complain if I bring the to the front of meta for some days?
 
@GeorgeEdison: And how is that done? Can you achieve parallelism using a single thread?
 
9:15 PM
@dragosrsupercool In Qt, for example, this is easily done using events.
 
I think they should be answered so that they might have a chance of getting a vote and go away from the unanswered. Seems easier to do this than push the devs to accept meta.stackoverflow.com/questions/65429/…
 
@OctavianDamiean: lolz the question was i have two threads i want thread 1 to keep requesting data while thread 2 to keep receiving the data.. I can do this using socket programming easily,,, I wish to implement C curl..
 
@dragosrsupercool Why do you need cURL?
I'm really confused.
 
@GeorgeEdison: Again, Qt uses threads.. . You are just suggesting to use internal threading over external threading .. .
 
Why don't you just launch new threads that do everything?
 
9:18 PM
@dragosrsupercool No it doesn't.
 
@GeorgeEdison: Do you understand cURL? What is it exactly for?
 
Not unless you specifically write the program that way.
 
I mean thread one is busy handling URL 1, thread two is busy handling URL 2 and so on.
 
@dragosrsupercool cURL is a command line tool for fetching data from a remote server using a number of different protocols.
cURL (the command line tool) uses libcurl, a C interface to the actual code.
@OctavianDamiean That's a possibility, but I'm not convinced that a single thread wouldn't be better if possible.
is getting frustrated trying to compile subversion with MSYS.
 
@OctavianDamiean: maintaining too many threads is very costly for the kernel.. moreover again threads waits which is like wasting resources for sleeping
 
9:21 PM
@dragosrsupercool No it isn't.
A thread that doesn't do anything shouldn't be wasting CPU cycles.
 
@GeorgeEdison: a thread doing something or else its called dead
 
@dragosrsupercool It's really the creation and destruction of threads that take their toll on the processor.
@dragosrsupercool Not if it yields to the kernel.
 
Right and for that there is thread pooling.
 
@GeorgeEdison: my dear friend George, at the end of the story you are suggesting to access same socket with multiple threads... From last one hour I was trying to say the same
 
Exactly - have a pool of threads and just assign a new request to one that is idle.
 
9:22 PM
nods
 
@dragosrsupercool Which language do you want to use?
 
@dragosrsupercool Uh... no. I still maintain a single thread would be better.
It's not me that wants more than one thread.
 
@GeorgeEdison: So you think a single thread is better haan? What way?
apart from your crashing threat which it wont in this case
 
@dragosrsupercool It's less complex and still equally efficient.
 
9:25 PM
how is it even 1% equally efficient? Explain.. .
 
A single thread making multiple requests is more efficient than multiple threads making requests since the communication between threads and context switching is eliminated.
 
Well if blocking operations are involved I can understand the desire for multiple threads but just not the way @dragosrsupercool wants to approach it.
 
ok George leave it... You try it.. check your stats that would help you clarify the concepts ;)
 
@dragosrsupercool Check my stats?
@OctavianDamiean True... but if done right, nothing needs to block.
 
@GeorgeEdison not your check single threaded, n multi threaded n then too many multi threaded performanace
 
9:27 PM
So I'm looking for a place to put up a PDF file for public viewing, and I thought, hey, what about Ubuntu One
 
I'm not sure I quite understand what you're saying...
 
@Gilles Good choice. :)
 
UX fail: where's the link to the Ubuntu One website?
I finally found it… by searching in the page source. That's not really user-friendly, and this is a die-hard unix command line user speaking.
 
one.ubuntu.com - found by guessing
 
9:29 PM
@OctavianDamiean: I am trying to propose a non blocking approach using just two threads.. this way we get relief of the blocking and the cost to run too many threads,, , why you think it wont be a good idea?
 
@GeorgeEdison yup, I guessed too, then searched the source, then found where it was on the page
 
Well in theory the idea is not bad but I just don't think that it is practicable.
 
@GeorgeEdison: its ok :)
 
That orange bar looks like an ad. I hadn't even considered it.
 
I think the use case is that you'd right click on the file and get the URL that way
 
9:30 PM
@OctavianDamiean: With direct socket programming it did work nice.. Lets see if this can work for CURL... Still no answer on how I can implement this using curl lolz :p
 
cURL can issue multiple requests in a single invocation, IIRC.
 
Right, I'm not a C programmer so I can't really help there.
 
I'm not either... C++ all the way :)
 
is just an Android applications developer
 
@GeorgeEdison: I know.. But that is blocking approach again
 
9:32 PM
I am going to see Episode I in 3d today
 
@dragosrsupercool Not if you supply it with enough URLs.
 
heresy, I know
 
It will fetch them in parallel.
 
@JorgeCastro heh, Enjoy!
 
@OctavianDamiean: language is not the barrier cURL is.. if you can help me in any language over curl network that would be great!!
 
9:33 PM
Why do you need to use cURL instead of an alternative?
 
@GeorgeEdison: I have worked on curl projects with million urls and did all types of experiments thus I am saying that blocking statement as an observation than assumption ;)
 
Well I didn't work with libcurl so I'm not really able to help. All I can do is try to help with cURL (the application) itself which is not really what you need in this case.
 
@OctavianDamiean: Anyways still thanks for your concern and interest :)
 
@dragosrsupercool I don't know how you were invoking cURL, so I can't comment to that.
 
@GeorgeEdison: cURL is the finest stable stuff to crawl.. Qt is not.. thats why.. .
 
9:36 PM
@dragosrsupercool That's an opinion, not fact.
 
@GeorgeEdison: Its fact!! bench-marking is how you can see this.. .
 
@dragosrsupercool What benchmark?
 
I went ahead and wrote answers to the three status-complete questions that are treated as unanswered in trying to get them treated as answered.
 
@NN Great, upvoted.
 
@GeorgeEdison: Make 1 of yours and see the difference.. As Octavian said Observations is the better way to comment than assuming things.. theories are fascinating but this is not how frameworks are chosen ;)
 
9:39 PM
@GeorgeEdison cheers. It feels good to clean!
 
@dragosrsupercool I'm sorry? I don't understand what you're trying to say?
 
@GeorgeEdison: I am trying to say is that from last three hours you are presenting theories, your guesses and assumptions than experience or observations.. Anyways I really appreciate your time and energy
I must go now.. I was nice talkig to you all... . :)
 
@dragosrsupercool I didn't present any theories - I just recommended frameworks and tools from experience.
 
9:58 PM
What are the official Ubuntu colors? e.g. the exact shade of orange? Or is there none? I seem to find lots of variations
 
look under "web guidelines"
the PDF there has the exact shade of orange
 

« first day (499 days earlier)      last day (4458 days later) »