473,597 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python new user question - file writeline error

Hello,

I'm a newbie to Python & wondering someone can help me with this...

I have this code:
--------------------------
#! /usr/bin/python

import sys

month ={'JAN':1,'FEB' :2,'MAR':3,'APR ':4,'MAY':5,'JU N':6,'JUL':7,'A UG':
8,'SEP':9,'OCT' :10,'NOV':11,'D EC':12}
infile=file('TV A-0316','r')
outfile=file('t mp.out','w')

for line in infile:
item = line.split(',')
dob = item[6].split('/')
dob = dob[2]+'-'+str(month[dob[1]])+'-'+dob[0]
lbdt = item[8].split('/')
lbdt = lbdt[2]+'-'+str(month[lbdt[1]])+'-'+lbdt[0]
lbrc = item[10].split('/')
lbrc = lbrc[2]+'-'+str(month[lbrc[1]])+'-'+lbrc[0]
lbrp = item[14].split('/')
lbrp = lbrp[2]+'-'+str(month[lbrp[1]])+'-'+lbrp[0]
item[6] = dob
item[8] = lbdt
item[10]=lbrc
item[14]=lbrp
list = ','.join(item)
outfile.writeli nes(list)
infile.close
outfile.close
-----------------------------

And the data file(TVA-0316) looks like this:
-----------------------------
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,AST,19,U/L,5,40,,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,GGT,34,U/L,11,32,h,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,ALT,31,U/L,5,29,h,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,ALKP,61,U/L,40,135,,
-----------------------------

Basically I'm reading in each line and converting all date fields (05/
MAR/1950) to different format (1950-03-05) in order to load into MySQL
table.

I have two issues:
1. the outfile doesn't complete with no error message. when I check
the last line in the python interpreter, it has read and processed the
last line, but the output file stopped before.
2. Is this the best way to do this in Python?
3. (Out of scope) is there a way to load this CSV file directly into
MySQL data field without converting the format?

Thank you.

James

Feb 7 '07 #1
13 6201
James a écrit :
Hello,

I'm a newbie to Python & wondering someone can help me with this...

I have this code:
--------------------------
#! /usr/bin/python

import sys

month ={'JAN':1,'FEB' :2,'MAR':3,'APR ':4,'MAY':5,'JU N':6,'JUL':7,'A UG':
8,'SEP':9,'OCT' :10,'NOV':11,'D EC':12}
infile=file('TV A-0316','r')
outfile=file('t mp.out','w')

for line in infile:
item = line.split(',')
CSV format ?
http://docs.python.org/lib/module-csv.html
dob = item[6].split('/')
dob = dob[2]+'-'+str(month[dob[1]])+'-'+dob[0]
Why did you use integers as values in the month dict if it's for using
them as strings ?
lbdt = item[8].split('/')
lbdt = lbdt[2]+'-'+str(month[lbdt[1]])+'-'+lbdt[0]
lbrc = item[10].split('/')
lbrc = lbrc[2]+'-'+str(month[lbrc[1]])+'-'+lbrc[0]
lbrp = item[14].split('/')
lbrp = lbrp[2]+'-'+str(month[lbrp[1]])+'-'+lbrp[0]
This may help too:
http://docs.python.org/lib/module-datetime.html
item[6] = dob
item[8] = lbdt
item[10]=lbrc
item[14]=lbrp
list = ','.join(item)
Better to avoid using builtin types names as identifiers. And FWIW, this
is *not* a list...
outfile.writeli nes(list)
You want file.writeline( ) or file.write(). And you have to manually add
the newline.
infile.close
You're not actually *calling* infile.close - just getting a reference on
the file.close method. The parens are not optional in Python, they are
the call operator.
outfile.close
Idem.
-----------------------------

And the data file(TVA-0316) looks like this:
-----------------------------
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,AST,19,U/L,5,40,,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,GGT,34,U/L,11,32,h,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,ALT,31,U/L,5,29,h,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,ALKP,61,U/L,40,135,,
-----------------------------

Basically I'm reading in each line and converting all date fields (05/
MAR/1950) to different format (1950-03-05) in order to load into MySQL
table.

