Do you enjoy using these boards? If so, please contribute today.
Your support keeps 420chan alive.
April Server Costs
420chan JSON API Now Available - Documentation - Discussion Thread
Build apps and browsing enhancements!
Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
A subject is required when posting a new thread
Subject
Comment
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


Career Sites and Dice.com by Betsy Crumbleman - Thu, 16 May 2013 16:27:59 EST ID:OaDd+rir No.28514 Ignore Report Reply Quick Reply
1368736079492.gif -(21164 B, 600x462) Thumbnail displayed, click image for full size. 21164
So graduated from a liberal arts school and I want to work in the field for a while before going back to grad school. I made profiles on indeed.com and dice.com and I tried to for Careers 2.0 from stack exchange but I needed more activity on my stack-exchange account but whatever.

Dice.com is the only one giving me any activity. I just got called for some Senior C++ developer for some BIG banking firm. And I was like "What? I am fresh out of college. I graduated this week. I don't think I am qualified for this job."

So I don't want to mis-lead employers because that can end badly for me. My dice profile allows me to list my skills and years experience with those skills. Are those skills in only a professional setting or does using them for classes count?
>>
Betsy Crumbleman - Thu, 16 May 2013 16:30:44 EST ID:OaDd+rir No.28515 Ignore Report Quick Reply
>>28514
I think I need to re evaluate my topic.
What are some do and don'ts for filling out accounts on job search sites? Namely when they ask how many years experience with a skill, do they mean how many years have I been using it our how many years have I known it or what?
>>
Alice Tillingfield - Thu, 16 May 2013 16:38:31 EST ID:wL/GHLf9 No.28516 Ignore Report Quick Reply
>>28515

I imagine what they'd value most is your experience working with teams of people on larger-scale projects. Experience with coding is one thing, but working with others to do so is a different beast and requires different skills.

Maybe get into some collaborative projects in your free time that aren't "professional" per say? Open-source projects where you'll have to share your/maintain others' code might be a good place to start.
>>
Ebenezer Sasslefure - Fri, 17 May 2013 01:17:28 EST ID:KtWUuSYb No.28517 Ignore Report Quick Reply
When a company is looking for someone with 7 years of experience that doesn't mean they are looking for someone that took 7 years to get their degree.
>>
Graham Passletatch - Fri, 17 May 2013 11:54:25 EST ID:u03zNboU No.28520 Ignore Report Quick Reply
1368806065534.gif -(11137 B, 600x427) Thumbnail displayed, click image for full size. 11137
>>28517
So counting experience using some language in an academic environment on my dice profile would be misleading to employers? Are they looking for professional experience only?
>>
Reuben Pettingdock - Sun, 19 May 2013 20:43:00 EST ID:PQzGpXuE No.28532 Ignore Report Quick Reply
>>28520

They are looking for a fucking unicorn. The only thing you should concern yourself with is what lies you can get away with telling.


The future of RWD by Cedric Saggledod - Tue, 14 May 2013 00:13:59 EST ID:gCbBOi5P No.28491 Ignore Report Reply Quick Reply
1368504839916.jpg -(113232 B, 1500x882) Thumbnail displayed, click image for full size. 113232
What do you think of the future of Responsive Web Design? Will separated mobile site be relevant anymore anytime soon?

