|
Mostrar Mensajes
|
Páginas: [1] 2 3 4
|
1
|
Programación / Programación General / calcular velocidad a partir de un acelerometro
|
en: 27 Octubre 2010, 20:38 pm
|
Hola,
Estamos phaciendo un programa que se comunica con un acelerometro y envia a l pc la informacion de la aceleracion en un momento puntual , el tema es que cuando envia la informacion de la aceleracion, esa aceleracion sera aplicada a un objeto que virtualmente saldria de nuestra mano , como un dardo, el problema es que no sabemos como calcular la velocida dinicial a la que saldria ese objeto
alguien nos ayuda?
|
|
|
2
|
Programación / Java / Re: Problema imageIO
|
en: 26 Octubre 2010, 22:18 pm
|
imageIO guarda una cadena de bits correspondientes a una imagen en JPEG, e imageIO carga lo que seria un JPEG. El problema es que el profesor tambien lo tiene asi y no sabemos porque no funciona, ( A el si)
Gracias por la indicacion de todas maneras
|
|
|
3
|
Programación / Java / Problema imageIO
|
en: 26 Octubre 2010, 20:18 pm
|
Hola, estamos haciendo un programa que de momento consiste en un GUI que abre un fichero zip que contiene imagenes en .png y las guarda todas juntas en un mismo fichero dentro de un gzip en formato jpeg, el problema es que al leerlo no podemos identificar las diferentes imagenes del unico fichero de dentro del gzip. Aqui os dejo el codigo haber si podeis encontrar alguna solucion a este "Bug". public int saveAsGzip(String pathFichero) throws FileNotFoundException, IOException{
FileOutputStream fos = new FileOutputStream(pathFichero); GZIPOutputStream gzip = new GZIPOutputStream(fos);
Iterator ite = imagenes.iterator(); while(ite.hasNext()){ Imagen img = (Imagen) ite.next(); BufferedImage temp=img.getBufferedImagen(); ImageIO.write(temp, "JPEG", gzip);
} gzip.finish(); gzip.close(); fos.flush(); fos.close();
return 1; } public int loadAsGzip(String pathFichero) throws FileNotFoundException, IOException{
FileInputStream fos = new FileInputStream(pathFichero); GZIPInputStream gzip = new GZIPInputStream(fos); int numeroImagen=0; BufferedImage img; boolean bol = false;
while(!bol){ img=ImageIO.read(gzip); System.out.println(img); if (img == null) bol = true; }
gzip.close();
fos.close();
return 1; }
|
|
|
4
|
Sistemas Operativos / GNU/Linux / Re: problema ubuntu "No screens found" no arranca X
|
en: 24 Octubre 2010, 09:55 am
|
Estoy usando ubuntu i aqui te dejo la salida del comando que me dijiste: 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c) Subsystem: Lenovo Device 383c Flags: bus master, fast devsel, latency 0 Capabilities: [e0] Vendor Specific Information: Len=0a <?> Kernel driver in use: agpgart-intel Kernel modules: intel-agp
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c) (prog-if 00 [VGA controller]) Subsystem: Lenovo Device 383e Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at fc000000 (64-bit, non-prefetchable) [size=1M] Memory at d0000000 (64-bit, prefetchable) [size=256M] I/O ports at 1800 [size=8] Expansion ROM at <unassigned> [disabled] Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [d0] Power Management version 3 Kernel modules: i915
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c) Subsystem: Lenovo Device 383e Flags: bus master, fast devsel, latency 0 Memory at fc100000 (64-bit, non-prefetchable) [size=1M] Capabilities: [d0] Power Management version 3
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03) (prog-if 00 [UHCI]) Subsystem: Lenovo Device 3846 Flags: bus master, medium devsel, latency 0, IRQ 16 I/O ports at 1820 [size=32] Kernel driver in use: uhci_hcd
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03) (prog-if 00 [UHCI]) Subsystem: Lenovo Device 3847 Flags: bus master, medium devsel, latency 0, IRQ 21 I/O ports at 1840 [size=32] Kernel driver in use: uhci_hcd
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20 [EHCI]) Subsystem: Lenovo Device 3849 Flags: bus master, medium devsel, latency 0, IRQ 18 Memory at fc504000 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port: BAR=1 offset=00a0 Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03) Subsystem: Lenovo Device 384e Flags: bus master, fast devsel, latency 0, IRQ 44 Memory at fc300000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00 Capabilities: [100] Virtual Channel Capabilities: [130] Root Complex Link Kernel driver in use: HDA Intel Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: 00002000-00002fff Memory behind bridge: f6000000-f7ffffff Prefetchable memory behind bridge: 00000000f0000000-00000000f1ffffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Lenovo Device 384a Capabilities: [a0] Power Management version 2 Capabilities: [100] Virtual Channel Capabilities: [180] Root Complex Link Kernel driver in use: pcieport Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=04, subordinate=04, sec-latency=0 I/O behind bridge: 00003000-00003fff Memory behind bridge: f8000000-f9ffffff Prefetchable memory behind bridge: 00000000f2000000-00000000f3ffffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Lenovo Device 384b Capabilities: [a0] Power Management version 2 Capabilities: [100] Virtual Channel Capabilities: [180] Root Complex Link Kernel driver in use: pcieport Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=05, subordinate=05, sec-latency=0 I/O behind bridge: 00004000-00004fff Memory behind bridge: fa000000-fbffffff Prefetchable memory behind bridge: 00000000f4000000-00000000f5ffffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Lenovo Device 384c Capabilities: [a0] Power Management version 2 Capabilities: [100] Virtual Channel Capabilities: [180] Root Complex Link Kernel driver in use: pcieport Kernel modules: shpchp
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=06, subordinate=06, sec-latency=0 I/O behind bridge: 00005000-00005fff Memory behind bridge: c8000000-c9ffffff Prefetchable memory behind bridge: 00000000cc000000-00000000cdffffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Lenovo Device 384d Capabilities: [a0] Power Management version 2 Capabilities: [100] Virtual Channel Capabilities: [180] Root Complex Link Kernel driver in use: pcieport Kernel modules: shpchp
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI]) Subsystem: Lenovo Device 3843 Flags: bus master, medium devsel, latency 0, IRQ 23 I/O ports at 1860 [size=32] Kernel driver in use: uhci_hcd
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI]) Subsystem: Lenovo Device 3844 Flags: bus master, medium devsel, latency 0, IRQ 19 I/O ports at 1880 [size=32] Kernel driver in use: uhci_hcd
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI]) Subsystem: Lenovo Device 3845 Flags: bus master, medium devsel, latency 0, IRQ 18 I/O ports at 18a0 [size=32] Kernel driver in use: uhci_hcd
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI]) Subsystem: Lenovo Device 3848 Flags: bus master, medium devsel, latency 0, IRQ 23 Memory at fc504400 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] Debug port: BAR=1 offset=00a0 Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) (prog-if 01 [Subtractive decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=08, subordinate=08, sec-latency=32 Memory behind bridge: fc200000-fc2fffff Capabilities: [50] Subsystem: Lenovo Device 383f
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03) Subsystem: Lenovo Device 3840 Flags: bus master, medium devsel, latency 0 Capabilities: [e0] Vendor Specific Information: Len=0c <?> Kernel modules: iTCO_wdt
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP]) Subsystem: Lenovo Device 386d Flags: bus master, medium devsel, latency 0, IRQ 19 I/O ports at 01f0 [size=8] I/O ports at 03f4 [size=1] I/O ports at 0170 [size=8] I/O ports at 0374 [size=1] I/O ports at 1810 [size=16] Kernel driver in use: ata_piix
00:1f.2 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller (rev 03) (prog-if 8f [Master SecP SecO PriP PriO]) Subsystem: Lenovo Device 3841 Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19 I/O ports at 1c00 [size=8] I/O ports at 18f4 [size=4] I/O ports at 18f8 [size=8] I/O ports at 18f0 [size=4] I/O ports at 18e0 [size=16] I/O ports at 18d0 [size=16] Capabilities: [70] Power Management version 3 Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03) Subsystem: Lenovo Device 3842 Flags: medium devsel, IRQ 10 Memory at 80000000 (32-bit, non-prefetchable) [size=256] I/O ports at 1c20 [size=32] Kernel modules: i2c-i801
04:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61) Subsystem: Intel Corporation Device 1011 Flags: bus master, fast devsel, latency 0, IRQ 46 Memory at f8000000 (64-bit, non-prefetchable) [size=8K] Capabilities: [c8] Power Management version 3 Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [e0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number 00-1f-3b-ff-ff-8f-bd-65 Kernel driver in use: iwlagn Kernel modules: iwlagn
06:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express (rev 02) Subsystem: Lenovo Device 3861 Flags: bus master, fast devsel, latency 0, IRQ 47 Memory at c8000000 (64-bit, non-prefetchable) [size=64K] Expansion ROM at <ignored> [disabled] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] Vendor Specific Information: Len=78 <?> Capabilities: [e8] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [d0] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Virtual Channel Capabilities: [160] Device Serial Number 00-1e-ec-ff-fe-09-f8-be Kernel driver in use: tg3 Kernel modules: tg3
08:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05) (prog-if 10 [OHCI]) Subsystem: Lenovo Device 3829 Flags: bus master, medium devsel, latency 32, IRQ 22 Memory at fc200000 (32-bit, non-prefetchable) [size=2K] Capabilities: [dc] Power Management version 2 Kernel driver in use: firewire_ohci Kernel modules: firewire-ohci, ohci1394
08:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22) Subsystem: Lenovo Device 382a Flags: bus master, medium devsel, latency 32, IRQ 23 Memory at fc200800 (32-bit, non-prefetchable) [size=256] Capabilities: [80] Power Management version 2 Kernel driver in use: sdhci-pci Kernel modules: sdhci-pci
08:06.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12) Subsystem: Lenovo Device 382c Flags: bus master, medium devsel, latency 32, IRQ 11 Memory at fc201000 (32-bit, non-prefetchable) [size=256] Capabilities: [80] Power Management version 2
08:06.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12) Subsystem: Lenovo Device 382d Flags: bus master, medium devsel, latency 32, IRQ 23 Memory at fc201400 (32-bit, non-prefetchable) [size=256] Capabilities: [80] Power Management version 2 Kernel driver in use: r852 Kernel modules: r852
|
|
|
5
|
Sistemas Operativos / GNU/Linux / problema ubuntu "No screens found" no arranca X
|
en: 23 Octubre 2010, 22:17 pm
|
Hola, tengo el problema siguiente, reinicie y, al arrancar el servidor X peta y me sale el login por consola, si intento hacer startx me aparece el error "No screens found" , he intentado hacer un dpkg-reconfigure xserver-xorg, pero no hace absolutamente nada, no me pregunta nada, lo curioso es que si entro en el recovery desde el grub, y en las opciones le digo que continue con el arranque normal y luego hago startx, el servidor X arrancan perfectamente.
Alguiejn me ayuda? Estoy desesperado, he provado de todo...
Nota de edición del moderador : es *EL* servidor X, gracias =D
|
|
|
6
|
Programación / Programación C/C++ / problema opencv y Objectmarker
|
en: 3 Octubre 2010, 12:52 pm
|
Hola, llevo tiempo intentando hacer haartraining, perno no consigo hacer funcionar el Objectmarker, he descargado 2 versiones, en una me deja compilarlo pero luego al ejecutarlo me aparece la imagen, pero no sreconoce ningun comando del teclado para poner el rectangulo ni nada, i la otra no me deja compilarlo porque dice que no encunentra el io.h... Alguien tiene algun tuto de como instalar el opencv i el objectMarker ? Gracias
|
|
|
7
|
Informática / Software / Programa para generar mapas para juegos con matrices de numeros
|
en: 16 Septiembre 2010, 08:17 am
|
Hola, hace no mucho encontre un programa que mediante una interfaz grafica tu podias ir poniendo los sprites al mas puro estilo editor de niveles y luego el te lo exportaba a una matriz de numeros para poder posteriormente cargarlo en el programa que estabas programando, alguien sabe como se llama?
|
|
|
9
|
Comunicaciones / Redes / duda ethernet y fibra optica
|
en: 14 Agosto 2010, 19:55 pm
|
Hola, recientemente he adquirido la "fibra optica" de telefonica que te aseguran 30MB de bajada reales, pero, por lo que me he enterado el cable de fibra optica solo va de el exterior hasta el router/modem , a partir de ahi es cable ethernet.
Tenia ententido que por el cable ethernet solo podian circular una cantidad de MB, es decir, qu eno te pueden garantizar tanto ancho de banda.
Con la configuracion que les he comentado, serian 30MB reales?
Gracias
|
|
|
10
|
Seguridad Informática / Wireless en Linux / No me aclaro con intel 4965
|
en: 26 Junio 2010, 12:28 pm
|
Hola, llevo dias mirando de injectar con una intel 4965 desde linux, soy un poco novato con esto del rack de wifi, el problema es que lei que se tenia que hacer la falsa autentificacion con el wpa_supplicant, pero no me entero de mucho, algun alma caritativa me lo puede explicar?? Gracias
|
|
|
|
|
|
|