Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate

#sugar-newbies, 2016-06-26

 « Previous day | Index | Today | Next day »     Channels | Search | Join

All times shown according to UTC.

Time Nick Message
10:53 meeting <meeting!~sugaroid@rev-18-85-44-69.sugarlabs.org> has joined #sugar-newbies
14:33 iamutkarshtiwari <iamutkarshtiwari!0e8bee62@gateway/web/freenode/ip.14.139.238.98> has joined #sugar-newbies
15:00 tony37 <tony37!~tony@194.152.247.2> has joined #sugar-newbies
15:00 tony37 hello
15:00 iamutkarshtiwari #startmeeting
15:00 meeting Meeting started Sun Jun 26 15:00:57 2016 UTC. The chair is iamutkarshtiwari. Information about MeetBot at http://wiki.debian.org/MeetBot.
15:00 Useful Commands: #action #agreed #help #info #idea #link #topic #endmeeting
15:01 iamutkarshtiwari Hello
15:01 tony37 Hello
15:01 iamutkarshtiwari How are you?
15:01 tony37 OK - France defeated Ireland to move on
15:01 iamutkarshtiwari Oh..
15:02 I am working on 'overwrite' option of 'Save As'
15:02 tony37 OK - and that option is?
15:03 iamutkarshtiwari If the user 'resumes' an instance from Journal and doesn't change the title, then the alert
15:04 would prompt the user to overwrite.
15:04 tony37 Yes - if the user has given it a name then you have to assume she wants to save it with any changes made overwriting the original
15:05 That is really an important option
15:05 iamutkarshtiwari I will complete that option by the midnight.
15:05 I have also updated my XO-1.75
15:05 tony37 Great!
15:06 iamutkarshtiwari to sugar 0.106
15:06 *latest image*
15:06 tony37 (which is 13.2.5 as an olpc os image
15:06 iamutkarshtiwari let me check. I get confused b/w the version numbers
15:06 tony37 Me too!
15:07 However, this is really important because if your PR doesn't work with 0.106 code, then there is a conflicting change in the github version.
15:07 We need to know when that happens.
15:07 iamutkarshtiwari I am currently working on 'sugar-toolkit-gtk3'
15:08 after I finish it. I'll port 'sugar-toolkit' for the effect.
15:08 tony37 This is parallel to sugar
15:08 iamutkarshtiwari There is no need to make any changes to Sugar for this.
15:09 tony37 save as changes Sugar
15:09 iamutkarshtiwari How?
15:10 tony37 'modifies activity.py  in /usr/lib/python2.7/site-packages/sugar/activity/
15:10 and also /sugar3/activity
15:11 iamutkarshtiwari the 'activity.py' files are inside 'sugar-toolkit/src/sugar/activity' and  'sugar-toolkit-gtk3/src/sugar/activity'
15:11 oh.. I thought you were talking about 'sugar-build/Sugar/'
15:11 tony37 Not in 13.2.5 (0.106)
15:12 I am talking always about the released build, in this case 13.2.5. This is what makes it important because if I try to patch 13.2.5 with changes in github, the result would be catastrophic
15:13 iamutkarshtiwari http://imgur.com/3vnKaj1
15:14 tony37 Changes to Browse; however, do not change Sugar - so we only need to see if it works.
15:16 iamutkarshtiwari Where do we need to make these PR if not on Github?
15:19 tony37: Are you there?
15:19 tony37 Bash scripts
15:19 For simplicity, what I normally do is replace the installed file with the new file (although a patch would be more elegant)
15:19 On the link you sent, it shows 13.2.5 but Sugar 0.108?
15:19 Yes, I think so
15:20 iamutkarshtiwari you have Sugar 0.106 ?
15:20 tony37 Perhaps not, I'll restart
15:20 iamutkarshtiwari no need.
15:20 I am getting your text.
15:20 tony37 has quit IRC
15:20 tony37 <tony37!~tony@194.152.247.2> has joined #sugar-newbies
15:20 iamutkarshtiwari It was a pretty quick restart
15:21 Did you restart your laptop ?
15:21 tony37 No, just hexchat
15:21 iamutkarshtiwari Why dont' update your XO to Sugar 0.108
15:22 tony37 The problem here is that it may take more than a second between responses from the ISP although the data rate is ok
15:22 iamutkarshtiwari It would be better to test our patches on the latest build.
15:22 tony37 I have 0.106 installed at the deployments. Normally, testing a new release takes several weeks to months depending on what has changed. So I only do this once a year.
15:23 This year it will hopefully be 0.110 but that won't be available for serious testing until October.
15:24 iamutkarshtiwari I am planning on getting a Macbook Air. My laptop has started to get some serious issues.
15:24 tony37 From my perspective, we should do both. It would be nice to know that screenshot works with 0.106 and with the github versions
15:24 However, github is seriously unstable.
15:24 iamutkarshtiwari How is macbook for development?
15:25 tony37 Fine, the only problem is Apple uses proprietary software like Microsoft so it is difficult to know when your problem is something special to the Mac.
15:25 iamutkarshtiwari Would testing and making patches for Sugar be easier on MacOS ?
15:26 tony37 However, modern laptops give plenty of storage (this year - 1TB). So it should not be difficult to install a Fedora/Sugar as a VM
15:26 If your laptop has issues - no question
15:27 Something like 16GB should be more than enough since the laptop store is typically 4GB.
15:28 You might want a Fedora 24 + the github version and another with Fedora 18 and Sugar 0.106 - a stable version.
15:28 iamutkarshtiwari My current laptop has 500Gb hdd/6Gb RAM/intel i5-3rd gen processor
15:28 Dell*
15:29 tony37 Sounds like plenty - what are the issues?
15:29 iamutkarshtiwari Battery life, It's quite heavy to carry, Heats a lot now.
15:30 tony37 I know. I also have a Dell plus installed 100+ in the Philippines. They are heavy. A replacement battery should be less expensive than a new laptop.
15:31 It probably has a fan so you may need to check if it is working. The processor and chipset both need protection. Current practice is to have a fan for the processor and a heatsink for the chipset.
15:32 Then the case has a fan.
15:32 Sometimes dirt can get in the case and prevent efficient working by the case fan.
15:32 iamutkarshtiwari I had diassembled my laptop a several times for cleaning purpose.
15:32 :d
15:32 :D
15:33 I'll try to get a new battery.
15:33 tony37 Understand. One of the senior engineers pointed out that, in the end, a computer uses electrical energy to produce heat.
15:33 at Intel*
15:34 iamutkarshtiwari wow. So first I need to fix the heating issue.
15:34 Then i'll get a battery pack.
15:35 tony37 I don't know,but I would give it some attention. Moving to a Mac means relearning a lot of things, staying with what you are used to can be much easier.
15:36 iamutkarshtiwari You are right. I'll get my laptop serviced.
15:36 I agree.
15:36 #Save As
15:36 tony37 What might be interesting is to get a Raspberry Pi (3 if available but the earlier plus versions are fine. With a plastic case, SD card, and wifi dongle, you have a serviceable school server
15:37 Go
15:37 iamutkarshtiwari I need to buy a raspberry pi?
15:38 tony37 According to the email lists they should be available in India
15:38 XSCE has a build that works on a Raspberry Pi
15:39 iamutkarshtiwari oh..so I can use 'raspberry pi' as a school server.
15:40 tony37 Yes - and since a server doesn't need a monitor or keyboard - the cost is probably around $50 all in.
15:41 iamutkarshtiwari What size of sd card should suffice?
15:42 tony37 The biggest you can afford. The newer models use a micro sd chip which is really convenient (most you buy come with the full-size adapter but you just take the chip out of the adapter.
15:42 iamutkarshtiwari 8gb?
15:42 tony37 128GB can be pricy but 32GB or 64GB may be ok. You won't be able to put the full content on - but a lot
15:43 The problem with 8GB is that you will have ample room for software but not much for content.
15:43 The idea of a school server is to provide access to the data not available from the internet
15:44 iamutkarshtiwari All this setup is need for the 'Infoslicer' and 'GetBooks' activities testing.
15:45 tony37 Will certainly be helpful, but it will also let you see and test other school server capabilities. Almost all of my focus is on providing more content for the school server
15:46 You probably would like to have epaath and at least some of e-pustakalaya.
15:46 iamutkarshtiwari #ResumeActivityFeature
15:46 tony37 Currently I am looking at the possiblity of releasing some of the epaath activities as sugar-web-activities
15:46 What did we decice about #save as?
15:47 iamutkarshtiwari Oh..sorrry :D
15:47 tony37 decide*
15:47 iamutkarshtiwari I was telling that I would update you with a patch by tomorrow morning with working 'discard' 'overwrite' and 'save feature'
15:48 options*
15:48 tony37 Can you make this in terms of files to be used for my 0.106 (don't worry about versions - I'll assume that there are no conflicting changes - but for example, replace activity.py with the attached, etc.
15:49 Looking at the gif animation, I have two points you should ignore for the present. First, I think it would be better to replace the text at the left side
15:50 with a single line like 'Please give your file a title' and eliminate the 'save as' text. This should allow a larger font which would make the text more readble.
15:50 iamutkarshtiwari I'll all the modified .py files alongwiththe locations you need to place the.
15:50 tony37 readable*
15:50 iamutkarshtiwari them*
15:50 tony37 Great!
15:50 iamutkarshtiwari send*
15:51 tony37 The other point to be deferred is that I think quit would be a more understandable option than 'discard'.
15:51 iamutkarshtiwari Sure. I'll change it.
15:52 tony37 After you are saftisfied everything is working!!!
15:52 satisfied*
15:52 iamutkarshtiwari haha :D
15:52 I still can't figure out why 'open' malfucntioned on your XO.
15:52 in JSFiddle*
15:52 It was working perfectly at my end.
15:53 tony37 Me either. I am still looking at the toggle issue. I got far enough to encounter an issue (which you probably did long ago).
15:53 iamutkarshtiwari What's the issue?
15:54 tony37 She is using an iframe which essentially contains an independed html file. She is loading it from the activity.root. However, when I try to change the class, I get blocked for security reasons because the src file is in a different disk hierarchy. Oh Well.
15:54 independent*
15:55 iamutkarshtiwari Exactly!
15:55 tony37 So my current approach is to make two copies - one in the activity root and the other in the bundle (data/ directory).
15:55 iamutkarshtiwari That was the same issue that was barring me from toggling the content inside 'iframe' from a toggle button (outside iframe)
15:55 tony37 Haven't had a chance to see if that works.
15:56 Hey, if they made this stuff easy how would we qualify for the high salaries?
15:56 iamutkarshtiwari I agree.
15:57 It's quite difficult for a person with not so good 'html/css/js' skill to resolve such JS bugs.
15:57 tony37 I did fix a couple of things in passing. I use BeautifulSoup to prettify the 'index.html' she generates - makes debugging a lot easier.
15:58 iamutkarshtiwari Did beautifulsoup beutify the 'css' and 'js' code inside 'index.html' file?
15:58 tony37 Cross origin protections have been a major problem for me for a long time.
15:59 The point is that the file does not consist of a single line running off the screen. I think it works well enough.
16:00 iamutkarshtiwari Oh.
16:00 tony37 I also discovered the issue with the text appearing on the tab. She allows a "" title. I changed it to default to "untitled".
16:00 This solved the problem.
16:01 iamutkarshtiwari There was just this 'toggle' and 'js beautify' issues that took me long.
16:01 tony37 Incidentally, Richa did not use jquery - although I think it would have helped. The benefit of the iframe is that it allows isolation between the html needed for the fiddler screen and the html needed by the user.
16:02 iamutkarshtiwari Else python issues are not that difficult to fix.
16:02 tony37 I am trying to make sure that the html in the iframe is exactly what the user should see with save
16:03 The beautify issue came down to text sent to load_string. I changed it to
16:03 text = BeautifulSoup(srctext)
16:03 soup = BeautifulSoup(text)
16:04 browser.load_string(soup.prettify())
16:04 iamutkarshtiwari Oh. I did a 'git reset --hard 'to a specific commit where I removed the use of beautifulsoup'
16:04 tony37 Both steps are needed because 'soup' is not a string but soup.prettify() is.
16:05 iamutkarshtiwari I remember! That's why 'view source' tab did show prettified code.
16:05 did not*
16:05 tony37 Actually, that was working in earlier versions
16:05 iamutkarshtiwari I had already prettified the code in 'view source' using 'html5print'  but after we started facing issues.
16:06 I removed all html5print prettification and I forgot to use BS instead for 'view source'
16:06 :P
16:06 tony37 Meanwhile, back on #resume
16:06 iamutkarshtiwari What changes do we need to make in Home View?
16:07 tony37 I am booting the XO-1.75. Give me a minute
16:08 iamutkarshtiwari tony37: Is there any to flash an update to our XOs using a pendrive rather that simply copy pasting the scripts to their respective locations?
16:08 there any way*
16:09 update ~ our patches
16:10 tony37 You can use a bash script. But the advantage in working with files is that there won't be many and I can diff to make sure the changes are going into the right places in case there is some difference between your base file and mine.
16:11 iamutkarshtiwari How to write those bash scripts.
16:11 tony37 I believe the two files involved in the resume are /usr/lib/python2.7/site-packages/jarabe/desktop - homewindow.py and favoritesview.py
16:11 iamutkarshtiwari I find it tricky working with terminal to cd and mkdir and cat , etc.
16:12 I could rather write scripts to automate the updation .
16:16 tony37 has quit IRC
16:16 tony37 <tony37!~tony@194.152.247.2> has joined #sugar-newbies
16:17 iamutkarshtiwari hello
16:17 Is there any documentaion which can guide me write scripts for updating my XO with my patch files ?
16:20 tony37: hello
16:28 #endmeeting
16:28 meeting Meeting ended Sun Jun 26 16:28:10 2016 UTC. Information about MeetBot at http://wiki.debian.org/MeetBot. (v 0.1.4)
16:28 Minutes: http://meeting.sugarlabs.org/s[…]-26T15:00:57.html
16:28 Log:     http://meeting.sugarlabs.org/s[…]16-06-26T15:00:57
16:28 iamutkarshtiwari has quit IRC
16:28 iamutkarshtiwari <iamutkarshtiwari!0e8bee62@gateway/web/freenode/ip.14.139.238.98> has joined #sugar-newbies
16:29 iamutkarshtiwari tony37: Hello
16:30 iamutkarshtiwari has quit IRC
17:36 tony37 has quit IRC

 « Previous day | Index | Today | Next day »     Channels | Search | Join

Powered by ilbot/Modified.
Webmaster