I just learned RWD a few months ago and all I can think of the benefits are the scalability. The 'One file, many devices' concept is a plus though.
>>
Whitey Chamblefuck - Tue, 14 May 2013 09:07:29 EST ID:eBA93WqX No.28493 Ignore Report Quick Reply
3 CSS files for different resolution and loading them on the fly via JS is the best way. RWD is fine as long as you don't confine yourself to the one file BS.
>>
George Brookfuck - Tue, 14 May 2013 22:01:20 EST ID:4nohZ+J+ No.28501 Ignore Report Quick Reply
>>28493
Why use JS? CSS media-queries actually degrade properly when your visitor has NoScript or something running.
>>
Charles Wugglecocke - Wed, 15 May 2013 02:48:29 EST ID:fL5D1ECj No.28503 Ignore Report Quick Reply
>>28493
@media queries is enough I think
>>
Fanny Cacklestock - Sun, 19 May 2013 18:59:03 EST ID:cWpW3D8W No.28531 Ignore Report Quick Reply
>>28503
Yes. I can't think of any general situations where using JS to load your stylesheet(s) is in any way advantageous. And the specific situations I can think of, I'd rather use something like Modernizr to apply those classes/styles as needed.

I'm in the process of moving away from (mostly) fixed-width sites to RWD myself. I have a great template with a custom 12-column elastic grid framework, all the necessary JS plugins/fallbacks, etc. that I use with clients' projects. When I can pull it off, it's very satisfying.

The biggest hurdles for me are, first, getting used to designing for responsive layouts, and especially working from mobile up. Visually striking and authentic designs are easy enough for fixed-width sites, but RWD practically necessitates "flat" design which, to me, is just so trendy and obvious that it feels like cheating.

The second is the extra technical challenges involved, from fallbacks for browsers that don't support media queries (though "mobile first" greatly reduces the headache there) and the "border-box" box model (very necessary for percentage-width layouts), to making sure columns' heights are equal at different resolutions, testing on different mobile browsers in addition to different desktop browsers, etc. etc. etc.

I think there's still a good argument for a completely separate mobile site when function (not form) is much different from the desktop counterpart, because your users split into two camps: touch interfaces and short attention spans vs. traditional interfaces and... traditional attention spans? But if you're just delivering content and not requiring much user interaction, RWD seems to be the way we're headed.


anonymous collaboration by Nell Forryhan - Sat, 30 Mar 2013 00:31:41 EST ID:ZQGseEw+ No.27874 Ignore Report Reply Quick Reply
1364617901488.gif -(8926 B, 511x494) Thumbnail displayed, click image for full size. 8926
a thread about anonymous collaboration, in which we describe such a model, and attempt to implement a website that uses such a model to implement anonymously submitted descriptions of projects, using the model ourselves first
22 posts and 3 images omitted. Click Reply to view.
>>
James Duckdale - Sat, 06 Apr 2013 16:53:50 EST ID:VuYCXl/p No.27939 Ignore Report Quick Reply
>>27924
People have made beautiful sculptures out of animal feces.
It's still shit.
>>
Grattle - Sat, 06 Apr 2013 22:17:19 EST ID:LBkC/znJ No.27940 Ignore Report Quick Reply
>>27926
php, java, and perl.
>>
Anon - Sat, 06 Apr 2013 22:24:32 EST ID:2ldpC9CC No.27941 Ignore Report Quick Reply
Sounds good
>>
Anon - Sat, 06 Apr 2013 22:40:02 EST ID:2ldpC9CC No.27942 Ignore Report Quick Reply
PHP is fine unless your a noob, but python is better imo
>>
Barnaby Fottingworth - Sun, 19 May 2013 11:30:56 EST ID:ywQyYodS No.28529 Ignore Report Quick Reply
Bump for interest.


Learn the hard way or the easy way by Hannah Cuzzlenurk - Sat, 11 May 2013 15:54:12 EST ID:fL5D1ECj No.28468 Ignore Report Reply Quick Reply
1368302052053.jpg -(123254 B, 325x315) Thumbnail displayed, click image for full size. 123254
As you all know the emergence of frameworks/open source that makes programmer's life easier has become popular nowadays. You google for the source code, study it a little, then you implement in your project.

