- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 5
53 Posted Topics
hi, i add [standart](https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiEcommerce) google ecommerce code to my page. Everything works fine, just source value always is my plain domain. How to get the normal sources, or set it? In short, how to get a reference to my purchase of the script, from where people came to shop. Thanks
Hi, i use wordpress and "Google XML Sitemaps" plugin. The generate good xml sitemap. So with xml site mat structure everything OK. But something wrong with address (i think). Google get my page with sub domen, why? My page is: [url]www.page_address.com[/url], but in google webmaster tools show with sub domen, …
I wish re-index my blog after i post new content? I found how send new site map, but i wish send ping after i add post. I don't wish send all new site map. Maybe google have some api?
Hi, i need from PDF extract text and images. Maybe you know python library? Thanks
Hi, sometimes my one of function work too long. How i can break my function, if this function work longer than 3 seconds? thanks
Hi, how get from video.google current video pictures? For example i have this video: [CODE] http://video.google.com/videoplay?docid=1811233136844420765[/CODE] And this video pictures url is: [CODE] http://video.google.com/ThumbnailServer2?app=vss&contentid=d53e613f82f74c96&offsetms=50000&itag=w160&lang=en&sigh=QGtXRNh3rW4hfa6DSQSFtfOimno [/CODE] ................. [CODE] http://images.metacafe.com/thumb/386357/[B]2767198[/B]/4/catalog_top_item5/0/teach_magic_be_magician_money_magic.jpg[/CODE] And from wher get metacafe second id ([B]2767198[/B]) ? So how only from video id to get a picture link?
Hi, i have class "User_registration" and in this class i need use many class: "Location", "Links", "Mail", "Module". i create include all class in file: include 'class/location.php'; include 'class/links.php'; include 'class/mail.php'; include 'class/modules.php'; Now create "User_registration" class. [CODE]<?php class User_registration{ public function insert_to_db($name, $country_code, $home_page) { //work with data return …
Hi, i run soap client: [CODE]$dir = "http://address.com/?Version=1.0,wsdl=1"; $client = new SoapClient($dir, array('login' => "test", 'password' => "test"));[/CODE] Test, print_r($client): [CODE]SoapClient Object ( [_login] => test [_password] => test [_soap_version] => 1 [sdl] => Resource id #3 ) [/CODE] And in this server is class: [CODE]all_user * return: array * …
Hi, i get all europe countries: [CODE]select * from geo.countries where place="Europe"[/CODE] An how now to find the country's cities where country id: (for example) "23424757". I would also like to ask how to get tables all column name. Thanks
Hi, how to run the second function only when the first will be completed in? [CODE]$(document).ready(function() { $("#first").load("first.php?id="+ Math.random()); $("#second").load("second.php?id="+ Math.random()); }); [/CODE]
hi, now i get value if i selected checkbox(id which was selected), but how get value when i unselected (id which was unselected)? For example I push on 1, and i get value 1. When I unselect 1, i get value 1. I hope you understand my problem. [CODE]<script> $(document).ready(function() …
Hi, for example i have this html code: [CODE]<p><strong>Text text.</strong></p> <p><span style="font-size: 14pt;"><span style="background-color: #ff0000;">Text text...</span></span></p> [/CODE] Possible write this text with this style on the image (with php GD)? Thanks
hi, how find in text only one image? [CODE=php]$text = 'text text <img src = "http://physics.unl.edu/dept/directories/images/gradpics/Cat.jpg" /> text text <img src = "www.url.com/image.gif" />'; preg_match_all('#http:[^<\s>]+[.](gif|png|jpe?g)#i', $text, $all_img); print_r($all_img);[/CODE]
Hi, i use latest TCPDF version. If the text is a picture of a bad link shows an error and do not generate a PDF file. Is it possible to disable this error? If you did not find the image to generate the PDF, but without a picture. I hope …
Hi, On this site I found a lot of cool examples of PHP OOP. Maybe you know where to find complete examples? Guest books, registration forms, blog... When I look at the full model is much easier to understand OOP PHP. As different classes interacting with each other, exchange data …
Hi, why in cookies put only one value(id)? When i refresh page all my settings remain, but now there is only one... Thanks [CODE]<script type="text/javascript"> function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = …
Hi, Dell Studio 1535 cooler always starts, even if the system is not warm up. Plus mouse and keyboard work slowly. shut down computer, wait (2h.), but still the same. Checks the system load and temperature - all the norm. What happened?
Hi, I have time from DB: string user_time = "17:10:03"; //Hours:minutes:seconds DateTime time_now = DateTime.Now; How do I compare the time?, How make this: [CODE] if(time_now > user_time) { //Do something } else { //Do something } [/CODE] Thanks
Hi, why in my new file put all program code? When i open "new_doc.doc", give: " first line second line<form method = "post"> Download: new_doc.doc, <input type = "submit" name = "ok" value = "OK" /> </form> " [CODE="php"] <?php if(isset($_POST['ok'])) { header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=new_doc.doc"); $data = "first …
Hi, now program show Messagebox and wait user decision. How make, that program don't wait? Show Messagebox, ant keep going.
Hi, why i can coding only 128 bytes text? Work: string plainText = "1234567890123456"; Don't work: string plainText = "12345678901234561"; Don't work: string plainText = "123456789012345"; [CODE="C#"] string plainText = "1234567890123456"; byte[] plainTextBytes = Encoding.UTF8.GetBytes(plainText); byte[] keyBytes = System.Text.Encoding.UTF8.GetBytes("1234567890123456"); byte[] initVectorBytes = System.Text.Encoding.UTF8.GetBytes("1234567890123456"); RijndaelManaged symmetricKey = new RijndaelManaged(); symmetricKey.Mode = …
Hi, what's wrong with this code? Now disappear background and div after this code show incorrect. [CODE="HTML"] <html> <head> <style type="text/css"> #first{ width: 200px; background-color: #345752; } #left_b{ background:transparent url('img/left.png'); background-position: left top; background-repeat: repeat-y; } #right_b{ background:transparent url('img/right.png'); background-position: right top; background-repeat: repeat-y; } #text{ float: left; width: 50px; …
Hi, which is fastest coding algorithm? I need to cycle to encode a lot of data. Now, using RC4. Maybe a faster version. I do not need high security.
Hi, my program don't work? Propgram stop on: this.textBox1.Text = "(New text)"; [CODE="C#"] Thread demoThread; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.demoThread = new Thread(new ThreadStart(this.ThreadProcUnsafe)); this.demoThread.Start(); textBox1.Text = "Written by the main thread."; } private void ThreadProcUnsafe() { while (true) { Thread.Sleep(2000); this.textBox1.Text …
Hi, How best to put the array (100 or more length) in the database (MySQL)? I do not want multiple access to the database because it is so loaded. So my solution is as follows: [CODE="C#"] string insert = "INSERT INTO programs (name, id) VALUES "; for(int i = 0; …
Hi, i have error in line: "student.Add(info);" Error 1 Use of unassigned local variable 'info' [code="C#"] public struct Students { public string Name; public int ID; public string Date; }; static void Main(string[] args) { ArrayList student = new ArrayList(); Students info; info.Name = "Marko"; info.ID = 12; student.Add(info); foreach …
Hi, Starts the program displays two processes, and emits This one error: "Access is denied". Compiling errors do not [CODE="C#"] foreach (Process proc in allProcs) { Console.WriteLine("process: {0}, id: {1} Time: {2}", proc.ProcessName, proc.Id, proc.StartTime ); } [/CODE]
Hi, i creates this program: [CODE=python] import wmi c = wmi.WMI() for i in c.Win32_Processor (): cputype = i.Name print cputype for i in c.Win32_ComputerSystem(): mem = int(i.TotalPhysicalMemory) print mem/1000000, "mb" [/CODE] I make exe file with py2exe. When i run program, i see this error: [CODE] D:\py\dist>cpu.exe Traceback (most …
Hi, how change in zope cmf server Document portal type? "Workflows This object's portal type is: Document. " I wish: "This object's portal type is: My new Document." Thanks
[code=syntax] <div tal:define="number python: 1"> <tal:block repeat="item s_items"> <div tal:define="number python: number + 1"> <div tal:content="python: number">none</div> </div> </tal:block> </div> [/code] Hi, always show 2. but I would like to show 2 3 4 5 ... How to do? Thanks
Hi, I use exotic fonts and sometimes the text side-cut corners. How it fix? My code: [code=python] font = ImageFont.truetype(fontfile, fontsize) text_width, text_height = font.getsize(text) img = Image.new('RGBA', (text_width, text_height)) draw = ImageDraw.Draw(img) draw.text((0, 0), text, font=font, fill=(0, 0, 0)) [/code]
Hi, Is it possible to use two backgrounds in one div? One of the background picture would be bottom-up corner, and another drift all div... On both the overall picture will be posted on the text. Thus, pictures may not be on a different div
Hi, i download wmi from this: [url]http://timgolden.me.uk/python/wmi/index.html[/url] (windows version) [CODE=syntax] import wmi c = wmi.WMI () for process in c.Win32_Process (): print process.ProcessId, process.Name [/CODE] And run this script in Python 2.6 IDLE Show this error: Traceback (most recent call last): File "C:\Users\lola\Desktop\test.py", line 1, in <module> import wmi File …
hi, how run standard zope cms? I download from this: [url]http://www.zope.org/Products/CMF/[/url] CMF-2.1.1.zip (1.42 M) and CMFDefault extract and put in Zope\lib\python\Products, then restart Zope. But i don't see cms site in add field or control panel
Hi, i create in Plone new Folder( add new item. / Folder). And how in new Folder put my working Python script? I hope to understand my problem.
Hi, I try insert new themes in PLone 3. But show this error: [code] C:\Program Files\Plone>bin\buildout Uninstalling zopepy. While: Installing. Uninstalling zopepy. An internal error occured due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "c:\program files\plone\buildout-cache\eggs\zc.buildout-1.4.3-py2.4.egg\z c\buildout\buildout.py", line 1660, …
Hi, Can you recommend a book in Python language for the creation of pages (webmasters). Without any Framework. Thanks Which part of ... [B]If you know a good project, please post it here. If you have questions, start your own thread and don't clutter the sticky.[/B] ... don't you understand? …
hi, Is it possible to query WMI to take only the owner of the processes? My test, but it does not work: [CODE=C#] ObjectQuery query = new ObjectQuery ("Select * from Win32_Process where Owner = 'LolaLola'"); [/CODE]
How do I know what the process owner, who released it? Using Process funktion, and don't using WMI. [CODE]Process[] list = Process.GetProcesses();foreach (Process pr in list) { Process process = Process.GetProcessById(pr.Id); process. ??? }[/CODE]
Hi, "DriveDetector();" work with "using Dolinay;", but "Dolinay" is only in Framework 2.0 Now i work with Framework 3.5. How i can run "DriveDetector();" in FW 3.5?
Hi, [CODE] ManagementObject disk = new ManagementObject("Win32_LogicalDisk.DeviceID=\"" + drive + ":\""); disk.Get(); info = disk["VolumeSerialNumber"].ToString(); [/CODE] Is a good solution to use to identify USB Flash? I want to know whether these USB Flash has been connected to the computer. Is it really shows USB Flash individual number? Is this …
Hi, Why not uploaded the data into db? Do not show any error. [CODE] string City = "Berlin"; string MyConString = "SERVER=localhost;" + "DATABASE=test;" + "UID=root;" + "PASSWORD=;"; MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection.CreateCommand(); command.CommandText = "insert into city(city) VALUES (@City)"; command.Parameters.Add(new MySqlParameter("@City", MySqlDbType.VarChar, 40)).Value = City; …
Hi, how to make that div "left and "rigth" would have 50% empty window. And div "center" always be the center. Now div make one after another [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> div.body{ margin:0; …
Hi, I'm trying to create a program which provides a key strength. Visual studio don't show errors, but the program hangs on QuadWordFromBigEndian functions. Whats wrong? Program stop workin on this line: [CODE]01.x = ( (((UInt64)block[0]) << 56) | (((UInt64)block[1]) << 48) | 02. (((UInt64)block[2]) << 40) | (((UInt64)block[3]) << …
Hi, why i can read and write to file? Show error only on the "file". Any other well, but I can not read or write. I use: using System.IO; [CODE] private void button1_Click(object sender, EventArgs e) { OpenFileDialog of = new OpenFileDialog(); of.ShowDialog(); textBox1.Text = of.FileName; [COLOR="Red"]file [/COLOR]= new FileStream(textBox1.Text, …
I have trouble with spaces, wher is php tag, i have spaces. foto: [url]http://img99.imageshack.us/img99/4163/spacervd.png[/url] If i delete: require("connect_db.php"); and <form method = "post"> ... Everything ok. How i can remowe this space? And why "New user" in ner rows? [code=php] <?php session_start(); require("connect_db.php"); ?> <html> <head> <style type="text/css"> body { …
What's wrong? Why don't work stop funkction? I think that the poor turn to the function, but otherwise I do not know ... [code=html]<html> <head> <script type="text/javascript" src="jquery.js"></script> <script> $(document).ready(function() { //Paleidimo funkcija var time_ref = setTimeout(function() { var time_ref2 = setInterval(function() { $('#time_now').load('time.php?id='+ Math.random()); }, 1000); }, 3000); //Laiko …
Hi, with Mozila everything work, but with IE didn't work. Page didn't reload. What's wrong? [code] <html> <head> <script type="text/javascript"> setInterval("sendRequest()", 1000*2); function createRequestObject() { var req; if(window.XMLHttpRequest){ // IE 7, Firefox, Safari, Opera... req = new XMLHttpRequest(); } else if(window.ActiveXObject) { // Internet Explorer 6, 5 req = new …
hi, i use AJAX, framework - JQUERY. Now all information show in one table( <div id = "user">). [code] var user= setInterval(function() { $('#user).load(user.php?id='+ Math.random()); }, 5000); user.php: $rez= mysql_query($sql, $db) or die("Error"); while($r = mysql_fetch_array($rez, MYSQL_ASSOC )){ $name= $r["name"]; $time= $r["time"]; [/code] But how make this: $name show in …
The End.
Lolalola