I have two issues:
1. the outfile doesn't complete with no error message. when I check
the last line in the python interpreter, it has read and processed the
last line, but the output file stopped before.
Use the csv module and cleanly close your files, then come back if you
still have problems.
2. Is this the best way to do this in Python?
Err... What to say... Obviously, no.
Feb 7 '07 #2
On 7 Feb 2007 11:31:32 -0800, James <ci***********@ gmail.comwrote:
Hello,

I'm a newbie to Python & wondering someone can help me with this...

I have this code:
--------------------------
#! /usr/bin/python

import sys

month ={'JAN':1,'FEB' :2,'MAR':3,'APR ':4,'MAY':5,'JU N':6,'JUL':7,'A UG':
8,'SEP':9,'OCT' :10,'NOV':11,'D EC':12}
infile=file('TV A-0316','r')
outfile=file('t mp.out','w')

for line in infile:
item = line.split(',')
dob = item[6].split('/')
dob = dob[2]+'-'+str(month[dob[1]])+'-'+dob[0]
lbdt = item[8].split('/')
lbdt = lbdt[2]+'-'+str(month[lbdt[1]])+'-'+lbdt[0]
lbrc = item[10].split('/')
lbrc = lbrc[2]+'-'+str(month[lbrc[1]])+'-'+lbrc[0]
lbrp = item[14].split('/')
lbrp = lbrp[2]+'-'+str(month[lbrp[1]])+'-'+lbrp[0]
item[6] = dob
item[8] = lbdt
item[10]=lbrc
item[14]=lbrp
list = ','.join(item)
outfile.writeli nes(list)
infile.close
outfile.close
-----------------------------

And the data file(TVA-0316) looks like this:
-----------------------------
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,AST,19,U/L,5,40,,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,GGT,34,U/L,11,32,h,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,ALT,31,U/L,5,29,h,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,ALKP,61,U/L,40,135,,
-----------------------------

Basically I'm reading in each line and converting all date fields (05/
MAR/1950) to different format (1950-03-05) in order to load into MySQL
table.

I have two issues:
1. the outfile doesn't complete with no error message. when I check
the last line in the python interpreter, it has read and processed the
last line, but the output file stopped before.
2. Is this the best way to do this in Python?
3. (Out of scope) is there a way to load this CSV file directly into
MySQL data field without converting the format?

Thank you.

James

--
http://mail.python.org/mailman/listinfo/python-list

Your script worked for me. I'm not sure what the next step is in
troubleshooting it. Is it possible that your whitespace isn't quite
right? I had to reformat it, but I assume it was because of the way
cut & paste worked from Gmail.

I usually use Perl for data stuff like this, but I don't see why
Python wouldn't be a great solution. However, I would re-write it
using regexes, to seek and replace sections that are formatted like a
date, rather than breaking it into a variable for each field, changing
each date individually, then putting them back together.

As for how MySQL likes having dates formatted in CSV input: I can't
help there, but I'm sure someone else can.

I'm pretty new to Python myself, but if you'd like help with a
Perl/regex solution, I'm up for it. For that matter, whipping up a
Python/regex solution would probably be good for me. Let me know.

Shawn
Feb 7 '07 #3
On Feb 7, 4:59 pm, "Shawn Milo" <S...@Milochik. comwrote:
On 7 Feb 2007 11:31:32 -0800, James <cityhunter...@ gmail.comwrote:
Hello,
I'm a newbie to Python & wondering someone can help me with this...
I have this code:
--------------------------
#! /usr/bin/python
import sys
month ={'JAN':1,'FEB' :2,'MAR':3,'APR ':4,'MAY':5,'JU N':6,'JUL':7,'A UG':
8,'SEP':9,'OCT' :10,'NOV':11,'D EC':12}
infile=file('TV A-0316','r')
outfile=file('t mp.out','w')
for line in infile:
item = line.split(',')
dob = item[6].split('/')
dob = dob[2]+'-'+str(month[dob[1]])+'-'+dob[0]
lbdt = item[8].split('/')
lbdt = lbdt[2]+'-'+str(month[lbdt[1]])+'-'+lbdt[0]
lbrc = item[10].split('/')
lbrc = lbrc[2]+'-'+str(month[lbrc[1]])+'-'+lbrc[0]
lbrp = item[14].split('/')
lbrp = lbrp[2]+'-'+str(month[lbrp[1]])+'-'+lbrp[0]
item[6] = dob
item[8] = lbdt
item[10]=lbrc
item[14]=lbrp
list = ','.join(item)
outfile.writeli nes(list)
infile.close
outfile.close
-----------------------------
And the data file(TVA-0316) looks like this:
-----------------------------
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,AST,19,U/L,5,40,,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,GGT,34,U/L,11,32,h,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,ALT,31,U/L,5,29,h,
06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/
NOV/2006,V1,,,21/NOV/2006,ALKP,61,U/L,40,135,,
-----------------------------
Basically I'm reading in each line and converting all date fields (05/
MAR/1950) to different format (1950-03-05) in order to load into MySQL
table.
I have two issues:
1. the outfile doesn't complete with no error message. when I check
the last line in the python interpreter, it has read and processed the
last line, but the output file stopped before.
2. Is this the best way to do this in Python?
3. (Out of scope) is there a way to load this CSV file directly into
MySQL data field without converting the format?
Thank you.
James
--
http://mail.python.org/mailman/listinfo/python-list

