473,756 Members | 2,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

newbe question about removing items from one file to another file

def simplecsdtoorc( filename):
file = open(filename," r")
alllines = file.read_until ("</CsInstruments>" )
pattern1 = re.compile("</")
orcfilename = filename[-3:] + "orc"
for line in alllines:
if not pattern1
print >>orcfilename , line

I am pretty sure my code isn't close to what I want. I need to be able
to skip html like commands from <definedto <undefinedand to key on
another word in adition to </CsInstrumentsto end the routine

I was also looking at se 2.2 beta but didn't see any easy way to use it
for this or for that matter search and replace where I could just add
it as a menu item and not worry about it.

thanks for any help in advance

Aug 27 '06
17 2719
Dexter,

Here's a function that screens out all instrument blocks and puts them into a dictionary keyed on the instrument number:

--------------------------------------------

def get_instruments (file_name):

INSIDE = 1
OUTSIDE = 0

f = file (file_name, 'ra')
state = OUTSIDE
instruments = {}
instrument_segm ent = ''

for line in f:
if state == OUTSIDE:
if line.startswith ('<CsInstrument s'):
state = INSIDE
instrument_segm ent += line
else:
instrument_segm ent += line
if line.lstrip ().startswith ('instr'):
instrument_numb er = line.split () [1]
elif line.startswith ('</CsInstruments') :
instruments [instrument_numb er] = instrument_segm ent
instrument_segm ent = ''
state = OUTSIDE

f.close ()
return instruments

------------------------------------------------

You have received good advice on using parsers: "beautiful soup" or "pyparse". These are powerful tools capable of doing complicated
extractions. Yours is not a complicated extraction. Simon tried it with "beautiful soup". That seems simple enough, though he finds
the data by index leaving open where he gets the index from. There's surely a way to get the data by name.
Contrary to the parser the function will miss if tags take liberties with upper-lower case letters as they are probably
allowed by the specification. A regular expression might have to be used, if they do.
From your description I haven't been able to infer what the final format of your data is supposed to be. So I cannot tell you
how to go on from here. You'll find out. If not, just keep asking.

The SE solution which you said couldn't work out would be the following. It makes the same dictionary the function makes and it is
case-insensitive:

------------------------------------------------
>>Instrument_Se gment_Filter = SE.SE ('<EAT"~(?i)<Cs Instruments>(.| \n)*?</CsInstruments>~ ==\n\n" ')
instrument_se gments= Instrument_Segm ent_Filter ('file_name', '')
print instrument_segm ents
(... see all instrument segments ...)
>>Instrument_Nu mber = SE.SE ('<EAT~instr.*~ ==\n')
instruments ={}
for segment in instrument_segm ents.split ('\n\n'):
if segment:
instr_line = Instrument_Numb er (segment)
instrument_numb er = instr_line.spli t ()[1]
instruments [instrument_numb er] = segment

--------------------------------------------------

(If you're on Windows and the CRs bother you, take them out with an additional definition when you make your
Instrument_Bloc k_Filter: (13)= or "\r=")
Regards

Frederic
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Wednesday, August 30, 2006 1:51 AM
Subject: Re: newbe question about removing items from one file to another file

>
Anthra Norell wrote:
Dexter,

I looked at the format specification. It contains an example:

-----------------------------------------------

<CsoundSynthesi zer>;
; test.csd - a Csound structured data file

<CsOptions>
-W -d -o tone.wav
</CsOptions>
....
etc.

Aug 30 '06 #11

Anthra Norell wrote:
Dexter,

Here's a function that screens out all instrument blocks and puts them into a dictionary keyed on the instrument number:

--------------------------------------------

def get_instruments (file_name):

INSIDE = 1
OUTSIDE = 0

f = file (file_name, 'ra')
state = OUTSIDE
instruments = {}
instrument_segm ent = ''

