-
Stack Overflow c c++ assembly algorithm artificial-intelligence graphics math game-development embedded windows multithreading concurrency synchronization thread-safety optimization debugging data-structures language-agnostic operating-system driver kernel error-handling 64bit code-generation x86 floating-point ieee-754 machine-learning signal-processing digital-signal-processing code-analysis virtualization 3d homework nlp seh exception-handling structured-exception microcontroller 8051 interrupt ti-dsp x86-64 syscall bootloader z80 winapi compiler memory-management bios cpu nasm x64 kernel-programming device-driver disassembly rendering dynamic-programming compare-and-swap inline-assembly detours protected-mode filesystems computer-architecture tasm masm rtos audio minidump decompiling project-euler 2d linux-kernel unicode hook windows-8 arm system-calls performance dos windows-7 exe pe visual-c++ gcc cpu-architecture 8086 pointers projection image
Fetch a file from web: in GTK using C
With what function should a fetch a file from the web using gtk libs? If my file is from: gchar *path = "http://xxx.yyyServer/sharing/temp.txt" What should I do to download it? For the local files …
Windows 8 metro apps Share Target Issue C#
i have a problem that, I am sharing image through URI in metro app, and my target app shows share image but i want to save that image in localfolder of disk. please help me share code void ...
Why XmlDocument is using in Windows8 engine?
I guess that XmlDocument is deprecated class and we have to use XDocument instead. But TileUpdateManager.GetTemplateContent from Windows 8 UX core return XmlDocument class. As soon as it is new API, …
Android BroadcastReceiver or simple callback method?
In my projects I am using BroadcastReceivers as a callback from a long running thread (eg. notify the activity that a download was finished and send some response data from a Worker Thread so that the …
Homework - how to sort a dictionary
The problem is a list of room numbers and guest details I ripped straight from a txt file that needs to be put into a dictionary with the room number as the keys and the details as the values. The …
How to get DNS name from REST service which is consumed by startuptask of Azure webrole
I have confirmed with that it's not possible to get DNS Name and environment details (staging vs production) without certificate & management API. However let's consider my case in that my ...
Receiving erroneous “The SELECT permission was denied on the object …” along with “The cursor was not declared.”
Alright.. this is particularly tricky considering the SELECT permission denied error and the difficulty of wading through all of the "You need to grant select permissions on your table..." responses. …
UserControl vs LayoutAwarePage (Windows 8 XAML)
What is the difference between <common:LayoutAwarePage and <UserControl... in XAML in Windows 8. Looks like both are used as W8 pages.
std::wstring causes memory access violation (0xC0000005: Access Violation)
Our application navigates through a list of named pipes and looks for a named pipe created by our application. If our named pipe does not exist, we go ahead and create one. However, lately our ...
Is it possibe to adopt a process?
Process A fork()s process B. Process A dies and therefore init adopts B. A watchdog creates process C. Is it somehow possible for C to adopt B from init? Update: Or would it even be possible to …
How to process a string char by char in the XS code
Let's suppose there is a piece of code like this: my $str = 'some text'; my $result = my_subroutine($str); and my_subroutine() should be implemented as Perl XS code. For example it could return …
cocos2d: Trigger code on SneakyJoystick down movement
I have a game in progress where the player can only move left and right, but at certain places on the map they can push up or down to go to a new scene in those directions (such as through a door in a …
Simulate Screen Size in OpenGL and Display Scaled Image
Based on what I had read when I started working on the game that I am currently developing I came to the conclusion that openGL on android was only good if I was doing stuff in 3D. I also came to the …
Generating Links to Youtube Audio
I have been for a while now, as part of a larger project, trying to find a way to stream Youtube AUDIO into an application without downloading the corresponding file. What I have as of now is a ...
How should I add 10-20 youtube videos so they're optimally lightweight?
(...and then mute and autoplay them?) The videos are iframe's and parsed from a json: <iframe title="YouTube" width="310" height="240" src="http://youtube.com/embed/<?php echo $matches[0]; …
Xcode Building from non-existant Project File
I'm building my project and I get a build error from within a file that is not part of my project. The file is not listed in the project navigator or in compile sources under build phases. I've ...
Image is duplicated when convert from IplImage to bitmap and display in pictureBox
i'm working on a VC++ and OpenCV application, i'm loading images into picturBox and make some OpenCV operations on them, i assign the loaded image into IplImage to make processing on it but then ...
Convolving an image with OpenGL ES on iPhone: possible?
I've googled around a few times, but I have not gotten a straight answer. I have a matrix that I would like to convolve with a discrete filter (e.g. the Sobel operator for edge detection). Is it ...
Incorrect assign simbol to char or string
A="D:\Kursa4\a1\a1\test1.txt"; B="D:\Kursa4\a1\a1\test1.txt"; + A "D:Kursa411 est1.txt" std::basic_string,std::allocator > + B 0x0046cd0c "D:Kursa411 est1.txt" char * '\' …
UNION ALL takes too long
I have clustered data on multiple tables, generally they looks like this: CREATE TABLE 2012_03_09 ( guid_key integer, property_key integer, instance_id_key integer, time_stamp ...
opencv copy one matrix into the first column of another matrix
I have a vector of pointers whcih are pointing to a image (size w=96 h=100 NoImg=100) that I got from my camrea and framegrabber. az you see I am creating matrix of them and start reading the data one …
Can an assignment in C++ throw an exception?
Given code like the following: void f() { int i; i = 0; } is it possible the system could throw an exception due to the simple assignment? [Edit: For Those saying, "No an exception cannot …
Reading the regional location setting (country code) in Windows using Ruby?
I am trying to access the Control Panel: Region and Language: Location: Current location setting using Ruby. I am only interested in the country code. The closest I have got is the country code from …
What should I use for a Client/Server Multi-player survival game? Java
I am making a game in java and it is going well. I want to early on implement multi-player so I build on it instead of porting the entire game to multi-player when it has a ton of different features.. …
How to get Single Source Shortest Path for graphs having a negative weight cycle
Hey i have been studying the bellman ford algorithm for "single source shortest path" problems. Now i am stuck at one point where i need to find out the solution for a graph having negative weight …
Bind a python library TO C
What I want to do is the opposite of what most people want to do: I have a library written in Python, and I want to make it available to C (and possibly other languages). I know that the typical ...
Is there epoll equivalent in Java?
Is there an equivalent of Linux epoll in Java? epoll allows a thread to react to a number of heterogenous events. For instance, I can have a thread that reacts to either a socket event or an input …
HTML/DOM for a page with random image which will post properly in facebook and google+
I have a website which contains the cute conceit of a random headshot. Every time you load the page (or click the headshot), it gets replaced with a new headshot. It works great until I post a link …
How to use systemtap -L option?
Am following the systemtap tutorial online@ http://sourceware.org/systemtap/tutorial/ and I was trying to do some exercise. In 2.3 Q1, the -L option seems never work..I got script probe ...
Does code needs to be compiled at local for remote debugging/ remote debugging modus operandi?
I have java webapplication deployed on remote server. I want to do remote debugging from my local machine from eclipse. Both are of same version. My question does the code needs to be compiled at my …