Me as a student is always caught up in this situation. Tell me oldfags, is this a good habit?
3 posts omitted. Click Reply to view.
>>
Faggy Bardridge - Sat, 11 May 2013 17:41:54 EST ID:wL/GHLf9 No.28474 Ignore Report Quick Reply
1368308514065.jpg -(125582 B, 475x800) Thumbnail displayed, click image for full size. 125582
Starting off with too much convenience can cause one to develop bad habits, but there's no reason to go slugging through the trenches either just because the old timers tell you it's "the only way to be a REAL programmer".

I think the general rules of avoidance for newbies are:

1 ) Avoid IDEs until you're experienced enough and tackling big projects

2 ) Pretty much what >>28469 and >>28470 said
>>
Augustus Hundlematch - Sun, 12 May 2013 21:35:04 EST ID:xtelIQ1k No.28485 Ignore Report Quick Reply
There's nothing wrong with a little copy and paste cargo cult programming now and then. If you need to do something in VBscript but can't justify the time spent in doing it right then that's what you're going to be doing, oldfag or not.
>>
Whitey Genkindale - Sun, 12 May 2013 22:43:33 EST ID:LBkC/znJ No.28486 Ignore Report Quick Reply
>>28485
This is especially important in web design. I'll write my own HTML, SQL, XML, CSS, Javascript... But when I can't be bothered to fumble with retarded PHP, it's off to google!
>>
Edwin Sogglekire - Mon, 13 May 2013 08:14:36 EST ID:LRgXFCUp No.28487 Ignore Report Quick Reply
>>28486
This sounds like a recipe for catastrophe. PHP by design is insecure. It is, apart from SQL, the only thing that really runs something on the server. And last but not least most PHP on the wild is written by first time coders who have no idea what they are doing.

Combine these and you are copying code the original author knows just that 'It kinda works', it's very hard to tell if it has serious security hazards (uploading new files, downloading anything in the machine or network) unless you read it through, understand it well and check that each function used is not deprecated and replaced by a new function with an extra 'real_' -prefix. And if you do that you might be as well writing the whole thing.

I would much rather have you copying html, xml and css. Even javascript.
>>
Fordun - Sun, 19 May 2013 10:56:59 EST ID:ks4AGMV8 No.28528 Ignore Report Quick Reply
No. Every single piece of code should be hand written. You should never use a auto complete feature. Or look at anyone's code. In fact don't bother with babbys first languages like PHP, C, C++. C#, VB, basically anything with .NET tacked on, Perl, Pascal, Haskell, Brain f*ck, Python, Fortran, in fact everything should be done in hand coded Assembler at the bare minimum, Machine Code or Binary preferred.

Anything else and your not a REAL coder.


C# DataGrid export by Caroline Bambleforth - Sat, 18 May 2013 21:54:11 EST ID:ocaiFzP4 No.28526 Ignore Report Reply Quick Reply
1368928451586.jpg -(24864 B, 400x300) Thumbnail displayed, click image for full size. 24864
Programming in C# in Visual Studio
I need to export a DataGrid to a Excel or CSV
So far the internet has failed me
How do?
>>
Ian Duckshit - Sat, 18 May 2013 22:38:08 EST ID:KtWUuSYb No.28527 Ignore Report Quick Reply
>>28526

There are many examples of this on Google.

Perhaps what you need is a tutorial on loops? Google is also helpful for that.

Or is there something specific that you are having troubles with?


I have a chromebook, and i would like to learn to code by Edward Crunkinhodging - Sat, 18 May 2013 18:04:34 EST ID:EnrSmL2c No.28521 Ignore Report Reply Quick Reply
1368914674495.jpg -(188299 B, 1680x1050) Thumbnail displayed, click image for full size. 188299
it was a gift, and it has only 16 gigs of hd space, what the shit
I figure itd be better to run a different OS,
what would you suggest /prog/?
>>
Ernest Lightforth - Sat, 18 May 2013 18:12:07 EST ID:t4up35gi No.28522 Ignore Report Quick Reply
1368915127798.jpg -(162093 B, 670x496) Thumbnail displayed, click image for full size. 162093
>>28521
Depends on how bare-bones you like your OS. Me? Lubuntu. Comes with enough packages pre-installed that you can use it like a "typical" consumer OS but not too many that you're draining your laptop's battery, and I've found that dev work is a piece of cake on it.
>>
Whitey Crecklefield - Sat, 18 May 2013 20:08:20 EST ID:vhgZIlcV No.28523 Ignore Report Quick Reply
On some board there was a thread about chromebook. The commonly accepted answer to the lack of space was to get a large sdxc card. For the distro I have no meaningful opinion.

