Category Archives: cs-wsu

Git Hub Headaches…

Image

Hello again,

So there have been no new developments for the coloring page.  I have been waiting for concrete commitment on layout from the Worcester Art Museum but as of yet there seems to be no consensus as to how the page should ultimately look.  That said I was still busy this week.

I spent Monday night trying to understand why the puzzle teams code won’t load the image on the pieces.  Unfortunately I could not solve their problem, but I did find an alternative solution which even came with a few extra bells and whistles, like a timer and movement counter as well as snap positioning.  Its basically a javascript file built on top of jQuery which is provided as freeware by google.  I even showed of a pic of my dog Chewie, seen in the photo above.

Well, you might be wondering at this point, why the title of this article is Git Hub Headache.  I would answer that question with “Git Hub was a huge headache this week”.  I tried to learn the Git Hub command lines this week, which was not so bad.  Sompop’s Git Hub power point presentation was definitely helpful. I could clone the repository, I could add my files to a branch, but I could not figure out how to actually commit them.  After a while spent with no luck, I decided to change strategies.

I then tried to clone the repository with netbeans, but netbeans wanted me to make a project file which did not make sense seeing the 401Project is not being developed exclusively in netbeans.  After a few hours spinning my wheels… I decided to just go to the website thinking there must be some way to do this from that end.  I selected the development branch and cloned the repository.  Then I added my files and committed them to what I thought was the development branch.  However when I checked to see if it had uploaded correctly the changes had been made to the master branch.

At this point I was becoming thoroughly frustrated.  I looked for a few ,minutes for a way to remove the upload but then just moved on.  My last attempt was in the Git Hub app fro mac.  It took a bit of looking but I was able to branch off the development branch and commit my files.  However my branch contained all the file from the development branch an I was not sure If that was normal.  I suppose it would be, so you can run the whole application but only be change your particular part.  At this point I was just happy the files were uploaded.

Any way that was it for the week.  Hopefully next week will be more fruitful.

Till next time.

Jason Hintlian

From the blog jasonhintlian » cs-wsu by jasonhintlian and used with permission of the author. All other rights reserved by the author.

Week 3/3 – 3/10

This week had our weekly class meeting and we all decided it was time to get a working version of the iPad application we have all been working on. Even if it was the basic framework, it was just something that we could deploy and for Tim and others at the Worcester Art Museum to view.

That was one of our goals this week was to get the puzzle demo up on GitHub for the development branch. A working demo is now deployed on the development branch as of this morning. We where having difficulty this week trying to get the puzzle activity application to work. We before had a demo that would allow the user to move puzzle pieces as the shape of squares around, but Tim was looking for the actual jigsaw piece type. So we had to go back to the drawing board and figure out how this could be done. I found online there was a tool called kinetic.js which allowed you to move pieces around by creating kinetic.shapes, objects, etc. I thought it was a very cool tool. If any of you want to look at it for future projects down the road or just for fun to learn here is the link:

http://www.html5canvastutorials.com/kineticjs/html5-canvas-drag-and-drop-tutorial/

We then found someone had an open source code that allowed the user to give it a image and it would separate them into many puzzle pieces that you could move. Unforutnatly we tried giving this a shot and every time the image would come out black. We asked another student in the class and they looked at it over night and still had no luck to get that to work. So this was then when we said we cannot use Kinetic.js any longer. Jason who looked at our puzzle activity code, pointed us to another open source code from Google that had everything we where exactly looking for. The link that he had sent out to us, I actually came across along my way at the beginning of researching how to create puzzles with HTML, JavaScript, and CSS. This one was using all of theses languages along with the jQuery UI tool. I think that was the key feature that we where missing. I had a feeling we where going to need to use jQuery at some point for this.

So after looking at the link for the open source code again, we had a working puzzle activity that can now be viewed by everyone on the CS401 Repository Development branch. Here is an screenshot of the layout:

Image

It allows the user to move pieces all around on the screen, has a timer which I wanted to implement into the original first Demo we showed and tells you the number of movements. Along with bringing a nice frame around the puzzle. It has the snap feature so when the piece is in the correct location the frame lights up green and then snaps the piece there and you can move on to the next one.

That is all for this week. Looking forward to seeing this first deployment with everyone’s work together.

