topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 26, 2024, 5:00 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jgpaiva [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6 7 ... 184next
26
I did indeed miss this thread :)
But I think that the links tomos posted are awesome, they should help you create this grid, which in fact is really simple.
Something similar to this should work: (disclaimer: I did not test this)
[Groups]
  NumberOfGroups = 12

[1]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*0

[2]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*1
  TriggerBottom = [Monitor1Top]  + [Monitor1Height]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*0

[3]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*1

[4]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*2
  TriggerBottom = [Monitor1Top]  + [Monitor1Height]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*1

[5]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*2

[6]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*3
  TriggerBottom = [Monitor1Top]  + [Monitor1Height]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*2

[7]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*3

[8]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*4
  TriggerBottom = [Monitor1Top]  + [Monitor1Height]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*3

[9]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*4

[10]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*5
  TriggerBottom = [Monitor1Top]  + [Monitor1Height]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*4

[11]
  TriggerTop    = [Monitor1Top]
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*6
  TriggerBottom = [Monitor1Top]  + [Monitor1Height] /2
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*5

[12]
  TriggerTop    = [Monitor1Top]  + [Monitor1Height] /2
  TriggerRight  = [Monitor1Left] + [Monitor1Width]  /6*6
  TriggerBottom = [Monitor1Top]  + [Monitor1Height]
  TriggerLeft   = [Monitor1Left] + [Monitor1Width]  /6*5

27
JGPaiva's GridMove and Ahk Tools / Re: GridMove: Grids Here
« on: September 03, 2013, 06:45 AM »
For that, you really need to edit your grids to make sure that everywhere you see "monitor2bottom", you replace with "monitor2bottom+20" (assuming the toolbar takes 20pixels). You probably should also replace "monitor2height" with "monitor2height-20", to make sure the height of the screen is also adjusted correctly.

28
Hi Oblivion!
Try using a coma (","), it should work. If it doesn't, just select the window you want to make detectable and press F8.

29
I really can understand the objective of "no more reinventing the wheel" (I think a sexier tagline would be "Mewlo: it's the wheel for user management, don't reinvent it" :P ). I also feel that this is a very useful project.

However, and I'm sorry if I'm being a bit thick, but what exactly is the advantage of building Mewlo from scratch instead of being an extension of django, drupal or something like that? Seems like you're reinventing the wheel yourself on stuff that isn't related directly to user management? :P

I'm looking forward to reading that document on Mewlo :)

30
I'm looking forward to seeing what comes out of this :)

Could you provide some more info on what you plan to build? I cannot locate this on the current panorama of things (which I guess is a good thing and motivates a need for it? ;) )

So, can it be an extension for flask or django (or similar), or can it have bindings to talk to any of the two, or is it meant to replace them completely?
In your mind, what's the main feature, that's missing on what exists already?

31
Living Room / Re: KPMG: Say it ain't so.
« on: July 04, 2013, 08:56 AM »
"Keep Plundering Money Greedily"
Interestingly, this thread is now the first google hit for those keywords :P

32
What a surprise!  His outdoors dance appears to be in front of a sign welcoming motorists to Woonsocket, Rhode Island - a town about 25 miles from where I was born and raised.  Didn't know this guy, though.
This guy is actually fairly famous around the internet :)
Here's the awesome video I first saw him in:

33
Hi poidi!

I find your idea interesting, I would only suggest that to aim at a 100%-focused keyboard solution, it would be better to consider that "actual monitor = monitor where the window is".
Regardless, and to be honest, I have posted the code for GridMove on github because I haven't been able to followup on the requests posted to the forum (I've explained it elsewhere, but basically not being a Windows user anymore makes developing GridMove a burden instead of a pleasure).
So, unless someone else steps up to fullfil your request, I fear it won't be done :(

I'm really sorry for this,
João

34
This thread is a spammer honeypot, so I've locked it. If you wish to discuss this subject, please create a new topic.

35
Living Room / Re: NULL
« on: March 15, 2013, 12:25 PM »
{}.get("What is happening in this thread?  :huh:")

(Actually, my code gets "None" and not "NULL")

36
JGPaiva's GridMove and Ahk Tools / Re: GridMove at github
« on: February 27, 2013, 08:13 AM »
I wonder if the FSF would answer a license-question email along the lines of "ohaithar, you haz real software license comparable to CC-BY-NC-SA, canhazpzlkthx?" :-)
I asked google instead, and got here. I think one of the commenters says what I believe to be correct (and in line with what I found the last time I dwelved into this):
A license can't restrict use. If you look at all the exclusive rights in 17 USC 106 you'll see that none of them have anything to do with use. This is why licenses (like the GPL) restrict distribution and modification, not use. – David Schwartz Sep 25 '11 at 21:13