Good luck with your new hobby.
>>
Whitey Blosslehood - Sat, 18 May 2013 20:41:44 EST ID:vLCXfMhb No.28524 Ignore Report Quick Reply
install gentoo
>>
Henry Beshmot - Sat, 18 May 2013 20:50:44 EST ID:EnrSmL2c No.28525 Ignore Report Quick Reply
>>28522
cool, i just need it to be able to code on it, bare bones or not
videogame would be cool though, like a steam account or something

>>28523
yeah i went out and bought a few
>>
Nell Saddlecocke - Sun, 19 May 2013 15:43:37 EST ID:zQxtUZYs No.28530 Ignore Report Quick Reply
>>28525

>code a steam account


My program is actually quite volatile by Betsy Hacklestick - Sat, 11 May 2013 17:00:33 EST ID:ICAfVo/C No.28471 Ignore Report Reply Quick Reply
1368306033305.jpg -(102550 B, 604x495) Thumbnail displayed, click image for full size. 102550
For the first time I have written a serious program and it's the biggest program I'm written to date (it's about 3200 lines of C).

I do not know what I am doing wrong. It works, and it does its job well. But I find that if I change a slight thing in one of the helper functions, something else randomly breaks or I get some memory corruption error or segfault.

My program is somehow not robust when it comes to changing it. Should I not be expecting it to be? Or does it seem like my programming is basically shit?
17 posts and 4 images omitted. Click Reply to view.
>>
James Greendale - Wed, 15 May 2013 18:18:07 EST ID:40E5YeaU No.28511 Ignore Report Quick Reply
>>28510

"My sequel"
>>
Lillian Bunwill - Thu, 16 May 2013 01:16:45 EST ID:YW3TwAFz No.28512 Ignore Report Quick Reply
1368681405842.png -(1145421 B, 1280x720) Thumbnail displayed, click image for full size. 1145421
>>28511
I like to pronounce SQL as "sqwull".
>>
Nathaniel Fuckingfoot - Thu, 16 May 2013 04:06:32 EST ID:vhgZIlcV No.28513 Ignore Report Quick Reply
>>28512
And in our language we call it commonly 'mysli'. The difference however is that I don't assume everyone will understand it off the bat.
>>
Clara Hobblewater - Fri, 17 May 2013 03:14:36 EST ID:ae8A4br9 No.28518 Ignore Report Quick Reply
>>28471

google 'modular programming'

/thread
>>
Nell Debblebury - Fri, 17 May 2013 03:36:18 EST ID:T7EUcp/L No.28519 Ignore Report Quick Reply
>Op asks for help with code
>No code in thread

Op needs to hit the books, not ask vague questions in threads


Shortest Job FIrst Algorithm by Ebenezer Ganderdatch - Wed, 01 May 2013 21:00:14 EST ID:j7sGDpZB No.28325 Ignore Report Reply Quick Reply
1367456414293.jpg -(64550 B, 272x272) Thumbnail displayed, click image for full size. 64550
Im doing this HW for a compsi class but I cant get this last Scheduler to work.

Process holder;
for (int u = 0; u < processes.Count; u++)
{
for (int i = u + 1; i < processes.Count; i++)
{
if(processes.burst> processes.burst || (processes.burst == processes.burst && processes.arrival > processes.arrival))
{
holder = processes;
processes = processes;
processes = holder;
}
}
}
Comment too long. Click here to view the full text.
6 posts omitted. Click Reply to view.
>>
Hedda Tootwell - Tue, 14 May 2013 19:26:33 EST ID:Y5A4f0Pe No.28497 Ignore Report Quick Reply
What in the fuck is going on here

holder = processes;
processes = processes;
processes = holder;
>>
Priscilla Drunderback - Tue, 14 May 2013 19:40:46 EST ID:DqWiTNci No.28498 Ignore Report Quick Reply
>>28497
a=b
b=b
and
c = b
duh.
>>
Edward Pankinnut - Tue, 14 May 2013 20:54:11 EST ID:Y5A4f0Pe No.28500 Ignore Report Quick Reply
>>28498
Why the fuck is it going on there
>>
Charlotte Chenninghall - Wed, 15 May 2013 07:15:49 EST ID:vhgZIlcV No.28505 Ignore Report Quick Reply
>>28500
some of the variables are most likely suffixed with an underscore (_). In our university we do that instead of the more common "m_" prefix for object variables. Then the board software thinks that a few underscores here and there are supposed to mark underlined text.
>>
Jenny Pobblesudging - Wed, 15 May 2013 10:05:03 EST ID:ICAfVo/C No.28506 Ignore Report Quick Reply
>>28498
No, it says

a = b;
b = b;
b = a;

Those last two lines won't do anything of course, and will be optimised out


What got you into programming? by Fucking Clummlechedging - Tue, 16 Apr 2013 11:21:30 EST ID:1BVqkfmT No.28071 Ignore Report Reply Quick Reply
1366125690953.jpg -(39141 B, 512x512) Thumbnail displayed, click image for full size. 39141
I would like to know what sparked your passion into programming. I am a network person by trade and always thought programmers had something special that most people didn't have, since I've dabbled in a couple of "hello world" sessions and it never stuck to me, like how a person would try to learn guitar but ended up not going anywhere with it. However, after a spiritual experience I had last year I became more understanding in the way of the programmer. I was looking towards Eastern philosophy to find some answers about life in a period in which I was extremely depressed, and after learning about Tai Chi and the philosophy of Yin and Yang, I realized how similar our reality is to the computer world. The theory is that creation and existence is the product of polar opposites working together, like how light could not exist without darkness and so on. I thought about how computer programs were nothing but 1's and 0's, electrical signals either being sent or not being sent over a physical medium. And somehow, everything just clicked. In order for something to exist (1), it must not exist in the first place (0), and when these two factors play together, I realized the endless realities one could create within the computer universe. We essentially become gods of the realms we create and anything is possible. I am currently learning programming as an escape from the real world, and the more I learn about the tools we have to create these realities, the deeper my passion becomes.

So /prog/, what made you guys interested in learning how to program? Whether it's a keen interest in learning how things work, something you know your mind is capable of, or if it's something that helps pay the bills, I'd love to hear it.
14 posts and 4 images omitted. Click Reply to view.
>>
Polly Crovingdale - Thu, 02 May 2013 07:59:45 EST ID:tTSilQeC No.28344 Ignore Report Quick Reply
>>28231

Where are you looking? I made passing mention on linkedin that I want to be in the nyc area and the recruiters won't leave me the fuck alone.

You need to stay off of the fucking job boards, they're nothing but a waste of time. Make your profile 100% on linkedin. Then put together a network. Start with people you know. Join groups that interest you and have good member numbers. Next, look for LIONs (linkedin open networkers) in the: areas you want to be, your field, tech recruiter field.

Don't believe linkedin's bullshit that you should know everyone on your list. Linkedin's true potential lies in the advanced search. The bigger your network, the more people you can find in the advanced search without a premium account.

Keep your status updates on, it keeps you on your entire network's radar.

Tldr: job boards are for suckers, use linkedin.
>>
DJ BrU - Sat, 11 May 2013 05:41:58 EST ID:Gh4Pnu4g No.28466 Ignore Report Quick Reply
It makes me laugh now but the oldskool AOL and AIM progs and punters scene got me interested in coding.

That and using Sub Seven by Mobman alot lmao.
>>
Hamilton Fammlewut - Sat, 11 May 2013 09:45:43 EST ID:eBA93WqX No.28467 Ignore Report Quick Reply
Needed to make the computer do things for me.
>>
Archie Peppersire - Wed, 15 May 2013 00:56:36 EST ID:FRj6VW2A No.28502 Ignore Report Quick Reply
>>28467
You got this from an MIT lecture video.
>>
Charles Wugglecocke - Wed, 15 May 2013 02:56:15 EST ID:fL5D1ECj No.28504 Ignore Report Quick Reply
I could use some of these answers to answer job interview questions as an idea.

Thanks OP for asking.


A bit lost - vbscript by Shit Munkintere - Thu, 09 May 2013 02:48:46 EST ID:Im2P7uLk No.28437 Ignore Report Reply Quick Reply
1368082126920.jpg -(170073 B, 1218x960) Thumbnail displayed, click image for full size. 170073
I know this is probably really easy for you programming veterans, but I'm struggling to get my head around it as I'm only just beginning.

This is the code that I've written so far. It's basically a simple calculator and I know there's some issues with it already but what I'm asking is how do I make it loop so that after each calculation the screen goes back to the title menu so you can make another selection?

Have I completely stuffed up this code? It works to an extent but definitely not the best it can be.
10 posts and 3 images omitted. Click Reply to view.
>>
DJ BrU - Sat, 11 May 2013 05:32:33 EST ID:Gh4Pnu4g No.28464 Ignore Report Quick Reply
Honestly this is a better method imho.

'VBS File Code:

Option Explicit
On Error Resume Next
Dim Shell
Set Shell = wscript.CreateObject("WScript.Shell")
Shell.Run ("Calc")
'This is what vbs what meant for on windows really, simple tasks, not full apps.
'Unless you are using it with web programming in your .html files, but this only works for IE. You are better of with Javascript or PHP for this purpose.
'VBS is only a scripting language it doesn't have the same oop capability as the VB6 or .NET progamming language's. If u knew this already good for u!!
>>
Priscilla Drunderback - Mon, 13 May 2013 20:58:14 EST ID:DqWiTNci No.28488 Ignore Report Quick Reply
>>28450
Haha, wow, you must be a true V-E-T, eh oldtimer? Golly, I wish I got started back when you did, I might have half the knowledge you do now. If only I could lick the edge of your prepuce so that I might glean some knowledge from your urea-encrusted epidermis.
>>
Cornelius Wubblewill - Mon, 13 May 2013 23:19:25 EST ID:rcp2h4Pi No.28490 Ignore Report Quick Reply
>On Error Resume Next
this is terrible, and you should feel terrible.
>>
Whitey Chamblefuck - Tue, 14 May 2013 09:11:05 EST ID:eBA93WqX No.28494 Ignore Report Quick Reply
>>28490

You actually can't do error handling via the On Error event handler in pure VBS, you must instead either let it throw and error or Resume Next and manually check Err.Number to see if it's not 0, also you have to remember to clear the error afterwards (Err.Clear).

TL;DR: It's fine as long as you're not working in VBA or VB.
>>
Priscilla Drunderback - Tue, 14 May 2013 19:42:19 EST ID:DqWiTNci No.28499 Ignore Report Quick Reply
>>28490
bro, i'm a sysadmin and i don't give a shit about getting every last workstation in my vbscrpts, that's why we have a help desk. i have bigger fish to fry


int ("12.34") by Sophie Cunnerbury - Fri, 03 May 2013 02:23:07 EST ID:VTGTY/oj No.28360 Ignore Report Reply Quick Reply
1367562187404.png -(1146702 B, 1211x868) Thumbnail displayed, click image for full size. 1146702
Hey guys, just a basic Python question here....

Why can I int () the string "12" but I cannot int ()the string "12.34"? I know int () will round the decimal down, but instead of getting "12" for my answer I get an error message. Why is this?

http://gyazo.com/cc8828227b59344751332da80184406c.png
^example above
11 posts and 1 images omitted. Click Reply to view.
>>
OP - Mon, 06 May 2013 14:18:08 EST ID:OXV5XRYm No.28412 Ignore Report Quick Reply
1367864288191.png -(14235 B, 386x175) Thumbnail displayed, click image for full size. 14235
>>28410
got invalid syntax
>>
George Somblelirk - Mon, 06 May 2013 15:05:53 EST ID:40E5YeaU No.28413 Ignore Report Quick Reply
>>28412

Can't have except without try. Where's your try?
>>
OP - Mon, 06 May 2013 15:18:08 EST ID:OXV5XRYm No.28414 Ignore Report Quick Reply
1367867888466.png -(74541 B, 1360x765) Thumbnail displayed, click image for full size. 74541
ahh it worked! ty 420chan

i imagine i would just have to loop it to keep it asking for an int or float now
>>
Hugh Geblingdutch - Mon, 06 May 2013 15:29:28 EST ID:eBA93WqX No.28415 Ignore Report Quick Reply
>>28414

Yeah, nice work man!

And yup, I would have a loop that contains the inputting that only exits and does the rest of the program if a proper value has been inputted.

So generally (not valid python, just pseudo-ish-code):

while (not valid input)
input value
if value is valid then
exit while
end if
end while

print value*2
>>
Priscilla Drunderback - Mon, 13 May 2013 21:00:12 EST ID:DqWiTNci No.28489 Ignore Report Quick Reply
>>28414
now donate!


text parsing for a noob by Lillian Crundledine - Fri, 10 May 2013 13:04:28 EST ID:4WrcjYbE No.28452 Ignore Report Reply Quick Reply
1368205468592.png -(62872 B, 256x256) Thumbnail displayed, click image for full size. 62872
I have a long text file. I want to specify a string of characters which start a line and save those lines and delete all others.

Basically I have a chatlog and I need to filter one person's comments out from the greater noise of the large log.

Assume rather total noob but not an idiot and can follow instructions. Help?
1 posts omitted. Click Reply to view.
>>
Jenny Chollerridge - Fri, 10 May 2013 15:44:34 EST ID:9oHaUnR9 No.28455 Ignore Report Quick Reply
>>28453
Don't waste a process ;)

grep ^foo yourchatlog.txt
>>
Simon Pittfoot - Fri, 10 May 2013 16:32:58 EST ID:dUqCye/w No.28456 Ignore Report Quick Reply
>>28455
Actually I completely forgot that grep could take a file as input for some reason. I always send it piped output from a process or something that it didn't even come to mind. Good call, thanks.
>>
Cyril Pockwill - Fri, 10 May 2013 19:33:54 EST ID:zQxtUZYs No.28458 Ignore Report Quick Reply
>>28456

i have a habbit of doing the same thing. also, if you need to make a file of those lines you can

grep ^asdfadfad yourchatlog.txt > asdfasdf.txt
>>
Samuel Muddlestot - Fri, 10 May 2013 19:49:03 EST ID:q+723cBk No.28459 Ignore Report Quick Reply
Regex. Assuming your string of control characters was <<

^(<<.*)
>>
DJ BrU - Sat, 11 May 2013 05:38:51 EST ID:Gh4Pnu4g No.28465 Ignore Report Quick Reply
Alot of langues like vb have a replace function that looks like this.

Str = Replace(StringToReplace,"TextToReplaceHere", "") ' Replace anytext with no text!!!

That code might help even if you don't know the language.


Pages Next>>
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.