for line in f:
if state == OUTSIDE:
if line.startswith ('<CsInstrument s'):
state = INSIDE
instrument_segm ent += line
else:
instrument_segm ent += line
if line.lstrip ().startswith ('instr'):
instrument_numb er = line.split () [1]
elif line.startswith ('</CsInstruments') :
instruments [instrument_numb er] = instrument_segm ent
instrument_segm ent = ''
state = OUTSIDE

f.close ()
return instruments

------------------------------------------------

You have received good advice on using parsers: "beautiful soup" or "pyparse". These are powerful tools capable of doing complicated
extractions. Yours is not a complicated extraction. Simon tried it with "beautiful soup". That seems simple enough, though he finds
the data by index leaving open where he gets the index from. There's surely a way to get the data by name.
Contrary to the parser the function will miss if tags take liberties with upper-lower case letters as they are probably
allowed by the specification. A regular expression might have to be used, if they do.
From your description I haven't been able to infer what the final format of your data is supposed to be. So I cannot tell you
how to go on from here. You'll find out. If not, just keep asking.

The SE solution which you said couldn't work out would be the following. It makes the same dictionary the function makes and it is
case-insensitive:

------------------------------------------------
>Instrument_Seg ment_Filter = SE.SE ('<EAT"~(?i)<Cs Instruments>(.| \n)*?</CsInstruments>~ ==\n\n" ')
instrument_seg ments= Instrument_Segm ent_Filter ('file_name', '')
print instrument_segm ents
(... see all instrument segments ...)
>Instrument_Num ber = SE.SE ('<EAT~instr.*~ ==\n')
instruments ={}
for segment in instrument_segm ents.split ('\n\n'):
if segment:
instr_line = Instrument_Numb er (segment)
instrument_numb er = instr_line.spli t ()[1]
instruments [instrument_numb er] = segment

--------------------------------------------------

(If you're on Windows and the CRs bother you, take them out with an additional definition when you make your
Instrument_Bloc k_Filter: (13)= or "\r=")
Regards

Frederic
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Wednesday, August 30, 2006 1:51 AM
Subject: Re: newbe question about removing items from one file to another file


Anthra Norell wrote:
Dexter,
>
I looked at the format specification. It contains an example:
>
-----------------------------------------------
>
<CsoundSynthesi zer>;
; test.csd - a Csound structured data file
>
<CsOptions>
-W -d -o tone.wav
</CsOptions>
>
...
etc.
Thanks for the help I can't wait to try it out.. (has to wait for the
weekend.. three days off finaly.)

http://www.dexrow.com

Aug 31 '06 #12

Simon Forman wrote:
Er*********@msn .com wrote:
Anthra Norell wrote:
Dexter,
>
I looked at the format specification. It contains an example:
>
-----------------------------------------------
>
<CsoundSynthesi zer>;
; test.csd - a Csound structured data file
>
<CsOptions>
-W -d -o tone.wav
</CsOptions>
>
<CsVersion ;optional section
Before 4.10 ;these two statements check for
After 4.08 ; Csound version 4.09
</CsVersion>
>
<CsInstrument s>
; originally tone.orc
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1
instr 1
a1 oscil p4, p5, 1 ; simple oscillator
out a1
endin
</CsInstruments>
>
<CsScore>
; originally tone.sco
f1 0 8192 10 1
i1 0 1 20000 1000 ;play one second of one kHz tone
e
</CsScore>
>
</CsoundSynthesiz er>
>
-------------------------------------
>
If I understand correctly you want to write the instruments block to a file (from <CsInstrumentst o </CsInstruments>) ? Right? Or
each block to its own file in case there are several?. You want your code to generate the file names? Can you confirm this or
explain it differently?
>
Regards
>
Frederic
>
>
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Monday, August 28, 2006 10:48 AM
Subject: Re: newbe question about removing items from one file to another file
>
>

