database,drupal,themes,title,transferRelated issues-Collection of common programming errors
Ben
database csv bulk
I try to load my database with tons of data from a .csv file sized 1.4 GB. But when I try to run my code I get errors. Here’s my code:USE [Intradata NYSE] GO CREATE TABLE CSVTest1 (Ticker varchar(10) NULL, dateval date NULL, timevale time(0) NULL, Openval varchar(10) NULL, Highval varchar(10) NULL, Lowval varchar(10) NULL, Closeval varchar(10) NULL, Volume varchar(10) NULL ) GOBULK INSERT CSVTest1 FROM ‘c:\intramerge.csv’ WITH ( FIELDTERMINATOR = ‘,’, ROWTERMINATOR = ‘\n’ ) GO –Check the conte
Niklas B.
c database linux
I need to implement the fastest possible way to store a key/value pair in a distributed system on Linux. Records of the database are tiny, 256 bytes on average.I am thinking to use open(), write() and read() system calls and write the key-value pairs directly at some offset in the file. I can omit fdatasync() system call since I will be using SSD disk with battery, so I don’t have to worry about ACID compliance if an unexpected shutdown of the system happens. Linux already provides disk cache im
Rui Jarimba
c# .net database entity-framework-5
I have an errorType used in a using statement must be implicitly convertible to ‘System.IDisposable’on lineusing (var context = new EntityContainer())Here is my code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Globalization; using System.Data; using System.Data.Entity; using school.usi.susibar.model;namespace school.usi.susibar.test {class Program{public static void Main(string []arg
Glen Robson
php mysql database group-by
I am trying to get a users most current messages for each conversation. However my group by query doesnt seem to be bringing the correct rows back. Here is my data:ID | MESSAGE | RELATED_ID | DATE_SENT2 | Hi | 2 | 2013-02-21 16:03:003 | Hii | 2 | 2013-02-21 16:04:004 | Hiii | 2 | 2013-02-21 16:05:005 | Hiiii | 2 | 2013-02-21 16:06:006 | Bye | 6 | 2013-02-21 16:03:017 | Byee | 6 | 2013-02-21 16:04:018 | Byeee | 6
biesior
java database playframework db2 playframework-2.0
I’m develloping a web application over Play Framework 2.0.Since I need to access a DB2 database, I added the following lines to my application’s application.conf file:db.mydb.driver=com.ibm.db2.jcc.DB2Driver db.mydb.url=”jdbc:db2://host:port/databaseName” db.mydb.user=user db.mydb.password=pass db.mydb.jndiName=databaseNameI connected sucessfully to this DB but got the following exceptions:[info] play – datasource [jdbc:db2://host:port/databaseName] bound to JNDI as databaseName [info] play – da
BradC
database performance oracle indexing
I have a process that is performing badly due to full table scans on a particular table. I have computed statistics, rebuilt existing indices and tried adding new indices for this table but this hasn’t solved the issue.Can an implicit type conversion stop an index being used? What about other reasons? The cost of a full table scan is around 1000 greater than the index lookup should be.EDIT:SQL statement:select unique_key from src_table where natural_key1 = :1 and natural_key2 = :2 and natura
Peter O.
c++ database otl soci
What are the advantages and disadvantages of the C++ database libraries OTL and SOCI? In particular, what differences are relevant for my project, whose database uses SQL Server 2008?I haven’t used either before, and during my project I don’t want to change the library.
Sergey Mikhanov
java database hibernate postgresql jdbc
I am setting up a project using Hibernate 3.3.1 GA and PostgreSQL 8.3. I’ve just created a database, the first table, added one row there and now configuring Hibernate.However, even the simplest query:Criteria criteria = session.createCriteria(Place.class); List result = criteria.list();could not be executed (empty list is returned though there is one record in the database). I looked to the PostgreSQL logs and could see:2008-09-17 22:52:59 CEST LOG: connection received: host=192.168.175.1 port
Noah
mysql ruby-on-rails database sqlite
After much googling I have been wondering what the benefits/differences are between mysql and sqlite3. I am primarily hoping for a speed bump when moving my development database to my production database, although I imagine this will primarily happen in my code. Does any know what the major differences are in performance? ARE there? Or would you be able to point me in the direction of some literature comparing the two?
musical_coder
php mysql database parsing login
i got a parsing error for a database that i want to either retrieve and/or delete data/input – this is the error message that i get – *Parse error: syntax error, unexpected ‘public’ (T_PUBLIC) in C:\xampp\htdocs\ooplr\classes\DB.php on line 66*here are the codes for the file that is giving me the error:<?phpclass DB{ private static $_instance = null; private $_pdo, $_query, $_error = false, $_results, $_count =0;private static function __construct(){try {$this->_pdo = new PDO(‘mysql:host=’
kiamlaluno
jquery drupal drupal-6
What are Drupal behaviors at all? What type of service layer it offers to module developers? What type of relation it maps to jQuery.ready?
kiamlaluno
drupal drupal-7 drupal-views drupal-exposed-filter
I’m working on a website that uses Domain Access and for a view I expose a filter that lists all domains. I want to list only some domains but not all. I know that it is posible to do with the filter configuration, but if I limit the options this way there is a problem with ajax which changes all the options text to “1”, and in any case I want to know how to do it, with either hook form alter or with themes, but preferably using some hook from a module.In general I’m trying to figure out how to
scott
php drupal character-encoding drupal-7
When trying this insert query://insert into database $contact_id = db_insert(‘contact’)->fields(array(‘date_created’ => date(“Y-m-d H:i:s”),’date_updated’ => date(“Y-m-d H:i:s”),’list_id’ => $form_state[‘values’][‘list_id’],’first_name’ => $fn,’last_name’ => $ln,’gender’ => $g,’email’ => $ea,’company_name’ => $cn,’is_active’ => 1,))->execute();Everything works fine, all the data is loading fine, but when the company name gets an accent, then it causes an error “T
Phil
drupal hosting drupal-7
Hi Ive recently finished making a website is drupal 7, with the following modules:CCK CHAOS TOOL SUITE Pathauto Token PANELS Wysiwyg VIEWSIt works absolutely fine on my PC and laptop both with a fresh install of WAMP server. When I upload to my hosting however I get the following error:Parse error: parse error, unexpected T_ARRAY, expecting ‘&’ or T_VARIABLE in /var/www/html/rj/includes/bootstrap.inc on line 1406Which is:function t($string, array $args = array(), array $options = array()) {g
Andrew
drupal drupal-6
I was experiencing an odd problem where blocks were not showing up on a site. After a lot of spelunking I have found that block.tpl.php is not getting called/discovered. Looking at the suggestions that the theme engine is trying to find it looks like the most general template it will look for is block-MODULE.tpl.php – ie if I set up symlinks for block-block.tpl.php, block-views.tpl.php etc then the content will show. It just won’t find block.tpl.phpSo I can kind of make the problem go away, but
Basti
php variables drupal content block
I am trying to print out multiple variables in a block content, but drupal returns:Parse error: syntax error, unexpected ‘$search_field’ (T_VARIABLE) in C:\seu\xampp\htdocs\iptp\sites\all\modules\custom\lasearch\lasearch.module on line 70Here is my Code:/*** Implements hook_block_view* * This creates a block which shows the search results* * @param type $delta* @return type*/ function lala_search_block_view($delta = ”) {$block = array();switch ($delta) {case ‘lala_SEARCH_RESULT’:$block[‘content
Henrik Opel
php deployment drupal drupal-6 syntax-error
I had a Drupal installation at www.example.com/test. Now, it’s ready to go live, and I am trying to move it to www.example.com. I changed the line in sites/default/settings.php to:$base_url = ‘http://www.example.com/’; // NO trailing slash!When I navigate to my index.php, I get all sorts of parse errors, like this:Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/example/public_html/sites/all/modules/typogrify/typogrify.class.php o
user3172593
php drupal drupal-7 limesurvey
I’m currently building a site on drupal with the lime survey module. I tried configuring the synchronization between the limesurvey and my site. I opened sites/default/settings.php, and added the lines below after the $databases[‘default’][‘default’] variable :$databases[‘ls’][‘default’] = array( ‘driver’ => ‘your_LimeSurvey_driver’, ‘database’ => ‘your_LimeSurvey_database_name’, ‘username’ => ‘your_LimeSurvey_database_username’, ‘password’ => ‘your_LimeSurvey_database_user_password’
Pol
security drupal drupal-6 login
Is it possible to increase number of login attempts before blocking an account for a certain user or role in Drupal? (not for all users) Or even never block a certain user regardless of number of login failures?Thanks.
dkinzer
drupal drupal-6
Given a $node, I’m trying to decide between the following two ways of outputting that $node.either$output = theme(‘node’, $node);or node_build_content($node); $output = drupal_render($node->content);They both seem to give similar results, but is there something I should consider before I choose one way over the other?
Johannes H.
php wordpress website themes syntax-error
So I am in no way or form a PhP coder. I am a simple plain old Word press user. The other day I was using a Word press theme and I kept getting an error on the functions.php. The error is as follows: Parse error: syntax error, unexpected T_REQUIRE_ONCE in/home/a8137035/public_html/wp-content/themes/Oblivion/functions.phpon line 1I simply have no idea how to fix it. Furthermore as a side note I host my website on 000webhost.com and I think that is what might be getting in the way. I have absolute
user249560
php wordpress themes
I’m running a wordpress blog on local with easy php, I’ve installed a theme called gplus by welefn but I’m getting an error: Parse error: syntax error, unexpected end of file in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\wordpress\wp-content\themes\gplus\header.php on line 5Here is the code http://pastebin.com/NCizL4Ei Thank you.
toscho
themes updates core
It needs connectivity to wordpress.org and is timing out. I am behind a corporate firewall. I have never had this issue come up before in previous versions. Why does themes.php need access to wordpress.org and what can I do so it doesn’t (or maybe something that will allow me to use my proxy settings).Adding in error message:PHP Warning: An unexpected error occurred. Something may be wrong withWordPress.org or this server’s configuration. If you continue to haveproblems, please try the suppor
Peter.O
ubuntu gnome themes
(Yes, “individually themed” is an oxymoron, but I still want it.) I’ve just moved from Windows to Ubuntu Linux, and although I am enjoying this new adventure playground, I’ve encountered something quite unexpected… and its bugging me. It is probably because there are so many gnome apps in Ubuntu (… how strange 🙂 This is great. and the range of available apps is excellent! …but because of this one-stop-shop scenario, most of the windows look remarkably similar. I’m certainly not after bli
coderex
themes installation wp-config subdomains
Hi I have a domain running in WordPress, the path to WordPress installation is /subdomain/mywordpress/ and I can access these in mywordpress.mysite.com, Now I wish to load the index page on my main domain, ieWhen I goto mysite.com I want to load the Index page of the WordPress, I know if that possible, the links are always pointing to mywordpress.mysite.com, but that is what I need know. because I dont want to remove the mywordpress.mysite.com. I just need to display all posts on my main site, w
Chip Bennett
themes functions errors
After trying to replace the wordpress theme , it says that the functions.php file in the theme catalogue – the last line – is not ok Parse error: syntax error, unexpected $end in … /themes/themename/functions.php on line 1500line 1500 is actually only symbol ?>EDITok, here is the pastebin link of the functions.php file that has errorhttp://pastebin.com/by5TtZq6p.s. i am wondering – since its supposed to be a ready made template – then how could it be error – its supposed to workp.s. ma
NoBugs
theme-development themes html
I noticed that the default WP theme uses force_balance_tags for listing posts’ excerpts. This way, it doesn’t cause major html breakage whenever someone writes a post like<div><b>This is an excerpt. <!–more–> and this is more text… </b></div>It will close tags instead of bolding everything, and breaking div.Why doesn’t the normal wordpress page do this by default, in the default theme? That way, broken page content like:</div></div> now text is not w
krish
themes publish ftp
I has been completed a theme for a client. I Used to access the live wp-admin page usinghttp://name.myname.com/wp-login.phpBut that page shows just a blank(white) page. How to get fix that?Note: Their hosting provider is supporting wordpress.The error now generating is:Parse error: syntax error, unexpected ‘?>’ in /home/mysitee/public_html/mytheme/wp-content/themes/theme name/include/widget.php on line 1
Charles T.
themes errors
I knew I made a syntax error or something which WordPress showed error after I added code to functions.php :Parse error: syntax error, unexpected ‘Lucida’ (T_STRING), expecting ‘,’ or ‘;’ in /home1/[name]/public_html/wp-content/themes/[name]/functions.php on line 49The problem now is that, how am I supposed to rectify the problem when I tried clicking on any part of my website now, it will just show that error message without allowing me to even edit back the code?I hit the ‘back’ button, and ma
Devesh Saini
linux graphics themes
Recently I did installed “dconfeditor” in my Elementary OS. I restarted my Computer and log-in and see all the beautiful look of Elementary OS has gone. I really no idea why this was happened to me, So, I have no information other than this. Please tell me what can I do to restore that old theme in my Elementary OS.Here’s my screenshots:-Before->After->
user3164083
android menu title submenu
Is it possible to add a title to the group down the bottom? I tried doing this by wrapping the group in another menu but that caused an “unexpected end of document” exception. I was thinking maybe a blue line above the group too, the colour won’t need to be set, as my app theme uses all blue lines. <itemandroid:id=”@+id/action_settings”android:showAsAction=”always”android:title=”Sticker Settings”android:icon=”@drawable/ic_action_gear”><menu><itemandroid:id=”@+id/action_save”androi
Jeff Atwood
feature-request status-completed tags title
Possible Duplicate:Automatic removal of tags from question titles This has been talked around before, but with the idea of automatically removing or disallowing square-bracketed tags in titles. What I think would be better, and possible, would be an augmentation of the idea in this answer, namely:When the question has [text in square brackets], AND the text is an existing tag, make a suggestion that tags should go in the tags field, not in the titleThere’s already code running in the title onb
MAXE
c# windows-8 windows-runtime manifest title
I need to get Windows 8 app name to a variable, but I can’t find a way to do this.I want to get Title (“TEMEL UYGULAMA”) from Application Properties, as shown in this screenshot: http://prntscr.com/psd6wOr if anyone knows anyway to get application name or title, I can use it. I just need to get app name or title (inside the assembly)Thanks for your help.
Manoj
bash scripting title xterm
I have a script which does a long build. It takes like hours for this script to complete, and while the build is going on there is no way for me to know how much the script has run. For that I thought of changing the name of the xterm from the script to reflect the subscript.So, the question is how do I change the xterm title from script ?I tried adding lines like: echo -e ‘\033k’$mytitle’\033\’ which I got from some other post, but it doesnt work.Thanks for the help !
gnat
discussion title question-quality
Questions in titles need to be repeated, why?To me this pattern seems ridiculous. But I frequently encounter the “not a real question” situation, when I put my question in the title, then the context for that specific question in the ‘question body’. One example.So:I am to take it that the title is almost completely irrelevant for establishing subsequent question body is asking? I choose my titles to expose the actual question so it need not be repeated below. If questions need to be repeated in
Feral Oink
feature-request tags title google search-engine
Across the Stack Exchange network, tags appear before the user-given title of the question inside the HTML <title> element:<title>javascript – What does jQuery.fn mean? – Stack Overflow</title>This typically happens when a relevant tag is not mentioned in the title – beneficial for SERPs. Here it’s acceptable that the tag “html” is lower-case, despite the mismatch with “CSS” in the body of the question:In other cases, the lack of capitalization in tags within the <title>
XMLbog
discussion tags title
Suppose I have a fairly generic question (like about the use of global variables or something like that) but I’m looking for an answer related to PHP, should I include that requirement in the title? I know that it’s what tags are for, but maybe it helps visibility and relevance in external engine (google) searches?
Steven S.
iphone uitableview delegates title sections
Pretty simple question, but I just can’t get it to work right. I need to be able to access the string header value of a section when a cell within that section is clicked.My initial attempts haven’t been working:[tableView titleForHeaderInSection:1];The reason I thought that would work is because I am also using this:[tableView cellForRowAtIndexPath:indexPath];Which works fine. I’m implementing the delegate, but I still get the warning that UITableView may not respond to titleForHeaderInSection.
Tshepang
android menu android-actionbar title
I’m trying to change the title of one of my actionbar menu items. When the user isn’t logged in it says Login which is the normal title for it, but once the user logs in I want it to change to logout. What I have right now was just to test if I could get it to work but whenever I run it with the code to change the title it crashes. Here’s the code:public MenuItem logout;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.main);b
casperOne
android title visible customdialog
Just a simple problem without any idea of how to do it. Does anyone know how/if this can be done?Reason: I just want one solid dialog box with no partitions as it looks a little better in my application.EDITpublic void showCustomDialog() {Dialog dialog = new Dialog(this);dialog.setContentView(R.layout.customdialog);TextView thisText = (TextView) dialog.findViewById(R.id.customDialogThisText);thisText.setText(“This”);TextView thatText = (TextView) dialog.findViewById(R.id.customDialogThatText);th
Sooshii
linux rsync transfer
I want to transfer selective sub folders from a range of parent folders:/home/user/sample_rsync/ FolderA/sub1 FolderA/sub2 FolderA/sub3 FolderB/sub1 FolderB/sub2 FolderB/sub3 FolderC/sub1 FolderC/sub2 FolderC/sub3Say from the above example I want to copy just sub1 from each directory. i.e. in my destination I want the following folders to be created (along with the files they contain)/destination/ sample_rsync/FolderA/sub1 sample_rsync/FolderB/sub1 sample_rsync/FolderC/sub1How do I go about doi
wRAR
file ftp transfer pgp
I am trying to upload a PGP encrypted file through FTP. But I am getting an error message as follows:The underlying connection was closed: An unexpected error occurred on a receive.I am using the following code and getting the error at line:Stream ftpStream = response.GetResponse();Is there any one who can help me out ASAP.Following is the code sample:FtpWebRequest request =WebRequest.Create(“ftp://ftp.website.com/sample.txt.pgp”) as FtpWebRequest; request.UsePassive = true; FtpWebResponse
brain_pusher
wcf file transfer
My WCF service contract has to methods like these:[OperationContract]string GetFile(int id);[OperationContract]void UploadFile(int id, string text);GetFile returns a text of a file and UploadFile sends some file’s content to a server. There is a strange behavior, when file’s size is about few MB (4.37 MB in my case): GetFile works fine and client gets long text without any problem, but UploadFile cannot send the same file to a server. Client freezes while executing this method and it seems not t
Anonymous
server files home-server transfer
I understand that this is a totally novice question but…What is the best way for me to transfer files between two PC’s? I have a laptop with Ubuntu Desktop (12.04) and a local server I’m setting up using Ubuntu Server. I’m used to windows environment where I might typically browse the network via Windows explorer and move files around. This might work for Ubuntu desktop, but what’s the best way for Ubuntu server?Do I need to create a user on the server, then SSH into the server from the laptop
Rohit Kandhal
android sockets bytearray transfer datainputstream
I’m trying to make a simple chatting app, using socket communication. My goal is to send and receive text and images(from smartphone gallery) successfully. Text part successful, but I’m having trouble with images.I wrote a code using dataInput/OutputStream, and below is the code, which is establishing socket connection for image transfer, using bytearray(The app use different port for text and image).class image_connection_thread extends Thread{public boolean flag=true;public void run(){try{sock
qing2apple
mac photos ipad transfer
One of the great benefits of the iPad will be putting a ton of my photos in one, great place to show friends and family (rather than bringing them over to my computer). But I have several thousand photos, all organized on my iPad in folders by year and subject.I would like to transfer them to my mac? How can I do this? Thanks.
foxl
ssd raid raid-0 transfer
can you help me choosing a raid system?ive got raid0 on my last system (ssd) = fast transfer ratesBUT they crashed and all data went into trash.isnt there a system that mirrors a raid0 ? (wiki says raid01 (raid 0+1))BUT (again^^) my mirror hdds are normal hdds, so the transfer rates are not equal to the ssd.so my question will the “system” trottle the rates to the lowest hdd? (=normal hhds?)detailed: ssd have about 440MB/S the raptors have ~120MB/Sbr foxl
cipricus
xfce transfer crossplatform file-size nitroshare
I have recently seen Nitroshare promoted on this site and have installed it in Ubuntu (Xubuntu 12.10) and Win7.I was able to transfer files but only up to a certain size. I have not tested with very large files, up to 60 MB it worked, but an archive of about 360 MB was not successfully transferred. While a folder of 128MB was sent, a zip archive of the same folder was not, crashing the sending application.I see here that in fact the free version is the lite one, with clear limitations.What does
sre
transfer
My ubuntu laptop is customised with all the programs and themes of my choise,can i transfer these software to another computer running ubuntu and install them there via usb drive.
Hamed Rajabi
xcode version transfer
Good day – several days have passed while i was trying to transport my xcode 4.02 project (from mac os x 6) to xcode 4.3 (mac os x lion) So it is complete fail(( The problem is [Apple Mach-o Linker id Error]Problem starts when i add – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions {//This one BaseView* testView = [[BaseView alloc] initWithFrame:CGRectMake(0.0f, 20.0f, 320.0f, 460.0f)];// [self.window addSubview:tes
Web site is in building