Jump to content

Florian

Member
  • Posts

    327
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Florian

  1. Did enable remote access? Is your listening port 9091?
  2. I personally install a backdoor into each of my workflows so that I can trojan horse you all, mouahahaha (just kidding of course) I don't have the numbers but I believe alfred users are a relatively small community and there would be little to no point in making it a target of any sort of attack, be it against their privacy or their machines. But as I said, I don't have the numbers. I have no idea how many people are using alfred with the powerpack nor how many times my workflows were downloaded or used, so i might be wrong.
  3. By the way, I had actually tried to do it with an HTML file but `qlmanage` gets blocked in that case: 2014-10-22 18:42:52.829 qlmanage[35036:853010] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9303, name = 'com.apple.CFPasteboardClient' See /usr/include/servers/bootstrap_defs.h for the error codes. 2014-10-22 18:42:52.830 qlmanage[35036:853010] Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
  4. I've added your request. But I'm using the integrated "top" functionality from piratebay instead (like this: http://thepiratebay.se/top/207). Is this not ideal? Would it be better to have the "browse sorted by seeds" instead?
  5. So I felt like what I wanted didn't already exist... So I made my own todo list manager. It's very basic for now, but it is very extendable. It is all based on a markdown document. I am taking requests from those of you who have good ideas Head over to packal to download the workflow!
  6. Hey Shawn, Thanks for the feedback I didn't know about the native quicklook. How does that work? I like how it works for now (ie. enter on the item opens quicklook, leaving quicklook pops back alfred (even though it'll only work well when the query trimming is disabled as andrew promised for the next release)). Can I do the same thing with native alfred quicklook? There is still so much work to be done to have a fully operational production version!
  7. TV Shows manager download link Find your favorite shows right from Alfred. Remember which episode you’re at (and where you stopped in it), know if a new episode is out (or how long until it is), read synopsis... Everything you want for TV Shows is in this workflow. quick use First and foremost, download the workflow. You need NodeJS installed for this workflow to work. This is a beta version, I hope to get your feedback and bug reports. Have fun :-)
  8. Cool thanks Can't wait ! This is going to be great for my latest workflow!
  9. Hey team, I'm here to report either a bug or my lack of programming ability : When I run this (notice the space after the test query) tell application "Alfred 2" to run trigger "query" in workflow "florian.shows" with argument "test " Alfred opens with "test" without the space, which isn't the expected behavior, especially because I use the spaces in my workflow ! (And why automatically trim when you could just let the developers send the proper arguments). So is this me or is this a bug or is this a desired behavior?
  10. I've added this as an issue on the github. It should get done in the next few days, either by me or someone else. In the mean time, here's a beta workflow that might interest some of you: https://github.com/Sheraff/tvshows-alfred-workflow
  11. Cool thanks. So I'm the first one ever to do this? Wow ! :-)
  12. Hey guys, Anyone knows anything about XML validation? I don't at all... I just know it'd be incredibly easy and quick to make a custom online validator for Alfred, something we can host on github and then people can copy and paste their XML output and see where the problem is. I started an XS schema for this, but as I know nothing about XML, I feel like anyone would be 10x faster than me at it. Can you see what's wrong with this? <?xml version="1.0"?> <xs:schema> <xs:element name="item"> <xs:attribute name="uid" type="xs:string"/> <xs:attribute name="valid" type="xs:string"> <xs:restriction base="xs:string"> <xs:pattern value="[Nn][Oo]" /> <xs:pattern value="[Yy][Ee][Ss]" /> </xs:restriction> </xs:attribute> <xs:attribute name="arg" type="xs:string"/> <xs:attribute name="autocomplete" type="xs:string"/> <xs:complexType> <xs:all> <xs:element name="title" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="subtitle" type="xs:string" maxOccurs="6" minOccurs="0"> <xs:attribute name="mod" type="xs:string"/> </xs:element> <xs:element name="arg" type="xs:string" maxOccurs="1" minOccurs="0"/> <xs:element name="icon" type="xs:string" maxOccurs="1" minOccurs="0"> <xs:attribute name="type" type="xs:string"/> </xs:element> </xs:all> </xs:complexType> </xs:element> </xs:schema>
  13. So I'm working on this new workflow that makes extensive use of the modifier keys. Though, some items have no use for it (or for all of them). So in order not to get a blank subtext, i just copy the default subtext. At this point in the development, I only set up the CMD and ALT keys in the workflow: And so when the output from the main script filter is the following, nothing displays at all (like it's loading forever): <?xml version="1.0"?><items> <item uid="" valid="NO" autocomplete=""> <title>Next episode on Wednesday</title> <subtitle>2014-10-14 S04E05 Landline</subtitle> <arg></arg> <icon></icon> <subtitle mod="shift">2014-10-14 S04E05 Landline</subtitle> <subtitle mod="fn">2014-10-14 S04E05 Landline</subtitle> <subtitle mod="ctrl">2014-10-14 S04E05 Landline</subtitle> <subtitle mod="alt">2014-10-14 S04E05 Landline</subtitle> <subtitle mod="cmd">2014-10-14 S04E05 Landline</subtitle> </item> <item uid="" valid="YES" autocomplete=""> <title>Add New Girl to my favorites</title> <subtitle></subtitle> <arg>f11420</arg> <icon>love.png</icon> <subtitle mod="shift"></subtitle> <subtitle mod="fn"></subtitle> <subtitle mod="ctrl"></subtitle> <subtitle mod="alt"></subtitle> <subtitle mod="cmd"></subtitle> </item> <item uid="" valid="YES" autocomplete=""> <title>New Girl is an American television sitcom that premiered on Fox on September 20, 2011. It stars Zooey Deschanel, Jake Johnson, Max Greenfield, Lamorne Morris, and Hannah Simone. New Girl has received some favorable responses from critics since its conception, many giving particular praise for Deschanel's performance. The show has been nominated for several awards, including four Golden Globe Award nominations and five Primetime Emmy Award nominations. On March 4, 2013, the series was renewed for a third season, which premiered on September 17, 2013.</title> <subtitle>★★★★☆ (2011) Comedy — Returning Series</subtitle> <arg>l1420</arg> <icon>what.png</icon> <subtitle mod="shift">★★★★☆ (2011) Comedy — Returning Series</subtitle> <subtitle mod="fn">★★★★☆ (2011) Comedy — Returning Series</subtitle> <subtitle mod="ctrl">★★★★☆ (2011) Comedy — Returning Series</subtitle> <subtitle mod="alt">★★★★☆ (2011) Comedy — Returning Series</subtitle> <subtitle mod="cmd">★★★★☆ (2011) Comedy — Returning Series</subtitle> <text type="largetype">New Girl is an American television sitcom that premiered on Fox on September 20, 2011. It stars Zooey Deschanel, Jake Johnson, Max Greenfield, Lamorne Morris, and Hannah Simone. New Girl has received some favorable responses from critics since its conception, many giving particular praise for Deschanel's performance. The show has been nominated for several awards, including four Golden Globe Award nominations and five Primetime Emmy Award nominations. On March 4, 2013, the series was renewed for a third season, which premiered on September 17, 2013.</text> </item> <item uid="" valid="YES" autocomplete=""> <title>latest episode: S04E04 Micro</title> <subtitle>Add this episode to Watch Later</subtitle> <arg>m1420 0 New Girl, S04E04: Micro</arg> <icon></icon> <subtitle mod="shift">Add this episode to Watch Later</subtitle> <subtitle mod="fn">Add this episode to Watch Later</subtitle> <subtitle mod="ctrl">Add this episode to Watch Later</subtitle> <subtitle mod="alt">Go to The Movie DataBase's page for this episode</subtitle> <subtitle mod="cmd">Add this episode to Watch Later</subtitle> </item> </items> Am I doing something wrong? It this voluntary from Andrew? Is this a bug? Of course the simple fix is to only assign the <subtitle mod> for the keys that are actually assigned to something. But I don't really understand why that should matter. Instead of not displaying anything at all, let's just ignore the extra ones, no? PS: debugging this I thought that one of us should do an Alfred XML online validator, so new developers can quickly figure out what they have wrong.
  14. Is it still true that the only "type" available is "file"? I really wish there was a reference document for these kinds of question...
  15. Well I'll see about distribution. Ideally I'd want it to be out there, seems more fun that way. But what i'm making is in the same vein as my other frowned upon workflow (piratebay): when i'm done with this one, just typing the keyword will display all the tv shows I follow that have available new episodes and offer to stream them. But yeah I guess the install script would be optimal.
  16. Turns out, it's this part that plays: export PATH=/usr/local/bin:$PATH because i have ImageMagick installed there (when did I do that? note to self, stop coding drunk). So I guess there are 2 options: I can use the dependencies manager, of just include the tool in the workflow, right?
  17. Yes, it does solve it. But what can I do to have it work on other people's computers then? For info, here's my .bash_profile export PATH="/Users/Flo/Library/Application Support/GoodSync":$PATH ## # Your previous /Users/Flo/.bash_profile file was backed up as /Users/Flo/.bash_profile.macports-saved_2014-05-10_at_17:16:41 ## # MacPorts Installer addition on 2014-05-10_at_17:16:41: adding an appropriate PATH variable for use with MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH # Finished adapting your PATH environment variable for use with MacPorts. ## # Your previous /Users/Flo/.bash_profile file was backed up as /Users/Flo/.bash_profile.macports-saved_2014-05-10_at_17:22:00 ## # MacPorts Installer addition on 2014-05-10_at_17:22:00: adding an appropriate PATH variable for use with MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:$PATH # Finished adapting your PATH environment variable for use with MacPorts. export PATH=/usr/local/bin:$PATH export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments and if it's of any help: Flo$ echo $PATH /usr/local/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/Flo/Library/Application Support/GoodSync:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/usr/texbin
  18. Hey everyone, here's one I can absolutely not figure out for myself: if have this very simple bash script called launcher.sh #!/bin/bash node="/usr/local/bin/node" ${node} test.js 127.0.0.1:8374 &> node-out.txt & and a quite simple node script called test.js require('easyimage').thumbnail({ src:"a.jpg", dst:"b.jpg", width:60, height:60 }).then( function(image) { console.log('success'); }, function (err) { console.log(err); }); If i call from the terminal node test.js or ./launcher.sh, then everything is fine (I get image a.jpg to be cropped and written to b.jpg), but if i trigger it through a script filter containing only ./launcher.sh, then i get this error: [Error: File not supported.] and I have tried with another less used npm package for test.js: var resizeCrop = require('resize-crop'); resizeCrop({ format: 'jpg', src: "a.jpg", dest: "b.jpg", height: 60, width: 60, gravity: "center" }, function(err, filePath){ if(err) console.log(err); else console.log("success"); } ); which throws a more verbose error when triggered from a script filter: events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:1001:11) at Process.ChildProcess._handle.onexit (child_process.js:792:34) Do you guys have any idea why it works from the terminal but not from alfred? On my real script, I'm writing/reading other files and i never have any issues with it...
  19. I had only one workflow in mind that could have had a problem (because it was using the first step to launch a php server so that all subsequent queries would trigger faster). No problem with the latest 296 update. :-)
  20. Hey people, So I like optimisation. Like I just mixed some bash and php to give my piratebay workflow a little multithreading boost (updates are regular so be sure to install with packal). But now I'm thinking: aren't compiled languages supposed to be faster? Technically yes, but workflows are usually very small pieces of code, so is it worth it? Is there a "loading" cost like there is for php for example?
  21. Now I remember a reason why I don't like the "seamless transitioning to [any app]": when I summon Alfred again, it "seamlessly transitions" again... Highly annoying.
×
×
  • Create New...