Differenti​al Equation Solving Help

I am trying to solve the diff equation
x'' + ax' + bx = c
The ODE Linear nth Order Numeric function can handle the second derivative but not the c part, correct?
The euler and assorted solvers can't handle the second derivative nor the constant, correct?
Do I have any other options?
thanks.

It has been a really long time since I have fired my DiffEq neurons. Plus all of my text books are at home.
I looked a the labVIEW shipping examples. (Open LabVIEW >> help >> file examples >> click on search tab and enter ODE.) Shooting method.vi seems to solve second order equations with a constant. I could be wrong. You may want to look at this one and the other examples for inspiration.

Similar Messages

  • I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    Here's two popup test sites.
    http://www.kephyr.com/popupkillertest/test/index.html
    http://www.popuptest.com/

  • TS3899 I can receive, but not send emails on iPad. All settings checked several times and with internet provider. imap settings confirmed as ok. Account deleted and set up under guidance of service provider several times - problem not solved - help!!

    I can receive, but not send emails on iPad. All settings checked several times and with internet provider. imap settings confirmed as ok. Account deleted and set up under guidance of service provider several times - problem not solved - help!!

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    iPhone, iPad, iPod touch: Microsoft Outlook 2003, Outlook 2007, Outlook 2010 may not display contacts and calendars after sync
    http://support.apple.com/kb/TS1944
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iCloud: Create a group and add contacts to it
    http://support.apple.com/kb/PH2667
    eMail Groups - You can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • List of examples in pid controllin​g a firstorder differenti​al equation

    Sir, 
            I would like to view some of the examples in labview that the pid controller controlling a system of firstorder differential equation or a transfer function.
    Thanks as kudos only

    Sir,
             why not helping me to solve this problem???plz help
    Thanks as kudos only

  • Equation solving

    I would like to plot the following equation
    I=exp(x-I)
    Is there any easy way to solve for 'I' having a given x?

    Is that a number 1 in your exponential or a letter I? If it's the number 1 then the simple answer that you've been given will work. If it's the letter I then you have an algebraic equation of x=I+ln(I). Perhaps you could construct your array in reverse (i.e., determine x in terms of I) and then plot it the other way. I have attached a simple example. You could use a case structure in conjunction with a while loop instead of the for loop to set upper and lower limits on the value of x. Note that this will not give you equidistant x values.
    There are certainly ways to solve for the value of I, but at present I can't think of any which are straightforward.
    Hope this helps.
    John
    Attachments:
    I_eq_exp(x-I).vi ‏21 KB

  • Nonlinear Differential Equation solver

    Hello..
    I am trying to slove first order DE of the form.. dP/dz = A ln{ [1+[(P(z)/B)*exp(-C)]] / 1+P(z)/B } where A,B and C are numerical values. I tried to plot Z vs P(z)  using ODE slovers but didnt get the result. I am attaching the expected plot also. I found some examples like ODE circuit in LV help but end up in empty graph after trying to slove this above equation. which methode is correct to slove this equation, please suggest some way.. Thank you very much.
    Attachments:
    solution plot.png ‏6 KB

    It's been a long time since I thought about diffEQ.  Please post what you think should be a solution -- it's probably easier for me to figure out why your graph is empty than it is to figure out how to solve an ODE from scratch. 

  • (Solved)Help setting up ALSA to mix multiple sources to one output

    Hey everyone,
    I've been putting off fixing this for a while, since getting the sound working was giving me trouble from the beginning. I'm still a bit of a noob when it comes to configuring ALSA and how the system works in general, so sorry if I miss something obvious or need something explained to me >.> As it has been I can only output audio with one program at a time, and I'd like to fix that now. Some quick research told me that I should use dmix, and adding this to /etc/asound.comf would enable it:
    pcm.dsp {
    type plug
    slave.pcm "dmix"
    And I can verify that this pcm works with speaker-test -Dpcm.dsp -c 2. However, I'm not sure that programs are actually using it, since I still can't use audio with more than one program. I'm not sure if it's supposed to be listed in the output of aplay -L, but it isn't there.
    There's another issue I noticed in my experiments. To get the sound working before, I had to override pcm.default to type hw, card 0, device 0. In my research and fiddling around, I noticed that in alsa.conf card 0 and device 0 are set to the defaults, and those are the ones I need to use. However, I can't remove the override since the default pcm generated by default.conf doesn't work for some reason. Also, this overridden default won't show up in aplay -L's output, or as an option in programs that have a similar list of pcm's as output device options (like vlc, or kmix).
    Sorry if this sounds weird, I'm still not 100% sure what is going on here. Let me know if you need more info from me, need the output from some program, etc.
    Edit: Well I found a solution. This in asound.conf:
    pcm.!display {
    type plug
    slave.pcm "dmix"
    hint {
    show on
    description "dmix default"
    Sets the dmix pcm as default, and shows it with a description. Still don't know why the generated default pcm doesn't work, but I guess it doesn't matter.
    Last edited by Zixiken (2015-01-17 07:51:32)

    rg_arc:
    I receive the following
    00:19.0 Ethernet controler: Intel Corporation 82566DM-2 Gigabit Network Connection (rev o2)
    11:00.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
    however, as stated in my edit on post 1, i tried
    ip link set eth0 up
    and my static i set during set-up remained, from here i grabbed the BC43 package from AUR http://aur.archlinux.org/packages.php?ID=21690
    rebooted and now wireless is working.
    Thanks for the help RG I guess if i would have waited a bit i coulda solved it without a post, but the quick response makes me satisfied in chosing Arch as my distro !

  • [Solved] Help needed to interpret errors (python)

    Have the following code (Haven't written it my self and don't know much about how it does what it's supposed to do.):
    #!/usr/bin/python
    import sys
    import os
    import re
    import logging
    import json
    if sys.version_info < (3, 0):
    from urllib2 import Request
    from urllib2 import urlopen
    from urlparse import urlparse
    else:
    from urllib.request import Request
    from urllib.request import urlopen
    from urllib.parse import urlparse
    raw_input = input
    useragent = 'Mozilla/5.0'
    headers = {'User-Agent': useragent}
    intro = """
    Usage: drdown.py url
    This script finds the stream URL from a dr.dk page so you can
    download the tv program.
    def fetch(url):
    """Download body from url"""
    req = Request(url, headers=headers)
    response = urlopen(req)
    body = response.read()
    response.close()
    # convert to string - it is easier to convert here
    if isinstance(body, bytes):
    body = body.decode('utf8')
    return body
    class StreamExtractor:
    def __init__(self, url):
    self.url = url.lower()
    self.urlp = urlparse(self.url)
    def get_stream_data(self):
    """supply a URL to a video page on dr.dk and get back a streaming
    url"""
    if self.urlp.netloc not in ('dr.dk', 'www.dr.dk'):
    raise Exception("Must be an URL from dr.dk")
    self.html = fetch(self.url)
    logging.info("Player fetched: " + self.url)
    # Standalone show?
    if self.urlp.path.startswith('/tv/se/'):
    return self.get_stream_data_from_standalone()
    # Bonanza?
    elif self.urlp.path.startswith('/bonanza/'):
    return self.get_stream_data_from_bonanza()
    # Live tv?
    elif self.urlp.path.startswith('/tv/live'):
    return self.get_stream_data_from_live()
    else:
    return self.get_stream_data_from_series()
    def get_stream_data_from_rurl(self, rurl):
    """Helper method to parse resource JSON document"""
    body = fetch(rurl)
    resource_data = json.loads(body)
    qualities = resource_data.get('links')
    # sort by quality
    qualities = sorted(qualities, key=lambda x: x['bitrateKbps'],
    reverse=True)
    stream_data = qualities[0]
    stream_url = stream_data.get('uri')
    logging.info("Stream data fetched: " + stream_url)
    playpath, filename = self.get_metadata_from_stream_url(stream_url)
    stream_data = {'stream_url': stream_url,
    'playpath': playpath,
    'filename': filename,
    'is_live': False}
    return stream_data
    def get_metadata_from_stream_url(self, stream_url):
    """Helper method to extacts playpath and filename suggestion from a
    rtmp url"""
    parsed = urlparse(stream_url)
    playpath_s = parsed.path.split('/')[2:]
    playpath = '/'.join(playpath_s)
    # rerun to split the parameter
    path = urlparse(parsed.path).path
    filename = path.split('/')[-1]
    return playpath, filename
    def get_stream_data_from_standalone(self):
    """Extracts stream data from a normal single program page.
    The data is hidden in a resource URL, that we need to download
    and parse.
    mu_regex = re.compile('resource: "([^"]+)"')
    m = mu_regex.search(self.html)
    if m and m.groups():
    resource_meta_url = m.groups()[0]
    return self.get_stream_data_from_rurl(resource_meta_url)
    def get_stream_data_from_bonanza(self):
    """Finds stream URL from bonanza section. Just pick up the first RTMP
    url.
    stream_regex = re.compile('rtmp://.*?\.mp4')
    m = stream_regex.search(self.html)
    if m and m.group():
    stream_url = m.group()
    else:
    raise Exception("Could not find Bonanza stream URL")
    playpath, filename = self.get_metadata_from_stream_url(stream_url)
    stream_data = {'stream_url': stream_url,
    'playpath': playpath,
    'filename': filename,
    'is_live': False}
    return stream_data
    def get_stream_data_from_live(self):
    stream_url = 'rtmp://livetv.gss.dr.dk/live'
    quality = '3'
    playpaths = {'dr1': 'livedr01astream',
    'dr2': 'livedr02astream',
    'dr-ramasjang': 'livedr05astream',
    'dr-k': 'livedr04astream',
    'dr-update-2': 'livedr03astream',
    'dr3': 'livedr06astream'}
    urlend = self.urlp.path.split('/')[-1]
    playpath = playpaths.get(urlend)
    filename = 'live.mp4'
    if playpath:
    playpath += quality
    filename = urlend + '.mp4'
    stream_data = {'stream_url': stream_url,
    'playpath': playpath,
    'filename': filename,
    'is_live': True}
    return stream_data
    def get_stream_data_from_series(self):
    """dr.dk has a special player for multi episode series. This is the
    fall back parser, as there seems to be no pattern in the URL."""
    slug_regex = re.compile('seriesSlug=([^"]+)"')
    m = slug_regex.search(self.html)
    if m and m.groups():
    slug_id = m.groups()[0]
    else:
    raise Exception("Could not find program slug")
    logging.info("found slug: " + slug_id)
    program_meta_url = 'http://www.dr.dk/nu/api/programseries/%s/videos'\
    % slug_id
    body = fetch(program_meta_url)
    program_data = json.loads(body)
    if not program_data:
    raise Exception("Could not find data about the program series")
    fragment = self.urlp.fragment
    if fragment.startswith('/'):
    fragment = fragment[1:]
    fragment = fragment.split('/')
    video_id = fragment[0]
    logging.info("Video ID: " + video_id)
    video_data = None
    if video_id:
    for item in program_data:
    if item['id'] == int(video_id):
    video_data = item
    if not video_data:
    video_data = program_data[0]
    resource_meta_url = video_data.get('videoResourceUrl')
    return self.get_stream_data_from_rurl(resource_meta_url)
    def generate_cmd(self):
    """Build command line to download stream with the rtmpdump tool"""
    sdata = self.get_stream_data()
    if not sdata:
    return "Not found"
    filename = sdata['filename']
    custom_filename = raw_input("Type another filename or press <enter> to keep default [%s]: " % filename)
    if custom_filename:
    filename = custom_filename
    cmd_live = 'rtmpdump --live --rtmp="%s" --playpath="%s" -o %s'
    cmd_rec = 'rtmpdump -e --rtmp="%s" --playpath="%s" -o %s'
    if sdata['is_live'] is True:
    cmd = cmd_live % (sdata['stream_url'], sdata['playpath'], filename)
    else:
    cmd = cmd_rec % (sdata['stream_url'], sdata['playpath'], filename)
    return cmd
    def main():
    if len(sys.argv) > 1:
    url = sys.argv[1]
    extractor = StreamExtractor(url)
    cmd = extractor.generate_cmd()
    os.system(cmd)
    else:
    print(intro)
    if __name__ == "__main__":
    main()
    When I run the script with an appropriate URL as parameter, I get this:
    Traceback (most recent call last):
    File "./drdown.py", line 243, in <module>
    main()
    File "./drdown.py", line 235, in main
    cmd = extractor.generate_cmd()
    File "./drdown.py", line 211, in generate_cmd
    sdata = self.get_stream_data()
    File "./drdown.py", line 65, in get_stream_data
    return self.get_stream_data_from_standalone()
    File "./drdown.py", line 123, in get_stream_data_from_standalone
    return self.get_stream_data_from_rurl(resource_meta_url)
    File "./drdown.py", line 87, in get_stream_data_from_rurl
    reverse=True)
    TypeError: 'NoneType' object is not iterable
    I should note that I didn't expect it to work out of the box, but so far I've been unable even to figure out what the problem is, no less solve it.
    I've tried my best to go through the code, looking for typos and such, but I haven't had any luck and much of what happens I don't really understand.
    So please, if you can, I'd very much appreciate a little help.
    Best regards.
    NB:
    Some might conclude that this script does something illegal. In actuality that is not so, just make that clear. Also, testing from outside Denmark, will probably not be possible.
    Last edited by zacariaz (2013-11-08 18:00:33)

    Trilby wrote:
    zacariaz wrote:Have the following code (Haven't written it my self and don't know much about how it does what it's supposed to do.)
    You know a lot more than we do: like where you then found this code, and what it is supposed to do.
    My only first thought without looking through random code that allegedly serves some unknown purpose and comes from some unknown source is that the shebang is ambiguous: it may be a python 2 script while /usr/bin/python is now python 3.
    I've pretty much concluded that python 3.3 is the right choice, sp that should not be a problem, as for what it does, it uses "rtmpdump" to record or "rip" video from a danish site "dr.dk", which is a public service television network.
    I have it from reliable sources that this actually works, or at least did at some point, on Windows machines, but of course i'm on linux, and that complicated matters.
    All in all, as I understand it, what the script really does, is retrieving the relevant rtmp link. The rest is up to "rmtpdump" which I should be able to manage.
    In any case, I'm not really that concerned with learning what the script does at this point, but rather what the error mean.
    The only actual error description I see is: "TypeError: 'NoneType' object is not iterable" and I haven't a clue what that implies. I've read through the script, but haven't been able to find any obvious flaws..

  • [SOLVED] Help, can't get my X-Fi to work :(

    Hi all.  I recently decided to try out Arch.  I'm currently running Gentoo on my boxes, but I set up arch on a new drive and I'm giving it a go.  However, the time I have saved by not having to compile anything or troubleshoot emerge issues has now been completely taken up by trying to get my sound working.  Works fine in Gentoo, so I have made sure to compare kernel configurations and they both seem the same in relevant areas.  ALSA is enabled, and OSS is disabled  The XFI driver is built-in, and no other drivers are enabled:
    [root@server2k linux]# grep -i snd .config
    CONFIG_SND=y
    CONFIG_SND_TIMER=y
    CONFIG_SND_PCM=y
    CONFIG_SND_RAWMIDI=m
    CONFIG_SND_SEQUENCER=y
    # CONFIG_SND_SEQ_DUMMY is not set
    CONFIG_SND_OSSEMUL=y
    CONFIG_SND_MIXER_OSS=y
    CONFIG_SND_PCM_OSS=y
    CONFIG_SND_PCM_OSS_PLUGINS=y
    # CONFIG_SND_SEQUENCER_OSS is not set
    CONFIG_SND_HRTIMER=y
    CONFIG_SND_SEQ_HRTIMER_DEFAULT=y
    CONFIG_SND_DYNAMIC_MINORS=y
    # CONFIG_SND_SUPPORT_OLD_API is not set
    # CONFIG_SND_VERBOSE_PROCFS is not set
    # CONFIG_SND_VERBOSE_PRINTK is not set
    # CONFIG_SND_DEBUG is not set
    CONFIG_SND_VMASTER=y
    CONFIG_SND_DMA_SGBUF=y
    CONFIG_SND_RAWMIDI_SEQ=m
    # CONFIG_SND_OPL3_LIB_SEQ is not set
    # CONFIG_SND_OPL4_LIB_SEQ is not set
    # CONFIG_SND_SBAWE_SEQ is not set
    # CONFIG_SND_EMU10K1_SEQ is not set
    CONFIG_SND_AC97_CODEC=y
    CONFIG_SND_DRIVERS=y
    # CONFIG_SND_PCSP is not set
    # CONFIG_SND_DUMMY is not set
    # CONFIG_SND_VIRMIDI is not set
    # CONFIG_SND_MTPAV is not set
    # CONFIG_SND_MTS64 is not set
    # CONFIG_SND_SERIAL_U16550 is not set
    # CONFIG_SND_MPU401 is not set
    # CONFIG_SND_PORTMAN2X4 is not set
    # CONFIG_SND_AC97_POWER_SAVE is not set
    CONFIG_SND_PCI=y
    CONFIG_SND_AD1889=y
    # CONFIG_SND_ALS300 is not set
    # CONFIG_SND_ALS4000 is not set
    # CONFIG_SND_ALI5451 is not set
    # CONFIG_SND_ATIIXP is not set
    # CONFIG_SND_ATIIXP_MODEM is not set
    # CONFIG_SND_AU8810 is not set
    # CONFIG_SND_AU8820 is not set
    # CONFIG_SND_AU8830 is not set
    # CONFIG_SND_AW2 is not set
    # CONFIG_SND_AZT3328 is not set
    # CONFIG_SND_BT87X is not set
    # CONFIG_SND_CA0106 is not set
    # CONFIG_SND_CMIPCI is not set
    # CONFIG_SND_OXYGEN is not set
    # CONFIG_SND_CS4281 is not set
    # CONFIG_SND_CS46XX is not set
    # CONFIG_SND_CS5530 is not set
    # CONFIG_SND_CS5535AUDIO is not set
    CONFIG_SND_CTXFI=y
    # CONFIG_SND_DARLA20 is not set
    # CONFIG_SND_GINA20 is not set
    # CONFIG_SND_LAYLA20 is not set
    # CONFIG_SND_DARLA24 is not set
    # CONFIG_SND_GINA24 is not set
    # CONFIG_SND_LAYLA24 is not set
    # CONFIG_SND_MONA is not set
    # CONFIG_SND_MIA is not set
    # CONFIG_SND_ECHO3G is not set
    # CONFIG_SND_INDIGO is not set
    # CONFIG_SND_INDIGOIO is not set
    # CONFIG_SND_INDIGODJ is not set
    # CONFIG_SND_INDIGOIOX is not set
    # CONFIG_SND_INDIGODJX is not set
    # CONFIG_SND_EMU10K1 is not set
    # CONFIG_SND_EMU10K1X is not set
    # CONFIG_SND_ENS1370 is not set
    # CONFIG_SND_ENS1371 is not set
    # CONFIG_SND_ES1938 is not set
    # CONFIG_SND_ES1968 is not set
    # CONFIG_SND_FM801 is not set
    # CONFIG_SND_HDA_INTEL is not set
    # CONFIG_SND_HDSP is not set
    # CONFIG_SND_HDSPM is not set
    # CONFIG_SND_HIFIER is not set
    # CONFIG_SND_ICE1712 is not set
    # CONFIG_SND_ICE1724 is not set
    # CONFIG_SND_INTEL8X0 is not set
    # CONFIG_SND_INTEL8X0M is not set
    # CONFIG_SND_KORG1212 is not set
    # CONFIG_SND_LX6464ES is not set
    # CONFIG_SND_MAESTRO3 is not set
    # CONFIG_SND_MIXART is not set
    # CONFIG_SND_NM256 is not set
    # CONFIG_SND_PCXHR is not set
    # CONFIG_SND_RIPTIDE is not set
    # CONFIG_SND_RME32 is not set
    # CONFIG_SND_RME96 is not set
    # CONFIG_SND_RME9652 is not set
    # CONFIG_SND_SONICVIBES is not set
    # CONFIG_SND_TRIDENT is not set
    # CONFIG_SND_VIA82XX is not set
    # CONFIG_SND_VIA82XX_MODEM is not set
    # CONFIG_SND_VIRTUOSO is not set
    # CONFIG_SND_VX222 is not set
    # CONFIG_SND_YMFPCI is not set
    CONFIG_SND_SPI=y
    CONFIG_SND_USB=y
    # CONFIG_SND_USB_AUDIO is not set
    # CONFIG_SND_USB_UA101 is not set
    # CONFIG_SND_USB_USX2Y is not set
    # CONFIG_SND_USB_CAIAQ is not set
    # CONFIG_SND_USB_US122L is not set
    # CONFIG_SND_PCMCIA is not set
    # CONFIG_SND_SOC is not set
    [root@server2k linux]#
    I've been all over the net and I have seen people mention similar problems with the ctxfi driver. But no solutions that have worked for me.  The physical card is seen:
    [root@server2k linux]# lspci | grep -i creative
    00:0e.0 Multimedia audio controller: Creative Labs SB X-Fi
    however alsa doesn't see it:
    [root@server2k linux]# cat /proc/asound/cards
    --- no soundcards ---
    I tend to not use modules for stuff I know I need (e.g. sound card drivers...) , but the module is there..in the kernel.  I was trying with a separate module before, and I made that lsmod told me it was loaded.  However nothing seems to make a difference.  I'm pretty sure alsa is configured correctly because I was seeing my onboard sound before I disabled it. I also took out all of the alsa-related stuff I had put in rc.conf and modules.conf because nothing seemed to make a difference.  it was all related to getting the ctxfi crd to show up as card0 to override the onboard, but since it's not even being detected that seems sort of pointless right now.
    If anyone has any ideas of what to try next I would really appreciate it. These are the versions I am running:
    kernel  2.6.34.1
    alsa-lib-1.0.23-1
    alsa-utils-1.0.23-2
    Oh, the otehr weird part is if I look in the dmesg output, the driver claims that "Something's wrong!!!"  Yeah...really useful. In the source for the driver there are like 16 places where that error message is printed, and I'm not about to go hacking some module code.  I did put some print statements in there to see where it was failing, and it looks like it's failing at this call:
    err = atc_create_hw_devs(atc);
    Don't know if that helps, is anyone familiar with the actual driver?
    Last edited by Fox2k (2010-07-11 23:58:57)

    Thanks, all.  No luck, I ended up scouring the gentoo forums some more and found somebody who ran in to the exact same problem last year which I am having now.  Here's the solution.  It worked for me.  Not ideal, but all else failed:
    Today I tried again to get my soundcard working, this time with:
    linux kernel 2.6.31 and the alsa ctxfi driver in it
    linux kernel 2.6.31 and alsa-driver-9999 from portage
    both led to the same results as before (see my postings above)
    So I finally hacked the official creative xfi-driver to compile against 2.6.31. And now sound is working again for me...
    If anyone else runs into the same trouble as I did, here are the changes i made:
    Code:
    $ diff XFiDrv_Linux_Public_US_1.00 XFiDrv_Linux_Public_US_1.00-new
    diff XFiDrv_Linux_Public_US_1.00/ctatc.h XFiDrv_Linux_Public_US_1.00-new/ctatc.h
    25d24
    < #include <sound/driver.h>
    diff XFiDrv_Linux_Public_US_1.00/cthw20k1.c XFiDrv_Linux_Public_US_1.00-new/cthw20k1.c
    23a24
    > #include <linux/delay.h>
    diff XFiDrv_Linux_Public_US_1.00/cthw20k2.c XFiDrv_Linux_Public_US_1.00-new/cthw20k2.c
    23a24
    > #include <linux/delay.h>
    diff XFiDrv_Linux_Public_US_1.00/xfi.c XFiDrv_Linux_Public_US_1.00-new/xfi.c
    14d13
    < #include <sound/driver.h>
    55,59c54,57
    <    card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
    <    if (card == NULL) {
    <       return -ENOMEM;
    <    }
    <
    >    err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
    >    if (err < 0)
    >       return err;
    >
    (reference: http://forums.gentoo.org/viewtopic-p-63 … l#6348361)
    Last edited by Fox2k (2010-07-11 22:32:40)

  • To solve i have to reinstall snowleopard, to reinstall SN i have to solve, help!!!

    i just bought an early 2008 macbook knowing that the CD/DVD drive didn´t worked, wich i didn´t mind then....but
    leopard was installed in the computer, and i need to install snow leopard,... soo far so god...
    to install SN i have to partition the disk (remember CD/DVD drive doesn´t work), but DISK UTILITY fails and deliver the following:
    Filesystem verify or repair failed
    have already tried to repair disk but fails.
    in addition to this the right and left arrows of the keyboard broke down, stopped function (i´ve investigated the web, many people had it, and solved it with reinstall osx)
    so, to install snowlepard without CD i have to partition but as filesystem fails cant manage to partition.
    please help!!!
    i am used to working on MAC but not really t have problems, s i guess i am not really MAC experienced, so if there is one, be gentle/explainfull to that matter.
    thanx a lot

    Thanks for your response, I did it but doesn't work. I try to catch the web direction from those  pages but they gone faster. Any idea?

  • Simultaneous linear equation solving

    I'm trying to solve some ill-conditioned simultaneous linear equations for a graphics application. Gaussian elimination using total pivoting on doubles isn't accurate enough. Does anyone know any better techniques?

    yeah, that's pretty good. you might also try some numerical algorithms though if your system is sparse or you want a better performance if your system is large. nist website has a list i think.

  • [Solved]Help with printer

    Hi!
    I`m really frustrated... I never thought that installing printer can be such a paint in the rear...
    Ok, now back to the point:
    I`m trying to set up my Deskjet 930c on 32 bit Arch through usb. I did everything that Wiki says: installed
    cups ghostscript gsfonts hplip and net-snmp
    I loaded the module
    modprobe usblp
    and i see the  that the printer is connected alright
    [andy@andy ~]$ dmesg
    usb 6-1: new full speed USB device using uhci_hcd and address 3
    usb 6-1: configuration #1 chosen from 1 choice
    usblp1: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1204
    I added the cups and usblp to rc.conf to make sure it is being loaded on startup. I rebooted, and then opened http://localhost:631 in firefox. It allows me to setup the printer, but when it comes to printing the test page, adding users or removing printers i get a Firefox message:
    Port Restricted for Security Reasons
    This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.
    The requested address specified a port (e.g. "mozilla.org:80" for port 80 on mozilla.org) normally used for purposes other than Web browsing. The browser has canceled the request for your protection and security.
    When i run gnome-cups-manager i see an error in terminal:
    ** (gnome-cups-manager:13143): WARNING **: IPP request failed with status 1030
    , and when trying to print a test page i get an error:
    Ready: /usr/lib/cups/filter/foomatic-rip-hplip failed
    So i`ve ran
    hp-setup
    and setup my printer. I can than print a test page.
    But when it comes to printing by a usual user, the "print" button in all applications is grayed out/inactive.
    Also hp-toolbox is segfaulting all the time...
    Also, running a system-config-printer says:
    There was an error during the CUPS operation: 'server-error-service-unavailable'.
    The funny thing is... The only way to print something is to print it to a .pdf file first, and than printing that file.
    Any help, please?...
    Last edited by K0tuk (2009-05-02 11:19:12)

    skottish wrote:
    Do you mean this message screen?
    http://bbs.archlinux.org/viewtopic.php?id=70775
    If that thread doesn't solve your problem, then there are a bunch more CUPS threads that are less than two weeks old that will.
    omg! huge thanks, that completely solved my problem... i wasn`t actually concentrating on the firefox error, more on the cups errors that followed... thanks again!

  • Difference Compositing Question - Please help me and my daughter

    Hey guys, I am trying to do something that is probably very simple but I can not figure it out.
    I have 3 clips:
    1. 1 minute clip of empty room.
    2. 1 minute clip of my daughter running in and hiding.
    3. 1 minute clip of my daughter running in and looking for herself.
    The goal obviously is to layer the clips so that she appears twice in the same video at the same time. I have tried switching the level that the clips are in and switching which ones I turn the "Composite Mode" "Difference" on but I always end up with a really funky psychedelic result.
    What level do I put which clips in?
    Do I use clip 1 at all or do I just layer the other two?
    Which one(s) do I turn on the "Composite Mode" "Difference" on?
    What else I am missing?
    I know it is a lot to ask for, but could someone please give me a step by step list of exactly what to do?
    Any help is GREATLY appreciated!!!!
    Thanks in advance,
    Dan

    You might want to try a different approach to achieve this effect.
    NOTE: was the camera locked-off on a tripod for every shot? Each clip has to be filmed from exactly the same position for this to work.
    Firstly... you should be using the Difference Matte (effects>video filters>Key>difference matte) to do what you want to do.
    Secondly, it's very difficult to get a good result using the difference matte in DV, there just isn't enough data in the image to get clean crisp results, and you can spend ages trying to get it looking remotely satisfactory... very frustrating... (That's a major assumption... that you are using DV...?)
    Have you tried using a 4-point (or 8-point) garbage matte? Does the image of your daughter 'looking', ever cross over the back-ground of your daughter 'hiding'?

  • [SOLVED] help me to get bluetooth working on XFCE4

    so, first and very important thing I would like to say is... hello everyone!
    Just kidding, now lets go to work:
    I installed KDE 4 previously and I have got bluetooth working fine on KDE, but for now, I am only on XFCE4 and I am having this error on startup:
    org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
    You might not be able to connect to the Bluetooth network via this machine
    I have installed blueman, everything should work because I followed all instructions on wiki/google. bluetooth service is enabled&started. I can see bluetooth tray icon in the bar.
    ohh, and also, I think my computer doesn't detect bluetooth internal adapter on my laptop. this is my laptop btw: https://wiki.archlinux.org/index.php/ASUS_N550JV . it doesn't say which bluetooth module I should do "modprobe" or something, I actually have no idea now...
    I am in the "lp" group and blueman should work for me, but it doesn't. it only seems that it only doesn't detect any bluetooth adapter.
    Any help will be appreciated. Thank you!
    EDIT: installed "rfkill" from official repositories and now ir works fine!
    Last edited by erkexzcx (2014-10-25 17:50:33)

    mauritiusdadd wrote:
    Hi erkexzcx,
    you should be more specific if you want that someone help you . For example why do you think your system does not detect the internal Bluetooth adapter of your laptop? And If you can see the blueman-applet icon in the system tray and Bluetooth service is started correctly why do you say that Bluetooth is not working? I mean, did you actually try to use the Bluetooth adapter, for example, for scanning for devices, sending files, etc. ?
    It will be useful if you also provides the output of the following commands:
    rfkill list all
    journalctl -b | egrep "[Bb]luethoot"
    HOW? How can I be so stupid? All I had to do is install "rfkill" and reboot. I have seen this application in some threads but I didn't think I wouldn't have one!
    SOLVED!

  • [Solved] Help getting started in programming.

    I'm sure a ton of people have posted topics like this but hear me out, I know the language really doesn't matter and that the biggest differences are in syntax but I wanna know what the best language is to start in Linux and what the best place is to get good information.
    I know in Slackware it seemed like the main compilers were gcc and cmake but I absolutely loathed cmake, it seemed like what needed to be done to get the source to compile was different everytime, I don't think I ever actually got anything to work using cmake. So what are the best compilers in Arch?
    Any help is greatly appreciated.
    Last edited by monkeyhacker (2013-07-24 22:40:12)

    C and Python may be the ones that get the widest use.  But anything that compiles to binary makes a binary - so in the end whatever works best for you.
    Now if you want to look at the code for existing projects (as you mention ratpoison) then you'll run into a lot of C and python.
    You talk about gcc versus cmake in your OP, but that's apples and oranges.  Cmake is not a compiler, gcc is.  Cmake will call something like gcc (or clang, or whatever).  You could compare gcc to clang/llvm, or you could compare make to cmake.  I really never use cmake - isn't it mostly a Qt thing? Learning to use make will be more widely applicable, and once you can write Makefile (for make) cmake will make a lot more sense.  But worrying about these tools, I think, is putting the cart ahead of the horse.  Just start writing some code, and learn enough about your build tools to be able to compile and run your program.

Maybe you are looking for