as

Developing Web services applications from existing WSDL files

Hello, I have done this on Websphere (re: title of this topic) using wsdl2java for generating wsdl to java mapping xml file. My endpoint is a generic stateless EJB. The code in EJB is generated by traversing the each wsdl and getting the wsdl operation and stuck it in the generated remote EJB interface. Each EJB method impl is generic an...

How to create virtual column using MySQL SELECT ?

Hi, If I do SELECT a AS b and b is not a column in the table, would query create the "virtual" column? in fact, I need to incorporate some virtual column into the query and process some information into the query so I can use it with each item later on. ...

Threads in x86 assembler (using the GNU assember: as)

Whilst learning the "assembler language" (in linux on a x86 architecture using the GNU as assembler), one of the aha moments was the possibility of using system calls. These system calls come in very handy and are sometimes even necessary as your program runs in user-space. However system calls are rather expensive in terms of performanc...

cannot convert type 'string' to 'int?' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion or null type conversion

Hi, I'm going to try to make myself clearer. Why does C# accept the following: object o = "hello"; int? i = o as int?; if (i == null) { // o was not a boxed int } else { // Can use i.Value to recover the original boxed value } and not String = "hello"; int? i = o as int?; if (i == null) { // o was not a boxed int } else { // Can u...

Should I use (ObjectType) or 'as ObjectType' when casting in c#?

Possible Duplicate: Casting: (NewType) vs. Object as NewType Say for example I have a class called MyObjectType and I want to convert the sender parameter of an event to this type. I would usually go about it by simply doing this: MyObjectType senderAsMyType = (MyObjectType) sender; I've recently realised that it can also be ...

GCC's assembly output of an empty program on x86, win32

I write empty programs to annoy the hell out of stackoverflow coders, NOT. I am just exploring the gnu toolchain. Now the following might be too deep for me, but to continuie the empty program saga I have started to examine the output of the C compiler, the stuff GNU as consumes. gcc version 4.4.0 (TDM-1 mingw32) test.c: int main() ...

x86 Assembly, misleading Error

I am trying to learn assembly, and have a program in AT&T syntax, for use with GNU AS Which I believe should work. I receive this error with GDB: Program received signal SIGSEGV, Segmentation fault. .PROGRAM () at concatenator.s:60 60 call strlen Current language: auto; currently asm The code is: .file "concatenator....

C#: "is" vs "as"

Possible Duplicates: Why is vs as when casting? casting vs using the as keyword in the CLR Suppose I have a variable whose type I don't know (object) and would like to perform several different actions based on what it is. The first thing which comes to mind is something like this: object MagicVariable = GetMagicValue(); if ...

Hide a Button in AS3?

I have a button called myBtn In my actions in Frame 1 I have tried both: myBtn.visibility = false; myBtn.enabled = false; Both give me the error: 1120: Access of undefined property myBtn. ...

Mono 'asmonly' option

I created a simple mono executable using MonoDevelop that prints "hello world". I wanted to try the AOT 'asmonly' option. So: [root@localhost Debug]# ls abc.exe [root@localhost Debug]# mono --aot=full,static,asmonly abc.exe Mono Ahead of Time compiler - compiling assembly /home/alon/Projects/abc/abc/bin/Debug/abc.exe Code: 1538 Info: 5...

Open excel 2007 excel files and save as 97-2003 formats in VBA

I have a weird situation where I have a set of excel files, all having the extension .xls., in a directory where I can open all of them just fine in Excel 2007. The odd thing is that I cannot open them in Excel 2003, on the same machine, without opening the file first in 2007 and going and saving the file as an "Excel 97-2003 Workbook"....

Why is is implemented as as?

Given that this very natural use case (if you don't know what as actually does) if (x is Bar) { Bar y = x as Bar; something(); } is effectively equivalent (ie, compiler generated IL from the above code will be equivalent) to Bar y = x as Bar; if (y != null) { y = x as Bar; //The conversion is done twice! something(); } ...

jQuery - How do you store and access an object within another object

I am trying to store an object as an attribute in another object but can't seem to access it. Is it possible? <script language="javascript"> $(document).ready(function() { //create a TestObject function TestObject() { this.testProperty = "green"; } //and an instance of it var testObject = new TestObject()...

Action Script SSH Client

Have you seen AS SSH Client? ...

Passing GET variables from Flash to PHP with Chinese characters

Hi Everyone, I'm calling a php file from Flash and adding variables afterwards like so: http://www.randomwebsite.com/something.php?title=爸爸 It works fine if I copy and paste this directly into the web browser, however if I call it through flash, the address bar would end up like this: something.php?title=?? Is there anything I can do ...

PHP/mySQL - using result from 'CONCAT' and 'AS' in 'LIKE' clause

Hi I have the following code; if( ! empty( $post['search-bar'] ) ) { $search_data = preg_replace("#\s\s#is", '', preg_replace("#[^\w\d\s+]#is", '', $post['search-bar'] ) ); $data_array = explode( " ", $search_data ); $data_array = "'%" . implode( "%' OR '%", $data_array ) . "%'"; $query = " SELECT CONCAT( PROFILE_PROFF...

GNU ld removes section

I'm writing a boot script for an ARM-Cortex M3 based device. If I compile the assembler boot script and the C application code and then combine the object files and transfer them to my device everything works. However, if I use ar to create an archive (libboot.a) and combine that archive with the C application there is a problem: I've ...

Changing Form Id from 'aspnetForm' to custom using JQuery ready event

Hi, I want to change my asp.net form's Id ="aspnetForm" to custom name (I can't change it as its a child page and .NET would enforce 'aspnetForm' name.). I am trying to do this in Jquery .ready event but no luck. I am wondering now whether it's even possible to do that? If not what are other possible ways.. Thh Analytics Engine we use...

Where can I find documentation on assembler?

I wrote a very short program that parses a "program" using python and converts it to assembler, allowing me to compile my little proramming language to an executable. You can read my blog for more information here http://spiceycurry.blogspot.com/2010/05/simple-compilable-programming-language.html my question is... Where can I find m...

Get user-inputed file name from JFileChooser Save dialog box

This answer to this question may seem obvious, but I'm actually struggling with it quite a bit. I've searched through JFileChooser methods in the API, and I've looked at some of the questions already asked and answered here on stackoverflow. My question is this. In my program, I am to allow the user to type in a file name which I will t...