topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday April 18, 2024, 7:38 pm
  • 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 - kalos [ switch to compact view ]

Pages: prev1 ... 4 5 6 7 8 [9] 10 11 12 13 14 ... 73next
201
Can you explain please word by word this bit:

$items = Get-ChildItem -Path *.txt       # *.txt , *.foo , *.whatever
for ($i = 0; $i -lt $items.Count; $i++) {
  Select-String -Path $items[$i] -Pattern $regex -AllMatches | % { $_.Matches } | % { $_.Value } >> $outfile
}

Also, I need to append to the output file several regex matches/returns, how do I do that?
Also, if I specify a regex match, how do I specify what I want to be returned from this match?

202
Very interesting!

Do you know a good site that explains the structure of the script you posted and the definition/usage of the commands along with examples?

Also, does this script load the whole text of the file in memory to perform its operations? This will be a problem for a 25GB file

203
Could you tell me please in AHK? I am not familiar with that language, unless you can point me to the explanations of these commands?

204
Also, the file I want to manipulate is 25GB! Is there a strategy to handle this?

205
Thanks but I am not familiar with this language.

I think Autohotkey would be more appropriate for me as it has simple structure (what are the $i = 0; $i -lt $items.Count; $i++ they look like Aramaic to me :P)

Can you tell me the commands/structure in AHK to do this:

search for a regex1, extract regex2 from regex1 (ie append to a new file), and continuously loop until there is no other regex1 found

Also, how do I specify an exact string in regex? I want to specify the string <dsf:tsdfgd trsdfge="urn:x-ssdfgs-dfg-com:isdfgc/tg4r3e-i4d" id="OsdfgsdfD">
and I don't want to escape every single symbol etc.
Is there a way to search for an exact string literally?

206
Hello!

Which tool/scripting language can I use to match REGEX strings and extract them to a new file or to just delete the non matching strings from multiple text files?

It would help to be easy to write as I cannot learn complicated syntax!

Also, ideally it should work via command line as I am talking about many many files which can be huge.

Thanks!

207
Thanks, as for now, is there an XML reader that can extract the hierarchy tree of a specific line?

208
Hello!

You know that xml files are hierarchical, ie there is a top level attribute, then sub-attributes are indented and so on.

How can I copy the hierarchy, ie the upper level attributes of a selected attribute/line?

For example:

<a>
     <1>
     <2>
           <x1>
           <x2>

I want to select x2 and copy the hierarchy of it, ie the upper level attributes that x2 belongs to:
<a>
     <2>


Any idea?

Thanks!

209
Hello!

I have two lists with numbers. How can I find how many pairs there are between those two lists (ie similarity), where each pair is the number from second list that matches +/-5% to a number in the first list?

Thanks!

210
Living Room / Current technological and social challenges
« on: July 01, 2018, 11:39 AM »
Hello!

Can you list please current technological or social challenges that need addressing?

I want to submit to an innovation competition, but I cannot pinpoint specific problems to focus on.

Thanks!

211
Living Room / Fix screen orientation
« on: June 22, 2018, 11:41 AM »
Hello!

How can I disable or permanently fix my touchscreen rotation of my Lenovo Yoga 13 please?

There seems to be a hardware (or software) problem that makes my laptop start with disoriented screen.

Thanks!

212
Living Room / How to move forward with an idea?
« on: June 09, 2018, 05:07 PM »
Hello!

I have a revolutionary idea for a medical device. I have researched its components and how it would work, although it is in very early stages as an idea.

How can I get help to develop it further and maybe commercialise it?

I don't have any money to invest, but I am willing to give percentage of my rights to have it researched further.

Any idea?

Thanks!

213
Living Room / Re: Looking for smartphone
« on: June 08, 2018, 07:07 AM »

214
WhatsApp

215
Living Room / Basic banking issues
« on: May 15, 2018, 10:00 AM »
Hello!

