|
Okay, but I am getting slightly apprehensive about being the single member who has initiated 6 of the nine most recent threads in that group over the past two months.
I think this will make it 7 out of 10
|
|
|
|
|
happens... don't worry about it, if you never ask you'll never know 
|
|
|
|
|
Hi
not sure where to post this, or even if CP is the right place, but hope it's OK here...
so I've burnt a CD with a single HTML file in the root folder called home.html
When inserted in the drive (D: ) a popup windows appears with options to
a) Install or run programs from your media
Run home.html
b) Open folder to view files
if I click b) I can then double-click home.html adn it will open fine in my default browser. But if I click on a's option to "Run home.html" i just get an error message saying
"D:\ is not a valid WIn32 application"
As this CD is one I want to diostribute to various people I can't ask them to make any changes to their computers - is there some other solution to the way I burn the CD - ie the files I burn to it - that can allow them to open the .htrml files whichever way they choose?
|
|
|
|
|
You can do this using the ShelExec[^] utility.
|
|
|
|
|
Thanks - I did have my own autorun.inf file, but actually I think I had the wrong command in it! Just a simple
[autorun]
shellexecute=home.html
seems ot do it.
|
|
|
|
|
This should work too.
If not, autorun may be disabled on your system.
|
|
|
|
|
In programming languages like Java and C# where you can only inherit from one class why should we inherit from one class? From my point would produce brittle inflexible code. It be better for safety to ban inheritance of implementation and just provide inheritance of interface. In these language there is nothing that stops you from providing one interface and making the common implementation depend on helper class
|
|
|
|
|
Don't you see any value on the fact that you can implement common logic for several classes to a single class and inherit from that?
Consider the traditional example, Animal. Animal is the base class providing lots of functionality such as name, age, parents, walk(), stop(), sleep() and so on. Now Cat, Dog, and Horse are derived classes with a few minor tweaks specific to that kind of animal.
By using inheritance you have all the functionality on each of the animals and you don't need to know where it came from. If you'd have a helper class you'd need to know what to call and so on.
To go beyond that, using inheritance you have the possibility to override, implement required functionality, hide existing logic etc.
|
|
|
|
|
That does not disprove my point the base class Animal under single inheritance would be one or more helper classes and provide an Animal interface. This proves more controlled code reuse. I could point out that there might be a performance increase in inheritance of implementation but is a moot point. Another example is the class bird where you have a method fly this would be incorrect for flightless bird like ostriches, emus, kiwis and penguins. With single inheritance there is no way to disable fly for flightless birds if fly is part on the base class.
|
|
|
|
|
I do understand what you're after but I still believe inheritance to be more powerful.
vickoza wrote: With single inheritance there is no way to disable fly for flightless birds if fly is part on the base class. Oh but there is. You'd use new Modifier[^]
|
|
|
|
|
Is this a .Net only feature or is it also available in Java? Also, I agree that inheritance is powerful but with power there are also many opportunities to abuse this power. If the goal of single inheritance is to prevent abuse then providing single inheritance provide an avenue for abuse and therefore by providing avenues of inheritance only through interfaces and have the class designer build the class though composition rather then inheritance.
|
|
|
|
|
Hi guys,
I'm new here, and I've got big plans. These plans include building a massive organization, building my own spacecraft, and creating a few games, writing a few novels, and traveling a lot.
So, why am I here? Simple, I'm on a coding journey. I'm learning the simple stuff first, like web development, HTML, CSS3, PHP, Java, etc. Then I'm moving onto bigger programs.
However, considering that I want to build my own spacecraft, I'd like to code my own language to build my own OS and what not with. Having my own software and knowing the ins and outs of it just sounds like the right thing.
So, my question is, where do I start? What would you guys recommend? Am I heading in the right direction by starting with something simple like web development?
Also, I would like to know if you guys can point me into some decent resources that would help me get started with my own language. I've seen people create languages based of another language, I don't want to do that. I'm talking about from scratch kind of deal. Like, legit from scratch. So, any resources that you guys can give me would be much appreciated. I figured that group of people who code on a regular basis would at least be able to point me in the right direction.
And yeah, I know...I don't know how to dream small. I go for big...really big. 
|
|
|
|
|
Not sure if troll or stupid. You will fail and fall very hard when waking up in reality.
But whatever, keep going kid:
Learn a few programming languages in deep(no webdesign sh*t), study computer science and read "Compilers: Principles, Techniques, and Tools, 2nd Edition".
This will push you into a good position to build your own language. Compiler will suck, cause you are alone, but who cares. Nobody will use it anyway.
|
|
|
|
|
I'm being dead serious about this. Looks like I'm going to have to start by studying compilers and other languages. How they were made and what makes them work. Should have been a no brainer, but if I'm going to build my own spacecraft, I want to make sure that I know the ins and outs of it.
|
|
|
|
|
"Should have been a no brainer,"
lol. compilers are one of the hardest topics in computer science.
also: definitelly stupid
|
|
|
|
|
If building a spacecraft is the end goal then a piece of advice in to learn C or C++ first many hardware interface has some type of plugin to C or C++.
If your goal is to create a language for creating a language then first step would be determining the purpose of the language and what are the programming tools and styles you need in your language. Study popular programming languages like C, C++, C#, Python, Java, and JavaScript. They can provide inside on how to design your language.
|
|
|
|
|
So, I should learn about C and C++ then? I'm looking at building a lot of my hardware for this, except for maybe the computer systems. I suppose it makes sense to look into C and C++. After all, most hardware is designed to fit popular Operating Systems like Windows and Linux.
|
|
|
|
|
That would be a good idea almost all hardware have C or C++ interfaces and no one programs in assembly any more. Warning!!! C can easy to abuse and hard to reason out as it has none of the features to help ensure type safe and separate error checking from business logic. If you still want to create a language that simplifies your interface to your hardware is would still need to be build underneath C or C++
|
|
|
|
|
Hi, I worked as Web developer (ASP.NET,VB.NET) for 6 months and later my position was changed as Windows developer(WPF,C#,MVVM) to till now. Next, my company is forcing me to move on android application development(Purely java and android studio) . I started my career just a year back. Is it good for me to switching technologies in short span of time?
sujith karivelil
modified 20-May-15 1:45am.
|
|
|
|
|
Yes, no, and maybe. The only person who can answer this question is you, as it depends entirely on where you want your career to go.
|
|
|
|
|
I have created a windows gadget that plays a radio stream I am involved in. I have got the gadget image and stream working however would like the main image on the desktop to change at specific times of the day when a new show starts. example: Monday - friday 6am to 10am it shows image 1, and 10am to 2pm it shows image 2 etc... so basically it will change the image for each show 7 days a week. I just cannot figure out how this can be achieved, so any advice would be welcomed or if you can add script for me it would be appreciated.
Script writing is not my forte.
as there are several files and code you can download the gadget file on this link. (right click and save it to desktop first, dont click on gadget link directly as will be gobblygook)
http://www.oilrig.eu.org/gadget
i tried various options with javasctipt but nothing wok, so hope you can figure it out. As you can see from the test2 the time script does show the image but it does not change when the next hour comes.
|
|
|
|
|
The Software life-cycle is an ever changing process. Some parts are a must (Absolute), and some are not. And during the evolution process some parts are added and some are dropped.
How can we decide that a once Absolute task is no longer needed and must be Dissolved?
Every task is there for a reason (since somebody put it there).
Can we drop a task just because we don't see it's importance?
And when does an absolute task become a wall in the way of evolution?
|
|
|
|
|
I know a bit of code but it got boring to me about 8 months ago so I stopped. SO what's a code I can start learning that'll keep me interestee. Also what's the best windows program for a coding prompt? ? Also I ordered these books
-the pragmatic programmer from beginner to journeyman
-programming for dummies
-invent Your Own Computer Games with Python, 3rd Edition
Do you think starting python will keep me motivated and inspired??
|
|
|
|
|
Motivation needs to come from within. If you do not have much interest in programming then no language is likely to change that. Try and decide first what you want to do, and then choose the language or framework that you think will help you achieve that goal. But if you really find it boring then best find some other career path.
|
|
|
|
|
Hello im a newbie program i just started learning programming recently and im still a not good at it. But i want do a program where i have point(for ex. a circle) and it moving on his own from starting point to the end line, he also needs to avoid simple obstacles, and learn his actions and do not do same mistakes again(something like "i was at this pixel before, when i moved to the pixel at the right and there was obstacle so do not do this move on this pixel again). It can be in 2D on bit map(i think ).
I woud like any links to tutorials that will help me or which libraries i should use and where a i should look for help etc
Thank you for you time&help
|
|
|
|