1,073 Recommended Topics
Remove Filter ![]() | |
Part 2 of exploring/tasting the Swift language takes a look at dictionaries; process flow controls like loops, if/else and switch/case; functions and sorting. I hope I can follow this up with part 3, a closer look at class operations. Computer Science | |
In part 4 of tasting Swift, we explore structures. Swift has added some interesting features to structures like defaults, methods, multiple init(). This way struct objects come close to class objects with a little less overhead. As an option, methods can be added externally too. Take a look! Down the … Computer Science | |
Like most modern languages Swift has sets and set operations. Here is a quick look. Coming in the fall of 2015 ... Swift2 replaces println() with just print() that has a newline default. The sort of thing that Python3 did to print(). There are some other syntax changes. Good news, … Computer Science | |
Hi Dw. Is it possible to permanently burn a file to a re-writable CD/DVD but the files bytes be able to be updates/modified while the file/Media(CD/DVD) is not formattable or the files even formatting a media be un-removed from the media? Thank you. Computer Science | |
I have a question about programming/scripting in general, which I'm still driving over rocky terrian trying to learn. The compiler, regardless what it is; reads though code from top to bottom, does it read though all the lines of code first, or does it stop at functions etc and continue … Computer Science | |
Part 3 of the taste of Swift explores class objects in Apple's Swift language. A class allows you to group methods (class functions) together that belong together. Class Person groups some information of people working in an office. Class Pay inherits class Person and adds pay information. Class File groups … Computer Science | |
Hi all. Would it be a good idea to have a polar coordinate class and derive from it spherical and cylindrical coordinate classes? Or should I keep 3 separate classes? Computer Science | |
hi guys! Im hertz.. s computer science student from the philippines.. and this is my final year, so ive gotta start my thesis... ^^ I need ur help! Im interested in making research/implementation about mobile computing, multimedia, and Artificial Intelligence.. Im hoping that u can give me some possible thesis … Computer Science | |
Recently in an interview I was asked to design a "send invitation for an appointment to multiple contacts in a company". (Something similar to creating an Appointment in Outlook) Here is what I came up with, I would really appreciate some feedback, suggestions, questions. So, after asking few questions, the … Computer Science web-design | |
I hope you can help me with the below exercise. I am trying to get through a programming class and it is getting tough,can you help? The Daily Trumpet newspaper accepts classified advertisements in 15 categories such as Apartments for Rent and Pets for Sale. Develop the logic for a … Computer Science | |
Will somebody please help me solve this algorithm? it says: 2+2x4+2x4x6+2x4x6x8+...+2x4x6x...x20 Computer Science | |
Hello everyone. I am modeling a simple dictionary application using the presentation-business logic-data layer pattern. I already have the design but am not sure it is correct: My presentatioon layer is a simple GUI where users insert their queries. They have a form for entering new words and their definitiom … Computer Science perl sql web-design | |
I've been learning a lot about machine learning (mostly clustering and regressions), but when I've looked into programming libraries/environments, I've found "production ready" ones to be few and far between. What I mean by "production ready" is that it could be incorperated into a product, not just used a tool … Computer Science java | |
Dear DaniWeb community, I am not from computer science background (math guy) but I am interested in machine learning and apache mahout. I have used Mahout CLI and recently looked at development environment and wanted to ask you: while running mahout CLI, we do not have dependencies but in development … Computer Science | |
i am a final year computer science student and im trying to develop a voice based email system for the blind as my final year project,which means the user can operate all the functionalities of an email with voice.what i need to know is what languages should i use in … Computer Science email | |
A little experiment with custom sorting the result of a word frequency count using Google's Go language. Computer Science golang | |
Hi guys! i think this is usefull, a lot of the users have problems with .Net Framework installation, Error code: HRESULT 0xc8000222 Do these to solve: a: Click Start > Run. b: Type cmd and press Enter. Please run the following command in the opened window. net stop WuAuServ c: … Computer Science | |
I am a BTech student in Computer Science. And interested in computers, software, programming languages etc. I have learnt HTML,C,C++. But there are so many things out there....it's confusing what to learn and where. I wanna learn more and achieve more. Like really get good at it..but I lack motivation … Computer Science | |
I have a video meeting with a professor who possibility could give me an assistantship for graduate school and I need some advice. Any advice? Computer Science video | |
In my mind, using linked list is somehow abstract. Despite reading posts with similar topic, I still cannot understand how to apply it in to real problem. My teacher gives my this exercise. In spite of not being mandatory, I want do is to understand the problem: Addition/subtraction /multiplication.. . … Computer Science | |
What are the differences between NP vs NP-Complete vs NP-Hard ? I am aware of many resources all over the web. I'd like to read your explanations to undrestand better Computer Science | |
Just a couple of number tricks to check Go's mathematical abilities. If you have more, let's show them here. Computer Science golang mathematics | |
Hi all I have designed a website on the java and now I am facing many problems of designing and setting the layout. So suggest me the language to be used to designe a website which is more flexible and easyly modification can be done. I selected java on the … Computer Science | |
The story has it that a few hundred years ago the ruler of a big country wanted to reward the creator of the chess game. The creator of the game simply wanted one grain of rice put on the first square of the chessboard, two grains on the second, then … Computer Science golang | |
Another little adventure into Go coding. This time a slice (a Go open ended array) of structures is used as a record for some data processing. For those who miss the ; at the end of a line of code, you can use them, but the lexer of the compiler … Computer Science golang | |
Generators are rather familiar objects in Python. Generators supply data on demand. Using Go you can create a generator with a goroutine and a channel. Here the goroutine is an anonymous function within a function, simple to implement. Computer Science golang | |
Some folks go on vacation around the Easter holidays, so it would be nice to know when Easter happens in the years ahead. I had this as a Python snippet in my "oldies, but goodies" file and translated it to Go. It was actually quite easy in this case, and … Computer Science golang | |
Again, calculate the minimum number of bills or coins required for a given amount of money (change). This time we will use a Go map instead of a csv string converted to a structure. | |
Another translation of one of my Python snippets. This function will return a slice of consecutive prime numbers from 2 to a given value limit. In Go the 'int' type (int32) will go as high as 2147483647, but you can replace 'int' with 'uint64' and go as high as 18446744073709551615. Computer Science | |
This Go snippet calculates the minimum number of bills or coins needed for a given amount of money (change) requested. The program also gives the denomination and number. US curency is used in this example, but can be changed to another currency. Computer Science finance | |
This time just a simple example of grading scores (0 - 100) with letters (A - F). Two approaches are presented, one using switch/case in an "on the fly" function, and the other uses the score as an index to a string of letters F through A. Computer Science golang | |
Reading the content of a web page with a given URL is pretty simple with Go. Here we defer the closing of the response body (at an early point, so we won't later forget) until the program exits. Computer Science http-protocol | |
# Is {(1,1), (2,2), (3,3)} symmetric? transitive? Yes! Yes! ## Why is R = {(1,2), (2,3), (1,3), (2,1)} not transitive? Because (1,1) and (2,2) are missing. ## # Computer Science | |
![]() | Aside from the Assembly Language, what is the most powerful language? Computer Science |
Use Google's modern Go language (aka. golang) to convert a denary number (base 10) to a roman numeral. Just a good exercise to explore Go's map, slice, sort and for loop features. Note that in Go the **:=** is shorthand for assigning a type (by inference) and a value to … Computer Science golang mathematics programming-construct | |
I'm porting some code from a book about ray tracing from C++ to Java, because I like java better and it seems like a decent way to learn how the code works. I ported the code for the Torus Primitive and all seemed well, until I tried to view it … Computer Science | |
Hello everyone, this is my first post in the community. Im doing my 3rd year in Software Engineering. We have a semester project coming up. We are 3 people in one team. I am looking for a good project idea which can be implemented by us in a time frame … Computer Science seo | |
I am planning to create a program with some graphical representation of data from SQL database. What language to use to create graphs? Computer Science | |
What skill/languages do you need to be a data science? Computer Science | |
Hi, What is the time complixity of the following code: Can you please give rules to follow , I couldn't figure it out! func(n) s←0; for i←n to n^3 do j←1; while j < i^2 do j←j×2; s←s+j−i; return(s); Thanks Computer Science | |
How can I use maxOccurs correctly in my code ?? I am getting error of repeating child. Thank you in advance <xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="name"/> <xs:element type="nameType" name="surname"/> <xs:element type="nameType" … Computer Science xml | |
I've been studying computer science and computer programming for years now in high school. I've been accepted to universities that offer two different kinds of degrees. One is Computer Science and one is Software Engineering. I could go either way for which degree I get, I was just wondering if … Computer Science engineering java | |
From what I understand a DBMS is a software that manupulates a database. I am developing a retail checkout system which is link to a SQL database. Is that consideres as a DBMS? Computer Science | |
Hello everyone, I'm a 3rd year uni student from Staffordshire. Now at the placement and looking for a Super Cool Final Year Project. My final year is starting this August and hoping to armor my self better with some research on the project. I still do not have any idea..what … Computer Science | |
I need to be able to generate random graphs (both general and bipartite). I require that the generated graph have a specified number of vertices and edges (in the bipartite case the number of vertices on each side is specified). My particular problem is that I also require that the … Computer Science | |
what is the Running time of the given code? #include<stdio.h> int main(){ char str[100]; int i=0,j=-1,flag=0; printf("Enter a string: "); scanf("%s",str); while(str[++j]!='\0'); j--; while(i<j) if(str[i++] != str[j--]){ flag=1; break; } if(flag == 0) printf("The string is a palindrome"); else printf("The string is not a palindrome"); return 0; } Computer Science | |
hey i want to start learning software engeneering from home but ihave a question should i learn to code first imean learn a language or should i start by the other theorical things (OS's,microprocessors Arch ....) Computer Science | |
![]() | Hi Guys, So this thread is going to be a tutorial on cross platform GUI programming the easy way. In this tutorial I'll be exploring all Operating systems, mainly, windows 7, mac os x and the most popular linux distro at the moment (Ubuntu). However, I won't be using the … Computer Science ![]() |
The End.