Anthra Norell wrote:
Eric,
Having played around with problems of this kind for quite some time I find them challenging even if I don't really have time
to
get sidetracked. Your description of the problem makes it all the more challenging, because its 'expressionist' quality adds the
challenge of guessing what you mean.
I'd like to take a look at your data, if you would post a segment on which to operate, the same data the way it should look
in
the end. In most cases this is pretty self-explanatory. Explain the points that might not be obvious to a reader who knows
nothing
about your mission.
>
Frederic
>
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Sunday, August 27, 2006 11:35 PM
Subject: newbe question about removing items from one file to another file
>
>
def simplecsdtoorc( filename):
file = open(filename," r")
alllines = file.read_until ("</CsInstruments>" )
pattern1 = re.compile("</")
orcfilename = filename[-3:] + "orc"
for line in alllines:
if not pattern1
print >>orcfilename , line

I am pretty sure my code isn't close to what I want. I need to be able
to skip html like commands from <definedto <undefinedand to key on
another word in adition to </CsInstrumentsto end the routine

I was also looking at se 2.2 beta but didn't see any easy way to use it
for this or for that matter search and replace where I could just add
it as a menu item and not worry about it.

thanks for any help in advance

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

sorry about that this is a link to a discription of the format
http://kevindumpscore.com/docs/csoun...ndunifile.html
It is possible to have more than one instr defined in an .csd file so I
would need to look for that string also if I want to seperate the
instruments out.

http://www.dexrow.com

--
http://mail.python.org/mailman/listinfo/python-list
I need to take it between the blocks only I also need to make sure I
only take one instrument
defined in this example with the code instr 1 I also need the code

<CsInstrument s>
; originally tone.orc
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1
regardless of what instrument I take. The function would have to
except the instrument number as an argument

http://www.dexrow.com

Using BeautifulSoup and the interactive interpreter, I figured out the
following script in about 15 minutes:

# s is a string containing the example file from above.

from BeautifulSoup import BeautifulStoneS oup

soup = BeautifulStoneS oup(s)
csin = soup.contents[0].contents[5]
lines = csin.string.spl itlines()

print csin.string

It prints:

; originally tone.orc
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1
instr 1
a1 oscil p4, p5, 1 ; simple oscillator
out a1
endin
and of course you could say "lines = csin.string.spl itlines()" to get a
list of the lines. That doesn't take you all the way, but it's
something.

