I am currently working on an application which requires different behaviour based on whether the user presses the right or left shift key (RShiftKey, LShiftKey), however when either of these keys is pressed I only see ShiftKey | Shift.
Is there something wrong with my keyboard? (laptop) do I need a new keyboard driver/keyboard in order to send the…
I have been having a problem with a notification not opening/going to the correct activity when it has been clicked.
My notification code (located in a class which extends Service):
Context context = getApplicationContext();
CharSequence contentTitle = "Notification";
CharSequence contentText = "New Notification";
final…
Hi ...
i am implementing a simple linked list in c++.
I have a mistake and i don't see it :(
#include <stdexcept>
#include <iostream>
struct Node {
Node(Node *next, int value):
next(next), value(value) {
}
Node *next;
int value;
};
class List {
Node *first; // Erstes Element , 0 falls die Liste…
Hello, I know the following code could extract whole texts of the docx document, however, I need to extract paragraph instead. Is there are possible way??
public static String extractText(InputStream in) throws Exception {
JOptionPane.showMessageDialog(null, "Start extracting docx");
XWPFDocument doc = new XWPFDocument(in);
…
------Using VS2008, ASP.Net with C#, Oracle, NHibernate----
I have tested my stored procedure. It's working but not with NHibernate. Here are the codes:
Procedure :
create or replace procedure ThanaDelete (id number) as
begin
delete from thana_tbl where thana_code = id;
end
Mapping File:
<?xml version="1.0" encoding="utf-8"…
I want to get access to a webcam's frame image data so I can composite it with some other data. The playcap sample in the windows sdk directshow folder can show you a window streaming the webcam, but doesn't demonstrate access to the bytes. Someone mentioned that I could use a samplegrabber filter attached to a null rendered to…
I have a UILabel for each cell at cellForRowAtIndexPath.
UILabel *cellLabel = [[UILabel alloc] initWithFrame:frame];
cellLabel.text = myString;
I want to access that string "myString" at didSelectRowAtIndexPath using indexpath.
NSString *anotherString = cell.textLabel.text;
returns null.
Now if at cellForRowAtIndexPath, I…
Hi,
I've currently got a couple of potential property letting/sales agent web sites to do. I'm looking for a decent script or possibly Joomla extension to power the property search functionality.
Can anyone recommend something they have used?
I have built my own little custom XML-RPC server, and since I'd like to keep things simple, on both server and client side, what I would like to accomplish is to create a simplest possible client (in C# preferably) using WCF.
Let's say that Contract for service exposed via XML-RPC is as follows:
[ServiceContract]
public…
I need to combine 3d models from direct3d on top of a web cam feed. I hear vmr-9 is a good way to go, but I need tutorials. Anyone know of any?
visual studio 2008 c++
I'm developing a game, a big part of this game, is about scrolling a "circular" background ( the right end of the Background Image can connect with the left start of the Background image ).
Should be something like this: ( Entity moving and arrow to show where the background should start to repeat )
This happens in…
How can to evaluate a computerized device or a software application in the HCI field to the relation with these theories such as: "Senses (Visual, Auditory, Haptic) and cognition (short term and long term memory)" and based on the context where the device is used? Any help or advice is appreciated. Thanks
My plan is to play mc_1 on MouseDown and mc_2 on MouseUp. The trouble I am having is that when I release, mc_2 is not playing.
mc_1 plays fine when MouseDown is initiated. Here's my code:
stop();
slide_mc.stop();
slideback_mc.stop();
onMouseDown = function() {
_root.slide_mc.play();
}
onMouseUp = function() {
…
Consider the following code (ASP.NET/C#):
private void Application_Start(object sender, EventArgs e)
{
if (!SetupHelper.SetUp())
{
throw new ShitHitFanException();
}
}
I've never been too hesitant to simply roll my own exception type, basically because I have found (bad practice, or not) that…
In my application I don't use the upper bar that displays Wi-Fi/Date/Time because it's a game. However I need to be able to let my user to pick his music, so I'm using a MPMediaPickerController. The problem is, that when I present my controller, the controller ends up leaving a 10 pixels ( aprox ) bar at the top of…
I'm writing an iPhone app that takes a photo and then uploads it to a server. How do I upload a photo to a server with Cocoa in Xcode? I suppose I use NSUrl somewhere.
Thanks!
Hi,
I'm currently creating a site for a musician. They are wanting to include the best quality video and audio files possible.
After a bit of research I'm thinking:
FLAC is the best option for audio.
FLV or MPEG-4 is best for video.
Can anyone in the know confirm or correct this?
Thanks
I want to separate my system.serviceModel section of the web.config into a separate file to facilitate some environment settings. My efforts have been fruitless. When I attempt it using this method. The wcf code throws an exception: "The type initializer for 'System.ServiceModel.ClientBase 1 threw an exception. …
I'm trying to use sqlite3 with lua (am already using c++, but I'm a n00b with lua- I read this) but I'm getting the following when trying to build the library or whatever:
C:\lib\lsqlite3-7>mingw32-make
process_begin: CreateProcess(NULL, pkg-config --version, ...) failed.
makefile:53: *** windows32. Stop.
…