So, I guess I'll have to update the license.
Btw, I think it's great you have released the source and put it on GitHub, so please do not take my comments as being negative, I just find this licensing stuff interesting in a kind of masochistic manner ;D.
I don't, and I thank you for your help! To be honest, I only have 3 objectives:
  • protect the code from being copied to create another exact clone
  • allow others to use my code on their own projects (even though it's a total mess and probably not that useful :P)
  • not allow usage in a commercial environment.
From what I understand, the hard part is the last one, since the source code does not have an EULA.

37
Living Room / Re: PayPal users are frauds :-(
« on: February 25, 2013, 12:25 PM »
Yeah but so what.. if a user is going to do that then they weren't going to purchase from you anyway, so what do you care if they got a free license key or not.
I agree. Also, the scammer could always have gotten the software through other "less than legal" ways. On the other hand, if paypal has something like "reputation" associated to a seller, it'd be awful to lose reputation due to a bunch of scammers. I wonder how ebay handles these situations.

This report just made me find the first genuinely useful use for DRM: if a scammer tries to get free software, you could just revoke his key. (even without DRM, you can always make sure that the scammer's key won't work for the next versions)

38
I see a few problems:
From what I understand, AHK doesn't support the "for each" loop you're using.
Also, you're defining a subroutine inside the loop, which I don't think can be done either (rubroutines can only be declared at topmost level?). Also, I don't think you can define a subroutine using the name of a variable (but I may be wrong).
If you want to use the keys only up to F9, this should work:

DefineHotkeys:
  loop,9
  {
     Hotkey, F%A_Index%, WinHotkeys
  }
  if FastMoveMeta <>
    Hotkey, %FastMoveModifiers%%FastMoveMeta%, WinHotkeysMeta
  return

WinHotkeys:
  StringRight,Number,A_ThisHotkey,1
  MoveToGrid(Number)
  return

To make this work for the remaining keys, you'd have to make the loop go up to 22, and change the code for parsing the number, which currently only takes the last character in the hotkey to figure out the grid. (I'm referring to this line:)
  StringRight,Number,A_ThisHotkey,1

39
JGPaiva's GridMove and Ahk Tools / Re: GridMove at github
« on: February 23, 2013, 05:26 AM »
I am not a license expert, but it is my understanding that CC licenses are generally aimed more at "works of art" like text, music, images, etc., and not software. You might want to consider picking a software license instead.
(..)
On a personal note I would probably not choose GPL, but that has been discussed extensively on these forums already :-[.
I understand that. I've looked at it for a bit, but couldn't find anything that compares to the CC license I'm "using" now and just gave up. Also, like you, I'm not a big fan of GPL, and it looks like it's sort of the standard these days.

40
JGPaiva's GridMove and Ahk Tools / Re: GridMove at github
« on: February 22, 2013, 06:31 PM »
Source repository @ GitHub
Good idea, done. Thanks!

41
JGPaiva's GridMove and Ahk Tools / Re: GridMove at github
« on: February 22, 2013, 05:46 PM »
Now all that's left is to add a github link to the dcmembers page :)
Done! :) http://jgpaiva.dcmem...rs.com/gridmove.html

42
JGPaiva's GridMove and Ahk Tools / GridMove at github
« on: February 22, 2013, 04:10 AM »
Hi guys,

As you probably have already noticed, I haven't had the time to update GridMove as frequently as I should.
So, I've decided to make the fact that GridMove is open-source more explicit. Even though the source has been available at GridMove's site for a while, it wasn't very easy to fork, so I have created a GitHub project for it.
Not only does this simplify integrating any changes other people propose, but also makes it easier for me to update the code.

Please keep in mind that (unfortunately) this will probably not reflect in more frequent updates for the compiled version available on the site, since it's really hard for me to test code or create new packaged versions (mostly due to the fact that since 2 years ago I've moved completely to mac).

So, I leave you with a link to the repository: https://github.com/jgpaiva/GridMove

43
Really funny, fenix!

I love the switch..case construct in british english:

what_about (£variable) {
    perhaps £possibility:
        //Code here
        splendid;
    perhaps £other_possibility:
        //Code here
        splendid;
    on_the_off_chance:
        //Code here
        splendid;
}

I don't know why, but the "splendid" clause got me laughing out loud at the workplace!

44
I'm sorry, I was probably sleeping when I did the code above.

