|
by: Ravi |
last post by:
Hi,
I have about 200GB of data that I need to go through and extract the
common first part of a line. Something like this.
>>>a = "abcdefghijklmnopqrstuvwxyz"
>>>b = "abcdefghijklmnopBHLHT"
>>>c = extract(a,b)
>>>print c
"abcdefghijklmnop"
|
by: gohaku |
last post by:
Hi everyone,
I am having a problem with the match function:
import re
string = 'abc 123456 xyz'
if re.match("\d{1,}",string):
print "Found a number" #Does not print
whereas findall works:
|
by: Matt Wette |
last post by:
Over the last few years I have converted from Perl and Scheme to
Python. There one task that I do often that is really slick in Perl
but escapes me in Python. I read in a text line from a file and check
it against several regular expressions and do something once I find a match.
For example, in perl ...
if ($line =~ /struct {/) {
do something
} elsif ($line =~ /typedef struct {/) {
do something else
|
by: Andrew Chanter |
last post by:
I have a table containing multiple records per key. eg:
1 | John Smith
1 | Mary Brown
1 | Julie Grey
2 | Danny Pink
2 | Jill White
I need to consolidate this into a single record for each key, eg.
|
by: Dalan |
last post by:
Trying to determine the best approach to use in consolating multiple
records in an Access 97 Db. The users submit updates in HTML format
generated from a query that are in turn imported into a master
database. There are 50+/- records each that are submitted by a
substantial number of users with each periodic update. The output does
include the user ID reference and the date prepared, but as a query
has no header, the information is...
|
|
by: Raj |
last post by:
Hi All,
I have a method call GetStationListenUrl that exists as three
overloaded methods
1) public static string GetUrl( int strength, string
strengthNavigateUrl, zzz.StreamRow sra, string bandName)
2) public static string GetUrl( int strength, string
strengthNavigateUrl, xxx.StreamsRow sra, string bandName)
|
by: Jeff McPhail |
last post by:
I am using Regex.Match in a large application and the memory is growing out of control. I have tried several ways to try and release the memory and none of them work. Here are some similar examples of what I have tried...
string testString = "lkf slkdjflksd sdfjlksdjff fsdjlsdfj flk;sjkf";
while(true)
{
Regex .Match(testString,@"(\w)");
}
----------------------------------------------------------------------
string testString = "lkf...
|
by: Ofer Zelig |
last post by:
Hello,
I have a simple AJAX-enabled (RC 1.0) web site. Runs perfectly on my local
machine (debugged by VS IDE).
The problem is that on remote ("prodction") machine, every "satellite"
file - JS, GIF etc. gets downloaded every time. I see it using HttpWatch (a
tool similar to Fiddler).
Locally, the client appropriately sends If-None-Match header so the server
returns 304 Not Modified as needed. But accessing the remote version, the...
|
by: --CELKO-- |
last post by:
Can I get a little help? Given a very simple table of events, with
their durations, I want to consolidate time periods for an event that
(1) touch each other or (2) overlap each other.
CREATE TABLE Events
(event_id VARCHAR(25) NOT NULL,
start_date DATE NOT NULL,
end_date DATE NOT NULL,
CHECK (start_date <= end_date),
PRIMARY KEY (event_id, start_date, end_date));
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|