Hacker News new | past | comments | ask | show | jobs | submit | yogione's comments login

Here is my setup in basement for the last 2 decades. https://imgur.com/a/REOqZIK. I lean over an old newspaper to catch clippings.


We need to see the results :)


how do I execute the out put of something like this:

grep -i 'pattern' file | awk '{print $5}' | sed 's/^/cmd/g'

I end up sending to a file, chmod, then run it at the shell.


In bash...

    $(grep -i 'pattern' file | awk '{print $5}' | sed 's/^/cmd/g')
?

Or surround in backticks

    `command which outputs text you want to run as a command`
I prefer $() as they nest better.

Or have I misunderstood your question?


That's it $() works. thanks.


Wrap it in $() to execute. And even if you pipe it into a file, no chmod is required. "sh file" works as it should


or use eval

~$ help eval eval: eval [arg ...] Execute arguments as a shell command.

    Combine ARGs into a single string, use the result as input to the shell,
    and execute the resulting commands.
   Exit Status:
    Returns exit status of command or success if command is null.


xargs instead of that sed (I assume you're prepending your command to run there).

grep -i 'pattern' file | awk '{print $5}' | xargs cmd


how about MMS ? ability to send images.


How do I make a GUI in 5 minutes using python. Can you please point me to a link / blog post. thanks.


google 'tkinter'

Here's an example I just made:

#-----begin------

from Tkinter import * #part of standard library

def reverse():

    s=entrybox.get() #get text from entry widget

    entrybox.delete(0,END) #delete text from entry widget

    entrybox.insert(0,s[::-1]) #reverse text, insert it
root=Tk() #create a window

entrybox=Entry(root) #create an entry widget

entrybox.pack() #display it in the window

button1=Button(root, text='Press Me', command=reverse)

button1.pack()

entrybox.insert(0,'type here') #add a default value

root.mainloop()


Can you please share the photo of this. I want to make one too. thx.



I like the clean design. Do you have a blog with notes of the whole process - plugins used / css / js / hosting.


No blog yet. After I get the first round of revisions done on pitchforked I'll get something up that details the process. I've been taking notes throughout the whole thing, just haven't gotten around to it yet! I'll post again once that's ready.


I love CGI, DBI. I can write my own SQL. I don't need an ORM. What modules do you suggest for developing web apps using Perl. Mason or Template Tool kit or something else.


Local High-school track is ideal for barefoot running. I have been running barefoot for the last 3 years. My knees don't hurt anymore. The ground up rubber surface provides a bit of cushioning.


What kind of track are you running on? If you tried that in the mid-west in the dead of summer on a rubberized track you would probably burn your feet and get blisters. My younger brother has tried it and experienced as much.


14.2% in michigan


Michigan is a strange place to be living right now. There's still work for skilled technology folks if you look hard enough. What we don't have is work for the thousands of jobless factory/industrial workers. Growing up in Michigan, there were still people saying "My parents work for GM in the factory, I'm going to get a job right out of highschool - 30 and out, retire at 48." Unfortunately, all these people are now learning exactly how wrong they were. The age of plentiful factory work for anyone with a highschool degree is over in Michigan, and the statistics reflect this. The state is in a painful transition period - the country is feeling the effects as well. It's the end of industrialization and the beginning of a society based on service and technology. Unfortunately, Michigan, until recently, wasn't willing to admit that things were changing. Many of the jobless are in denial - that's why we lead the nation in unemployment.


Yep. It is very very bad here if you are looking for work. As more workers get laid off it gets even harder. ANY job is tough to find, let alone white collar work. Even traditionally in-demand jobs like nurses and truck drivers have tightened up. Michigan has passed a good film incentive package but the jobs films generate tend to be temporary and the volume of films shooting in the state would have to be enormousness to make a big difference.


I tested the above script - It works. You are good.


thanks, i didn't write it. I remembered that in some magazine from 1999. The link to the author is in the comment below


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: