segment

How can I prepend a `SS:` or `ES:` using AT&T Assembly Syntax

How can I prepend a SS: or ES: using AT&T Assembly Syntax without adding in a .byte 0x36 or .byte 0x26? ie. How would I be able to convert mov dword ptr ss:[esp+0x10], offset foo from Intel syntax to AT&T without using: .byte 0x36 movl $foo, 0x10(%esp) I have tried movl $foo, %ss:0x10(%esp) which assembles without warnings but, ...

Calculating intersect point of 2 lat/lng line segments on earth

Hello, i've been trying multiple functions including 2D ones to try to get this somewhat working, but no luck yet... I have 2 line segments of latlng endpoints on earth, and i want to know if and where the 2 lines intersect. I'm currently working with this which a physics major says should be doing the job for a 2d plane but its not. i...

What's the technology behind live stream sites?

It's amazing to notice that live stream sites like doitlive.tv can deliver videos on very low bandwidth (as low as 25kbps) home connection. Could someone explain me the technology behind such sites and how they managed to deliver under such low bandwidth? ...

How to call #pragma segment Foo on Garnet OS

I've read this excellent tutorial about segments in palm: http://onboardc.sourceforge.net/UsersManual.html#segments But developing with Garnet OS Development Suite, the command "#pragma segment Foo" isn't recognized by the compiler, it warns me: "Warning: ignoring pragma" Is there an option to enable this pragma segment? ...

Calculate point and circle segment collision

If I have calculated an intersection point between a line segment and a circle, how can I tell whether or not this intersection point lies on a segment of the circle? I have the equations to tell whether or not a line segment intersects with the circle, and I also have the intersection point on that circle, but what I need to know is w...

Codeigniter from and uri

OK i have this problem: I'm creating a search function and to do that correctly i have to pass the word that is written in search field to uri eg. third segment. But since Codeigniter only supports post and not get method (it can be enabled but I'm looking for way around) I need to pass that variable via post to uri. Can anybody help me?...

May a compiler ever generate code to unload parts of the code segment during execution ?

Apart from Dll concept that provides ability of loading/unloading methods or functions at run-time, I'm wondering if a compiler may ever say something like, ok as this particular part of the code takes considerable amount of space in code segment and is never gonna be used again after this point during program execution, it'd be good to ...

How to build message from tcp segments.

Hi, working in C#, I use SharpPCap to get segments from a winpcap trace. I need to rebuild all the messages sent and received in that trace. In my situation, the client's and server's IP will never be the same. Client's port does not necessarily change. The protocol used by the message could be HTTP or something custom that I don't k...

Codeigniter : Loading a different view in a loop according to URI segment

Hello everybody. I have a list of buildings that I load from my model. Those buildings are showed in a loop within my view as so : Controller public function index() { $data['buildings'] = $this->Base_Model->getUserBuildings(); $this->load->view('game', $data); } View <?php foreach($buildings as $b): ?> <div class="building">...