<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tips &#8211; Stacie Arellano</title>
	<atom:link href="https://www.staciearellano.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.staciearellano.com</link>
	<description>Artist, Author, Web Maven</description>
	<lastBuildDate>Mon, 05 Feb 2018 20:47:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.staciearellano.com/wp-content/uploads/2019/09/cropped-bright-hair2019-32x32.jpg</url>
	<title>tips &#8211; Stacie Arellano</title>
	<link>https://www.staciearellano.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">47314203</site>	<item>
		<title>Drupal tips (2)</title>
		<link>https://www.staciearellano.com/drupal-tips-2/</link>
					<comments>https://www.staciearellano.com/drupal-tips-2/#respond</comments>
		
		<dc:creator><![CDATA[Stacie]]></dc:creator>
		<pubDate>Mon, 05 Feb 2018 20:45:50 +0000</pubDate>
				<category><![CDATA[WebDev]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://www.staciearellano.com/?p=118</guid>

					<description><![CDATA[ #3 Why are blocks being deactivated on my site? Why is my copy site acting strangely? If you copy an entire site in order to&#8230;]]></description>
										<content:encoded><![CDATA[<p><strong> #3 Why are blocks being deactivated on my site? Why is my copy site acting strangely?</strong></p>
<p>If you copy an entire site in order to split apart some of its content, make sure you investigate the cache folder and <strong>remove any remnant of the previous site cache</strong>. There may be a folder for the previous site.</p>
<p>Otherwise, for a little period of time, you&#8217;ll be getting some strange behavior that makes it seem like the old site is still hanging around on the new install.</p>
<p>Even if that description didn&#8217;t make sense, if you are having strange theme behaviors that flushing the cache, rebuilding permissions and/or a restart don&#8217;t seemed to have fixed&#8230; <strong>check out the cache folder on your server. </strong></p>
<p>Additionally, if you a splitting a site into two, and intend to use both sites on the same machine, and in the same database instance(ie, two databases on the same machine), make sure you check that the copy site isn&#8217;t pointing to any shared folder on the server, ie your cache folder.<strong> If somehow, both sites are using the same cache folder, changes on one site may affect the other site.</strong></p>
<p>You are better off changing your site into a multi-site instance, for Drupal 7, because that should mitigate most of these problems. Multi-sites use different cache/files directories unless explicitly sharing modules/themes/frameworks out of the sites/all folder.</p>
<p><strong>#4</strong> <strong>git loses track/won&#8217;t overwrite settings.php file. (combo drupal + git tip)</strong></p>
<pre class="codeblock language-php"><code class=" language-php">error<span class="token punctuation">:</span> unable to unlink old <span class="token string">'sites/default/settings.php'</span> <span class="token punctuation">(</span>Permission denied<span class="token punctuation">)</span>
fatal<span class="token punctuation">:</span> Could not reset index file to revision <span class="token string">'origin'</span><span class="token punctuation">.</span></code></pre>
<p>Repairing/resetting my mac home directory permissions seemed to fix things. ( <a title="Apple walks you thru resetting home perms." href="https://support.apple.com/en-us/HT203538" target="_blank" rel="nofollow noopener">Resolve issues caused by changing the permissions of items in your home folder</a> )</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.staciearellano.com/drupal-tips-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">118</post-id>	</item>
		<item>
		<title>How to fix Xcode Crashes</title>
		<link>https://www.staciearellano.com/how-to-fix-xcode-crashes/</link>
					<comments>https://www.staciearellano.com/how-to-fix-xcode-crashes/#respond</comments>
		
		<dc:creator><![CDATA[Stacie]]></dc:creator>
		<pubDate>Wed, 17 Aug 2016 11:56:02 +0000</pubDate>
				<category><![CDATA[GameDev]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[xcode]]></category>
		<guid isPermaLink="false">http://www.staciearellano.com/?p=989</guid>

					<description><![CDATA[Tips for when your Xcode/beta crashes when you try to run. TLDR: Xcode was crashing after building successfully but before running. Deleting my User Prefs&#8230;]]></description>
										<content:encoded><![CDATA[<h3>Tips for when your Xcode/beta crashes when you try to run.</h3>
<p><strong>TLDR</strong>: Xcode was crashing after building successfully but before running. <strong>Deleting my User Prefs fixed my error</strong>, but I&#8217;ve listed the steps I tried, and some other best practice options below.</p>
<hr />
<p><strong>My problem was this</strong>: Xcode 8 beta 2 arrived, and I went merrily on my way playing with all the great stuff we learned about at WWDC.</p>
<p>However, everytime I tried to build and run in the new Xcode beta 2 (and later in beta 3) I would get a <span style="text-decoration: underline;">successful build</span> and then the whole program would <strong>crash without opening the simulator or deploying</strong> to a device.</p>
<p>I talked to a lot of people in my knowledge network, and did all sorts of searching on the error I was getting:</p>
<blockquote><p>&#8220;Exception Type: EXC_CRASH (SIGABRT)<br />
Exception Codes: 0x0000000000000000, 0x0000000000000000<br />
Exception Note: EXC_CORPSE_NOTIFY</p>
<p>Application Specific Information:<br />
ProductBuildVersion: 8S162m<br />
_ASSERTION FAILURE_ in /Library/Caches/com.apple.xbs/Sources/<strong>IDESpriteKitSupport</strong>/IDESpriteKitSupport-11049/Foundation/Classes/Document/SKEditorDocument.m:201”</p></blockquote>
<p>This was strange, because the app I was working on was not using SpriteKit at all.  It was from a tutorial from Paul Hudson from his new <a href="https://gumroad.com/l/ios10" target="_blank">Practical iOS 10 book. </a>(<strong>which is great so far, fyi)</strong></p>
<p>To test that it wasn&#8217;t something I&#8217;d done in the project, I made a new blank one, cleverly named &#8216;dontcrash&#8217;, and tried to build and run it. <strong>Xcode crashed again</strong>.</p>
<p><em>I actually ended up with several blank apps: dontcrash2, <em>dontcrash3</em> dontcrashXcodebeta3 and finally- CrashyApp, before I hit on the solution. </em></p>
<p><strong>Basic Options for Xcode Crashes</strong></p>
<ol>
<li>Clean the project.</li>
<li>Target a different simulator you haven’t tried with the project yet.</li>
<li>Delete Derived Data directory</li>
<li>Delete app, re-install.</li>
<li><strong>Delete User Preferences</strong>
<ol>
<li>As mentioned here:<a href="http://stackoverflow.com/questions/31354850/xcode-7-beta-3-crash-at-startup" target="_blank"> http://stackoverflow.com/questions/31354850/xcode-7-beta-3-crash-at-startup</a></li>
<li><strong>Note: </strong>Deleting the app and reinstalling does <strong><em>not</em></strong> remove the user preferences.</li>
<li>This fixed my problem.Not sure how my prefs got confused in the first place.</li>
</ol>
</li>
</ol>
<p><strong>Advanced options </strong>(I didn&#8217;t get this far)</p>
<ul>
<li><span class="s1">Monitor memory usage in the Debug navigator</span></li>
<li><span class="s1">Inspect a few malloc generations in Instruments</span></li>
</ul>
<p>&nbsp;</p>
<p class="p1">
]]></content:encoded>
					
					<wfw:commentRss>https://www.staciearellano.com/how-to-fix-xcode-crashes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">989</post-id>	</item>
		<item>
		<title>Bad Node, Bad Node, whatcha gonna do?</title>
		<link>https://www.staciearellano.com/bad-node-bad-node-whatcha-gonna-do/</link>
					<comments>https://www.staciearellano.com/bad-node-bad-node-whatcha-gonna-do/#comments</comments>
		
		<dc:creator><![CDATA[Stacie]]></dc:creator>
		<pubDate>Tue, 12 Jan 2016 16:21:52 +0000</pubDate>
				<category><![CDATA[WebDev]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://www.staciearellano.com/?p=125</guid>

					<description><![CDATA[I recently switched a site search from using external Google CSE search to using the internal Drupal Core search. This was fairly inconsequential. I switched&#8230;]]></description>
										<content:encoded><![CDATA[<p>I recently switched a site search from using external Google CSE search to using the internal Drupal Core search. This was fairly inconsequential.</p>
<p>I switched to Node search under Config -&gt; Search and Metadata, swapped the CSE block out of my sidebar in Content -&gt;Structure, made a few theme CSS changes to match and I should have been done.</p>
<p>Except for indexing the content, trivial, right? Just run cron a few times and you should be all set!</p>
<p>Only, no. That didn&#8217;t seem to work. I kept getting a couple strange errors in the log messages.</p>
<blockquote>
<pre class="p1"><span class="s1">Warning: Creating default object from empty value in node_build_content() (line 1398 of /Users/user/sites/sitename/modules/node/node.module)</span></pre>
</blockquote>
<p class="p1">and</p>
<blockquote>
<pre class="p1"><span class="s1"><strong>EntityMalformedException</strong>: Missing bundle property on entity of type node. in entity_extract_ids() (line 7879 of /Users/user/sites/sitename/includes/common.inc).</span></pre>
</blockquote>
<p class="p1">After a good deal of searching, and some helpful hints from the #drupal channel I tried a few different modules but none of them addressed the one issue I was having, which was increasing the indexing. I was stuck at 8%.</p>
<p class="p1">I finally found this post <a href="http://tappetyclick.com/blog/2013/01/14/how-find-bad-node-makes-search-indexing-cause-drupal-cron-fail">http://tappetyclick.com/blog/2013/01/14/how-find-bad-node-makes-search-indexing-cause-drupal-cron-fail</a></p>
<p class="p1">Which mentioned that they had found a solution on a Portuguese site, and translated it for us.</p>
<p class="p1">My drupal version is a little bit different than the example at tappetyclick, but the gist is: Output the indexing process to the log by adding a watchdog line to  the core file modules/node/node.module&#8221;</p>
<blockquote>
<pre class="p1">'watchdog ('cron', "indexing node {$node -&gt; nid}"); // ADD THIS LINE'</pre>
</blockquote>
<p class="p1">This made my node_update_index() look like this:</p>
<blockquote>
<pre>function node_update_index() {
 $limit = (int)variable_get('search_cron_limit', 100);</pre>
<pre> $result = db_query_range("SELECT n.nid FROM {node} n LEFT JOIN {search_dataset} d ON d.type = 'node' AND d.sid = n.nid WHERE d.sid IS NULL OR d.reindex &lt;&gt; 0 ORDER BY d.reindex ASC, n.nid ASC", 0, $limit, array(), array('target' =&gt; 'slave'));</pre>
<pre>foreach ($result as $node) {
<strong> watchdog ('cron', "indexing node {$node -&gt; nid}"); // ADD THIS LINE</strong>
 _node_index_node($node);</pre>
<pre>}
}</pre>
</blockquote>
<p class="p1">Then I ran cron manually and checked the log messages, filtering for cron types only.</p>
<pre class="p1">cron 01/11/2016 - 5:00pm indexing node 1803 Anonymous 
cron 01/11/2016 - 5:00pm indexing node 702 Anonymous 
cron 01/11/2016 - 5:00pm indexing node 7676 Anonymous 
cron 01/11/2016 - 5:00pm indexing node 6801 Anonymous</pre>
<p class="p1">Everytime I ran into <em><strong>EntityMalformedException</strong>: Missing bundle property on entity of type node in entity_extract_ids(),</em> I&#8217;d look at the last node we&#8217;d tried to index,<strong> this was the bad node</strong>, and delete it from the database.</p>
<p class="p1">After removing about 40 of these bad nodes the core search index actually reached 100%. /kermitarms</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.staciearellano.com/bad-node-bad-node-whatcha-gonna-do/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">125</post-id>	</item>
	</channel>
</rss>