From the blog rwilliams5262 » cs-wsu by rwilliams5262 and used with permission of the author. All other rights reserved by the author.

Intro to the coloring…

img1 img2

Hello,

No matter how much time you have put into a project, is good to keep an open mind about going back to the drawing board and making changes. There are always new ideas, new improvements, new and exiting add ons.  I say this because, during the first part of the semester, there has been, at times, a little bit of miscommunication  with our client, and thus some of our ideas have probably not gone totally in the right direction. Well, I guess that is part of any software development process and definitively a part of the learning process as well; fortunately is still early in the semester and there should be plenty of time to correct for this.

Last week, our clients suggested they would like to have a brief intro to the coloring book and the puzzle sections. The intro would say something like “These sculptures are white but back in the day they used to have colors. Help us color these”. In response to that, one idea is to have a small slideshow of floating images and a brief legend next to them. Once the user wants to start coloring, there is a button that takes to the main coloring app.

The slideshow and the link to the page are working now, and the idea could be adopted in the coloring app or maybe adapted somewhere else in the main program, in any case, it can be further stylized with css. The images here provided are just  snapshots but the code will be available hopefully soon in the CS401 server.

Until next week.

Beto

From the blog betoluna » CS WSU by betoluna1 and used with permission of the author. All other rights reserved by the author.

I ran the website(slideshow) on my iPad!

I figured I should post an update about this. Whether it was suppose to work or not, I was able to get onto the server at home using the “209.xxx.xxx.xxx” address. I blanked it out since I’m not sure if that should be public knowledge yet?

Two things I would like to say. firstly, the Jquery slide functions DO work on the ipad. Their were no issues there. The only thing as of now with it is you can’t drag. It is more of a swipe which in turn moves the screen, instead of a dragging and scrolling type deal. I’ll try and see what I can do about this, if anything. But it is functional as of now.  The second issue that is probably a main function in KioskPro, is that you can swipe up and down the page. As in you can pull a page up and see underneath it (the rubber band like effect). This is probably what KioskPro fixes, I just haven’t heard anyone mention it.

Now that we know Jquery works, I’m hoping the rest of the teams can get their things up on GitHub. I’d like to do some testing on my ipad! Best of luck!

 

From the blog Sean » cs-wsu by shorton1 and used with permission of the author. All other rights reserved by the author.

I ran the website(slideshow) on my iPad!

I figured I should post an update about this. Whether it was suppose to work or not, I was able to get onto the server at home using the “209.xxx.xxx.xxx” address. I blanked it out since I’m not sure if that should be public knowledge yet?

Two things I would like to say. firstly, the Jquery slide functions DO work on the ipad. Their were no issues there. The only thing as of now with it is you can’t drag. It is more of a swipe which in turn moves the screen, instead of a dragging and scrolling type deal. I’ll try and see what I can do about this, if anything. But it is functional as of now.  The second issue that is probably a main function in KioskPro, is that you can swipe up and down the page. As in you can pull a page up and see underneath it (the rubber band like effect). This is probably what KioskPro fixes, I just haven’t heard anyone mention it.

Now that we know Jquery works, I’m hoping the rest of the teams can get their things up on GitHub. I’d like to do some testing on my ipad! Best of luck!

 

From the blog Sean » cs-wsu by shorton1 and used with permission of the author. All other rights reserved by the author.

Data Base Put on Wait – Working on Screen Saver.

For the past fews weeks, beside learning more about Javascript, HTML and CSS myself, i and my group was doing researches on how to save data on the local machine within the web browser. We came to the decision that we were going to use a hosted server to save data because although we can store data inside web browsers, we can not access them. By using a hosted server and Kiosk, we can save data on the hosted server (of course it is accessible) and also provide the copy of the data to the local machine (so it wouldn’t cause any problem if the connection between the machines and the hosted server is lost). 

While my group is waiting for the server provided, i and Sompop formed a team working on the screen saver for WAM project. The way it works is that when the iPads are in idle status, the screen saver will be activated. When a user comes and touch the screen, the screen saver will be deactivated and the homepage will pop up.

For the last week, i was searching around and found some sources of information on how to make the screen saver. I’m still not clear on how to make the screen saver, except some ideas of where possibly to begin. Here are what i found: 

Create screensaver using jquery | jquery screensaver