Your script worked for me. I'm not sure what the next step is in
troubleshooting it. Is it possible that your whitespace isn't quite
right? I had to reformat it, but I assume it was because of the way
cut & paste worked from Gmail.

I usually use Perl for data stuff like this, but I don't see why
Python wouldn't be a great solution. However, I would re-write it
using regexes, to seek and replace sections that are formatted like a
date, rather than breaking it into a variable for each field, changing
each date individually, then putting them back together.

As for how MySQL likes having dates formatted in CSV input: I can't
help there, but I'm sure someone else can.

I'm pretty new to Python myself, but if you'd like help with a
Perl/regex solution, I'm up for it. For that matter, whipping up a
Python/regex solution would probably be good for me. Let me know.

Shawn
Thank you very much for your kind offer.
I'm also coming from Perl myself - heard many good things about Python
so I'm trying it out - but it seems harder than I thought :(

James

Feb 7 '07 #4
James a écrit :
On Feb 7, 4:59 pm, "Shawn Milo" <S...@Milochik. comwrote:
(snip)
>>I'm pretty new to Python myself, but if you'd like help with a
Perl/regex solution, I'm up for it. For that matter, whipping up a
Python/regex solution would probably be good for me. Let me know.

Shawn


Thank you very much for your kind offer.
I'm also coming from Perl myself - heard many good things about Python
so I'm trying it out - but it seems harder than I thought :(
If I may comment, Python is not Perl, and trying to solve things the
Perl way, while still possible, may not be the best idea (I don't mean
Perl is a bad idea in itself - just that it's another language with
another way to do things).

Here, doing the parsing oneself - either manually as james did or with
regexps - is certainly not as easy as with Perl, and IMHO not the
simplest way to go, when the csv module can take care of parsing and
formatting CSV files and the datetime module of parsing and formatting
dates.

Just my 2 cents...

Feb 7 '07 #5
On 7 Feb 2007 11:31:32 -0800, James <ci***********@ gmail.comwrote:
I have this code:
....
infile.close
outfile.close
....
1. the outfile doesn't complete with no error message. when I check
the last line in the python interpreter, it has read and processed the
last line, but the output file stopped before.
You need to call the close methods on your file objects like this:
outfile.close()

If you leave off the parentheses, you get the method object, but don't
do anything with it.
2. Is this the best way to do this in Python?
I would parse your dates using the python time module, like this:

Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
IDLE 1.2
>>import time
line = r'06-0588,03,701,037 01,0000046613,J JB,05/MAR/1950,M,20/NOV/2006,08:50,21/NOV/2006,V1,,,21/NOV/2006,AST,19,U/L,5,40,,'
item = line.split(',')
time.strftime ('%a, %d %b %Y', timedate)
'Sun, 05 Mar 1950'
>>dob = item[6]
dob_time = time.strptime(d ob, '%d/%b/%Y')
dob_time
(1950, 3, 5, 0, 0, 0, 6, 64, -1)
>>time.strftime ('%Y-%m-%d', dob_time)
'1950-03-05'

See the docs for the time module here:
http://docs.python.org/lib/module-time.html
Using that will probably result in code that's quite a bit easier to
read if you ever have to come back to it.

