-
Posts
323 -
Joined
-
Last visited
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by Renfield-64
-
Meraki & iPads - Specify time for app install
Renfield-64 replied to Renfield-64's topic in Mobile Devices & Tablets
Oh yes that's a good point. Maybe do 5 at a time. Thanks, -
Meraki & iPads - Specify time for app install
Renfield-64 posted a topic in Mobile Devices & Tablets
Does anyone using Meraki know how to delay the MDM from rolling out apps? The problem I have is I select apps in the dashboard and roll them out to 45 iPads but this results in strangling our crappy internet connection to death whilst they install. If I could delay the updates until the evening or overnight it wouldn't affect anyone. Any ideas? -
Ok thanks for your help. Will give it a go.
-
Ok I have a Mac, so what program do I need to use and do I plug each one in to set them up?
-
No the iPads aren't set up, they are straight out of the box. I want Meraki to set them up or some automation anyway.
-
Hi, I am trying to use Meraki and all seems well so far but the main thing I want to do is set up 35 iPads. I don't want to have to go thro' the 'Hello' etc thing on each iPad. Where do I go from here?
-
VLAN - Transparent proxy - portal
Renfield-64 replied to Renfield-64's topic in Internet Related/Filtering/Firewall
Many thanks, I'll give it a go -
VLAN - Transparent proxy - portal
Renfield-64 replied to Renfield-64's topic in Internet Related/Filtering/Firewall
We have Meru wireless network. -
Hi, we are about to have a VLAN via transparent proxy set up alongside our existing wifi network for visitors and eventually staff/children BYOC. Does anyone know of a way to make the user go through a preset web page like they would in Wetherspoons, Costa etc? They would then have to tick a box after agreeing to T & Cs before they were allowed onto the web.
-
Pibrella & pushbuttons
Renfield-64 replied to Renfield-64's topic in Raspberry Pi, Arduino & Other SBCs
Thank you so much . It worked just fine. I promise I will give you credit for this when I show my students Best regards, Renfield -
Pibrella & pushbuttons
Renfield-64 replied to Renfield-64's topic in Raspberry Pi, Arduino & Other SBCs
Ok that sounds sensible. Here is what I have so far: import pibrella import time while True: if pibrella.button.read() == 1: pibrella.light.red.on() time.sleep(2) pibrella.light.red.off() I hope the formatting shows correctly on this post, I have put the right indents etc. Thanks, -
Pibrella & pushbuttons
Renfield-64 replied to Renfield-64's topic in Raspberry Pi, Arduino & Other SBCs
Thanks. Would you know what the code would be for this? Sorry, I am quite new to python. -
Hi We are using python to program the pibrella and have been using the push button to make one of the LEDs come on. Does anyone know the code to make a different LED come on when the button is pressed twice or held down? This is a function commonly used in electronics to make a push button have more than one function but I'm not sure how to code it.
-
[ipad] Meraki VPP redistributing apps
Renfield-64 replied to Tammie's topic in Mobile Devices & Tablets
Hi, No I am not using any management system. Just want to let people install them manually. -
[ipad] Meraki VPP redistributing apps
Renfield-64 replied to Tammie's topic in Mobile Devices & Tablets
I have set up all of our teacher iPads with their own account, around 50 devices now. I enrolled in the VPP and yesterday bought our first app for a teacher. I have a redeemable code but when we go to download the app on the iPad there is nowhere to enter the code, only the option to buy it. Has anyone been able to do this? -
Technical fault database required
Renfield-64 replied to Renfield-64's topic in Network and Classroom Management
Thanks I'll give it a try -
Technical fault database required
Renfield-64 replied to Renfield-64's topic in Network and Classroom Management
Can you recommend any? I don't really want spend any money as it's only me that will be using it. -
Hi, what do people use as a technical fault database? I would like to have a database where I could log faulty equipment, progress, repairs etc. Ideally I would like someone to create one for me using Visual Express or similar as I haven't learnt to use the software yet. Any offers? Maybe someone has one already that I could pilfer? Cheers.
-
You might find that some kids aren't given the appstore password by their parents (a wise decision if there is payment linked to the store). I would suggest that the kids installed the relevant app at home with the help of their parents, overcomes problems in the lessons, wasting time etc.
-
Hi, although we haven't yet started BYOD there are some things to consider: You should set up a separate wifi network - VLAN - so that you can a) Change the passcode frequently and b) have a transparent proxy so that you wouldn't have to set up proxy details on each device. Any apps they download will have to be controlled (if at all) by parents. You shouldn't need to get involved with this as it is their device. Have you got in place a policy for BYOD? Things like who is responsible for the device in school if it gets stolen, lost or damaged. This should always be the students responsibility and you should get parents to sign some sort of disclaimer that the school will not be held responsible for their devices. There are probably already documents out there which you can borrow from to suit your school.
-
The kids are the best ones to fall for it. I've just had a year 6 girl carrying an 8 port netgear switch really, really slowly around the whole school. I told her it was the wireless internet and that it would beep if she found a strong signal. She reported back, looking disappointed, that it didn't beep once!
-
Mmmm...no, its properly formatted in Idle. I have copied and pasted this from my PC from Notepad++ where it is also properly formatted. Not sure what is happening here.
-
Sorry, misread it.... [/color][color=#333333][font=Verdana]# PiBuster Code[/font][/color][color=#333333]# PiBuster from Raspberry Pi for Dummies[/color] [color=#333333]import pygame, sys, time, random[/color] [color=#333333]from pygame.locals import *[/color] [color=#333333]pygame.init() # initialize pygame[/color] [color=#333333]# This section deals with setting up the game window[/color] [color=#333333]gameSurface=pygame.display.set_mode((440,480)) # playing area size (pixels - width,height)[/color] [color=#333333]pygame.display.set_caption('MrG-PiBuster') # Caption on window title bar[/color] [color=#333333]pygame.mouse.set_visible(0) # You won't see the mouse pointer in the game window[/color] [color=#333333]# This section deals with the colours used in the game (note: we have to use the American spelling of 'color' (boo! hiss!))[/color] [color=#333333]SHADOW = (192, 192, 192) # The numbers in the brackets are the RED, GREEN and BLUE (RGB) values for the colours[/color] [color=#333333]WHITE = (255, 255, 255) # Example: 255, 255, 255 is white, 0, 0, 0 is black, 200, 0, 0 is RED[/color] [color=#333333]LIGHTGREEN = (0, 255, 0) # In this game we will use the colours we have created [/color] [color=#333333]GREEN = (0, 200, 0) # here as it is easier than typing in the numbers[/color] [color=#333333]BLUE = (0, 0, 128)[/color] [color=#333333]LIGHTBLUE = (0, 0, 255)[/color] [color=#333333]RED = (200, 0, 0)[/color] [color=#333333]LIGHTRED = (255, 100, 100)[/color] [color=#333333]PURPLE = (102, 0, 102)[/color] [color=#333333]LIGHTPURPLE = (153, 0, 153)[/color] [color=#333333]gameSurface.fill(WHITE) # Turns the game surface white[/color] [color=#333333]pygame.display.update()[/color] [color=#333333]# This section deals with positioning the ball[/color] [color=#333333]def drawball(x,y):[/color] [color=#333333]pygame.draw.circle (gameSurface,BLUE,(realx(x)+10,realy(y)+10),10,0)[/color] [color=#333333]pygame.draw.circle (gameSurface,LIGHTBLUE,(realx(x)+6,realy(y)+6),2,0 )[/color] [color=#333333]pygame.display.update()[/color] [color=#333333]# drawbat - Routine to draw the bat[/color] [color=#333333]def drawbat(x):[/color] [color=#333333]pygame.draw.rect (gameSurface,LIGHTPURPLE,(realx(x),realy(BATY),40, 4))[/color] [color=#333333]pygame.draw.rect (gameSurface,PURPLE,(realx(x),realy(BATY)+4,40,6))[/color] [color=#333333]pygame.draw.rect (gameSurface,SHADOW,(realx(x),realy(BATY)+10,40,2) )[/color] [color=#333333]pygame.draw.rect (gameSurface,SHADOW,(realx(x)+38,realy(BATY),2,12) )[/color] [color=#333333]# This section deals with drawing shapes on the game surface[/color] [color=#333333]#pygame.draw.rect(gameSurface,PURPLE,(16,16,406,2) )[/color] [color=#333333]#pygame.draw.rect(gameSurface,PURPLE,(16,16,2,440) )[/color] [color=#333333]#pygame.draw.rect(gameSurface,PURPLE,(422,16,2,440 ))[/color] [color=#333333]# This section deals with drawing the bricks[/color] [color=#333333]def realx(x):[/color] [color=#333333]x=x*20[/color] [color=#333333]return x[/color] [color=#333333]def realy(y):[/color] [color=#333333]y=y*20[/color] [color=#333333]return y[/color] [color=#333333]def drawbrick(xcoord,ycoord,col):[/color] [color=#333333]if col==1:[/color] [color=#333333]boxcolor=GREEN[/color] [color=#333333]highlightcolor=LIGHTGREEN[/color] [color=#333333]else:[/color] [color=#333333]boxcolor=RED[/color] [color=#333333]highlightcolor=LIGHTRED[/color] [color=#333333]pygame.draw.rect (gameSurface,boxcolor,(realx(xcoord),realy(ycoord) ,20,20))[/color] [color=#333333]pygame.draw.rect (gameSurface,highlightcolor,(realx(xcoord),realy(y coord),2,20))[/color] [color=#333333]pygame.draw.rect (gameSurface,highlightcolor,(realx(xcoord),realy(y coord),20,2))[/color] [color=#333333]pygame.draw.rect (gameSurface,SHADOW,(realx(xcoord)+18,realy(ycoord ),2,20))[/color] [color=#333333]pygame.draw.rect (gameSurface,SHADOW,(realx(xcoord),realy(ycoord)+1 8,20,2))[/color] [color=#333333]# This section deals with displaying 'End of game' type messages[/color] [color=#333333]def showtext(text):[/color] [color=#333333]fontObj=pygame.font.Font('freesansbold.ttf',64) # The font name and size.[/color] [color=#333333]textsurface=fontObj.render(text, True, PURPLE, WHITE) # PURPLE is the text colour, WHITE is the background color.[/color] [color=#333333]textRectObj=textsurface.get_rect() # Creates a rectangle to display the text.[/color] [color=#333333]textRectObj.center=(220,200) # Puts the rectangle at position X=220 and Y=200 (note the American spelling of 'center')[/color] [color=#333333]gameSurface.blit(textsurface,textRectObj) # Puts your text in the rectangle.[/color] [color=#333333]pygame.display.update()[/color] [color=#333333]# Now we can create some functions to tell the program what text we would like in the box.[/color] [color=#333333]def gameover():[/color] [color=#333333]showtext('GAME OVER')[/color] [color=#333333]time.sleep(8) # Show the message for 8 seconds.[/color] [color=#333333]engame() # This bit runs the 'endgame' function & quits Pygame and closes the PiBuster window.[/color] [color=#333333]def gamewon():[/color] [color=#333333]showtext('GAME WON!')[/color] [color=#333333]time.sleep(8) # Show the message for 8 seconds.[/color] [color=#333333]engame() # This bit runs the 'endgame' function & quits Pygame and closes the PiBuster window.[/color] [color=#333333]def endgame(): # The 'endgame' funtion.[/color] [color=#333333]pygame.quit()[/color] [color=#333333]sys.exit()[/color] [color=#333333]# This funtion checks the program to see if the player has won.[/color] [color=#333333]def havetheywon():[/color] [color=#333333]if score==brickcount: # Every time the player knocks out a brick the program checks[/color] [color=#333333]return True # the remaining bricks against the original number of bricks and adds one[/color] [color=#333333]else: # to the score and keeps going (return False) until they are all gone (return True).[/color] [color=#333333]return False[/color] [color=#333333]# This section deals with creating the game map[/color] [color=#333333]map=[[/color] [color=#333333]#--------0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9-- # There is a space between each number on this line[/color] [color=#333333][0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0],[/color] [color=#333333][0,0,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0],[/color] [color=#333333][0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,1,1,1,1,0,0,1,1,1,1,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0],[/color] [color=#333333][0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,2,2,2,2,2,2,2,2,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,0,0,0,2,2,0,0,0,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[/color] [color=#333333][0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[/color] [color=#333333]][/color] [color=#333333]# This section checks the game map to see if there should be a brick there.[/color] [color=#333333]brickcount=0[/color] [color=#333333]for x in range(1,21):[/color] [color=#333333]for y in range(1,20):[/color] [color=#333333]if map[y-1][x-1]!=0:[/color] [color=#333333]drawbrick(x,y,map[y-1][x-1])[/color] [color=#333333]brickcount+=1[/color] [color=#333333]pygame.display.update()[/color] [color=#333333]# This section deals with positioning the bat and setting the players score to zero at the start of game.[/color] [color=#333333]#initialize bat and score[/color] [color=#333333]batx=random.randint(1,19) # Puts the bat in a random place at bottom of screen[/color] [color=#333333]BATY=20[/color] [color=#333333]drawbat(batx) # Draws the bat by calling the routine we created earlier called 'drawbat'[/color] [color=#333333]score=0 # Sets the score to zero[/color] [color=#333333]pygame.display.update()[/color] [color=#333333]def blank(x,y):[/color] [color=#333333]pygame.draw.rect (gameSurface,WHITE,(realx(x),realy(y),20,20)) # This draws a white square where the bat used to be[/color] [color=#333333]# before you moved it. Its used to make the ball move[/color] [color=#333333]# too and make bricks disappear.[/color] [color=#333333]def clearbat(x): # This routine clears the bat. Because the bat is 2 squares long we have to run it twice.[/color] [color=#333333]blank(x,BATY)[/color] [color=#333333]blank(x+1,BATY)[/color] [color=#333333]pygame.display.update()[/color] [color=#333333]# This section deals with randomly putting the ball in an empty area at the top of the screen.[/color] [color=#333333]ballx=0[/color] [color=#333333]bally=0[/color] [color=#333333]while map[bally-1][ballx-1]!=0 or ballx==0:[/color] [color=#333333]ballx=random.randint(1,20)[/color] [color=#333333]bally=random.randint(1,7)[/color] [color=#333333]ballxdir=1[/color] [color=#333333]ballydir=-1[/color] [color=#333333]drawball(ballx,bally)[/color] [color=#333333]# This section defines how fast the ball will travel.[/color] [color=#333333]FPS=20 # Frames per second = 20[/color] [color=#333333]fpsClock=pygame.time.Clock()[/color] [color=#333333]pygame.key.set_repeat(1,1) # This bit enables the key to be held down to move the bat without having to keep pressing it.[/color] [color=#333333]# This bit updates the screen and creates a slight delay [/color] [color=#333333]#(2.5 seconds in this case) before the game starts.[/color] [color=#333333]pygame.display.update()[/color] [color=#333333]time.sleep(2.5)[/color] [color=#333333]# This section is the main game loop, it checks for key presses,[/color] [color=#333333]# moves the bat if required, moves the ball, knocks out bricks,[/color] [color=#333333]# updates the screen, checks if a player has won.[/color] [color=#333333]# MAIN GAME LOOP[/color] [color=#333333]while True:[/color] [color=#333333]for event in pygame.event.get():[/color] [color=#333333]oldbat=batx[/color] [color=#333333]if event.type == QUIT:[/color] [color=#333333]endgame()[/color] [color=#333333]if event.type==KEYDOWN:[/color] [color=#333333]if event.key==K_RIGHT: # If the Right arrow key is pressed[/color] [color=#333333]batx=batx+1 # move the bat 1 space to the right.[/color] [color=#333333]elif event.key==K_LEFT: # If the Left arrow key is pressed[/color] [color=#333333]batx=batx-1 # move the bat 1 space to the left.[/color] [color=#333333]if batx==0 or batx==20: # This bit stops[/color] [color=#333333]batx=oldbat # the bat from[/color] [color=#333333]clearbat(oldbat) # going off[/color] [color=#333333]drawbat(batx) # the screen.[/color] [color=#333333]# This section deals with making the ball move.[/color] [color=#333333]oldballx=ballx[/color] [color=#333333]oldbally=bally[/color] [color=#333333]if ballx==1:[/color] [color=#333333]ballxdir=10[/color] [color=#333333]if ballxdir==20:[/color] [color=#333333]ballxdir=-1[/color] [color=#333333]if bally==1:[/color] [color=#333333]ballydir=1[/color] [color=#333333]# uncomment the two lines below for cheat mode.[/color] [color=#333333]# if bally==BATY-1:[/color] [color=#333333]# ballydir=-1[/color] [color=#333333]pygame.display.update()[/color] [color=#333333]if havetheywon()==True: # If the conditions to win the game have been met[/color] [color=#333333]gamewon() # then go to 'gamewon' function.[/color] [color=#333333]fpsClock.tick(FPS)[/color] [color=#333333]# This section deals with the ball hitting the bat.[/color] [color=#333333]if bally==BATY-1: # This is the [/color] [color=#333333]batleft=batx # code for bouncing[/color] [color=#333333]batright=batx+1 # the ball off the bat.[/color] [color=#333333]if ballx>=batleft and ballx<=batright:[/color] [color=#333333]ballydir=-1[/color] [color=#333333]if ballx+ballxdir>=batleft and ballx+ballxdir<=batright: # This code finds out[/color] [color=#333333]ballydir=-1 # if the ball has reached[/color] [color=#333333]if bally==BATY: # the same level as the bat,[/color] [color=#333333]gameover() # if so, the game is over.[/color] [color=#333333]ballx+=ballxdir # This code changes the direction[/color] [color=#333333]if map[bally-1][ballx-1]==0: # of the ball depending[/color] [color=#333333]bally+=ballydir # on what it hits.[/color] [color=#333333]# This section deals with the scoring.[/color] [color=#333333]if map[bally-1][ballx-1]!=0:[/color] [color=#333333]blank(ballx,bally)[/color] [color=#333333]map[bally-1][ballx-1]=0[/color] [color=#333333]bally=oldbally[/color] [color=#333333]ballx=oldballx[/color] [color=#333333]ballydir=-ballydir[/color] [color=#333333]if random.randint(1,10)>5 and map[bally+ballydir-1][ballx-ballxdir-1]==0:[/color] [color=#333333]ballxdir=-ballxdir[/color] [color=#333333]score+=1[/color] [color=#333333]blank(oldballx,oldbally)[/color] [color=#333333]drawball(ballx,bally)[/color] [color=#333333]
-
Oh, it came out the same...