Hope that helps,
Peace,
~Simon
I seem to be having problems getting the code to work.. Seems to crash
my whole project, I don't know if I am missing an import file or what
(I had to go back to an older version on my hd.. I have uploaded what
I have on to sourceforge

https://sourceforge.net/project/show...ease_id=444362
http://www.dexrow.com

thanks for the help

Sep 4 '06 #13

Anthra Norell wrote:
Dexter,

I looked at the format specification. It contains an example:

-----------------------------------------------

<CsoundSynthesi zer>;
; test.csd - a Csound structured data file

<CsOptions>
-W -d -o tone.wav
</CsOptions>

<CsVersion ;optional section
Before 4.10 ;these two statements check for
After 4.08 ; Csound version 4.09
</CsVersion>

<CsInstrument s>
; originally tone.orc
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1
instr 1
a1 oscil p4, p5, 1 ; simple oscillator
out a1
endin
</CsInstruments>

<CsScore>
; originally tone.sco
f1 0 8192 10 1
i1 0 1 20000 1000 ;play one second of one kHz tone
e
</CsScore>

</CsoundSynthesiz er>

-------------------------------------

If I understand correctly you want to write the instruments block to a file (from <CsInstrumentst o </CsInstruments>) ? Right? Or
each block to its own file in case there are several?. You want your code to generate the file names? Can you confirm this or
explain it differently?

Regards

Frederic
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Monday, August 28, 2006 10:48 AM
Subject: Re: newbe question about removing items from one file to another file


Anthra Norell wrote:
Eric,
Having played around with problems of this kind for quite some time I find them challenging even if I don't really have time
to
get sidetracked. Your description of the problem makes it all the more challenging, because its 'expressionist' quality adds the
challenge of guessing what you mean.
I'd like to take a look at your data, if you would post a segment on which to operate, the same data the way it should look
in
the end. In most cases this is pretty self-explanatory. Explain the points that might not be obvious to a reader who knows
nothing
about your mission.
>
Frederic
>
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Sunday, August 27, 2006 11:35 PM
Subject: newbe question about removing items from one file to another file
>
>
def simplecsdtoorc( filename):
file = open(filename," r")
alllines = file.read_until ("</CsInstruments>" )
pattern1 = re.compile("</")
orcfilename = filename[-3:] + "orc"
for line in alllines:
if not pattern1
print >>orcfilename , line

I am pretty sure my code isn't close to what I want. I need to be able
to skip html like commands from <definedto <undefinedand to key on
another word in adition to </CsInstrumentsto end the routine

I was also looking at se 2.2 beta but didn't see any easy way to use it
for this or for that matter search and replace where I could just add
it as a menu item and not worry about it.

thanks for any help in advance

--
http://mail.python.org/mailman/listinfo/python-list
sorry about that this is a link to a discription of the format
http://kevindumpscore.com/docs/csoun...ndunifile.html
It is possible to have more than one instr defined in an .csd file so I
would need to look for that string also if I want to seperate the
instruments out.

http://www.dexrow.com

--
http://mail.python.org/mailman/listinfo/python-list
sorry I responded to the wrong post... I was having trouble figuring
out the buitiful soup download

Sep 4 '06 #14

Anthra Norell wrote:
Dexter,

Here's a function that screens out all instrument blocks and puts them into a dictionary keyed on the instrument number:

--------------------------------------------

def get_instruments (file_name):

INSIDE = 1
OUTSIDE = 0

f = file (file_name, 'ra')
state = OUTSIDE
instruments = {}
instrument_segm ent = ''

for line in f:
if state == OUTSIDE:
if line.startswith ('<CsInstrument s'):
state = INSIDE
instrument_segm ent += line
else:
instrument_segm ent += line
if line.lstrip ().startswith ('instr'):
instrument_numb er = line.split () [1]
elif line.startswith ('</CsInstruments') :
instruments [instrument_numb er] = instrument_segm ent
instrument_segm ent = ''
state = OUTSIDE

f.close ()
return instruments

------------------------------------------------

You have received good advice on using parsers: "beautiful soup" or "pyparse". These are powerful tools capable of doing complicated
extractions. Yours is not a complicated extraction. Simon tried it with "beautiful soup". That seems simple enough, though he finds
the data by index leaving open where he gets the index from. There's surely a way to get the data by name.
Contrary to the parser the function will miss if tags take liberties with upper-lower case letters as they are probably
allowed by the specification. A regular expression might have to be used, if they do.
From your description I haven't been able to infer what the final format of your data is supposed to be. So I cannot tell you
how to go on from here. You'll find out. If not, just keep asking.

The SE solution which you said couldn't work out would be the following. It makes the same dictionary the function makes and it is
case-insensitive:

------------------------------------------------
>Instrument_Seg ment_Filter = SE.SE ('<EAT"~(?i)<Cs Instruments>(.| \n)*?</CsInstruments>~ ==\n\n" ')
instrument_seg ments= Instrument_Segm ent_Filter ('file_name', '')
print instrument_segm ents
(... see all instrument segments ...)
>Instrument_Num ber = SE.SE ('<EAT~instr.*~ ==\n')
instruments ={}
for segment in instrument_segm ents.split ('\n\n'):
if segment:
instr_line = Instrument_Numb er (segment)
instrument_numb er = instr_line.spli t ()[1]
instruments [instrument_numb er] = segment

--------------------------------------------------

(If you're on Windows and the CRs bother you, take them out with an additional definition when you make your
Instrument_Bloc k_Filter: (13)= or "\r=")
Regards

Frederic
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Wednesday, August 30, 2006 1:51 AM
Subject: Re: newbe question about removing items from one file to another file


Anthra Norell wrote:
Dexter,
>
I looked at the format specification. It contains an example:
>
-----------------------------------------------
>
<CsoundSynthesi zer>;
; test.csd - a Csound structured data file
>
<CsOptions>
-W -d -o tone.wav
</CsOptions>
>
...
etc.
I cut and pasted this.. It seems to be crashing my program.. I am not
sure that I have all the right imports.. seems to be fine when I go to
an older version of the file... I uploaded it onto source forge.

https://sourceforge.net/project/show...ease_id=444362
http://www.dexrow.com

Sep 4 '06 #15

----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Monday, September 04, 2006 4:58 AM
Subject: Re: newbe question about removing items from one file to another file

>
Anthra Norell wrote:
Dexter,

Here's a function that screens out all instrument blocks and puts them into a dictionary keyed on the instrument number:

--------------------------------------------

def get_instruments (file_name):
etc.
<CsOptions>
-W -d -o tone.wav
</CsOptions>
...
etc.

I cut and pasted this.. It seems to be crashing my program.. I am not
sure that I have all the right imports.. seems to be fine when I go to
an older version of the file... I uploaded it onto source forge.

https://sourceforge.net/project/show...ease_id=444362
http://www.dexrow.com
Eric (Eric or Dexer?)
This thread seems to have split. So let me reiterate: please copy the output when you cut, paste and run. If you have an
import problem it must be on the other side of your interface with SE, because I don't import anything and SE imports what it needs.

Frederic
Sep 4 '06 #16
I am have to be able to distribute se with the project in order to use
it
I started with import se but I did not use the setup command
when I comment out import se the program works and when
I use import se everything connected to the library crashes on the
import line..


Anthra Norell wrote:
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Monday, September 04, 2006 4:58 AM
Subject: Re: newbe question about removing items from one file to another file


Anthra Norell wrote:
Dexter,
>
Here's a function that screens out all instrument blocks and puts them into a dictionary keyed on the instrument number:
>
--------------------------------------------
>
def get_instruments (file_name):

etc.
<CsOptions>
-W -d -o tone.wav
</CsOptions>
>
...
etc.
I cut and pasted this.. It seems to be crashing my program.. I am not
sure that I have all the right imports.. seems to be fine when I go to
an older version of the file... I uploaded it onto source forge.

https://sourceforge.net/project/show...ease_id=444362
http://www.dexrow.com

Eric (Eric or Dexer?)
This thread seems to have split. So let me reiterate: please copy the output when you cut, paste and run. If you have an
import problem it must be on the other side of your interface with SE, because I don't import anything and SE imports what it needs.

Frederic
Sep 4 '06 #17
You don't need the setup command. Just place SE.py and SEL.py into a path where the import can find it. Also make sure SE.py and
SEL.py are spelled exactly like this. Linux requires the extension to be lower case, as I was myself made aware of by an alert
person who was also experiencing import problems. I must confess that my fist uploads were upper case (SE.PY). I instantaneously
replaced the upload with corrected spelling and apologize for the trouble the mistake may be causing. Fortunately correcting it is a
small matter.
Have you tried to run the function at all? It produces the same result. Made case-insensitive (if need be) I'd prefer the
function. It is more economical, since it doesn't require an extra import. It surely runs faster too (if that matters).

Frederic

----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Monday, September 04, 2006 10:52 PM
Subject: Re: newbe question about removing items from one file to another file

I am have to be able to distribute se with the project in order to use
it
I started with import se but I did not use the setup command
when I comment out import se the program works and when
I use import se everything connected to the library crashes on the
import line..


Anthra Norell wrote:
----- Original Message -----
From: <Er*********@ms n.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Monday, September 04, 2006 4:58 AM
Subject: Re: newbe question about removing items from one file to another file

>
Anthra Norell wrote:
Dexter,

Here's a function that screens out all instrument blocks and puts them into a dictionary keyed on the instrument number:

--------------------------------------------

def get_instruments (file_name):
etc.
<CsOptions>
-W -d -o tone.wav
</CsOptions>

...
etc.
>
I cut and pasted this.. It seems to be crashing my program.. I am not
sure that I have all the right imports.. seems to be fine when I go to
an older version of the file... I uploaded it onto source forge.
>
https://sourceforge.net/project/show...ease_id=444362
http://www.dexrow.com
>
Eric (Eric or Dexer?)
This thread seems to have split. So let me reiterate: please copy the output when you cut, paste and run. If you have an
import problem it must be on the other side of your interface with SE, because I don't import anything and SE imports what it
needs.

Frederic

--
http://mail.python.org/mailman/listinfo/python-list
Sep 5 '06 #18

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

Similar topics

30
3474
by: Steven Bethard | last post by:
George Sakkis wrote: > "Steven Bethard" <steven.bethard@gmail.com> wrote: >> Dict comprehensions were recently rejected: >> http://www.python.org/peps/pep-0274.html >> The reason, of course, is that dict comprehensions don't gain you >> much at all over the dict() constructor plus a generator expression, >> e.g.: >> dict((i, chr(65+i)) for i in range(4)) > > Sure, but the same holds for list comprehensions: list(i*i for i in
3
9376
by: Walter Zydhek | last post by:
I am having a problem using the NameValueCollection type. If I remove one of the items while iterating through an collection of this type, I end up with an exception. This exception is: Collection was modified after the enumerator was instantiated. This happens when it attempts to continue through the enumeration.
6
1804
by: Johnny Hansen | last post by:
Hello, I've been trying to implement smart pointers in C++ (combined with a reference counter) because I want to do some memory management. My code is based on the gamedev enginuity articles, various books and ... whatever I could find on the subject :-) I'll leave out the reference counter part because its pretty basic, but my reference counter class is called xObject. My smart pointer class is called xPointer.
3
3115
by: Jeremy Owens-Boggs | last post by:
We are trying to implement a dual list box selection where you have two list boxes, You highlight items in the right side list box, click a button and this moves those items over to the left hand list box. The problem is that if there are many items selected (thousands), then removing the items from the right side list box takes for ever because we are removing them one at a time, which causes the listbox to re-index everything before we...
4
24751
by: Gav | last post by:
I am using VS 2005 and am trying to add items to a combo box using C#. I know how to add simple text items but I am trying to add a value and some text ie. Value Text A First Text B Second Text I've seen examples of ListItem but I can't seem to get this to work, can anybody offer any advice.
9
2024
by: me | last post by:
Hi All, I am new to Classes and learniing the ropes with VB.NET express Here's my question - say I have a want to manage a list of books. Each book has an Author, Title and ISBN Now, I am used to using Arrays so I would normally do something like this: Set an array up during the init routine (called from form_load) say of
10
6804
by: Backwards | last post by:
Hello all, I'll start by explaining what my app does so not to confuss you when i ask my question. ☺ I have a VB.Net 2.0 app that starts a process (process.start ...) and passes a prameter through from a combo box. The combo box items are made up of IP address and computer host name. Anything a user places in this combo box it writes this to a txt file called history.txt
13
1724
by: Eric_Dexter | last post by:
All I am after realy is to change this reline = re.line.split('instr', '/d$') into something that grabs any line with instr in it take all the numbers and then grab any comment that may or may not be at the end of the line starting with ; until the end of the line including white spaces.. this is a corrected version from http://python-forum.org/py/viewtopic.php?t=1703
5
1527
by: =?Utf-8?B?U2NhbmJveQ==?= | last post by:
Guyz, I want to remove items from the Solution Explorer. The VBE 2005 help system claims that to do this, you have to:- 1. Select the item you want to remove. 2. On the 'Edit' menu, choose 'Remove'. The problem is that there is no 'Edit' menu in the Solution Explorer, and the
0
9456
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
9275
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
10034
Oralloy
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...
0
9872
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
9713
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...
1
7248
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
6534
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();...
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.