I'm in the process of writing a small lisp interpreter in haskell. In the process i defined this datatype, to get a less typed number;
data Number = _Int Integer
| _Rational Rational
| _Float Double
deriving(Eq,Show)
Compiling this fails with the following error:
ERROR "types.hs":16 - Syntax error in data type declaration (unexpected `|')
Line 16 is the line w. the first '|' in the code above.
How does objdump manage to display source code? Is there a reference to the source file in the binary? I tried running strings on the binary and couldn't find any reference to the source file listed...
Thanks.
Here's a example that I've to use when I want to create a button with mouse-over effect:
this.buttonExample.buttonMode = true;
this.buttonExample.useHandCursor = true;
this.buttonExample.addEventListener(MouseEvent.CLICK,myaction);
I'm new to AS3 - is there any way, to simplify this code like this:
this.buttonExample.buttonMode = true;.useHandCursor = true;.addEventListener(MouseEvent.CLICK,myaction);
why does it not works ?
I have try PDT 2.1.2 and 2.2 nighty build , both of them ,
javascript code assist is not work when editing php file. I have check the JSDT,WTP Plugin is loaded and no error.
But when i open a *.js file, it works , is it any configuration i miss?
If you have an XSD with an includes reference.
Is it possible to generate 2 separate class files.
1 for the XSD, and 1 for the included XSD?
My Scenario
4 XSDs, each of which share 15-20 element definitions in common.
Rather than maintaining, I'd like to end up with the 4 XSDs all referencing a fifth file with the common definitions, and code generating 5 .cs files to use.
Hey guys,
I just noticed I get a lot of redondant code from one class to another in my project (like menus or buttons) ;)
Is there any way to optimize it ?
Thank you !
Gotye.
Hello guys,
I'm planning to create a cascading dropdown list of Country-- State/Province---Zip code using geonames. Do you have any good web service or examples?
Your reply is greatly appreciated,
Best
People use a variety of little shortcuts that make typing code easier and without the hassle of going back to your mouse. For example, when deleting, ctrl + backspace will delete the whole word. I was wondering what types of little nifty tricks you know that you would like to share!
I have a C# user control project which causes intermittent .NET run time error, a generic error, and wondering if there is any code analysis tool that I can point at my .sln file which would tell me what may be causing my error
I am newbie.
many of javascript code start with <!--
<script type="text/javascript">
<!--
and finish with //-->
//-->
</script>
I think the reason is for compatibility.
But I cannot find the clue in any books.
even I cannot find anything with google.
I have downloaded the android source code (1.5 Gb and appx. 5 Gb after extracting).My intention is to compile this.
1) Do i need a toolchain for arm ..if yes which one will be suitable.
2) to run simulator and to be able to debug on workstation do i need to have any specific PC -linux toolchain .
Hello !
I set a new PHP code template in Netbeans:
/* @var $$${name}Table Model_${name}_Table */
$$${name}Table = Container::get('model')->get('${name}_Table');
and if I use as ${name} some value - shop - I have in output:
/* @var $shopTable Model_shop_Table */
$shopTable = Container::get('model')->get('shop_Table');
Is it possible to add some modifier to the second and fourth ${name} so I will have it started with upper letter ?
Shop_Table instead of shop_Table
I am trying to find out if a line defined by two points is greater than or equal to 90 degrees compared to the horizontal. Here is the code I used
bool moreThan90 = false;
double angle = Math.Atan((double)(EndingLocation.Y - Location.Y) / (double)(EndingLocation.X - Location.X));
if (angle >= Math.PI / 2.0 || angle <= -Math.PI / 2.0)
moreThan90 = true;
Did I do this correctly or is there a better built in function in .Net that will find this?
I want that whatever code style i defined in eclipse editor ..should be followed by coders, so can i enforce it as program will not even build without satisfying all the rules???
I have installed XAMPP on my computer which is Windows 8 pro. I use to work with Windows 7
every time I run the index.php file on Windows 8 it shows the code on the browser IE10.
Here is what I have done:
I have named the file correctly: index.php
I have installed the server and saved the files inside c:/xampp/htdocs/PHP/
I have used to open and close all PHP tags
and everything else seems working fine, like, PHPMyAdmin, and the Ini file
I don't know whats wrong and it is driving me crazy ...
Farris
I tried writing a login code in vc#..i got the following error..'The type or namespace name 'LoginControl' does not exist in the namespace 'ErikSchmidt' (are you missing an assembly reference?)'
Pls help me rectify this error.
Looking for some [freeware/opensource] tool in order to make it easy to profile a big php project on win32 platform. Need to find out which part of code is most time consuming.
It's hard to manually put timing function for each function, loop...
I have a fortran (unmanaged code) dll as the calculation engine, and a C# form as the GUI.
Now, the calculation in fortran is long, so in order not to bore the users, I decided to use Asynch command to create a progress bar. The fortran dll would be responsible for putting messages in the progress bar as the calculation proceeds.
Any idea how this can be done?