Hi,
When programming in VHDL, can you use a variable in a case statement? This variable will modified by one of the cases
i.e.
case task is
when 1 =>
when 2 =>
when number =>
is this OK?
I am from a programming background ,and newbie to flex3 . i would like to learn flex3 and develop some application using rails and flex3 . Is it necessary to know flash in order to learn flex3 or just learning Action script 3 would do ? .Can anybody tell what are the prerequisites to learn flex3 . Thanks in Advance.
I'm programming a presentation in LaTeX using the beamer package.
However, it defaults to 4:3 aspect ratio slides, while everything I use is 16:9 -- is there an easy way to change this using a command or two?
Thanks!
This question is not really related to programming but to using Visual Web Developer, but here goes:
I'd like to use User.Identity.Name or any session variable in the WHERE-clause used by DataList (or other similar components), but I've tried the different options in the "ORDER BY..." pane to no avail.
How do I stick that in there?
Cheers
I find useful
groups.google.com/group/comp.lang.prolog/topics
cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/
google.com/Top/Computers/Programming/Languages/Prolog/Implementations/
allisons.org/ll/Logic/Prolog/Examples/
prolog.info/
Maybe there are else useful links? Please share it :-)
Hi,
I am just wondering what kind of computing/programming language/frameworks are needed to produce images such as the one in http://www.erdas.com/ ?
Programmatically, how does one produce the general spatial analysis images ?
ps: I use java most of the time.
Thanks
I'm looking for a tool that can provide code quality metrics.
For instance it could report
very long functions (spaghetti code)
very complex classes (which could contain do-it-all code)
...
While we're on the (subjective:-) subject of code quality, what other code metrics would you suggest?
I'm targetting C#/.NET code, but I'm sure this could extend to most programming languages.
Hello!
I am currently programming a Tower Defence game for university and i stumbled upon a problem:
i want my towers to rotate towards the monster it is shooting at.
The towers are bitmaps and we are supposed to program in a language called Modula 2:
If you have heard of it any help is welcome to rotate bitmaps, if you havent it might still be helpful to know how i could start, how image rotation is done in general.
Thanks in advance,
Samuel
In one of my model's I'm using some meta programming to dynamically define some methods. I'd like to test this. I need a compact way to assert that my model has readable/writable attribute with a certain name. Ideas?
I'm using shoulda for unit testing if it makes a difference.
I have two identical 3 TB disks that were in a RAID1 array, where one disk crashed. I replaced the failed disk, but not after the RAID partitions got messed up.
I need to figure out how to restore the RAID array and get at my ext4 partition.
Here are the properties of the surviving disk:
# fdisk -l /dev/sda
fdisk: device has more than 2^32 sectors, can't use all of them
Disk /dev/sda: 2199.0 GB, 2199023255040 bytes
255 heads, 63 sectors/track, 267349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 267350 2147483647+ ee EFI GPT
# parted /dev/sda print
Model: ATA ST3000DM001-9YN1 (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 131kB 2550MB 2550MB ext4 raid
2 2550MB 4698MB 2147MB linux-swap(v1) raid
5 4840MB 3001GB 2996GB raid
I replaced the failed drive, and cloned the surviving drive to it so I have something to work with. I cloned the drives with dd if=/dev/sdb of=/dev/sda conv=noerror bs=64M, and now /dev/sda and /dev/sdb are identical.
Here is the RAID information:
# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md1 : active raid1 sdb2[1]
2097088 blocks [2/1] [_U]
md0 : active raid1 sdb1[1]
2490176 blocks [2/1] [_U]
unused devices: <none>
It seems that md2 is missing.
Here is what testdisk 6.14-WIP finds:
Disk /dev/sda - 3000 GB / 2794 GiB - CHS 364801 255 63
Current partition structure:
Partition Start End Size in sectors
1 P Linux Raid 256 4980735 4980480 [md0]
2 P Linux Raid 4980736 9175039 4194304 [md1]
Invalid RAID superblock
5 P Linux Raid 9453280 5860519007 5851065728
5 P Linux Raid 9453280 5860519007 5851065728
# After a quick search
Disk /dev/sda - 3000 GB / 2794 GiB - CHS 364801 255 63
Partition Start End Size in sectors
D MS Data 256 4980607 4980352 [1.41.12-2197]
D Linux Raid 256 4980735 4980480 [md0]
D Linux Swap 4980736 9174895 4194160
D Linux Raid 4980736 9175039 4194304 [md1]
>P MS Data 9481056 5858437983 5848956928 [1.41.12-2228]
And listing the files on the last partition in the list shows all of my files intact.
What should I do?
I was just asked to talk about Objective C to a bunch of High School student for 20 minutes. They have no experience with programming at all. What topics should I cover? Should I define vocab such as Method, Class, Variable? Or should I do something else?
Any comments are helpful!
I need to catch segmentation fault in third party library cleanup operations. This happens sometimes just before my program exits, and I cannot fix the real reason of this. In Windows programming I could do this with __try - __catch. Is there cross-platform or platform-specific way to do the same? I need this in Linux, gcc.
I want some help in programming a random generator for different types of distribution using C++ language. for the following:
Geometric distribution
Hypergeometric distribution
Weibull distribution
Rayleigh distribution
Erlang distribution
Gamma distribution
Poisson distribution
Thanks.
How is the Observer Pattern expressed in various programming languages? Can you provide a code snippet that illustrates the major differences in each language. This post is intended to demonstrate the differences of this commonly used design pattern.
I will start this off with a Java example. Remember to start your answer off with the language being demonstrated.
As a soon-to-be computer science graduate, I have to come realization that I have a long way to go when it comes to the overall design of an application. After spending many semesters of programming from the hip I have come to appreciate the mulling over the needs of an application before diving head first into the coding portion.
My question is to the intermediate and expert programmers, how can I improve in the area of the design phase of development?
We are currently looking at developing flash based applications (using Flex) in a web application. We are now leaning towards to use SVG rapheljs for developing this components. The questions are:
Is still SVG platform is widely adopted by browsers (without any plug-ins) are at least down the line of 8-10 months, any adoption is expected by browsers? Cross-browser support is god for us.
Is SVG can replace for a small time animation based programming instead of Flash
Any comments will be greatly appreciated...
Hi Guys...
my Question is short, I create a cursor to get some values from my table
I want to get the current record of cursor (the fetched record) and
the next record from the cursor without fetching it, cause I want to make a calculation
over the current record and the next record.
in traditional Programming it's a simple operation you can do it
with for index by increasing it by 1.
do you have any suggestion :) thx
When learning a new programming language, one of the possible roadblocks you might encounter is the question whether the language is, by default, pass-by-value or pass-by-reference
So here is my question to all of you, in your favorite language, how is it actually done? and what are the possible pitfalls?
your favorite language can, of course, be anything you have ever played with: popular, obscure, esoteric, new, old ...
What are the lesser-known but useful features of the Python programming language?
Try to limit answers to Python core
One feature per answer
Give an example and short description of the feature, not just a link to documentation
Label the feature using bold title as the first line
This question is along the lines of :
Hidden Features of JavaScript
Hidden Features of CSS
Hidden Features of C#
Hidden Features of VB.Net
Hidden Features of Java
Hidden Features of ASP.NET
Hidden Features of Python
Hidden Features of TextPad
Hidden Features of Eclipse
Hidden Features of JavaScript
Salutations,
Need some help writing this;
a pseudocode that accepts as input the name and sections(160, 220, 280, 350, 425) of a masquerader, continue to run until a blank name is input. After that, pseudocode should process the amount the masquerader pay.Then pseudocode code output masqueraders name and amount to pay.
Then use programming language Pascal to write this.
Thanks, appreciate your response.
I'm finding lately how unsecure Javascript is when programming a game (I'm trying to do a turn based RPG and currently the battle calculations are done through Javascript which any player can cheat with of course giving themselves as much XP as they want), so I'm wondering if I were to move my battle screen to flash if this would be any more secure, or is there just as easy of a way to cheat this?
I'm quite new to objective c but have been programming for a while. I started creating a function that would convert from RGB to HSL and back again but I get a feeling it is way too long and headed in the wrong direction. Does anyone know of a simple way to perform this conversion?
I need to capture product data from a site on a regular basis and wondered if any one knows of a good software program? I've trialed Mozenda
but its a monthly subscription and pricey in the long term. Obviously something thats free would be best but I don't mind paying either. Just need a decent program thats reliable and doesn't require much programming knowledge.
Hi,
I am currently looking around for a good allround beat detection library / source code in C++ since I found it really hard to achieve satisfying results with the beat detection code I wrote myself using this tutorial:
http://www.gamedev.net/reference/programming/features/beatdetection/
It's especially really hard if you want to make it work with any kind of music so I was wondering if there is something usable out there allready?
Thanks!
Possible Duplicate:
Define ‘poco’?
I read a document about NHibernate and see this acronym but I don't understand its mean very well. What is the meaning of this in programming? What is its usage in ORMs?