1,073 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for vegaseat

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
Member Avatar for Lardmeister
2
509
Member Avatar for vegaseat

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
Member Avatar for vegaseat
1
290
Member Avatar for vegaseat

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
Member Avatar for vegaseat
1
281
Member Avatar for Mr.M

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
Member Avatar for Mr.M
0
187
Member Avatar for Siberian

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
Member Avatar for Rashakil Fol
0
346
Member Avatar for vegaseat

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
Member Avatar for ddanbe
1
354
Member Avatar for ddanbe

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
Member Avatar for ddanbe
0
156
Member Avatar for Slavi

Hey guys, i am wondering, if you load a file in basically any language, how much memory does the file occupy. Like there's the case that usually more memory is used rather than the actual size of the file because the data of the file is mapped to data types …

Computer Science
Member Avatar for vegaseat
0
111
Member Avatar for hertzzz

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
Member Avatar for Rhay_1
0
1K
Member Avatar for Zianne

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
0
135
Member Avatar for Elizabeth_6

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
Member Avatar for vegaseat
0
188
Member Avatar for Xhesika

Will somebody please help me solve this algorithm? it says: 2+2x4+2x4x6+2x4x6x8+...+2x4x6x...x20

Computer Science
Member Avatar for JamesCherrill
0
154
Member Avatar for G_S

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
Member Avatar for JamesCherrill
0
285
Member Avatar for mgold

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
Member Avatar for thaifoodlover
0
346
Member Avatar for thaifoodlover

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
0
129
Member Avatar for hadisur_rahman

# Which book are best for Algorithm and Data structure #

Computer Science
Member Avatar for hadisur_rahman
0
129
Member Avatar for shannon_92

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
Member Avatar for vegaseat
-1
419
Member Avatar for vegaseat

A little experiment with custom sorting the result of a word frequency count using Google's Go language.

Computer Science golang
Member Avatar for vegaseat
2
3K
Member Avatar for hefaz

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
1
160
Member Avatar for Summers9

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
Member Avatar for Transcendent
0
189
Member Avatar for Transcendent

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
Member Avatar for jwenting
0
98
Member Avatar for vuquanghoang

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
Member Avatar for Smita_1
0
883
Member Avatar for Baalla

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
Member Avatar for Schol-R-LEA
0
244
Member Avatar for vegaseat

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
Member Avatar for vegaseat
2
437
Member Avatar for samyakonline01

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
Member Avatar for vegaseat
-1
307
Member Avatar for vegaseat

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
Member Avatar for vegaseat
2
890
Member Avatar for vegaseat

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
Member Avatar for vegaseat
1
3K
Member Avatar for vegaseat

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
Member Avatar for vegaseat
0
1K
Member Avatar for vegaseat

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
Member Avatar for vegaseat
0
964
Member Avatar for vegaseat

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.

Computer Science finance golang
0
429
Member Avatar for vegaseat

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
1
1K
Member Avatar for vegaseat

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
1
475
Member Avatar for vegaseat

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
Member Avatar for vegaseat
1
827
Member Avatar for vegaseat

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
0
22K
Member Avatar for hadisur_rahman

# 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
Member Avatar for sepp2k
0
156
Member Avatar for vjcagay

Aside from the Assembly Language, what is the most powerful language?

Computer Science
Member Avatar for vegaseat
-1
4K
Member Avatar for vegaseat

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 …

2
594
Member Avatar for sciwizeh

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
0
344
Member Avatar for vishnus

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
Member Avatar for Future Engr.
0
3K
Member Avatar for jemdev03

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
Member Avatar for jemdev03
0
2K
Member Avatar for Transcendent
Member Avatar for Ene Uran
0
223
Member Avatar for saifN

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
Member Avatar for Ene Uran
0
169
Member Avatar for Bartosz

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
Member Avatar for rubberman
0
132
Member Avatar for Brandon_7

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
Member Avatar for rubberman
0
553
Member Avatar for london-G

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
Member Avatar for london-G
0
243
Member Avatar for Gayal

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
Member Avatar for Ssandhya
-2
3K
Member Avatar for Ralph_3

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
Member Avatar for Ralph_3
0
1K
Member Avatar for Biaa

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
Member Avatar for Schol-R-LEA
0
144
Member Avatar for Ghost0s

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
Member Avatar for Ghost0s
0
195
Member Avatar for iamthwee

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
Member Avatar for iamthwee
0
502

The End.