This version should fix all the problems:
  If GridTop = WindowHeight
  {
    MonitorBottom := GetMonitorBottom(MouseX, MouseY)
    MonitorTop := GetMonitorTop(MouseX, MouseY)
    GridTop := MouseY - 0.5 * WinHeight
    If (GridTop + WinHeight > MonitorBottom)
      GridTop := MonitorBottom - WinHeight
    If (GridTop < MonitorTop)
      GridTop := MonitorTop
    GridBottom := GridTop + WinHeight
  }
   
  If GridLeft = WindowWidth
  {
    MonitorRight := GetMonitorRight(MouseX, MouseY)
    MonitorLeft := GetMonitorLeft(MouseX, MouseY)
    GridLeft := MouseX - 0.5 * WinWidth
    If (GridLeft + WinWidth > MonitorRight)
      GridLeft := MonitorRight - WinWidth
    If (GridLeft < MonitorLeft)
      GridLeft := MonitorLeft
    GridRight := GridLeft + WinWidth       
  }

45
Sorry, bad math on my part. This line:
If (GridTop + 0.5 * WinHeight > MonitorBottom)
Should be like this:
If (GridTop + 1.5 * WinHeight > MonitorBottom)
Also, do the same on every other line similar to that one (all those that have the comparisons).

46
Ah! Indeed that makes sense :)
Ok, so what you're looking for is in GridMoveP1, lines 685-701:

  If GridTop = WindowHeight
  {
    MonitorBottom := GetMonitorBottom(MouseX, MouseY)
    GridTop := MouseY       
    If (GridTop + WinHeight > MonitorBottom)
      GridTop := MonitorBottom - WinHeight
    GridBottom := GridTop + WinHeight
  }
   
  If GridLeft = WindowWidth
  {
    MonitorRight := GetMonitorRight(MouseX, MouseY)
    GridLeft := MouseX
    If (GridLeft + WinWidth > MonitorRight)
      GridLeft := MonitorRight - WinWidth
    GridRight := GridLeft + WinWidth       
  }   

And you should replace it with:

  If GridTop = WindowHeight
  {
    MonitorBottom := GetMonitorBottom(MouseX, MouseY)
    MonitorTop := GetMonitorTop(MouseX, MouseY)
    GridTop := MouseY - 0.5 * WinHeight
    If (GridTop + 0.5 * WinHeight > MonitorBottom)
      GridTop := MonitorBottom - WinHeight
    If (GridTop - 0.5 * WinHeight < MonitorTop)
      GridTop := MonitorTop
    GridBottom := GridTop + WinHeight
  }
   
  If GridLeft = WindowWidth
  {
    MonitorRight := GetMonitorRight(MouseX, MouseY)
    MonitorLeft := GetMonitorLeft(MouseX, MouseY)
    GridLeft := MouseX - 0.5 * WinWidth
    If (GridLeft + 0.5 * WinWidth > MonitorRight)
      GridLeft := MonitorRight - WinWidth
    If (GridLeft - 0.5 * WinWidth < MonitorLeft)
      GridLeft := MonitorLeft
    GridRight := GridLeft + WinWidth       
  } 



I'm really sorry that I can't neither test nor generate a compiled version of GridMove for you (I now only own macs, unfortunately :( ), but I hope this helps.

47
I'm sorry, but I really can't understand what you want to do :(

Could you try explaining in another way?

(The last lines - from 30 do 39 - only have to do with drawing the grid, so you should ignore those)

48
Bill should have referenced the longer one as the author explains a lot more in there.
Now you've got me curious, do you have that link lying around? (because I'm lazy :-[)

49
I'm a bit more skeptical there.

I read that as "better life conditions usually mean lower birth rates".
I think you're right on the money there. On Bill Gates' AMA at reddit he mentions this, and references this video: http://www.youtube.c.../watch?v=lYpX4l2UeZg

50
I've been trying to learn some python (trying to add some value to the huge amount of procrastination I've been doing recently), and I've found this site: http://www.checkio.org/

http://www.checkio.org/
Screen Shot 2013-02-14 at 12.05.21 .png


It's pretty interesting because it also features this "after you complete the challenge you can see other's solutions" mentality, and has quite a large user base. However, it has four drawbacks: 1 - the english may be incomprehensible at times, 2 - you must use their interpreter (which misses some modules such as numpy), 3 - the challenges start way too hard, you'll have to know the very basics already 4 - some challenges are not very much a programming exercise but mostly a math challenge (the one I'm now requires me to do trajectory intersections).

I think the biggest advantage is the fact that there are *many* solutions, ranging from way too complicated to very simple, and every solution has a lot of user comments picking apart the code and suggesting improvements.

Pages: prev1 [2] 3 4 5 6 7 ... 184next