You also might want to investigate the csv module
(http://docs.python.org/lib/module-csv.html) for a bunch of tools
specifically tailored to working with files full of comma separated
values like your input files.

--
Jerry
Feb 7 '07 #6
To the list:

I have come up with something that's working fine. However, I'm fairly
new to Python, so I'd really appreciate any suggestions on how this
can be made more Pythonic.

Thanks,
Shawn


Okay, here's what I have come up with:
#! /usr/bin/python

import sys
import re

month ={'JAN':1,'FEB' :2,'MAR':3,'APR ':4,'MAY':5,'JU N':6,'JUL':7,'A UG':8,'SEP':9,' OCT':10,'NOV':1 1,'DEC':12}
infile=file('TV A-0316','r')
outfile=file('t mp.out','w')

def formatDatePart( x):
"take a number and transform it into a two-character string,
zero padded"
x = str(x)
while len(x) < 2:
x = "0" + x
return x

regex = re.compile(r",\ d{2}/[A-Z]{3}/\d{4},")

for line in infile:
matches = regex.findall(l ine)
for someDate in matches:

dayNum = formatDatePart( someDate[1:3])
monthNum = formatDatePart( month[someDate[4:7]])
yearNum = formatDatePart( someDate[8:12])

newDate = ",%s-%s-%s," % (yearNum,monthN um,dayNum)
line = line.replace(so meDate, newDate)

outfile.writeli nes(line)

infile.close
outfile.close
Feb 8 '07 #7
On 8 feb, 12:41, "Shawn Milo" <S...@Milochik. comwrote:
I have come up with something that's working fine. However, I'm fairly
new to Python, so I'd really appreciate any suggestions on how this
can be made more Pythonic.
A few comments:

You don't need the formatDatePart function; delete it, and replace
newDate = ",%s-%s-%s," % (yearNum,monthN um,dayNum)
with
newDate = ",%04.4d-%02.2d-%02.2d," % (yearNum,monthN um,dayNum)

and before:
dayNum, monthNum, yearNum = [int(num) for num in
someDate[1:-1].split('/')]

And this: outfile.writeli nes(line)
should be: outfile.write(l ine)
(writelines works almost by accident here).

You forget again to use () to call the close methods:
infile.close()
outfile.close()

I don't like the final replace, but for a script like this I think
it's OK.

--
Gabriel Genellina

Feb 8 '07 #8
On 8 Feb 2007 09:05:51 -0800, Gabriel Genellina <ga******@yahoo .com.arwrote:
On 8 feb, 12:41, "Shawn Milo" <S...@Milochik. comwrote:
I have come up with something that's working fine. However, I'm fairly
new to Python, so I'd really appreciate any suggestions on how this
can be made more Pythonic.

A few comments:

You don't need the formatDatePart function; delete it, and replace
newDate = ",%s-%s-%s," % (yearNum,monthN um,dayNum)
with
newDate = ",%04.4d-%02.2d-%02.2d," % (yearNum,monthN um,dayNum)

and before:
dayNum, monthNum, yearNum = [int(num) for num in
someDate[1:-1].split('/')]

And this: outfile.writeli nes(line)
should be: outfile.write(l ine)
(writelines works almost by accident here).

You forget again to use () to call the close methods:
infile.close()
outfile.close()

I don't like the final replace, but for a script like this I think
it's OK.

--
Gabriel Genellina

--
http://mail.python.org/mailman/listinfo/python-list

Gabriel,

Thanks for the comments! The new version is below. I thought it made a
little more sense to format the newDate = ... line the way I have it
below, although I did incorporate your suggestions. Also, the
formatting options you provided seemed to specify not only string
padding, but also decimal places, so I changed it. Please let me know
if there is some other meaning behind the way you did it.

As for not liking the replace line, what would you suggest instead?

Shawn

#! /usr/bin/python

import sys
import re

month ={'JAN':1,'FEB' :2,'MAR':3,'APR ':4,'MAY':5,'JU N':6,'JUL':7,'A UG':8,'SEP':9,' OCT':10,'NOV':1 1,'DEC':12}
infile=file('TV A-0316','r')
outfile=file('t mp.out','w')

regex = re.compile(r",\ d{2}/[A-Z]{3}/\d{4},")

for line in infile:
matches = regex.findall(l ine)
for someDate in matches:

dayNum = someDate[1:3]
monthNum = month[someDate[4:7]]
yearNum = someDate[8:12]

newDate = ",%04d-%02d-%02d," %
(int(yearNum),i nt(monthNum),in t(dayNum))
line = line.replace(so meDate, newDate)

outfile.write(l ine)

infile.close()
outfile.close()
Feb 8 '07 #9
Shawn Milo kirjoitti:
To the list:

I have come up with something that's working fine. However, I'm fairly
new to Python, so I'd really appreciate any suggestions on how this
can be made more Pythonic.

Thanks,
Shawn


Okay, here's what I have come up with:
What follows may feel harsh but you asked for it ;)
>