http://www.getallfix.com/2012/08/create-screensaver-using-jquery-jquery-screensaver/

How to Create A JavaScript Web Page Screen Saver

http://www.webreference.com/programming/javascript/gr/column7/index.html

Create Your Own Web-based Screensaver

http://www.wynia.org/wordpress/2005/08/create-your-own-web-based-screensaver.

I’ll have what i got more organized and try to have something to show class next week.

 

From the blog daunguyen10's Blog » CS-WSU by daunguyen10 and used with permission of the author. All other rights reserved by the author.

WAM: Database Side.

Not much was done on my part during the past week, I mostly just played the waiting game while our WSU IT guys configure the server for us, since we need that in order to progress further. Originally my group had planned on doing it ourselves since most of us have a good amount of experience using VMWare, but that just wasn’t to be. More coming once we get the server!

From the blog CS:401 » CS-WSU by dcarlin2013 and used with permission of the author. All other rights reserved by the author.

My own private web server

One plus about working full time as a system admin while finishing my degree – toys.  I got lucky to borrow an iPad from work for the WAM project, and am just as lucky to have access to a web server for testing!

I ended up configuring my own web server this weekend to make sure I was capable of administering the WAM site.  We use VMWare at work, so I was able to create a test server running CentOS 6.3.  I normally use Debian for these sort of things, but I hear CentOS is the next best thing these days, if not the better choice for enterprise web servers (hence the name Community Enterprise OS).

I configured the network card, ran updates, installed VMWare Tools (probably not necessary since I’m not using Gnome), installed apache, mysql, and python modules.  For prep work on the internet network, i created a DNS record, and began looking into opening up the firewall for external web access.  This is where i ran into a problem.  The only available static IP addresses were at our other branch – and the ones I ordered this year were not yet configured to be available on our switch (not without relocating the firewall to the new demarc).  I guess I’ll just need to VPN into the server for others to see it for now.  So far so good though.  Only need to create some python scripts, and a basic mysql table to pull from, and we’ll only be one step away from presenting a workable proof of concept to the class.  For those of you interested in looking into a Python/MySQL tutorial, take a look at the following site.  It helped me some (but only for Ubuntu or other non-RPM compatible OS distros).  http://zetcode.com/db/mysqlpython/

More to come..

From the blog mikesaguirre » cs-wsu by mikeaguirre and used with permission of the author. All other rights reserved by the author.

Weekly Update..

So we finally were able to have a class meeting after the 2 weeks of having to meet on IRC chat due to snow storm and no school. It gave us the chance to get a better view where everyone stands. We got a chance to show Tim a working demo of the puzzle application. He liked some of the features, but was hoping for the pieces to be jigsaw shaped instead of having pieces that were shaped as squares and move those around. So this week has been trying to figure out a way to creates pieces in that shape. I found a couple ideas that might work. There is a tool out there called kinetic.js which allows us to create drag able and moveable pieces. I found that somebody had created a puzzle with this feature and was looking at his code to get an idea how we could do this. We would have to change the code we have so far to get this to work. I still have had no luck with getting this up and running. I also was looking online finding ways to do it with jQuery UI and javascript. I have no experience working with jQuery tools. So I think I would need some help within that area to get this going. Overall a decent week but kind of stressful due to not knowing how to implement some of theses tools and hope for a working demo in the end. I will be bringing this up in our discussion tomorrow during class.

From the blog rwilliams5262 » cs-wsu by rwilliams5262 and used with permission of the author. All other rights reserved by the author.

Week ending 3/2/13, part 2 (ScreenSaver & Slideshow)

So I think I found how to make it so that after some idle time, it will go into the screensaver.

We can do that with the function setTimeOut() as described in here, http://stackoverflow.com/questions/13907894/how-to-create-screensaver-like-screen-in-html-jquery

Also, I was thinking that maybe after the app goes into the screensaver, it should return to the homepage instead of the current page?

I also found this blog here that shows many different jquery plug-ins for slideshow, http://vandelaydesign.com/blog/web-development/jquery-slideshow/

So I think I have an idea of what to do now. I hope I can get something done so I can show the class tomorrow.

From the blog ssuksawat » cs-wsu by ssuksawat and used with permission of the author. All other rights reserved by the author.