I have some banking interviews and I would like some resources. Unfortunately while there are tons of info on the web, I find them either too basic or too technical. Some forums or banking recruitment are hideous (probably people feel competitive and they don't support).

Can you tell me please where I can find comprehensive information about issues like:
1) What factors affect risk of mortgages?
2) What would you check before giving a loan to a corporation?
3) How would you value a corporation?

Thanks!

216
Living Room / Help with laptop
« on: May 11, 2018, 04:55 PM »
hello guys!

I have a serious problem with my Lenovo Yoga 13 (first model) and I would really be grateful if you can help me solve it so that I won't have to waste £500 for a new laptop.

Basically, it's a convertible with touchscreen, and now I that restarted it, the screen shows as an A4, ie the screen is rotated 90 degrees!

I am worried that it is damaged because it fell few days ago, but it didn't behave like that immediately after.

Any idea??
Can I just completely disable screen rotation or something?
Thanks!

217
Living Room / Re: Looking for smartphone
« on: May 05, 2018, 02:55 PM »
Any rival for Umidigi S2 PRO?

I will eventually have to ditch my Xiaomi Redmi Pro 3. After recommendations here I bought it, which proved to be good, but it has a major lack, the lack of NFC, so I cannot use it to make payments.

218
Living Room / Re: Any native english speakers?
« on: May 05, 2018, 02:53 PM »
It's a lack of reasoning game, based on interpreting the questions in the best way for you!  ;D

Then "I and II only" is also correct, (dependant on a better image).

I could probably come up with some esoteric branch of mathematics that also proved that III was correct.

Eventually, I think all three are correct.
The III is correct becase square root of 6 raised to the power of 3 makes six times square root of six

219
Living Room / Re: grab urls
« on: May 01, 2018, 05:04 PM »
It is strange that when I download JDownloader with IE or Chrome, Windows Defender intervenes and blocks the file.
When I download with Firefox, nothing happens!

220
Living Room / Data connection through audio jack
« on: May 01, 2018, 04:24 PM »
Hello!

I bought a watch with MP3 player. It came with a cable that in its one side it has a male usb plug and in its other side it has a male 3.5mm audio jack.

Are you supposed to use this cable to connect it to your laptop and 'download' the audio files of the watch to your laptop?

I have never done something like this and I wonder if it is possible with such cable.

There is no other port on the watch.

Any idea?

thanks!

EDIT: to prevent questions, obviously I tried and nothing is recognised from my Win8.1, should I expect a 'new usb drive found' balloon? or anything else?

221
Living Room / Re: grab urls
« on: April 29, 2018, 05:00 PM »
They use the installCorew installer.

The fake google results, all have BING as their referral.

[ Invalid Attachment ]

JDownloader2 Ad-ware Free Installers from here and here.

Yeah, ofcourse I tried that with no luck.

222
Living Room / Re: grab urls
« on: April 28, 2018, 03:44 PM »
I tried some more installations of this hideous JDownloader and some times it creates an entry in Add/Remove Programs called 'BingSearchby...' something.
Unfortunately I couldn't write down the exact name. I think that's the virus. The uniinstallation of it is completely silent and I believe it doesn't work well as it leaves your system infected.
The fake google results, all have BING as their referral.

It's such as shame that Microsoft approves this.

223
Living Room / Re: Wrist watch voice recorder
« on: April 28, 2018, 03:02 PM »
OK is there any suggestion for my Original Post please?
I am struggling to find a satisfying solution.

224
Living Room / Re: grab urls
« on: April 28, 2018, 03:01 PM »
Why don't you ask them if you're already in contact with them...?

They said they don't know because another company bundles the adware and it's chosen depending on the user.

Has anyone figured out where the downloads of the JDownloader installer end up? Which folder? I may be lucky that they are still there.

225
However, we are allowed to use AutoIT!

You reference AutoIT here but AHK (AutoHotkey) in the subject.  Which (or both) is available to you?  They are not the same thing.


Yeah, sorry, AutoIt is available.

Pages: prev1 ... 4 5 6 7 8 [9] 10 11 12 13 14 ... 73next