#! /usr/bin/python

import sys
import re

month
={'JAN':1,'FEB' :2,'MAR':3,'APR ':4,'MAY':5,'JU N':6,'JUL':7,'A UG':8,'SEP':9,' OCT':10,'NOV':1 1,'DEC':12}

infile=file('TV A-0316','r')
outfile=file('t mp.out','w')

def formatDatePart( x):
"take a number and transform it into a two-character string,
zero padded"
If a comment or doc string is misleading one would be better off without
it entirely:
"take a number": the function can in fact take (at least)
any base type
"transform it": the function doesn't transform x to anything
although the name of the variable x is the same
as the argument x
"two-character string": to a string of at least 2 chars
"zero padded": where left/right???
x = str(x)
while len(x) < 2:
x = "0" + x
You don't need loops for these kind of things. One possibility is to
replace the whole body with:
return str(x).zfill(2)
return x

regex = re.compile(r",\ d{2}/[A-Z]{3}/\d{4},")

for line in infile:
matches = regex.findall(l ine)
for someDate in matches:
Empty lines are supposed to make code more readable. The above empty
line does the contrary by separating the block controlled by the for
and the for statement
dayNum = formatDatePart( someDate[1:3])
monthNum = formatDatePart( month[someDate[4:7]])
yearNum = formatDatePart( someDate[8:12])
You don't need the formatDatePart function at all:
newDate = ",%4s-%02d-%2s," % \
(someDate[8:12],month[someDate[4:7]],someDate[1:3])
>
newDate = ",%s-%s-%s," % (yearNum,monthN um,dayNum)
line = line.replace(so meDate, newDate)

outfile.writeli nes(line)

infile.close
outfile.close
You have not read the answers given to the OP, have you. Because if you
had, your code would be:
infile.close()
outfile.close()
The reason your version seems to be working, is that you probably
execute your code from the command-line and exiting from Python to
command-line closes the files, even if you don't.

Cheers,
Jussi
Feb 8 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
33688
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
1
3719
by: Eric Cory | last post by:
Hello Gurus I can't get Dart PowerFTP to do anything. I create the ftp oblect and set the connection values, but when I do a get, put or even an invoke for a site command, I always get the error message "No more results can be returned by WSALookupServiceNext." If anyone could give me some advice either about this problem or where to ask this question, I would apreciate
5
3198
by: Markus Stehle | last post by:
Hi all! I have asp.net web application that uses static impersonation. Is it possible to change the impersonated user during runtime? Within some parts of my application I would like to impersonate another user in order to access certain ressources and then switch back to the originally impersonated user. How can I do this? Thanks
8
17131
by: RTT | last post by:
i'm writing a windows form but codebased a iwant to run the code as a different user. like in a webapplication you can impersonate a user so the website does not run on the standard ASP.NET user. is it possible to do the same for a windows form and define a user codebased and run the code like that user is running the application.
6
10207
by: Don | last post by:
I'm having problems working with a streamwriter object. After closing the streamwriter and setting it to Nothing, I try to delete the file it was writing to, but I always get the following error message: "The process cannot access the file "whatever" because it is being used by another process." I've even tried opening another file using the same streamwriter object before deleting the original file, but it's no use. Something keeps...
6
9914
by: tatamata | last post by:
Hello. How can I run some Python script within C# program? Thanks, Zlatko
1
20363
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example (C#); public class MyServiceInstaller : System.Configuration.Install.Installer { private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller;
145
4227
by: Dave Parker | last post by:
I've read that one of the design goals of Python was to create an easy- to-use English-like language. That's also one of the design goals of Flaming Thunder at http://www.flamingthunder.com/ , which has proven easy enough for even elementary school students, even though it is designed for scientists, mathematicians and engineers.
0
7979
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7894
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8381
jinu1996
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...
0
8262
tracyyun
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...
0
6706
agi2029
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...
1
5847
isladogs
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...
0
3893
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...
0
3937
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.